Bug 200303 - UBSAN: Undefined behaviour in kernel/time/alarmtimer.c:811
Summary: UBSAN: Undefined behaviour in kernel/time/alarmtimer.c:811
Status: NEW
Alias: None
Product: Timers
Classification: Unclassified
Component: Interval Timers (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: timers_interval-timers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-27 10:32 UTC by icytxw
Modified: 2018-06-27 10:32 UTC (History)
0 users

See Also:
Kernel Version: v4.18-rc2
Tree: Mainline
Regression: No


Attachments

Description icytxw 2018-06-27 10:32:30 UTC
================================================================================
UBSAN: Undefined behaviour in kernel/time/alarmtimer.c:811:7
signed integer overflow:
1529859276030040771 + 9223372036854775807 cannot be represented in type 'long long int'
CPU: 0 PID: 3180 Comm: syz-executor0 Not tainted 4.18.0-rc1+ #2
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.10.2-0-g5f4c7b1-prebuilt.qemu-project.org 04/01/2014
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x122/0x1c8 lib/dump_stack.c:113
 ubsan_epilogue+0x12/0x86 lib/ubsan.c:159
 handle_overflow+0x1c2/0x21f lib/ubsan.c:190
 __ubsan_handle_add_overflow+0x2a/0x31 lib/ubsan.c:198
 alarm_timer_nsleep+0x44c/0x510 kernel/time/alarmtimer.c:811
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1235 [inline]
 __se_sys_clock_nanosleep kernel/time/posix-timers.c:1213 [inline]
 __x64_sys_clock_nanosleep+0x326/0x4e0 kernel/time/posix-timers.c:1213
 do_syscall_64+0xb8/0x3a0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x455a09
Code: 1d ba fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007ffaf2e07c68 EFLAGS: 00000246 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 00007ffaf2e086d4 RCX: 0000000000455a09
RDX: 0000000020000040 RSI: 0000000000000000 RDI: 0000000000000008
RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000050 R14: 00000000006f5820 R15: 0000000000000001
================================================================================

Note You need to log in before you can comment on or make changes to this bug.