lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 09 Mar 2020 17:55:34 -0700 (PDT)
From:   David Miller <>
Subject: Re: [PATCH] page_pool: use irqsave/irqrestore to protect ring

From: Jonathan Lemon <>
Date: Mon, 9 Mar 2020 12:49:29 -0700

> netpoll may be called from IRQ context, which may access the
> page pool ring.  The current _bh variants do not provide sufficient
> protection, so use irqsave/restore instead.
> Error observed on a modified mlx4 driver, but the code path exists
> for any driver which calls page_pool_recycle from napi poll.
> WARNING: CPU: 34 PID: 550248 at /ro/source/kernel/softirq.c:161 __local_bh_enable_ip+0x35/0x50
> Signed-off-by: Jonathan Lemon <>

The netpoll stuff always makes the locking more complicated than it needs
to be.  I wonder if there is another way around this issue?

Because IRQ save/restore is a high cost to pay in this critical path.

Powered by blists - more mailing lists