Oops: general protection fault, probably for non-canonical address 0xdffffc0000000014: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x00000000000000a0-0x00000000000000a7] CPU: 0 UID: 0 PID: 5345 Comm: syz.3.14 Not tainted 6.11.0-rc4-next-20240822-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:is_same_group kernel/sched/fair.c:411 [inline] RIP: 0010:find_matching_se kernel/sched/fair.c:448 [inline] RIP: 0010:check_preempt_wakeup_fair+0x471/0xb00 kernel/sched/fair.c:8679 Code: 00 00 00 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 ff e8 30 71 95 00 4d 8b 3f 49 8d ae a0 00 00 00 48 89 e8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 ef e8 10 71 95 00 48 8b 5d 00 49 8d af RSP: 0018:ffffc9000445f260 EFLAGS: 00010006 RAX: 0000000000000014 RBX: ffff8880b913eb00 RCX: ffffffff81671258 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888023b4bc00 RBP: 00000000000000a0 R08: ffff888023b4bc07 R09: 1ffff11004769780 R10: dffffc0000000000 R11: ffffed1004769781 R12: ffff8880b903ea40 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f156ddcb6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f156ddc9fe0 CR3: 000000007398e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: wakeup_preempt+0xd8/0x2a0 kernel/sched/core.c:2128 ttwu_do_activate+0x1f8/0x7e0 kernel/sched/core.c:3666 ttwu_queue kernel/sched/core.c:3940 [inline] try_to_wake_up+0x8bc/0x1480 kernel/sched/core.c:4266 kick_pool+0x45c/0x620 kernel/workqueue.c:1282 __queue_work+0xc97/0xf50 kernel/workqueue.c:2343 queue_work_on+0x1c2/0x380 kernel/workqueue.c:2393 queue_work include/linux/workqueue.h:662 [inline] usb_hcd_resume_root_hub+0xec/0x120 drivers/usb/core/hcd.c:2393 dummy_hub_status+0x23e/0x3a0 drivers/usb/gadget/udc/dummy_hcd.c:2039 usb_hcd_poll_rh_status+0x154/0x5a0 drivers/usb/core/hcd.c:738 dummy_pullup+0x19a/0x200 drivers/usb/gadget/udc/dummy_hcd.c:926 usb_gadget_connect_locked+0x15c/0x4a0 drivers/usb/gadget/udc/core.c:723 usb_udc_connect_control_locked drivers/usb/gadget/udc/core.c:1137 [inline] gadget_bind_driver+0x501/0x9f0 drivers/usb/gadget/udc/core.c:1622 really_probe+0x2b8/0xad0 drivers/base/dd.c:658 __driver_probe_device+0x1a2/0x390 drivers/base/dd.c:800 driver_probe_device+0x50/0x430 drivers/base/dd.c:830 __driver_attach+0x45f/0x710 drivers/base/dd.c:1216 bus_for_each_dev+0x239/0x2b0 drivers/base/bus.c:370 bus_add_driver+0x346/0x670 drivers/base/bus.c:675 driver_register+0x23a/0x320 drivers/base/driver.c:246 usb_gadget_register_driver_owner+0xdd/0x230 drivers/usb/gadget/udc/core.c:1699 raw_ioctl_run drivers/usb/gadget/legacy/raw_gadget.c:595 [inline] raw_ioctl+0x13a5/0x3cd0 drivers/usb/gadget/legacy/raw_gadget.c:1306 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f156cf79a7b Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007f156ddc8f10 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f156cf79a7b RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000003 RBP: 00007f156ddc9fe0 R08: 0000000000000000 R09: 00332e6364755f79 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f156ddc8fb0 R14: 0000000020000100 R15: 00007f156d240320 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:is_same_group kernel/sched/fair.c:411 [inline] RIP: 0010:find_matching_se kernel/sched/fair.c:448 [inline] RIP: 0010:check_preempt_wakeup_fair+0x471/0xb00 kernel/sched/fair.c:8679 Code: 00 00 00 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 ff e8 30 71 95 00 4d 8b 3f 49 8d ae a0 00 00 00 48 89 e8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 ef e8 10 71 95 00 48 8b 5d 00 49 8d af RSP: 0018:ffffc9000445f260 EFLAGS: 00010006 RAX: 0000000000000014 RBX: ffff8880b913eb00 RCX: ffffffff81671258 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888023b4bc00 RBP: 00000000000000a0 R08: ffff888023b4bc07 R09: 1ffff11004769780 R10: dffffc0000000000 R11: ffffed1004769781 R12: ffff8880b903ea40 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f156ddcb6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f156ddc9fe0 CR3: 000000007398e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 00 4c 89 f8 add %cl,-0x8(%rcx,%rcx,4) 6: 48 c1 e8 03 shr $0x3,%rax a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) f: 74 08 je 0x19 11: 4c 89 ff mov %r15,%rdi 14: e8 30 71 95 00 call 0x957149 19: 4d 8b 3f mov (%r15),%r15 1c: 49 8d ae a0 00 00 00 lea 0xa0(%r14),%rbp 23: 48 89 e8 mov %rbp,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 ef mov %rbp,%rdi 34: e8 10 71 95 00 call 0x957149 39: 48 8b 5d 00 mov 0x0(%rbp),%rbx 3d: 49 rex.WB 3e: 8d .byte 0x8d 3f: af scas %es:(%rdi),%eax