Skip to content

char: xillybus: Fix issues reported by Sashiko

Eli Billauer lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 0 repliesNew
  2. v28 patches 0 repliesSuperseded
  3. v18 patches 1 replySuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8char: xillybus: Improve sanity checkdrivers/char/xillybus/xillyusb.c+3 -60 replies
2/8char: xillybus: Safer access of unaligned pointersdrivers/char/xillybus/xillyusb.c+4 -30 replies
3/8char: xillybus: Return error in fops read method handlerdrivers/char/xillybus/xillyusb.c+1 -10 replies
4/8char: xillybus: Rely on FMODE flags in poll methoddrivers/char/xillybus/xillyusb.c+8 -50 replies
5/8char: xillybus: Refactor flush functiondrivers/char/xillybus/xillyusb.c+37 -490 replies
6/8char: xillybus: Correct handling of wait queuedrivers/char/xillybus/xillyusb.c+18 -310 replies
7/8char: xillybus: Avoid indefinite sleep of work itemdrivers/char/xillybus/xillybus.h drivers/char/xillybus/xillybus_core.c+72 -190 replies
8/8char: xillybus: Cancel delayed work items before teardowndrivers/char/xillybus/xillybus_core.c+10 -110 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/8] char: xillybus: Fix issues reported by Sashiko

This series is a follow-up to the previously submitted patchset [1]. It addresses Sashiko review comments on surrounding code. This v3 series is the result of Sashiko's comments on v2 [3], which in turn was the result of comments on v1 [2]. Another reason for this v3 is to rebase after the insertion of commit 4dd10fbbeb9c ("treewide: Convert devm_kmalloc() family to the devm_kmalloc_obj() family").

One Sashiko comment from [2] is not addressed in this patch set:

"Can unbinding the device while a file descriptor is open cause a use-after-free in xillybus_write()?" This remark is correct, but will be fixed in a future set of patches, which makes the PCIe driver hot-pluggable.

The comment about autoflush_skipped in [2] was repeated with a better motivation in Sashiko's comment [3], so it's followed in this patch set.

Regards,
Eli

[1] https://lore.kernel.org/all/[email protected]/
[2] https://sashiko.dev/#/patchset/[email protected]
[3] https://sashiko.dev/#/patchset/[email protected]

Eli Billauer (8):
char: xillybus: Improve sanity check
char: xillybus: Safer access of unaligned pointers
char: xillybus: Return error in fops read method handler
char: xillybus: Rely on FMODE flags in poll method
char: xillybus: Refactor flush function
char: xillybus: Correct handling of wait queue
char: xillybus: Avoid indefinite sleep of work item
char: xillybus: Cancel delayed work items before teardown

 drivers/char/xillybus/xillybus.h      |   3 +
 drivers/char/xillybus/xillybus_core.c | 109 ++++++++++++-----
 drivers/char/xillybus/xillyusb.c      | 166 +++++++++++---------------
 3 files changed, 153 insertions(+), 125 deletions(-)
Signature · 1 line
2.17.1