Skip to content

net: Fix/prevent napi_schedule() call from bare task context

Frederic Weisbecker linux-usb lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: Assert proper context while calling napi_schedule()include/linux/lockdep.h net/core/dev.c+13 -015 replies
2/2r8152: Call napi_schedule() from proper contextdrivers/net/usb/r8152.c+4 -16 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchPaul Menzel
1/2
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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(-)
Signature · 1 line
2.46.0