ci2 starts bisection 2024-06-07 04:02:33.780294442 +0000 UTC m=+95905.376010590 bisecting fixing commit since ad06eaf051cd0bdfd330f378c91f537107ce938e building syzkaller on af24b0505c748561efb50f1d03c824d6642f6c0b ensuring issue is reproducible on original commit ad06eaf051cd0bdfd330f378c91f537107ce938e testing commit ad06eaf051cd0bdfd330f378c91f537107ce938e gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a1c50c226cf0db6a57057d07d72f8aed34ffc32776c740f78b1558697552c27d all runs: crashed: KASAN: null-ptr-deref Write in vfs_rmdir representative crash: KASAN: null-ptr-deref Write in vfs_rmdir, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit ad06eaf051cd0bdfd330f378c91f537107ce938e gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c1407548aec38030dd844b4e5c16dd69a1bf61e0ffd5afd6b9018b2148b8641e all runs: crashed: KASAN: null-ptr-deref Write in vfs_rmdir representative crash: KASAN: null-ptr-deref Write in vfs_rmdir, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed kconfig minimization: base=4920 full=6159 leaves diff=242 split chunks (needed=false): <242> split chunk #0 of len 242 into 5 parts testing without sub-chunk 1/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit ad06eaf051cd0bdfd330f378c91f537107ce938e gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 561fc8c31ac24dae83cf68ac19f4b82b0b60863b00e527456692c0f05b762f51 all runs: crashed: KASAN: null-ptr-deref Write in vfs_rmdir representative crash: KASAN: null-ptr-deref Write in vfs_rmdir, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit ad06eaf051cd0bdfd330f378c91f537107ce938e gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e4e1b170e4c8974e693df94728d2d7693bc0da523c257c81b11492b3f9b305a7 all runs: crashed: KASAN: null-ptr-deref Write in vfs_rmdir representative crash: KASAN: null-ptr-deref Write in vfs_rmdir, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit ad06eaf051cd0bdfd330f378c91f537107ce938e gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f33c91b66fc14712d0a469b0e1297971b7821c9860a1d4b3394e1e6df6896766 all runs: crashed: KASAN: null-ptr-deref Write in vfs_rmdir representative crash: KASAN: null-ptr-deref Write in vfs_rmdir, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit ad06eaf051cd0bdfd330f378c91f537107ce938e gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b0ed6b8f41f12ed43da7067640841650c951097b510e3da6e039a3d8977f9461 all runs: crashed: KASAN: null-ptr-deref Write in vfs_rmdir representative crash: KASAN: null-ptr-deref Write in vfs_rmdir, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit ad06eaf051cd0bdfd330f378c91f537107ce938e gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 failed building ad06eaf051cd0bdfd330f378c91f537107ce938e: net/socket.c:1191: undefined reference to `wext_handle_ioctl' net/socket.c:3385: undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:343: undefined reference to `wext_proc_exit' net/core/net-procfs.c:327: undefined reference to `wext_proc_init' minimized to 46 configs; suspects: [HID_ZEROPLUS USB_NET_GL620A USB_NET_MCS7830 USB_NET_NET1080 USB_NET_PLUSB USB_NET_RNDIS_HOST USB_NET_SMSC75XX USB_NET_SMSC95XX USB_NET_SR9700 USB_NET_SR9800 USB_NET_ZAURUS USB_OHCI_HCD USB_OHCI_HCD_PCI USB_OHCI_HCD_PLATFORM USB_OTG USB_OTG_FSM USB_PRINTER USB_SERIAL USB_SERIAL_FTDI_SIO USB_SERIAL_GENERIC USB_SERIAL_PL2303 USB_STORAGE_ALAUDA USB_STORAGE_CYPRESS_ATACB USB_STORAGE_DATAFAB USB_STORAGE_FREECOM USB_STORAGE_ISD200 USB_STORAGE_JUMPSHOT USB_STORAGE_KARMA USB_STORAGE_ONETOUCH USB_STORAGE_SDDR09 USB_STORAGE_SDDR55 USB_STORAGE_USBAT USB_TRANCEVIBRATOR USB_U_AUDIO USB_U_ETHER USB_U_SERIAL USB_WDM WLAN WLAN_VENDOR_ATH WLAN_VENDOR_ATMEL WLAN_VENDOR_BROADCOM WLAN_VENDOR_INTERSIL WLAN_VENDOR_MARVELL WLAN_VENDOR_MEDIATEK WLAN_VENDOR_MICROCHIP WLAN_VENDOR_RALINK WLAN_VENDOR_REALTEK WLAN_VENDOR_RSI WLAN_VENDOR_ZYDAS X86_X32 ZEROPLUS_FF] disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing current HEAD 79bd336c7a94039e3d325195b978a04f3b89d2f3 testing commit 79bd336c7a94039e3d325195b978a04f3b89d2f3 gcc compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 840d4eec34bc3921cf3b9f2bf18de506dade726cef3ad196c768d2b2a1422bd2 all runs: crashed: KASAN: null-ptr-deref Write in vfs_rmdir representative crash: KASAN: null-ptr-deref Write in vfs_rmdir, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 50m55.873278366s (build: 30m10.371318625s, test: 19m7.803851731s) crash still not fixed or there were kernel test errors commit msg: Merge a585faf05915 ("fs/ntfs3: Fix oob in ntfs_listxattr") into android-mainline crash: KASAN: null-ptr-deref Write in vfs_rmdir ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:101 [inline] BUG: KASAN: null-ptr-deref in atomic_inc_return include/linux/atomic/atomic-instrumented.h:188 [inline] BUG: KASAN: null-ptr-deref in ihold+0x19/0x30 fs/inode.c:426 Write of size 4 at addr 0000000000000170 by task syz-executor.0/348 CPU: 1 PID: 348 Comm: syz-executor.0 Not tainted 5.15.149-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x38/0x49 lib/dump_stack.c:106 __kasan_report mm/kasan/report.c:431 [inline] kasan_report.cold+0x64/0xdb mm/kasan/report.c:444 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x148/0x190 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_inc_return include/linux/atomic/atomic-instrumented.h:188 [inline] ihold+0x19/0x30 fs/inode.c:426 d_delete_notify include/linux/fsnotify.h:267 [inline] vfs_rmdir.part.0+0x2a2/0x460 fs/namei.c:4162 vfs_rmdir+0x6b/0x90 fs/namei.c:4135 incfs_kill_sb+0x198/0x220 fs/incfs/vfs.c:1961 deactivate_locked_super+0x8b/0x130 fs/super.c:335 deactivate_super+0x71/0x80 fs/super.c:366 cleanup_mnt+0x2cf/0x400 fs/namespace.c:1143 __cleanup_mnt+0xd/0x10 fs/namespace.c:1150 task_work_run+0xc2/0x150 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x140/0x150 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x21/0x40 kernel/entry/common.c:301 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f561f9cb1d7 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fff6037c528 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f561f9cb1d7 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff6037c5e0 RBP: 00007fff6037c5e0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff6037d6d0 R13: 00007f561fa153b9 R14: 000000000000acf7 R15: 0000000000000006 ================================================================== BUG: kernel NULL pointer dereference, address: 0000000000000170 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 120b06067 P4D 120b06067 PUD 0 Oops: 0002 [#1] PREEMPT SMP KASAN CPU: 1 PID: 348 Comm: syz-executor.0 Tainted: G B 5.15.149-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:arch_atomic_add_return arch/x86/include/asm/atomic.h:165 [inline] RIP: 0010:arch_atomic_inc_return include/linux/atomic/atomic-arch-fallback.h:370 [inline] RIP: 0010:atomic_inc_return include/linux/atomic/atomic-instrumented.h:189 [inline] RIP: 0010:ihold+0x1e/0x30 fs/inode.c:426 Code: eb 90 66 2e 0f 1f 84 00 00 00 00 00 55 be 04 00 00 00 48 89 e5 53 48 89 fb 48 8d bf 70 01 00 00 e8 87 bb f2 ff b8 01 00 00 00 0f c1 83 70 01 00 00 48 8b 5d f8 c9 c3 0f 1f 40 00 48 b8 00 00 RSP: 0018:ffffc900006f7d50 EFLAGS: 00010246 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff8134d361 RDX: fffffbfff0b1b940 RSI: 0000000000000004 RDI: ffffffff858dca00 RBP: ffffc900006f7d58 R08: 0000000000000001 R09: 0000000000000003 R10: fffffbfff0b1b940 R11: 0000000000000001 R12: ffff8881172d3770 R13: ffff8881129be6d8 R14: 0000000000000000 R15: 0000000000000000 FS: 0000555556d86480(0000) GS:ffff8881f7500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000170 CR3: 0000000120cbd000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: d_delete_notify include/linux/fsnotify.h:267 [inline] vfs_rmdir.part.0+0x2a2/0x460 fs/namei.c:4162 vfs_rmdir+0x6b/0x90 fs/namei.c:4135 incfs_kill_sb+0x198/0x220 fs/incfs/vfs.c:1961 deactivate_locked_super+0x8b/0x130 fs/super.c:335 deactivate_super+0x71/0x80 fs/super.c:366 cleanup_mnt+0x2cf/0x400 fs/namespace.c:1143 __cleanup_mnt+0xd/0x10 fs/namespace.c:1150 task_work_run+0xc2/0x150 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x140/0x150 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x21/0x40 kernel/entry/common.c:301 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f561f9cb1d7 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fff6037c528 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f561f9cb1d7 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff6037c5e0 RBP: 00007fff6037c5e0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff6037d6d0 R13: 00007f561fa153b9 R14: 000000000000acf7 R15: 0000000000000006 Modules linked in: CR2: 0000000000000170 ---[ end trace 54ec333369adee6d ]--- RIP: 0010:arch_atomic_add_return arch/x86/include/asm/atomic.h:165 [inline] RIP: 0010:arch_atomic_inc_return include/linux/atomic/atomic-arch-fallback.h:370 [inline] RIP: 0010:atomic_inc_return include/linux/atomic/atomic-instrumented.h:189 [inline] RIP: 0010:ihold+0x1e/0x30 fs/inode.c:426 Code: eb 90 66 2e 0f 1f 84 00 00 00 00 00 55 be 04 00 00 00 48 89 e5 53 48 89 fb 48 8d bf 70 01 00 00 e8 87 bb f2 ff b8 01 00 00 00 0f c1 83 70 01 00 00 48 8b 5d f8 c9 c3 0f 1f 40 00 48 b8 00 00 RSP: 0018:ffffc900006f7d50 EFLAGS: 00010246 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff8134d361 RDX: fffffbfff0b1b940 RSI: 0000000000000004 RDI: ffffffff858dca00 RBP: ffffc900006f7d58 R08: 0000000000000001 R09: 0000000000000003 R10: fffffbfff0b1b940 R11: 0000000000000001 R12: ffff8881172d3770 R13: ffff8881129be6d8 R14: 0000000000000000 R15: 0000000000000000 FS: 0000555556d86480(0000) GS:ffff8881f7500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000170 CR3: 0000000120cbd000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: eb 90 jmp 0xffffff92 2: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) 9: 00 00 00 c: 55 push %rbp d: be 04 00 00 00 mov $0x4,%esi 12: 48 89 e5 mov %rsp,%rbp 15: 53 push %rbx 16: 48 89 fb mov %rdi,%rbx 19: 48 8d bf 70 01 00 00 lea 0x170(%rdi),%rdi 20: e8 87 bb f2 ff call 0xfff2bbac 25: b8 01 00 00 00 mov $0x1,%eax * 2a: f0 0f c1 83 70 01 00 lock xadd %eax,0x170(%rbx) <-- trapping instruction 31: 00 32: 48 8b 5d f8 mov -0x8(%rbp),%rbx 36: c9 leave 37: c3 ret 38: 0f 1f 40 00 nopl 0x0(%rax) 3c: 48 rex.W 3d: b8 .byte 0xb8