================================================================================ UBSAN: shift-out-of-bounds in ./include/net/red.h:310:18 shift exponent 71 is too large for 64-bit type 'long unsigned int' CPU: 1 PID: 8512 Comm: syz-executor776 Not tainted 5.10.0-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+0x107/0x163 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:395 red_calc_qavg_from_idle_time include/net/red.h:310 [inline] red_adaptative_algo include/net/red.h:442 [inline] red_adaptative_timer.cold+0x1bd/0x26c net/sched/sch_red.c:324 call_timer_fn+0x1a5/0x710 kernel/time/timer.c:1417 expire_timers kernel/time/timer.c:1462 [inline] __run_timers.part.0+0x692/0xa80 kernel/time/timer.c:1731 __run_timers kernel/time/timer.c:1712 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1744 __do_softirq+0x2bc/0xa77 kernel/softirq.c:343 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0xaa/0xd0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:226 [inline] __irq_exit_rcu+0x17f/0x200 kernel/softirq.c:420 irq_exit_rcu+0x5/0x20 kernel/softirq.c:432 sysvec_apic_timer_interrupt+0x4d/0x100 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:628 RIP: 0010:tomoyo_domain_quota_is_ok+0x34a/0x5a0 security/tomoyo/util.c:1092 Code: 89 c6 e8 79 da e9 fd 45 85 ff 74 09 e8 ef d2 e9 fd 41 83 c5 01 e8 e6 d2 e9 fd 8d 73 01 bf 10 00 00 00 83 c3 01 e8 56 d9 e9 fd <83> fb 10 75 bd e9 9f fd ff ff 41 bc 01 00 00 00 eb 91 45 31 e4 eb RSP: 0018:ffffc9000199f940 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000009 RCX: ffff88801c451ac0 RDX: 0000000000000000 RSI: ffff88801c451ac0 RDI: 0000000000000003 RBP: ffff888034a54280 R08: 0000000000000000 R09: 0000000000000009 R10: ffffffff83884aaa R11: 0000000000000010 R12: 0000000000000010 R13: 00000000000001da R14: dffffc0000000000 R15: 0000000000000000 tomoyo_supervisor+0x312/0xf20 security/tomoyo/common.c:2089 tomoyo_audit_path_number_log security/tomoyo/file.c:235 [inline] tomoyo_path_number_perm+0x419/0x570 security/tomoyo/file.c:734 tomoyo_path_mkdir+0x98/0xe0 security/tomoyo/tomoyo.c:167 security_path_mkdir+0xe8/0x160 security/security.c:1087 do_mkdirat+0x14b/0x2d0 fs/namei.c:3671 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x44bd67 Code: 1f 40 00 b8 5a 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ad 0b fc ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 53 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 8d 0b fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe9eca4b48 EFLAGS: 00000206 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 000000000044bd67 RDX: 00007ffe9eca4bd3 RSI: 00000000000001ff RDI: 00007ffe9eca4bc0 RBP: 00007ffe9eca4dd0 R08: 0000000000000000 R09: 0000000000000013 R10: 0000000000000075 R11: 0000000000000206 R12: 0000000000000003 R13: 0000000000000000 R14: 0000000000000048 R15: 0000000000000004 ================================================================================