Re: [PATCH] sbp2: better check of transfer direction (protects from panic or oops)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jody McIntyre wrote:
On Fri, Dec 09, 2005 at 08:01:11PM +0100, Stefan Richter wrote:
If all *known* paths are fixed, we could consider to override a bad transfer direction silently like e.g. usb_storage does. But we should not leave sbp2_create_command_orb() as fragile as it currently is.

I didn't know USB did this.. the fact that USB checks itself suggests
that we also need a check, and if we're checking we may as well warn.

Well, usb_storage actually does not override it explicitly. It just acts only on DMA_FROM_DEVICE or DMA_TO_DEVICE after having first checked for transfer buffer length AFAIU. However this is just one example. It differs between SCSI low level drivers. I don't know if any of them logs warnings about suspect transfer directions.
--
Stefan Richter
-=====-=-=-= ==-- -=--=
http://arcgraph.de/sr/
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux