All of lore.kernel.org
 help / color / mirror / Atom feed
* UBSAN: Undefined behaviour in kernel/signal.c:911:6
@ 2016-05-12 15:58 Meelis Roos
  2016-05-14 14:24 ` Oleg Nesterov
  0 siblings, 1 reply; 2+ messages in thread
From: Meelis Roos @ 2016-05-12 15:58 UTC (permalink / raw)
  To: Linux Kernel list, Andrew Morton, Oleg Nesterov

This is from a 32-bit x86 computer with 4.6-rc* and UBSAN enabled. I am 
also seeing it on some other 32-bit x86 machines. This one is SMP 
AthlonMP.

[  211.406263] ================================================================================
[  211.406327] UBSAN: Undefined behaviour in kernel/signal.c:911:6
[  211.406365] shift exponent 32 is too large for 32-bit type 'long unsigned int'
[  211.406407] CPU: 1 PID: 1769 Comm: aptitude Not tainted 4.6.0-rc6-00072-g33656a1 #22
[  211.406445] Hardware name: Unknown Unknown/S2462 THUNDER K7, BIOS Guinness-8    04/07/2003
[  211.406486]  00000000 c134beac 00000007 f441be04 00000001 c1381f8b f441bdf8 00000020
[  211.406724]  c1382516 c1700128 f441be08 00000020 c17b5288 00000002 00003233 c1a3d9c0
[  211.406959]  00010000 024280ca 00363335 00000100 f441bea8 c11bf41b 00000000 00000000
[  211.407194] Call Trace:
[  211.407240]  [<c134beac>] ? dump_stack+0x45/0x69
[  211.407278]  [<c1381f8b>] ? ubsan_epilogue+0xb/0x40
[  211.407313]  [<c1382516>] ? __ubsan_handle_shift_out_of_bounds+0xd6/0x120
[  211.407355]  [<c11bf41b>] ? path_openat+0x1db/0x1930
[  211.407396]  [<c107dba5>] ? __sigqueue_alloc+0x75/0x190
[  211.407495]  [<c107f7dc>] ? complete_signal+0x29c/0x3a0
[  211.407593]  [<c1080167>] ? __send_signal.constprop.27+0x167/0x3b0
[  211.407690]  [<c1081353>] ? do_send_sig_info+0x33/0x80
[  211.407786]  [<c108146e>] ? do_send_specific+0x5e/0x90
[  211.407881]  [<c1081523>] ? do_tkill+0x83/0xc0
[  211.407978]  [<c1083d99>] ? SyS_tgkill+0x19/0x30
[  211.408073]  [<c1002066>] ? do_fast_syscall_32+0xb6/0x1d0
[  211.408172]  [<c164de9b>] ? sysenter_past_esp+0x40/0x6a
[  211.408266] ================================================================================


-- 
Meelis Roos (mroos@linux.ee)

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

* Re: UBSAN: Undefined behaviour in kernel/signal.c:911:6
  2016-05-12 15:58 UBSAN: Undefined behaviour in kernel/signal.c:911:6 Meelis Roos
@ 2016-05-14 14:24 ` Oleg Nesterov
  0 siblings, 0 replies; 2+ messages in thread
From: Oleg Nesterov @ 2016-05-14 14:24 UTC (permalink / raw)
  To: Meelis Roos; +Cc: Linux Kernel list, Andrew Morton

On 05/12, Meelis Roos wrote:
>
> This is from a 32-bit x86 computer with 4.6-rc* and UBSAN enabled. I am 
> also seeing it on some other 32-bit x86 machines. This one is SMP 
> AthlonMP.
>
> [  211.406263] ================================================================================
> [  211.406327] UBSAN: Undefined behaviour in kernel/signal.c:911:6
> [  211.406365] shift exponent 32 is too large for 32-bit type 'long unsigned int'

Hmm, indeed... Oh, and this needs other cleanups.

Thanks! I'll send the fix.

> [  211.406407] CPU: 1 PID: 1769 Comm: aptitude Not tainted 4.6.0-rc6-00072-g33656a1 #22
> [  211.406445] Hardware name: Unknown Unknown/S2462 THUNDER K7, BIOS Guinness-8    04/07/2003
> [  211.406486]  00000000 c134beac 00000007 f441be04 00000001 c1381f8b f441bdf8 00000020
> [  211.406724]  c1382516 c1700128 f441be08 00000020 c17b5288 00000002 00003233 c1a3d9c0
> [  211.406959]  00010000 024280ca 00363335 00000100 f441bea8 c11bf41b 00000000 00000000
> [  211.407194] Call Trace:
> [  211.407240]  [<c134beac>] ? dump_stack+0x45/0x69
> [  211.407278]  [<c1381f8b>] ? ubsan_epilogue+0xb/0x40
> [  211.407313]  [<c1382516>] ? __ubsan_handle_shift_out_of_bounds+0xd6/0x120
> [  211.407355]  [<c11bf41b>] ? path_openat+0x1db/0x1930
> [  211.407396]  [<c107dba5>] ? __sigqueue_alloc+0x75/0x190
> [  211.407495]  [<c107f7dc>] ? complete_signal+0x29c/0x3a0
> [  211.407593]  [<c1080167>] ? __send_signal.constprop.27+0x167/0x3b0
> [  211.407690]  [<c1081353>] ? do_send_sig_info+0x33/0x80
> [  211.407786]  [<c108146e>] ? do_send_specific+0x5e/0x90
> [  211.407881]  [<c1081523>] ? do_tkill+0x83/0xc0
> [  211.407978]  [<c1083d99>] ? SyS_tgkill+0x19/0x30
> [  211.408073]  [<c1002066>] ? do_fast_syscall_32+0xb6/0x1d0
> [  211.408172]  [<c164de9b>] ? sysenter_past_esp+0x40/0x6a
> [  211.408266] ================================================================================
> 
> 
> -- 
> Meelis Roos (mroos@linux.ee)

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

end of thread, other threads:[~2016-05-14 15:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-12 15:58 UBSAN: Undefined behaviour in kernel/signal.c:911:6 Meelis Roos
2016-05-14 14:24 ` Oleg Nesterov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.