bug in bio_map_user_iov

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

 



Hello all,

I've been doing some work with a Linux kernel module that enables zero-copy I/O to block devices using a custom user/kernel interface. In porting this from an older Linux kernel to a more modern release, I ran into an issue when interacting with MD devices that I traced back to what I believe to be a problem in bio_map_user_iov.

The problem and fix are described in the first attached patch. The second is a simple test module and user program which triggers the bug and validates the fix.

Thanks,
-m

ps. This is my first attempt at pushing a patch upstream so please forgive any newbie mistakes.

Attachment: 0001-kernel-fix-bug-in-bio_map_user_iov-on-MD-devices.patch
Description: 0001-kernel-fix-bug-in-bio_map_user_iov-on-MD-devices.patch

Attachment: 0002-Test-program-to-verify-the-bio_map_user-bug-fix-for-.patch
Description: 0002-Test-program-to-verify-the-bio_map_user-bug-fix-for-.patch


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux