================================================================================ UBSAN: shift-out-of-bounds in ./include/net/red.h:312:18 shift exponent 102 is too large for 64-bit type 'long unsigned int' CPU: 0 PID: 8997 Comm: syz-executor.5 Not tainted 5.12.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xfa/0x151 lib/dump_stack.c:120 ubsan_epilogue+0xb/0x5a lib/ubsan.c:148 __ubsan_handle_shift_out_of_bounds.cold+0xb1/0x181 lib/ubsan.c:327 red_calc_qavg_from_idle_time include/net/red.h:312 [inline] red_adaptative_algo include/net/red.h:444 [inline] red_adaptative_timer.cold+0x1bd/0x26c net/sched/sch_red.c:324 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1431 expire_timers kernel/time/timer.c:1476 [inline] __run_timers.part.0+0x67c/0xa50 kernel/time/timer.c:1745 __run_timers kernel/time/timer.c:1726 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1758 __do_softirq+0x29b/0x9f6 kernel/softirq.c:345 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu kernel/softirq.c:422 [inline] irq_exit_rcu+0x134/0x200 kernel/softirq.c:434 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 RIP: 0010:tomoyo_compare_number_union security/tomoyo/file.c:115 [inline] RIP: 0010:tomoyo_check_path_number_acl+0xfe/0x320 security/tomoyo/file.c:282 Code: 00 00 48 8d 7d 40 4d 8b 6c 24 20 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 cb 01 00 00 4c 8b 75 40 <4d> 85 f6 0f 85 12 01 00 00 e8 84 f5 e7 fd 48 8d 7d 30 48 b8 00 00 RSP: 0018:ffffc90001abfbc8 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: 1ffff1100afc8088 RSI: ffffffff838b6196 RDI: ffff888057e40440 RBP: ffff888057e40400 R08: 0000000000000000 R09: 0000000000000004 R10: ffffffff838b6179 R11: 000000000000001f R12: ffffc90001abfcc0 R13: 0000000000004c01 R14: 0000000000000000 R15: 0000000000000002 tomoyo_check_acl+0x13c/0x450 security/tomoyo/domain.c:175 tomoyo_path_number_perm+0x32a/0x590 security/tomoyo/file.c:733 security_file_ioctl+0x50/0xb0 security/security.c:1495 __do_sys_ioctl fs/ioctl.c:747 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0xb3/0x200 fs/ioctl.c:739 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x465cb7 Code: 3c 1c 48 f7 d8 49 39 c4 72 b8 e8 a4 4d 02 00 85 c0 78 bd 48 83 c4 08 4c 89 e0 5b 41 5c c3 0f 1f 44 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:0000000000a9fd68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000a9fe00 RCX: 0000000000465cb7 RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000003 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000a9fc00 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000032 R13: 00000000000d228b R14: 0000000000000000 R15: 0000000000a9fe40 ================================================================================