Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Potential BUG_ON() in do_group_exit() on 4.17.2
@ 2018-06-27 12:13 Georgi Guninski
  2018-06-27 21:14 ` James Hogan
  0 siblings, 1 reply; 3+ messages in thread
From: Georgi Guninski @ 2018-06-27 12:13 UTC (permalink / raw)
  To: linux-mips

Does this BUG_ON() gets hit on mips?

in 4.17.2 ./kernel/exit.c

do_group_exit(int exit_code)
{
	struct signal_struct *sig = current->signal;

	BUG_ON(exit_code & 0x80);

|do_group_exit| is called from

./kernel/signal.c:2482:		do_group_exit(ksig->info.si_signo);

Appears to me si_signo can be 0x80 (in decimal 128) because of:

arch/mips/include/uapi/asm/signal.h:15:#define _NSIG		128

Probably testcase will be:
$kill -128 `pidof program`

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-28  6:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-27 12:13 Potential BUG_ON() in do_group_exit() on 4.17.2 Georgi Guninski
2018-06-27 21:14 ` James Hogan
2018-06-28  6:28   ` Georgi Guninski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox