Skip to content

Several device-mapper fixes

Demi Marie Obenour dm-devel lkml oe-kbuild-all stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 10 repliesIn review
  2. v16 patches 1 replySuperseded

Changes in v2 from the cover letter

- Fix silly mistake (using sizeof() on a pointer) caught by 0day bot.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6device-mapper: Check that target specs are sufficiently aligneddrivers/md/dm-ioctl.c+7 -05 replies
2/6device-mapper: Avoid pointer arithmetic overflowdrivers/md/dm-ioctl.c+19 -02 replies
3/6device-mapper: structs and parameter strings must not overlapdrivers/md/dm-ioctl.c+21 -71 reply
4/6device-mapper: Avoid double-fetch of versiondrivers/md/dm-ioctl.c+18 -122 replies
5/6device-mapper: Refuse to create device named "control"drivers/md/dm-ioctl.c+6 -10 replies
6/6device-mapper: "." and ".." are not valid symlink namesdrivers/md/dm-ioctl.c+4 -20 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchMikulas Patocka
1/6
2/6R-b
3/6R-b
4/6
5/6
6/6

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

Read the v2 thread

Cover letter [PATCH v2 0/6] Several device-mapper fixes

This series contains several miscellaneous fixes to input validation in device-mapper. The only potentially controversial commits should be the last two, which prevent creating devices named ".", "..", or "control". The other patches fix input validation problems that have existed since at least the beginning of git history.

Changes since v1:

- Fix silly mistake (using sizeof() on a pointer) caught by 0day bot.

Demi Marie Obenour (6):
device-mapper: Check that target specs are sufficiently aligned
device-mapper: Avoid pointer arithmetic overflow
device-mapper: structs and parameter strings must not overlap
device-mapper: Avoid double-fetch of version
device-mapper: Refuse to create device named "control"
device-mapper: "." and ".." are not valid symlink names

 drivers/md/dm-ioctl.c | 91 ++++++++++++++++++++++++++++++++++---------
 1 file changed, 72 insertions(+), 19 deletions(-)
Signature · 3 lines
Sincerely,
Demi Marie Obenour (she/her/hers)
Invisible Things Lab