OSDN Git Service

Merge branch 'floppy'
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jul 2019 15:43:20 +0000 (08:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jul 2019 15:43:20 +0000 (08:43 -0700)
commit47d6a7607443ea43dbc4d0f371bf773540a8f8f4
tree894605c2c7f1dd63a37c41752fcb8d5bcae933e9
parent22051d9c4a57d3b4a8b5a7407efc80c71c7bfb16
parentbe2ece49e68361f9b56098e5df3ddbccf87d140a
Merge branch 'floppy'

Merge floppy ioctl verification fixes from Denis Efremov.

This also marks the floppy driver as orphaned - it turns out that Jiri
no longer has working hardware.

Actual working physical floppy hardware is getting hard to find, and
while Willy was able to test this, I think the driver can be considered
pretty much dead from an actual hardware standpoint.  The hardware that
is still sold seems to be mainly USB-based, which doesn't use this
legacy driver at all.

The old floppy disk controller is still emulated in various VM
environments, so the driver isn't going away, but let's see if anybody
is interested to step up to maintain it.

The lack of hardware also likely means that the ioctl range verification
fixes are probably mostly relevant to anybody using floppies in a
virtual environment.  Which is probably also going away in favor of USB
storage emulation, but who knows.

Will Decon reviewed the patches but I'm not rebasing them just for that,
so I'll add a

Reviewed-by: Will Deacon <will@kernel.org>
here instead.

* floppy:
  MAINTAINERS: mark floppy.c orphaned
  floppy: fix out-of-bounds read in copy_buffer
  floppy: fix invalid pointer dereference in drive_name
  floppy: fix out-of-bounds read in next_valid_format
  floppy: fix div-by-zero in setup_format_params
MAINTAINERS
drivers/block/floppy.c