Re: [PATCH 2/2] block: fix ioprio_get/set(IOPRIO_WHO_PGRP) vs setuid(2)
From: Jens Axboe
Date: Mon Aug 17 2020 - 10:12:32 EST
On 8/16/20 5:31 PM, Davidlohr Bueso wrote:
> 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/set to take
> the tasklist_lock in this case.
LGTM:
Reviewed-by: Jens Axboe <axboe@xxxxxxxxx>
--
Jens Axboe