rv: Fix __user specifier usage in extract_params()
The attributes variables extracted from syscalls in the helper are both
defined with the __user specifier although only the actual pointer to
user data should be marked.
Remove the __user specifier from attr.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202604150820.Ny143u6X-lkp@intel.com
Fixes: b133207deb ("rv: Add nomiss deadline monitor")
Reviewed-by: Wen Yang <wen.yang@linux.dev>
Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://lore.kernel.org/r/20260601153840.124372-2-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
This commit is contained in:
parent
e43ffb69e0
commit
4793e8a6e2
1 changed files with 2 additions and 1 deletions
|
|
@ -95,7 +95,8 @@ static inline u8 get_server_type(struct task_struct *tsk)
|
|||
static inline int extract_params(struct pt_regs *regs, long id, pid_t *pid_out)
|
||||
{
|
||||
size_t size = offsetofend(struct sched_attr, sched_flags);
|
||||
struct sched_attr __user *uattr, attr;
|
||||
struct sched_attr __user *uattr;
|
||||
struct sched_attr attr;
|
||||
int new_policy = -1, ret;
|
||||
unsigned long args[6];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue