[lkml]   [2006]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [patch] avoid unaligned access when accessing poll stack
    On Saturday 01 April 2006 04:35, Mitchell Blank Jr wrote:

    > * I also changed "size" to be unsigned since that makes more sense and
    > is less prone to overflow bugs. I'm also a little scared by the
    > "kmalloc(6 * size)" since that type of call is a classic multiply-overflow
    > security hole (hence libc's calloc() API). However "size" is constrained
    > by fdt->max_fdset so I think it isn't exploitable. The kernel doesn't
    > have an overflow-safe API for kmalloc'ing arrays, does it?

    kcalloc. But it's slow since it memsets.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-04-01 04:48    [W:0.018 / U:9.168 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site