================================================================================ UBSAN: shift-out-of-bounds in kernel/sched/fair.c:7712:14 shift exponent 147 is too large for 64-bit type 'long unsigned int' CPU: 3 PID: 22401 Comm: syz-executor.2 Not tainted 5.12.0-rc8-syzkaller #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x141/0x1d7 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 detach_tasks kernel/sched/fair.c:7712 [inline] load_balance.cold+0x1d/0x2e kernel/sched/fair.c:9641 rebalance_domains+0x5cc/0xdb0 kernel/sched/fair.c:10029 __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:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:199 Code: 0f 1f 44 00 00 55 48 8b 74 24 08 48 89 fd 48 83 c7 18 e8 0e f9 53 f8 48 89 ef e8 46 af 54 f8 e8 c1 3c 74 f8 fb bf 01 00 00 00 36 7d 48 f8 65 8b 05 df 47 fc 76 85 c0 74 02 5d c3 e8 3b 9d fa RSP: 0018:ffffc90029b57920 EFLAGS: 00000206 RAX: 000000000025b981 RBX: 0000000000000402 RCX: 1ffffffff1f54bc2 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001 RBP: ffff88802cd35180 R08: 0000000000000001 R09: ffffffff8fa9a8bf R10: 0000000000000001 R11: 0000000000000000 R12: ffff88802cd35180 R13: ffff888010d9d4c0 R14: 0000000000000000 R15: ffff88801472b880 finish_lock_switch kernel/sched/core.c:4074 [inline] finish_task_switch.isra.0+0x15d/0x810 kernel/sched/core.c:4191 context_switch kernel/sched/core.c:4325 [inline] __schedule+0x919/0x21b0 kernel/sched/core.c:5073 preempt_schedule_common+0x45/0xc0 kernel/sched/core.c:5233 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:35 __raw_spin_unlock include/linux/spinlock_api_smp.h:152 [inline] _raw_spin_unlock+0x36/0x40 kernel/locking/spinlock.c:183 spin_unlock include/linux/spinlock.h:394 [inline] write_sequnlock include/linux/seqlock.h:904 [inline] unlock_mount_hash fs/namespace.c:107 [inline] drop_collected_mounts fs/namespace.c:1936 [inline] put_mnt_ns fs/namespace.c:4250 [inline] put_mnt_ns+0x101/0x140 fs/namespace.c:4246 free_nsproxy+0x43/0x4c0 kernel/nsproxy.c:191 put_nsproxy include/linux/nsproxy.h:105 [inline] switch_task_namespaces+0xaf/0xd0 kernel/nsproxy.c:249 do_exit+0xbf7/0x2a60 kernel/exit.c:824 do_group_exit+0x125/0x310 kernel/exit.c:922 get_signal+0x47f/0x2150 kernel/signal.c:2781 arch_do_signal_or_restart+0x2a8/0x1eb0 arch/x86/kernel/signal.c:789 handle_signal_work kernel/entry/common.c:147 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x148/0x250 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:301 __do_fast_syscall_32+0x62/0x90 arch/x86/entry/common.c:143 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:165 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7fc5549 Code: Unable to access opcode bytes at RIP 0xf7fc551f. RSP: 002b:00000000f55bf5fc EFLAGS: 00000296 ORIG_RAX: 0000000000000150 RAX: 0000000000000004 RBX: 0000000020000040 RCX: 0000000000000000 RDX: 00000000ffffffff RSI: 00000000ffffffff RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ================================================================================