From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 10 Jun 2007 21:53:33 +0200 From: Folkert van Heusden Subject: Re: signals logged / [RFC] log out-of-virtual-memory events Message-ID: <20070610195333.GB15616@vanheusden.com> References: <464C9D82.60105@redhat.com> <20070520205500.GJ22452@vanheusden.com> <200705202314.57758.ak@suse.de> <46517817.1080208@users.sourceforge.net> <20070521110406.GA14802@vanheusden.com> <20070521124734.GB14802@vanheusden.com> <20070523184535.GE21655@vanheusden.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070523184535.GE21655@vanheusden.com> Sender: owner-linux-mm@kvack.org Return-Path: To: Satyam Sharma Cc: Jan Engelhardt , Andrea Righi , Andi Kleen , Stephen Hemminger , Eric Dumazet , Rik van Riel , LKML , linux-mm@kvack.org List-ID: > > >> >+ { > > >> if (sig_fatal(t, sig)) { > > >> >+ printk(KERN_WARNING "Sig %d send to %d owned by %d.%d > > >(%s)\n", > > >> s/send/sent/; > > >> >+ sig, t -> pid, t -> uid, t -> gid, t -> comm); > > >> t->pid, t->uid, t->gid, t->comm); > > > > > > > Gargh ... why does this want to be in the *kernel*'s logs? In any case, can > > you please make this KERN_INFO (or lower) instead of KERN_WARNING. > Description: > This patch adds code to the signal-sender making it log a message when > an unhandled fatal signal will be delivered. New version. This one also informs the user about the sende pid/uid of the signal (when applicable). Signed-of by: Folkert van Heusden pid, t->uid, t->gid, t->comm); + else + printk(KERN_INFO "Sig %d sent to %d owned by %d.%d (%s), sent by pid %d, uid %d\n", + sig, t->pid, t->uid, t->gid, t->comm, + info -> _sifields._kill._pid, + info -> _sifields._kill._uid); + } + /* * fast-pathed signals for kernel-internal things like SIGSTOP * or SIGKILL. Folkert van Heusden -- Feeling generous? -> http://www.vanheusden.com/wishlist.php ---------------------------------------------------------------------- Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org