Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tomoyo: don't special case PF_IO_WORKER for PF_KTHREAD

Since commit 3bfe6106693b6b4b ("io-wq: fork worker threads from original
task") stopped using PF_KTHREAD flag for the io_uring PF_IO_WORKER threads,
tomoyo_kernel_service() no longer needs to check PF_IO_WORKER flag.

(This is a 5.12+ patch. Please don't send to stable kernels.)

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>

authored by

Jens Axboe and committed by
Tetsuo Handa
4e53d170 0f4498ce

+1 -1
+1 -1
security/tomoyo/network.c
··· 613 613 static bool tomoyo_kernel_service(void) 614 614 { 615 615 /* Nothing to do if I am a kernel service. */ 616 - return (current->flags & (PF_KTHREAD | PF_IO_WORKER)) == PF_KTHREAD; 616 + return current->flags & PF_KTHREAD; 617 617 } 618 618 619 619 /**