Skip to content

sg: fixes for 5.13/scsi-staging

Douglas Gilbert linux-scsi 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v14 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6sg: sg_rq_map_kern: fix uninitializeddrivers/scsi/sg.c+1 -10 replies
2/6sg: sg_remove_sfp_usercontext: remove NULL checkdrivers/scsi/sg.c+2 -40 replies
3/6sg: sg_rq_end_io: set SG_FRQ_ISSUEDdrivers/scsi/sg.c+1 -00 replies
4/6sg: fix double free of long scsi commandsdrivers/scsi/sg.c+3 -60 replies
5/6sg: tighten handling of struct request objectsdrivers/scsi/sg.c+20 -150 replies
6/6sg: remove debugging remnantsdrivers/scsi/sg.c+12 -300 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/6] sg: fixes for 5.13/scsi-staging

This patchset addresses reports sent by Colin King to the linux-scsi list in 20210311 based on coverity reports. There were also similar reports from Dan Carpenter the following day. Plus syzbot (KASAN) made a double free report. These were due to a 45 part patchset:
"sg: add v4 interface" applied to 5.13/scsi-staging recently. Patches 1, 2 and 4 address those concerns.

Colin King sent a patch titled: "[PATCH][next] scsi: sg: Fix use of pointer sfp after it has been kfree'd" [linux-scsi 20210311] which should be applied.
Dan Carpenter sent a patch titled: "Re: [PATCH] scsi: sg: Fix a warning message" [linux-scsi 20210312] regarding the use of WARN_ONCE() which should be applied.

Patches 3, 5 and 6 are due to the author's ongoing testing.

This patchset is against MKP's repository, 5.13/scsi-staging branch.

Douglas Gilbert (6):
sg: sg_rq_map_kern: fix uninitialized
sg: sg_remove_sfp_usercontext: remove NULL check
sg: sg_rq_end_io: set SG_FRQ_ISSUED
sg: fix double free of long scsi commands
sg: tighten handling of struct request objects
sg: remove debugging remnants

 drivers/scsi/sg.c | 87 +++++++++++++++++++----------------------------
 1 file changed, 35 insertions(+), 52 deletions(-)
Signature · 1 line
2.25.1