Skip to content

Fix on-stack USB buffers

Ben Hutchings netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 of 4 patches 26 repliesIn review

3 of 4 patches are in this archive. The cover letter announces 4.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4pegasus: Use heap buffers for all register accessdrivers/net/usb/pegasus.c+25 -413 replies
2/4rtl8150: Use heap buffers for all register accessdrivers/net/usb/rtl8150.c+27 -712 replies
4/4catc: Use heap buffer for memory size testdrivers/net/usb/catc.c+18 -70 replies

Reviews trailers per patch

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

PatchLisandro Damián Nicanor Pérez Meyer
1/4T-b
2/4
4/4

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 net 0/4] Fix on-stack USB buffers

Allocating USB buffers on the stack is not portable, and no longer works on x86_64 (with VMAP_STACK enabled as per default). This series fixes all the instances I could find where USB networking drivers do that.

Ben.

Ben Hutchings (4):
pegasus: Use heap buffers for all register access
rtl8150: Use heap buffers for all register access
catc: Combine failure cleanup code in catc_probe()
catc: Use heap buffer for memory size test

 drivers/net/usb/catc.c    | 56 ++++++++++++++++++++++++++++-------------------
 drivers/net/usb/pegasus.c | 29 ++++++++++++++++++++----
 drivers/net/usb/rtl8150.c | 34 ++++++++++++++++++++++------
 3 files changed, 86 insertions(+), 33 deletions(-)