ci2 starts bisection 2024-10-26 12:43:37.734317622 +0000 UTC m=+41027.504662617
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: 474927e569908d2e38d552000fcb8351ac3944b75545825afaadc1514a6b2e50
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: 09cc508303276bb27de36a4e2ab0c7f21874b5facd4195f6e06e2d6f4585d293
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 [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], 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 [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: 87a1832917783697885b91e52d85444214433714628fab63260b9ca0d1e00663
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 [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: e935274552ba033d54db2dbdac33949df699fc021f97e8d66a501eb48693d4be
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 [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: 88bdb7cafacf138a7ae46a36e1c10d60ccd34018ca3cad1015ad693159cdd3a2
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 [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: 6b9cd9362ee6ba2786c93a8a8752909563a2458ee9ae45c829c0f60b21579775
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 [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
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 [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed
testing current HEAD a874ed06eb34e9a049fed6f767519de9f38130bd
testing commit a874ed06eb34e9a049fed6f767519de9f38130bd gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: c68c2d999b74bb08dfe11a450f4a2455493366d2f2812a5758b23e85c4e303f6
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: 1h53m9.67627907s (build: 43m41.468098586s, test: 1h3m4.559206186s)
crash still not fixed or there were kernel test errors
commit msg: UPSTREAM: Revert "tty: serial: simplify qcom_geni_serial_send_chunk_fifo()"
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.2/395
CPU: 1 PID: 395 Comm: syz-executor.2 Not tainted 6.1.99-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:0x7ff32947c959
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:00007ff32a22a0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007ff32959bf80 RCX: 00007ff32947c959
RDX: 0000000000000000 RSI: 0000000000000020 RDI: 0000000000000005
RBP: 00007ff3294d8c88 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000010000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007ff32959bf80 R15: 00007fff00978ea8
==================================================================
BUG: kernel NULL pointer dereference, address: 0000000000000030
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD 1250ea067 P4D 1250ea067 PUD 12512d067 PMD 0
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 395 Comm: syz-executor.2 Tainted: G B 6.1.99-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 59 15 81 fd 4c 89 ff be 04 00 00 00 e8 4c 15 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:ffffc90000fe7bc0 EFLAGS: 00010297
RAX: 0000000000000000 RBX: 1ffff920001fcf78 RCX: 00000000000000ff
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffc90000fe7be0
RBP: ffffc90000fe7c58 R08: dffffc0000000000 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000000030 R14: 1ffff920001fcf7c R15: ffffc90000fe7be0
FS: 00007ff32a22a6c0(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000030 CR3: 000000012322d000 CR4: 00000000003506a0
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:0x7ff32947c959
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:00007ff32a22a0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 00007ff32959bf80 RCX: 00007ff32947c959
RDX: 0000000000000000 RSI: 0000000000000020 RDI: 0000000000000005
RBP: 00007ff3294d8c88 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000010000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007ff32959bf80 R15: 00007fff00978ea8
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 59 15 81 fd 4c 89 ff be 04 00 00 00 e8 4c 15 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:ffffc90000fe7bc0 EFLAGS: 00010297
RAX: 0000000000000000 RBX: 1ffff920001fcf78 RCX: 00000000000000ff
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffc90000fe7be0
RBP: ffffc90000fe7c58 R08: dffffc0000000000 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000000030 R14: 1ffff920001fcf7c R15: ffffc90000fe7be0
FS: 00007ff32a22a6c0(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000030 CR3: 000000012322d000 CR4: 00000000003506a0
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 59 15 81 fd call 0xfd811564
b: 4c 89 ff mov %r15,%rdi
e: be 04 00 00 00 mov $0x4,%esi
13: e8 4c 15 81 fd call 0xfd811564
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