• V
    signal: fix __send_signal() false positive kmemcheck warning · 7a0aeb14
    Vegard Nossum 提交于
    This false positive is due to field padding in struct sigqueue. When
    this dynamically allocated structure is copied to the stack (in arch-
    specific delivery code), kmemcheck sees a read from the padding, which
    is, naturally, uninitialized.
    
    Hide the false positive using the __GFP_NOTRACK_FALSE_POSITIVE flag.
    Also made the rlimit override code a bit clearer by introducing a new
    variable.
    
    Cc: Oleg Nesterov <oleg@tv-sign.ru>
    Signed-off-by: NVegard Nossum <vegard.nossum@gmail.com>
    7a0aeb14
signal.c 67.4 KB