@@ -4278,15 +4278,15 @@ static int bpf_task_work_schedule(struct task_struct *task, struct bpf_task_work
42784278 * @tw: Pointer to struct bpf_task_work in BPF map value for internal bookkeeping 
42794279 * @map__map: bpf_map that embeds struct bpf_task_work in the values 
42804280 * @callback: pointer to BPF subprogram to call 
4281-  * @aux__prog: user should pass NULL  
4281+  * @aux__magic: pointer to bpf_prog_aux of the caller BPF program, set by the verifier  
42824282 * 
42834283 * Return: 0 if task work has been scheduled successfully, negative error code otherwise 
42844284 */ 
42854285__bpf_kfunc  int  bpf_task_work_schedule_signal (struct  task_struct  * task , struct  bpf_task_work  * tw ,
42864286					      void  * map__map , bpf_task_work_callback_t  callback ,
4287- 					      void   * aux__prog )
4287+ 					      struct   bpf_prog_aux   * aux__magic )
42884288{
4289- 	return  bpf_task_work_schedule (task , tw , map__map , callback , aux__prog , TWA_SIGNAL );
4289+ 	return  bpf_task_work_schedule (task , tw , map__map , callback , aux__magic , TWA_SIGNAL );
42904290}
42914291
42924292/** 
@@ -4295,15 +4295,15 @@ __bpf_kfunc int bpf_task_work_schedule_signal(struct task_struct *task, struct b
42954295 * @tw: Pointer to struct bpf_task_work in BPF map value for internal bookkeeping 
42964296 * @map__map: bpf_map that embeds struct bpf_task_work in the values 
42974297 * @callback: pointer to BPF subprogram to call 
4298-  * @aux__prog: user should pass NULL  
4298+  * @aux__magic: pointer to bpf_prog_aux of the caller BPF program, set by the verifier  
42994299 * 
43004300 * Return: 0 if task work has been scheduled successfully, negative error code otherwise 
43014301 */ 
43024302__bpf_kfunc  int  bpf_task_work_schedule_resume (struct  task_struct  * task , struct  bpf_task_work  * tw ,
43034303					      void  * map__map , bpf_task_work_callback_t  callback ,
4304- 					      void   * aux__prog )
4304+ 					      struct   bpf_prog_aux   * aux__magic )
43054305{
4306- 	return  bpf_task_work_schedule (task , tw , map__map , callback , aux__prog , TWA_RESUME );
4306+ 	return  bpf_task_work_schedule (task , tw , map__map , callback , aux__magic , TWA_RESUME );
43074307}
43084308
43094309static  int  make_file_dynptr (struct  file  * file , u32  flags , bool  may_sleep ,
@@ -4529,8 +4529,8 @@ BTF_ID_FLAGS(func, bpf_strncasestr);
45294529BTF_ID_FLAGS (func , bpf_cgroup_read_xattr , KF_RCU )
45304530#endif 
45314531BTF_ID_FLAGS (func , bpf_stream_vprintk , KF_TRUSTED_ARGS )
4532- BTF_ID_FLAGS (func , bpf_task_work_schedule_signal , KF_TRUSTED_ARGS )
4533- BTF_ID_FLAGS (func , bpf_task_work_schedule_resume , KF_TRUSTED_ARGS )
4532+ BTF_ID_FLAGS (func , bpf_task_work_schedule_signal , KF_MAGIC_ARGS  |  KF_TRUSTED_ARGS )
4533+ BTF_ID_FLAGS (func , bpf_task_work_schedule_resume , KF_MAGIC_ARGS  |  KF_TRUSTED_ARGS )
45344534BTF_ID_FLAGS (func , bpf_dynptr_from_file , KF_TRUSTED_ARGS )
45354535BTF_ID_FLAGS (func , bpf_dynptr_file_discard )
45364536BTF_KFUNCS_END (common_btf_ids )
0 commit comments