ci2 starts bisection 2024-09-26 02:11:47.070187487 +0000 UTC m=+21394.215582021 bisecting fixing commit since cffbdd825e02688553e52f59f6dd2978f2357a17 building syzkaller on 4bce1a3e705a8b62de8194bdb28f5eef89c8feec ensuring issue is reproducible on original commit cffbdd825e02688553e52f59f6dd2978f2357a17 testing commit cffbdd825e02688553e52f59f6dd2978f2357a17 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: dbe2fc3da24bb11a46393afe70d90e10201e1f940e493461ad8554a77a9c6865 all runs: crashed: KASAN: null-ptr-deref Write in __drop_extent_tree representative crash: KASAN: null-ptr-deref Write in __drop_extent_tree, 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 cffbdd825e02688553e52f59f6dd2978f2357a17 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b44fcd1924c9ded87c78ddec7217193e2f4618fbf7b29973d3641161caef211e all runs: crashed: KASAN: null-ptr-deref Write in __drop_extent_tree representative crash: KASAN: null-ptr-deref Write in __drop_extent_tree, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed kconfig minimization: base=5179 full=6520 leaves diff=250 split chunks (needed=false): <250> split chunk #0 of len 250 into 5 parts testing without sub-chunk 1/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit cffbdd825e02688553e52f59f6dd2978f2357a17 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 33c601aed1240bab399801a4b5638d6cd8c131884676f3b0af9633f492adc184 all runs: crashed: KASAN: null-ptr-deref Write in __drop_extent_tree representative crash: KASAN: null-ptr-deref Write in __drop_extent_tree, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit cffbdd825e02688553e52f59f6dd2978f2357a17 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: eadc763c3edcc8b804f68d2e8d3b4b7f48ea9e9f8274e9cd1700a8d277093608 all runs: crashed: KASAN: null-ptr-deref Write in __drop_extent_tree representative crash: KASAN: null-ptr-deref Write in __drop_extent_tree, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit cffbdd825e02688553e52f59f6dd2978f2357a17 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1f515828e980e28891dfccedc7005a18a68dd5209e4675fb9058cc47fc60c090 all runs: crashed: KASAN: null-ptr-deref Write in __drop_extent_tree representative crash: KASAN: null-ptr-deref Write in __drop_extent_tree, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit cffbdd825e02688553e52f59f6dd2978f2357a17 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e370ea38689b0e8116588a56331b82f2fe98570b2f43d24a24325cae0dea2a4a all runs: crashed: KASAN: null-ptr-deref Write in __drop_extent_tree representative crash: KASAN: null-ptr-deref Write in __drop_extent_tree, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit cffbdd825e02688553e52f59f6dd2978f2357a17 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 failed building cffbdd825e02688553e52f59f6dd2978f2357a17: net/socket.c:1225: undefined reference to `wext_handle_ioctl' net/socket.c:3420: undefined reference to `compat_wext_handle_ioctl' net/core/net-procfs.c:329: undefined reference to `wext_proc_init' net/core/net-procfs.c:345: undefined reference to `wext_proc_exit' minimized to 50 configs; suspects: [HID_ZEROPLUS USB_NET_CDC_MBIM USB_NET_CDC_SUBSET USB_NET_CDC_SUBSET_ENABLE USB_NET_DM9601 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_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_PURELIFI WLAN_VENDOR_RALINK WLAN_VENDOR_REALTEK WLAN_VENDOR_RSI WLAN_VENDOR_SILABS WLAN_VENDOR_ZYDAS X86_X32_ABI ZEROPLUS_FF] disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing current HEAD 9e167c1c27c501f62f9acb5711e08761deb90eb1 testing commit 9e167c1c27c501f62f9acb5711e08761deb90eb1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 69563e61e8d9aed372880e94fe76528385af5faaaec190c5389f9122f0a8e2c4 all runs: crashed: KASAN: null-ptr-deref Write in __drop_extent_tree representative crash: KASAN: null-ptr-deref Write in __drop_extent_tree, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 1h9m51.139656488s (build: 39m18.656789596s, test: 28m7.685875033s) crash still not fixed or there were kernel test errors commit msg: ANDROID: GKI: Export a symbol “next_arg” for honor crash: KASAN: null-ptr-deref Write in __drop_extent_tree ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:102 [inline] BUG: KASAN: null-ptr-deref in atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:541 [inline] BUG: KASAN: null-ptr-deref in queued_write_lock include/asm-generic/qrwlock.h:98 [inline] BUG: KASAN: null-ptr-deref in __raw_write_lock include/linux/rwlock_api_smp.h:210 [inline] BUG: KASAN: null-ptr-deref in _raw_write_lock+0x97/0x170 kernel/locking/spinlock.c:300 Write of size 4 at addr 0000000000000030 by task syz-executor.4/459 CPU: 0 PID: 459 Comm: syz-executor.4 Not tainted 6.1.99-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x105/0x148 lib/dump_stack.c:106 print_report+0xe1/0x4e0 mm/kasan/report.c:430 kasan_report+0x13c/0x170 mm/kasan/report.c:531 kasan_check_range+0x294/0x2a0 mm/kasan/generic.c:189 __kasan_check_write+0x14/0x20 mm/kasan/shadow.c:37 instrument_atomic_read_write include/linux/instrumented.h:102 [inline] atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:541 [inline] queued_write_lock include/asm-generic/qrwlock.h:98 [inline] __raw_write_lock include/linux/rwlock_api_smp.h:210 [inline] _raw_write_lock+0x97/0x170 kernel/locking/spinlock.c:300 __drop_extent_tree+0x317/0x5b0 fs/f2fs/extent_cache.c:1089 f2fs_drop_extent_tree+0xf/0x20 fs/f2fs/extent_cache.c:1105 f2fs_insert_range+0x339/0x450 fs/f2fs/file.c:1661 f2fs_fallocate+0x309/0x500 fs/f2fs/file.c:1835 vfs_fallocate+0x330/0x410 fs/open.c:324 ksys_fallocate fs/open.c:347 [inline] __do_sys_fallocate fs/open.c:355 [inline] __se_sys_fallocate fs/open.c:353 [inline] __x64_sys_fallocate+0xb3/0xe0 fs/open.c:353 x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:286 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fc86f27c959 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc86ffab0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fc86f39bf80 RCX: 00007fc86f27c959 RDX: 0000000000000000 RSI: 0000000000000020 RDI: 0000000000000005 RBP: 00007fc86f2d8c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000010000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc86f39bf80 R15: 00007ffdf1ce3d88 ================================================================== BUG: kernel NULL pointer dereference, address: 0000000000000030 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 126312067 P4D 126312067 PUD 12630e067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN CPU: 0 PID: 459 Comm: syz-executor.4 Tainted: G B 6.1.99-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:543 [inline] RIP: 0010:queued_write_lock include/asm-generic/qrwlock.h:98 [inline] RIP: 0010:__raw_write_lock include/linux/rwlock_api_smp.h:210 [inline] RIP: 0010:_raw_write_lock+0xb6/0x170 kernel/locking/spinlock.c:300 Code: ef be 04 00 00 00 e8 49 25 81 fd 4c 89 ff be 04 00 00 00 e8 3c 25 81 fd 43 0f b6 04 26 84 c0 75 7d 8b 44 24 20 b9 ff 00 00 00 41 0f b1 4d 00 75 33 48 c7 04 24 0e 36 e0 45 49 c7 04 1c 00 00 RSP: 0018:ffffc900011c7bc0 EFLAGS: 00010297 RAX: 0000000000000000 RBX: 1ffff92000238f78 RCX: 00000000000000ff RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffc900011c7be0 RBP: ffffc900011c7c58 R08: dffffc0000000000 R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: dffffc0000000000 R13: 0000000000000030 R14: 1ffff92000238f7c R15: ffffc900011c7be0 FS: 00007fc86ffab6c0(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000030 CR3: 000000011d4b0000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __drop_extent_tree+0x317/0x5b0 fs/f2fs/extent_cache.c:1089 f2fs_drop_extent_tree+0xf/0x20 fs/f2fs/extent_cache.c:1105 f2fs_insert_range+0x339/0x450 fs/f2fs/file.c:1661 f2fs_fallocate+0x309/0x500 fs/f2fs/file.c:1835 vfs_fallocate+0x330/0x410 fs/open.c:324 ksys_fallocate fs/open.c:347 [inline] __do_sys_fallocate fs/open.c:355 [inline] __se_sys_fallocate fs/open.c:353 [inline] __x64_sys_fallocate+0xb3/0xe0 fs/open.c:353 x64_sys_call+0x783/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:286 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fc86f27c959 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc86ffab0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007fc86f39bf80 RCX: 00007fc86f27c959 RDX: 0000000000000000 RSI: 0000000000000020 RDI: 0000000000000005 RBP: 00007fc86f2d8c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000010000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc86f39bf80 R15: 00007ffdf1ce3d88 Modules linked in: CR2: 0000000000000030 ---[ end trace 0000000000000000 ]--- RIP: 0010:atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:543 [inline] RIP: 0010:queued_write_lock include/asm-generic/qrwlock.h:98 [inline] RIP: 0010:__raw_write_lock include/linux/rwlock_api_smp.h:210 [inline] RIP: 0010:_raw_write_lock+0xb6/0x170 kernel/locking/spinlock.c:300 Code: ef be 04 00 00 00 e8 49 25 81 fd 4c 89 ff be 04 00 00 00 e8 3c 25 81 fd 43 0f b6 04 26 84 c0 75 7d 8b 44 24 20 b9 ff 00 00 00 41 0f b1 4d 00 75 33 48 c7 04 24 0e 36 e0 45 49 c7 04 1c 00 00 RSP: 0018:ffffc900011c7bc0 EFLAGS: 00010297 RAX: 0000000000000000 RBX: 1ffff92000238f78 RCX: 00000000000000ff RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffc900011c7be0 RBP: ffffc900011c7c58 R08: dffffc0000000000 R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: dffffc0000000000 R13: 0000000000000030 R14: 1ffff92000238f7c R15: ffffc900011c7be0 FS: 00007fc86ffab6c0(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000030 CR3: 000000011d4b0000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: ef out %eax,(%dx) 1: be 04 00 00 00 mov $0x4,%esi 6: e8 49 25 81 fd call 0xfd812554 b: 4c 89 ff mov %r15,%rdi e: be 04 00 00 00 mov $0x4,%esi 13: e8 3c 25 81 fd call 0xfd812554 18: 43 0f b6 04 26 movzbl (%r14,%r12,1),%eax 1d: 84 c0 test %al,%al 1f: 75 7d jne 0x9e 21: 8b 44 24 20 mov 0x20(%rsp),%eax 25: b9 ff 00 00 00 mov $0xff,%ecx * 2a: f0 41 0f b1 4d 00 lock cmpxchg %ecx,0x0(%r13) <-- trapping instruction 30: 75 33 jne 0x65 32: 48 c7 04 24 0e 36 e0 movq $0x45e0360e,(%rsp) 39: 45 3a: 49 rex.WB 3b: c7 .byte 0xc7 3c: 04 1c add $0x1c,%al