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: 1 UID: 0 PID: 5356 Comm: syz.3.13 Not tainted 6.11.0-rc4-next-20240821-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 80 28 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 60 28 95 00 48 8b 5d 00 49 8d af RSP: 0018:ffffc90000a18aa0 EFLAGS: 00010006 RAX: 0000000000000014 RBX: ffff8880b913eb00 RCX: ffffffff816719b8 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88807aec9e00 RBP: 00000000000000a0 R08: ffff88807aec9e07 R09: 1ffff1100f5d93c0 R10: dffffc0000000000 R11: ffffed100f5d93c1 R12: ffff8880b903ea40 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007ff9633606c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32815ff8 CR3: 000000004ab70000 CR4: 00000000003526f0 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 swake_up_locked kernel/sched/swait.c:29 [inline] complete_with_flags kernel/sched/completion.c:24 [inline] complete+0xac/0x1c0 kernel/sched/completion.c:47 random_recv_done+0x138/0x1e0 drivers/char/hw_random/virtio-rng.c:48 vring_interrupt+0x21d/0x380 drivers/virtio/virtio_ring.c:2595 __handle_irq_event_percpu+0x29a/0xa80 kernel/irq/handle.c:158 handle_irq_event_percpu kernel/irq/handle.c:193 [inline] handle_irq_event+0x89/0x1f0 kernel/irq/handle.c:210 handle_edge_irq+0x25f/0xc20 kernel/irq/chip.c:831 generic_handle_irq_desc include/linux/irqdesc.h:173 [inline] handle_irq arch/x86/kernel/irq.c:247 [inline] call_irq_handler arch/x86/kernel/irq.c:259 [inline] __common_interrupt+0x136/0x230 arch/x86/kernel/irq.c:285 common_interrupt+0xb4/0xd0 arch/x86/kernel/irq.c:278 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 RIP: 0010:__update_page_owner_handle mm/page_owner.c:244 [inline] RIP: 0010:__set_page_owner+0x1ae/0x800 mm/page_owner.c:325 Code: e8 67 d9 8d ff 48 8b 05 60 67 a0 0c 4d 8d 34 07 49 8d 7c 07 08 48 89 f8 48 c1 e8 03 48 ba 00 00 00 00 00 fc ff df 0f b6 04 10 <84> c0 0f 85 1d 01 00 00 8b 44 24 28 41 89 46 08 4c 89 f0 48 c1 e8 RSP: 0018:ffffc900042a6340 EFLAGS: 00000a06 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000040000 RDX: dffffc0000000000 RSI: 0000000000010188 RDI: ffff888019a1d2d0 RBP: ffffc900042a6440 R08: ffffffff8205e70b R09: 1ffffffff26f5700 R10: dffffc0000000000 R11: fffffbfff26f5701 R12: 0000000000000000 R13: 0000000000000001 R14: ffff888019a1d2c8 R15: ffff888019a1d2c0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1517 prep_new_page mm/page_alloc.c:1525 [inline] get_page_from_freelist+0x3004/0x30c0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x29e/0x780 mm/page_alloc.c:4743 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 folio_alloc_mpol_noprof mm/mempolicy.c:2283 [inline] vma_alloc_folio_noprof+0x12e/0x230 mm/mempolicy.c:2314 folio_prealloc+0x31/0x170 alloc_anon_folio mm/memory.c:4496 [inline] do_anonymous_page mm/memory.c:4553 [inline] do_pte_missing mm/memory.c:3945 [inline] handle_pte_fault+0x258a/0x67c0 mm/memory.c:5522 __handle_mm_fault mm/memory.c:5665 [inline] handle_mm_fault+0x1029/0x1980 mm/memory.c:5833 faultin_page mm/gup.c:1174 [inline] __get_user_pages+0x1cf2/0x4910 mm/gup.c:1472 __get_user_pages_locked mm/gup.c:1738 [inline] __gup_longterm_locked+0x3ba/0x17d0 mm/gup.c:2472 gup_fast_fallback+0x2707/0x2b00 mm/gup.c:3363 pin_user_pages_fast+0xcc/0x160 mm/gup.c:3469 pfn_reader_user_pin+0x432/0x850 drivers/iommu/iommufd/pages.c:781 iopt_pages_fill_from_mm drivers/iommu/iommufd/pages.c:1644 [inline] iopt_pages_fill_xarray+0x7f2/0x1760 drivers/iommu/iommufd/pages.c:1711 iopt_area_add_access+0x22a/0x430 drivers/iommu/iommufd/pages.c:1944 iommufd_access_pin_pages+0x786/0xd40 drivers/iommu/iommufd/device.c:1079 iommufd_test_access_pages drivers/iommu/iommufd/selftest.c:1238 [inline] iommufd_test+0x2cfe/0x3e40 drivers/iommu/iommufd/selftest.c:1481 iommufd_fops_ioctl+0x4d9/0x5a0 drivers/iommu/iommufd/main.c:424 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:0x7ff962579e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff963360038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff962716058 RCX: 00007ff962579e79 RDX: 0000000020000240 RSI: 0000000000003ba0 RDI: 0000000000000005 RBP: 00007ff9625e7916 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ff962716058 R15: 00007ffc33aa7f08 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 80 28 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 60 28 95 00 48 8b 5d 00 49 8d af RSP: 0018:ffffc90000a18aa0 EFLAGS: 00010006 RAX: 0000000000000014 RBX: ffff8880b913eb00 RCX: ffffffff816719b8 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88807aec9e00 RBP: 00000000000000a0 R08: ffff88807aec9e07 R09: 1ffff1100f5d93c0 R10: dffffc0000000000 R11: ffffed100f5d93c1 R12: ffff8880b903ea40 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 00007ff9633606c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32815ff8 CR3: 000000004ab70000 CR4: 00000000003526f0 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 80 28 95 00 call 0x952899 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 60 28 95 00 call 0x952899 39: 48 8b 5d 00 mov 0x0(%rbp),%rbx 3d: 49 rex.WB 3e: 8d .byte 0x8d 3f: af scas %es:(%rdi),%eax