================================================================================ UBSAN: shift-out-of-bounds in net/core/gen_estimator.c:83:38 shift exponent -1 is negative CPU: 1 PID: 12548 Comm: syz-executor.1 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 est_timer.cold+0xbb/0x12d net/core/gen_estimator.c:83 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:arch_atomic_read arch/x86/include/asm/atomic.h:29 [inline] RIP: 0010:atomic_read include/asm-generic/atomic-instrumented.h:28 [inline] RIP: 0010:page_ref_count include/linux/page_ref.h:67 [inline] RIP: 0010:page_expected_state mm/page_alloc.c:1101 [inline] RIP: 0010:check_free_page mm/page_alloc.c:1143 [inline] RIP: 0010:free_pages_prepare mm/page_alloc.c:1259 [inline] RIP: 0010:free_pcp_prepare+0x133/0x400 mm/page_alloc.c:1300 Code: 4c 8d 65 34 be 04 00 00 00 4c 8b 6d 18 4c 89 e7 e8 22 1e 09 00 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 0f b6 14 02 <4c> 89 e0 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 13 02 00 00 48 RSP: 0018:ffffc90017b8f6b8 EFLAGS: 00000a07 RAX: dffffc0000000000 RBX: 0000000000007541 RCX: ffffffff81abbf1e RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffea000211e6f4 RBP: ffffea000211e6c0 R08: 0000000000000000 R09: ffffea000211e6f7 R10: fffff94000423cde R11: 0000000000000009 R12: ffffea000211e6f4 R13: 0000000000000000 R14: ffffed1003432d35 R15: ffffea000211e6c8 free_unref_page_prepare mm/page_alloc.c:3193 [inline] free_unref_page+0x12/0x1b0 mm/page_alloc.c:3241 __vunmap+0x79b/0xb90 mm/vmalloc.c:2286 __vfree+0x3c/0xd0 mm/vmalloc.c:2333 vfree+0x5a/0x90 mm/vmalloc.c:2364 __do_replace+0x16b/0x8a0 net/ipv4/netfilter/ip_tables.c:1099 do_replace net/ipv4/netfilter/ip_tables.c:1139 [inline] do_ipt_set_ctl+0x8e0/0xb50 net/ipv4/netfilter/ip_tables.c:1627 nf_setsockopt+0x83/0xe0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0x3c3/0x3ac0 net/ipv4/ip_sockglue.c:1435 tcp_setsockopt+0x136/0x2440 net/ipv4/tcp.c:3597 __sys_setsockopt+0x2db/0x610 net/socket.c:2115 __do_sys_setsockopt net/socket.c:2126 [inline] __se_sys_setsockopt net/socket.c:2123 [inline] __x64_sys_setsockopt+0xba/0x150 net/socket.c:2123 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e149 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ff5dfb5ec68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 000000000045e149 RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 000000000119c078 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000020000a80 R11: 0000000000000246 R12: 000000000119c034 R13: 00007ffe163d0a3f R14: 00007ff5dfb5f9c0 R15: 000000000119c034 ================================================================================