aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <[email protected]>2021-12-10 18:20:58 +0000
committerJens Axboe <[email protected]>2021-12-10 18:26:07 +0000
commite6a59aac8a8713f335a37d762db0dbe80e7f6d38 (patch)
tree5dbbaa64f3b99f6340475b25b58e0cd0d27b70b1 /net/unix/af_unix.c
parentMerge branch 'md-fixes' of https://git.kernel.org/pub/scm/linux/kernel/git/so... (diff)
downloadkernel-e6a59aac8a8713f335a37d762db0dbe80e7f6d38.tar.gz
kernel-e6a59aac8a8713f335a37d762db0dbe80e7f6d38.zip
block: fix ioprio_get(IOPRIO_WHO_PGRP) vs setuid(2)
do_each_pid_thread(PIDTYPE_PGID) can race with a concurrent change_pid(PIDTYPE_PGID) that can move the task from one hlist to another while iterating. Serialize ioprio_get to take the tasklist_lock in this case, just like it's set counterpart. Fixes: d69b78ba1de (ioprio: grab rcu_read_lock in sys_ioprio_{set,get}()) Acked-by: Oleg Nesterov <[email protected]> Signed-off-by: Davidlohr Bueso <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions