Re: [PATCH] bpf: defer printk() inside __bpf_prog_run()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 27 Jun 2024 09:21:38 +0900
Tetsuo Handa <penguin-kernel@xxxxxxxxxxxxxxxxxxx> wrote:

> What change do you propose?
> 
> https://syzkaller.appspot.com/text?tag=Patch&x=121c92fe180000 ?

That's one solution, but you need to call printk_deferred_enter()
*after* taking the lock, otherwise preemption could still be enabled
and you could schedule and migrate between the printk_deferred_enter()
and taking of the lock.

-- Steve




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux