[PATCH 0/2] net: Fix/prevent napi_schedule() call from bare task context

Frederic Weisbecker posted 2 patches 10 months, 1 week ago
drivers/net/usb/r8152.c |  5 ++++-
include/linux/lockdep.h | 12 ++++++++++++
net/core/dev.c          |  1 +
3 files changed, 17 insertions(+), 1 deletion(-)
[PATCH 0/2] net: Fix/prevent napi_schedule() call from bare task context
Posted by Frederic Weisbecker 10 months, 1 week ago
Hi,

Here is a fix to a bad context calling napi_schedule() and a lockdep
assertion to prevent from that in the future. I've tried to produce
a relevant Fixes tag but I'm not confident enough with this codebase.
This call is there for many years and yet the issue got reported only
recently, so I may be missing something in the history of this driver
or in net/usb infrastructure...

Thanks.

Frederic Weisbecker (2):
  net: Assert proper context while calling napi_schedule()
  r8152: Call napi_schedule() from proper context

 drivers/net/usb/r8152.c |  5 ++++-
 include/linux/lockdep.h | 12 ++++++++++++
 net/core/dev.c          |  1 +
 3 files changed, 17 insertions(+), 1 deletion(-)

-- 
2.46.0