ci2 starts bisection 2024-07-24 12:50:56.374974809 +0000 UTC m=+33406.852204443
bisecting fixing commit since cd94fe67fd3323953016b8193f5be75982da96c8
building syzkaller on 6654cf89a7909afd314ad8abd502bc0dd024112a
ensuring issue is reproducible on original commit cd94fe67fd3323953016b8193f5be75982da96c8
testing commit cd94fe67fd3323953016b8193f5be75982da96c8 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: ad6d245b8bc474cd8929ea2aaec47122f3cf372845e062b558e2db87af51085a
run #0: crashed: KASAN: use-after-free Read in ext4_find_extent
run #1: crashed: kernel BUG in ext4_writepages
run #2: crashed: KASAN: use-after-free Read in ext4_find_extent
run #3: crashed: KASAN: use-after-free Read in ext4_find_extent
run #4: crashed: KASAN: use-after-free Read in ext4_find_extent
run #5: crashed: KASAN: use-after-free Read in ext4_find_extent
run #6: crashed: KASAN: use-after-free Read in ext4_find_extent
run #7: crashed: KASAN: use-after-free Read in ext4_find_extent
run #8: crashed: KASAN: slab-out-of-bounds Read in ext4_find_extent
run #9: crashed: kernel BUG in ext4_writepages
run #10: crashed: KASAN: use-after-free Read in ext4_find_extent
run #11: crashed: KASAN: use-after-free Read in ext4_find_extent
run #12: crashed: KASAN: use-after-free Read in ext4_find_extent
run #13: crashed: KASAN: use-after-free Read in ext4_find_extent
run #14: crashed: kernel BUG in ext4_writepages
run #15: crashed: KASAN: use-after-free Read in ext4_find_extent
run #16: crashed: KASAN: use-after-free Read in ext4_find_extent
run #17: crashed: KASAN: use-after-free Read in ext4_find_extent
run #18: crashed: kernel BUG in ext4_writepages
run #19: crashed: KASAN: use-after-free Read in ext4_find_extent
representative crash: KASAN: use-after-free Read in ext4_find_extent, types: [KASAN]
check whether we can drop unnecessary instrumentation
disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed
testing commit cd94fe67fd3323953016b8193f5be75982da96c8 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: 9f988eac68b07c3a6c97093044ac8546d3e3b3a055ebe5728ceb0d364b7b590e
run #0: crashed: KASAN: use-after-free Read in ext4_find_extent
run #1: crashed: KASAN: use-after-free Read in ext4_find_extent
run #2: crashed: invalid opcode in ext4_writepages
run #3: crashed: KASAN: use-after-free Read in ext4_find_extent
run #4: crashed: KASAN: use-after-free Read in ext4_find_extent
run #5: crashed: KASAN: use-after-free Read in ext4_find_extent
run #6: crashed: KASAN: use-after-free Read in ext4_find_extent
run #7: crashed: KASAN: use-after-free Read in ext4_find_extent
run #8: crashed: KASAN: use-after-free Read in ext4_find_extent
run #9: crashed: KASAN: use-after-free Read in ext4_find_extent
representative crash: KASAN: use-after-free Read in ext4_find_extent, types: [KASAN]
the bug reproduces without the instrumentation
disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed
kconfig minimization: base=5179 full=6487 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed
testing commit cd94fe67fd3323953016b8193f5be75982da96c8 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: b3b2750634c166af313dccd6fc42061715692dcab6224d1aa11e603a8629c1a7
run #0: crashed: KASAN: use-after-free Read in ext4_find_extent
run #1: crashed: invalid opcode in ext4_writepages
run #2: crashed: invalid opcode in ext4_writepages
run #3: crashed: invalid opcode in ext4_writepages
run #4: crashed: KASAN: use-after-free Read in ext4_find_extent
run #5: crashed: KASAN: use-after-free Read in ext4_find_extent
run #6: crashed: KASAN: use-after-free Read in ext4_find_extent
run #7: crashed: KASAN: use-after-free Read in ext4_find_extent
run #8: crashed: KASAN: slab-out-of-bounds Read in ext4_find_extent
run #9: crashed: KASAN: use-after-free Read in ext4_find_extent
representative crash: KASAN: use-after-free Read in ext4_find_extent, types: [KASAN UNKNOWN]
the chunk can be dropped
testing without sub-chunk 2/5
disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed
testing commit cd94fe67fd3323953016b8193f5be75982da96c8 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: 78855c21a8558bace2c8923c360c24ae507eb11f934fe2bf0646c4eab56b9a29
run #0: crashed: KASAN: use-after-free Read in ext4_find_extent
run #1: crashed: KASAN: use-after-free Read in ext4_find_extent
run #2: crashed: KASAN: use-after-free Read in ext4_find_extent
run #3: crashed: KASAN: use-after-free Read in ext4_find_extent
run #4: crashed: invalid opcode in ext4_writepages
run #5: crashed: KASAN: use-after-free Read in ext4_find_extent
run #6: crashed: KASAN: use-after-free Read in ext4_find_extent
run #7: crashed: KASAN: use-after-free Read in ext4_find_extent
run #8: crashed: KASAN: use-after-free Read in ext4_find_extent
run #9: crashed: KASAN: use-after-free Read in ext4_find_extent
representative crash: KASAN: use-after-free Read in ext4_find_extent, types: [KASAN]
the chunk can be dropped
testing without sub-chunk 3/5
disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed
testing commit cd94fe67fd3323953016b8193f5be75982da96c8 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: 3b3e549db5dcc088c223c15aaab441a6c797f92700f9c3f95b3788cc375baf9b
run #0: crashed: KASAN: use-after-free Read in ext4_find_extent
run #1: crashed: KASAN: use-after-free Read in ext4_find_extent
run #2: crashed: KASAN: use-after-free Read in ext4_find_extent
run #3: crashed: KASAN: use-after-free Read in ext4_find_extent
run #4: crashed: KASAN: use-after-free Read in ext4_find_extent
run #5: crashed: KASAN: use-after-free Read in ext4_find_extent
run #6: crashed: KASAN: use-after-free Read in ext4_find_extent
run #7: crashed: KASAN: use-after-free Read in ext4_find_extent
run #8: crashed: invalid opcode in ext4_writepages
run #9: crashed: invalid opcode in ext4_writepages
representative crash: KASAN: use-after-free Read in ext4_find_extent, 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 cd94fe67fd3323953016b8193f5be75982da96c8 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: defb702898bffc6feb247724bfe9f5b01b45fbe077a8cb6f4f9fbf9c2d45f950
run #0: crashed: KASAN: use-after-free Read in ext4_find_extent
run #1: crashed: KASAN: use-after-free Read in ext4_find_extent
run #2: crashed: KASAN: slab-out-of-bounds Read in ext4_find_extent
run #3: crashed: KASAN: use-after-free Read in ext4_find_extent
run #4: crashed: invalid opcode in ext4_writepages
run #5: crashed: KASAN: use-after-free Read in ext4_find_extent
run #6: crashed: KASAN: use-after-free Read in ext4_find_extent
run #7: crashed: KASAN: use-after-free Read in ext4_find_extent
run #8: crashed: KASAN: use-after-free Read in ext4_find_extent
run #9: crashed: KASAN: use-after-free Read in ext4_find_extent
representative crash: KASAN: use-after-free Read in ext4_find_extent, types: [KASAN]
the chunk can be dropped
testing without sub-chunk 5/5
disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed
testing commit cd94fe67fd3323953016b8193f5be75982da96c8 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
failed building cd94fe67fd3323953016b8193f5be75982da96c8: 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 9077d52bd834bd5029d83416b43e463b5ec64871
testing commit 9077d52bd834bd5029d83416b43e463b5ec64871 gcc
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
kernel signature: 56a2c7874d204abe2cb9c8305b6187695fee752ca562c28175588d3fc9b68c66
run #0: crashed: KASAN: use-after-free Read in ext4_find_extent
run #1: crashed: invalid opcode in ext4_writepages
run #2: crashed: KASAN: use-after-free Read in ext4_find_extent
run #3: crashed: KASAN: slab-out-of-bounds Read in ext4_find_extent
run #4: crashed: KASAN: use-after-free Read in ext4_find_extent
run #5: crashed: KASAN: use-after-free Read in ext4_find_extent
run #6: crashed: KASAN: use-after-free Read in ext4_find_extent
run #7: crashed: KASAN: use-after-free Read in ext4_find_extent
run #8: crashed: KASAN: use-after-free Read in ext4_find_extent
run #9: crashed: KASAN: slab-out-of-bounds Read in ext4_find_extent
representative crash: KASAN: use-after-free Read in ext4_find_extent, types: [KASAN]
crash still not fixed/happens on the oldest tested release
revisions tested: 7, total time: 1h3m45.502209389s (build: 24m38.351457745s, test: 33m42.389716343s)
crash still not fixed or there were kernel test errors
commit msg: ANDROID: GKI: Update symbol list for BCMSTB
crash: KASAN: use-after-free Read in ext4_find_extent
==================================================================
BUG: KASAN: use-after-free in ext4_ext_binsearch fs/ext4/extents.c:837 [inline]
BUG: KASAN: use-after-free in ext4_find_extent+0xb60/0xd10 fs/ext4/extents.c:953
Read of size 4 at addr ffff888124583fb4 by task kworker/u4:1/10
CPU: 1 PID: 10 Comm: kworker/u4:1 Not tainted 6.1.90-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Workqueue: writeback wb_workfn (flush-7:0)
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x105/0x148 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:316 [inline]
print_report+0x158/0x4e0 mm/kasan/report.c:427
kasan_report+0x13c/0x170 mm/kasan/report.c:531
__asan_report_load4_noabort+0x14/0x20 mm/kasan/report_generic.c:350
ext4_ext_binsearch fs/ext4/extents.c:837 [inline]
ext4_find_extent+0xb60/0xd10 fs/ext4/extents.c:953
ext4_ext_map_blocks+0x260/0x64e0 fs/ext4/extents.c:4142
ext4_map_blocks+0x821/0x1890 fs/ext4/inode.c:651
mpage_map_one_extent fs/ext4/inode.c:2423 [inline]
mpage_map_and_submit_extent fs/ext4/inode.c:2476 [inline]
ext4_writepages+0x13f4/0x3120 fs/ext4/inode.c:2844
do_writepages+0x338/0x5b0 mm/page-writeback.c:2472
__writeback_single_inode+0x73/0x7a0 fs/fs-writeback.c:1612
writeback_sb_inodes+0x881/0x1500 fs/fs-writeback.c:1903
wb_writeback+0x357/0x810 fs/fs-writeback.c:2077
wb_do_writeback fs/fs-writeback.c:2220 [inline]
wb_workfn+0x37d/0xdf0 fs/fs-writeback.c:2260
process_one_work+0x6de/0xd00 kernel/workqueue.c:2299
worker_thread+0x892/0xf20 kernel/workqueue.c:2446
kthread+0x215/0x270 kernel/kthread.c:386
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
The buggy address belongs to the physical page:
page:ffffea00049160c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x124583
flags: 0x4000000000000000(zone=1)
raw: 4000000000000000 ffffea0004916108 ffffea0004916088 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x141cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_WRITE), pid 610, tgid 609 (syz-executor.0), ts 62649081075, free_ts 62694341386
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook mm/page_alloc.c:2590 [inline]
prep_new_page+0x512/0x5e0 mm/page_alloc.c:2597
get_page_from_freelist+0x288b/0x2910 mm/page_alloc.c:4425
__alloc_pages+0x39f/0x780 mm/page_alloc.c:5714
__folio_alloc+0x15/0x40 mm/page_alloc.c:5746
__folio_alloc_node include/linux/gfp.h:245 [inline]
folio_alloc include/linux/gfp.h:274 [inline]
filemap_alloc_folio include/linux/pagemap.h:507 [inline]
__filemap_get_folio+0x53b/0x6a0 mm/filemap.c:1983
pagecache_get_page+0x15/0xb0 mm/folio-compat.c:110
grab_cache_page_write_begin+0x3d/0x60 mm/folio-compat.c:122
ext4_write_begin+0x201/0xe00 fs/ext4/inode.c:1197
ext4_da_write_begin+0x397/0x6f0 fs/ext4/inode.c:2989
generic_perform_write+0x2ee/0x520 mm/filemap.c:3838
ext4_buffered_write_iter+0x2d8/0x540 fs/ext4/file.c:285
ext4_file_write_iter+0x195/0x1200
call_write_iter include/linux/fs.h:2274 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0xa13/0xd40 fs/read_write.c:584
ksys_write+0x15c/0x240 fs/read_write.c:637
__do_sys_write fs/read_write.c:649 [inline]
__se_sys_write fs/read_write.c:646 [inline]
__x64_sys_write+0x76/0x80 fs/read_write.c:646
x64_sys_call+0x2f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2
page last free stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
free_pages_prepare mm/page_alloc.c:1498 [inline]
free_pcp_prepare mm/page_alloc.c:1572 [inline]
free_unref_page_prepare+0x794/0x7a0 mm/page_alloc.c:3498
free_unref_page_list+0xf1/0x790 mm/page_alloc.c:3646
release_pages+0xcfc/0xd50 mm/swap.c:1063
__pagevec_release+0x66/0xe0 mm/swap.c:1083
pagevec_release include/linux/pagevec.h:71 [inline]
folio_batch_release include/linux/pagevec.h:135 [inline]
truncate_inode_pages_range+0x3ab/0xc50 mm/truncate.c:374
truncate_inode_pages mm/truncate.c:456 [inline]
truncate_inode_pages_final+0x72/0x80 mm/truncate.c:495
ext4_evict_inode+0x229/0x1320 fs/ext4/inode.c:210
evict+0x262/0x620 fs/inode.c:666
dispose_list fs/inode.c:699 [inline]
evict_inodes+0x522/0x590 fs/inode.c:749
generic_shutdown_super+0x92/0x2d0 fs/super.c:482
kill_block_super+0x79/0xb0 fs/super.c:1461
deactivate_locked_super+0x7d/0xe0 fs/super.c:334
deactivate_super+0x5d/0x80 fs/super.c:365
cleanup_mnt+0x31e/0x390 fs/namespace.c:1186
__cleanup_mnt+0xd/0x10 fs/namespace.c:1193
task_work_run+0x208/0x260 kernel/task_work.c:179
Memory state around the buggy address:
ffff888124583e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888124583f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888124583f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888124584000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888124584080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 10 Comm: kworker/u4:1 Tainted: G B 6.1.90-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Workqueue: writeback wb_workfn (flush-7:0)
RIP: 0010:mpage_map_one_extent fs/ext4/inode.c:2435 [inline]
RIP: 0010:mpage_map_and_submit_extent fs/ext4/inode.c:2476 [inline]
RIP: 0010:ext4_writepages+0x310e/0x3120 fs/ext4/inode.c:2844
Code: e9 45 89 f0 e8 73 da 06 00 65 ff 0d 54 1b 30 7e 49 bf 00 00 00 00 00 fc ff df 0f 85 7e fb ff ff e8 9f 1c 2e ff e9 74 fb ff ff <0f> 0b 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5
RSP: 0018:ffffc900000a7060 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 000000000000042b RCX: 1ffff92000014e6a
RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001
RBP: ffffc900000a7450 R08: dffffc0000000000 R09: ffffed10215ed470
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888119df2eb0
R13: ffffc900000a7320 R14: ffff88810af6a3b8 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc07ba9c18 CR3: 000000011a480000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
do_writepages+0x338/0x5b0 mm/page-writeback.c:2472
__writeback_single_inode+0x73/0x7a0 fs/fs-writeback.c:1612
writeback_sb_inodes+0x881/0x1500 fs/fs-writeback.c:1903
wb_writeback+0x357/0x810 fs/fs-writeback.c:2077
wb_do_writeback fs/fs-writeback.c:2220 [inline]
wb_workfn+0x37d/0xdf0 fs/fs-writeback.c:2260
process_one_work+0x6de/0xd00 kernel/workqueue.c:2299
worker_thread+0x892/0xf20 kernel/workqueue.c:2446
kthread+0x215/0x270 kernel/kthread.c:386
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:mpage_map_one_extent fs/ext4/inode.c:2435 [inline]
RIP: 0010:mpage_map_and_submit_extent fs/ext4/inode.c:2476 [inline]
RIP: 0010:ext4_writepages+0x310e/0x3120 fs/ext4/inode.c:2844
Code: e9 45 89 f0 e8 73 da 06 00 65 ff 0d 54 1b 30 7e 49 bf 00 00 00 00 00 fc ff df 0f 85 7e fb ff ff e8 9f 1c 2e ff e9 74 fb ff ff <0f> 0b 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5
RSP: 0018:ffffc900000a7060 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 000000000000042b RCX: 1ffff92000014e6a
RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001
RBP: ffffc900000a7450 R08: dffffc0000000000 R09: ffffed10215ed470
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888119df2eb0
R13: ffffc900000a7320 R14: ffff88810af6a3b8 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020029000 CR3: 000000010e9b7000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400