signal: fix __send_signal() false positive kmemcheck warning
authorVegard Nossum <vegard.nossum@gmail.com>
Sat, 16 May 2009 09:28:33 +0000 (11:28 +0200)
committerVegard Nossum <vegard.nossum@gmail.com>
Mon, 15 Jun 2009 13:49:43 +0000 (15:49 +0200)
commit7a0aeb14e18ad59394bd9bbc6e57fb345819e748
tree04c7229103e1009ad8886ed663e047abe58805fb
parent3b5c760efcddf1ebdd39a2035b554e96febd7466
signal: fix __send_signal() false positive kmemcheck warning

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: Vegard Nossum <vegard.nossum@gmail.com>
kernel/signal.c