Re: [PATCH] scatterlist: add more safeguards

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

 



On Mon, Nov 26 2007, Tejun Heo wrote:
> Add more safeguards to protect against misinterpreting a chain entry
> as a normal scatterlist and vice-versa.
> 
> * Make sure the entry isn't a chain when assigning and reading a
>   normal sg.
> 
> * Clear offset and length when chaining.
> 
> Signed-off-by: Tejun Heo <[email protected]>
> ---
> While converting libata to use chained-sg, I felt a bit insecure and
> added a few more safe guards.  Feel free to include or ignore them.

Looks sane, thanks Tejun! Will apply it.

-- 
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux