[xenial, yakkety] [patch] UBUNTU: SAUCE: apparmor: fix sleep in critical section
Tetsuo Handa
penguin-kernel at I-love.SAKURA.ne.jp
Wed Oct 19 10:58:14 UTC 2016
Hello.
John Johansen wrote:
> UBUNTU: SAUCE: apparmor: fix sleep in critical section
>
> path_put() call dput() which might sleep on some paths. When it does
> sleep from these code paths, the per cpu work buffer may get reused
> overwriting the data that was just placed in the buffer.
Excuse me, but I just wondered how path_put() can be called from a
critical section. OK, get_buffers() calls preempt_disable() and
put_buffers() calls preempt_enable(). Then, I think that calling
kern_path() from between get_buffers() and put_buffers() is also wrong
because it does a GFP_KERNEL allocation which can sleep.
Did you already fix it?
More information about the kernel-team
mailing list