RBP: 00007fb782d561d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffe9e21e58f R14: 00007fb782d56300 R15: 0000000000022000 ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:101 [inline] BUG: KASAN: null-ptr-deref in atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:167 [inline] BUG: KASAN: null-ptr-deref in __refcount_sub_and_test include/linux/refcount.h:272 [inline] BUG: KASAN: null-ptr-deref in __refcount_dec_and_test include/linux/refcount.h:315 [inline] BUG: KASAN: null-ptr-deref in refcount_dec_and_test include/linux/refcount.h:333 [inline] BUG: KASAN: null-ptr-deref in kref_put include/linux/kref.h:64 [inline] BUG: KASAN: null-ptr-deref in anon_vma_name_put include/linux/mm_inline.h:365 [inline] BUG: KASAN: null-ptr-deref in free_anon_vma_name include/linux/mm_inline.h:396 [inline] BUG: KASAN: null-ptr-deref in vm_area_free_no_check+0x7e/0x130 kernel/fork.c:405 Write of size 4 at addr 0000000000000001 by task syz-executor.0/349 CPU: 1 PID: 349 Comm: syz-executor.0 Not tainted 5.15.106-syzkaller-05912-g19c0ed55a470 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 __kasan_report mm/kasan/report.c:431 [inline] kasan_report+0x16f/0x1c0 mm/kasan/report.c:444 kasan_check_range+0x293/0x2a0 mm/kasan/generic.c:189 __kasan_check_write+0x14/0x20 mm/kasan/shadow.c:37 instrument_atomic_read_write include/linux/instrumented.h:101 [inline] atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:167 [inline] __refcount_sub_and_test include/linux/refcount.h:272 [inline] __refcount_dec_and_test include/linux/refcount.h:315 [inline] refcount_dec_and_test include/linux/refcount.h:333 [inline] kref_put include/linux/kref.h:64 [inline] anon_vma_name_put include/linux/mm_inline.h:365 [inline] free_anon_vma_name include/linux/mm_inline.h:396 [inline] vm_area_free_no_check+0x7e/0x130 kernel/fork.c:405 vm_area_free kernel/fork.c:418 [inline] dup_mmap kernel/fork.c:680 [inline] dup_mm+0xd73/0x12c0 kernel/fork.c:1513 copy_mm+0x107/0x1b0 kernel/fork.c:1565 copy_process+0x12bc/0x3260 kernel/fork.c:2256 kernel_clone+0x21e/0x9e0 kernel/fork.c:2659 __do_sys_clone kernel/fork.c:2785 [inline] __se_sys_clone kernel/fork.c:2769 [inline] __x64_sys_clone+0x23f/0x290 kernel/fork.c:2769 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fb7831e30c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb782d56118 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007fb783302f80 RCX: 00007fb7831e30c9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fb782d561d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffe9e21e58f R14: 00007fb782d56300 R15: 0000000000022000 ================================================================== BUG: kernel NULL pointer dereference, address: 0000000000000001 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 122597067 P4D 122597067 PUD 1228df067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN CPU: 1 PID: 349 Comm: syz-executor.0 Tainted: G B 5.15.106-syzkaller-05912-g19c0ed55a470 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:168 [inline] RIP: 0010:__refcount_sub_and_test include/linux/refcount.h:272 [inline] RIP: 0010:__refcount_dec_and_test include/linux/refcount.h:315 [inline] RIP: 0010:refcount_dec_and_test include/linux/refcount.h:333 [inline] RIP: 0010:kref_put include/linux/kref.h:64 [inline] RIP: 0010:anon_vma_name_put include/linux/mm_inline.h:365 [inline] RIP: 0010:free_anon_vma_name include/linux/mm_inline.h:396 [inline] RIP: 0010:vm_area_free_no_check+0x83/0x130 kernel/fork.c:405 Code: 03 42 80 3c 38 00 74 08 48 89 df e8 17 a0 6f 00 4c 8b 3b 4d 85 ff 74 37 4c 89 ff be 04 00 00 00 e8 02 a2 6f 00 bb ff ff ff ff 41 0f c1 1f bf 01 00 00 00 89 de e8 1c 85 2e 00 83 fb 01 75 16 RSP: 0018:ffffc90000d27968 EFLAGS: 00010246 RAX: ffff88810cb82700 RBX: 00000000ffffffff RCX: ffff88810cb82780 RDX: 0000000000000000 RSI: 0000000000000286 RDI: 00000000ffffffff RBP: ffffc90000d27990 R08: ffffffff8141c95b R09: 0000000000000003 R10: fffffbfff0d4fe4c R11: dffffc0000000001 R12: 1ffff110244e273c R13: ffff8881227139e0 R14: ffff888122713940 R15: 0000000000000001 FS: 00007fb782d56700(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000001 CR3: 00000001225a7000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vm_area_free kernel/fork.c:418 [inline] dup_mmap kernel/fork.c:680 [inline] dup_mm+0xd73/0x12c0 kernel/fork.c:1513 copy_mm+0x107/0x1b0 kernel/fork.c:1565 copy_process+0x12bc/0x3260 kernel/fork.c:2256 kernel_clone+0x21e/0x9e0 kernel/fork.c:2659 __do_sys_clone kernel/fork.c:2785 [inline] __se_sys_clone kernel/fork.c:2769 [inline] __x64_sys_clone+0x23f/0x290 kernel/fork.c:2769 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fb7831e30c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb782d56118 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007fb783302f80 RCX: 00007fb7831e30c9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fb782d561d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffe9e21e58f R14: 00007fb782d56300 R15: 0000000000022000 Modules linked in: CR2: 0000000000000001 ---[ end trace c8f854183cb249dc ]--- RIP: 0010:atomic_fetch_sub_release include/linux/atomic/atomic-instrumented.h:168 [inline] RIP: 0010:__refcount_sub_and_test include/linux/refcount.h:272 [inline] RIP: 0010:__refcount_dec_and_test include/linux/refcount.h:315 [inline] RIP: 0010:refcount_dec_and_test include/linux/refcount.h:333 [inline] RIP: 0010:kref_put include/linux/kref.h:64 [inline] RIP: 0010:anon_vma_name_put include/linux/mm_inline.h:365 [inline] RIP: 0010:free_anon_vma_name include/linux/mm_inline.h:396 [inline] RIP: 0010:vm_area_free_no_check+0x83/0x130 kernel/fork.c:405 Code: 03 42 80 3c 38 00 74 08 48 89 df e8 17 a0 6f 00 4c 8b 3b 4d 85 ff 74 37 4c 89 ff be 04 00 00 00 e8 02 a2 6f 00 bb ff ff ff ff 41 0f c1 1f bf 01 00 00 00 89 de e8 1c 85 2e 00 83 fb 01 75 16 RSP: 0018:ffffc90000d27968 EFLAGS: 00010246 RAX: ffff88810cb82700 RBX: 00000000ffffffff RCX: ffff88810cb82780 RDX: 0000000000000000 RSI: 0000000000000286 RDI: 00000000ffffffff RBP: ffffc90000d27990 R08: ffffffff8141c95b R09: 0000000000000003 R10: fffffbfff0d4fe4c R11: dffffc0000000001 R12: 1ffff110244e273c R13: ffff8881227139e0 R14: ffff888122713940 R15: 0000000000000001 FS: 00007fb782d56700(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000001 CR3: 00000001225a7000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 03 42 80 add -0x80(%rdx),%eax 3: 3c 38 cmp $0x38,%al 5: 00 74 08 48 add %dh,0x48(%rax,%rcx,1) 9: 89 df mov %ebx,%edi b: e8 17 a0 6f 00 callq 0x6fa027 10: 4c 8b 3b mov (%rbx),%r15 13: 4d 85 ff test %r15,%r15 16: 74 37 je 0x4f 18: 4c 89 ff mov %r15,%rdi 1b: be 04 00 00 00 mov $0x4,%esi 20: e8 02 a2 6f 00 callq 0x6fa227 25: bb ff ff ff ff mov $0xffffffff,%ebx * 2a: f0 41 0f c1 1f lock xadd %ebx,(%r15) <-- trapping instruction 2f: bf 01 00 00 00 mov $0x1,%edi 34: 89 de mov %ebx,%esi 36: e8 1c 85 2e 00 callq 0x2e8557 3b: 83 fb 01 cmp $0x1,%ebx 3e: 75 16 jne 0x56