Skip to contentSkip to conversation

Does tkill/tgkill leak info from kernel stack?

DISCUSSION Eugene Kapun 1 participant 1 message Jan 6, 2010

lore
Share & tools
lore
#0 lore raw

As I can see, tkill and tgkill syscalls call do_tkill (kernel/signal.c:2336). This function doesn't clear info struct, so it would contain what was on kernel stack previously. And because SI_TKILL < 0, precautions in copy_siginfo_to_user (kernel/signal.c:2154) won't prevent this data from going to userspace. Is it a bug?