[PATCH] arm64: hw_breakpoint: Save privilege of access control via ptrace

Oleg Nesterov oleg at redhat.com
Wed Jun 19 08:15:24 PDT 2024


I don't understand what this patch does, but...

On 06/18, Tiezhu Yang wrote:
>
> --- a/include/uapi/linux/perf_event.h
> +++ b/include/uapi/linux/perf_event.h
> @@ -467,6 +467,7 @@ struct perf_event_attr {
>  		__u32		wakeup_watermark; /* bytes before wakeup   */
>  	};
>  
> +	__u8			bp_priv;
>  	__u32			bp_type;

Is it safe to add the new member in the middle of uapi struct?
This will break userspace...

Oleg.




More information about the linux-arm-kernel mailing list