Re: [PATCH 2/6] scsi tgt: kill length alignment test in bin_map_user

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

 



On Thu, Feb 16 2006, Mike Christie wrote:
> Subject: [PATCH] block layer: kill length alignment test in bin_map_user
> 
> The tgt project is mapping in bios using bio_map_user. The current targets
> do not need their len to be aligned with a queue limit so this check is
> causing some problems. Note: pointers passed into the kernel are properly
> aligned by usersapace tgt code so the uaddr check in bio_map_user is ok.
> 
> 
> The major user, blk_bio_map_user checks for the len before mapping
> so it is not affected by this patch.
> 
> And the semi-newly added user blk_rq_map_user_iov has been failing
> out when the len is not aligned properly so maybe people have been
> good and not sending misaligned lens or that path is not used very
> often and this change will not be very dangerous. st and sg do not
> check the length and we have not seen any problem reports from those
> wider used paths so this patch should be fairly safe - for mm 
> and wider testing at least.

As previously discussed, this is fine with me. It's a mixed check
anyways, if we need length check in the future it should be a seperate
attribute.

-- 
Jens Axboe

-
: 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