ci2 starts bisection 2024-07-06 11:23:04.421106513 +0000 UTC m=+94731.081595458 bisecting fixing commit since 4d55129aea65ac23a34b9053f3f1ee4d92883032 building syzkaller on 9026e14289eaf45a00ddddb8730f2092b956d99a ensuring issue is reproducible on original commit 4d55129aea65ac23a34b9053f3f1ee4d92883032 testing commit 4d55129aea65ac23a34b9053f3f1ee4d92883032 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 18dbf23c488191ac7bc76a3d3c21d09773128b41f1e2985417c77f4ebd54d945 all runs: crashed: KASAN: out-of-bounds Read in ext4_xattr_set_entry representative crash: KASAN: out-of-bounds Read in ext4_xattr_set_entry, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 4d55129aea65ac23a34b9053f3f1ee4d92883032 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 33578a6dda9eeeab308270efc89a8eef9582e8d7dd387d512d8231c549809ccd all runs: crashed: KASAN: out-of-bounds Read in ext4_xattr_set_entry representative crash: KASAN: out-of-bounds Read in ext4_xattr_set_entry, 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=6494 leaves diff=257 split chunks (needed=false): <257> split chunk #0 of len 257 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 4d55129aea65ac23a34b9053f3f1ee4d92883032 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4c910450296094c41d753b2e5c9b659991275636d587a3e01adb157678d13aee all runs: crashed: KASAN: out-of-bounds Read in ext4_xattr_set_entry representative crash: KASAN: out-of-bounds Read in ext4_xattr_set_entry, types: [KASAN] 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 4d55129aea65ac23a34b9053f3f1ee4d92883032 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 39e241ad7f76233c3413dd4f6b1691ff1f2bef4f784add9598660ceb575ba928 all runs: crashed: KASAN: out-of-bounds Read in ext4_xattr_set_entry representative crash: KASAN: out-of-bounds Read in ext4_xattr_set_entry, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 4d55129aea65ac23a34b9053f3f1ee4d92883032 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5645181dacfaea28dcb3537b7db89c87839f4c77aca05426ccfc8cb678bca3cc all runs: crashed: KASAN: out-of-bounds Read in ext4_xattr_set_entry representative crash: KASAN: out-of-bounds Read in ext4_xattr_set_entry, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 4d55129aea65ac23a34b9053f3f1ee4d92883032 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: af0720455089d7247e5a45a8af5a690aca30d7422e677dfbe66933d082e8474a all runs: crashed: KASAN: out-of-bounds Read in ext4_xattr_set_entry representative crash: KASAN: out-of-bounds Read in ext4_xattr_set_entry, 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 4d55129aea65ac23a34b9053f3f1ee4d92883032 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 failed building 4d55129aea65ac23a34b9053f3f1ee4d92883032: net/socket.c:1245: undefined reference to `wext_handle_ioctl' net/socket.c:3442: 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 49 configs; suspects: [HID_ZEROPLUS 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 V4L2_ASYNC V4L2_FWNODE VIDEO_CAMERA_SENSOR 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 [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing current HEAD ce6f9cab9edca2712f312476ddc137f18c8ecfff testing commit ce6f9cab9edca2712f312476ddc137f18c8ecfff gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 50105d252bdc2e13ec7a23fbcfbd5ae16fe35f4a2dec9b9d7f1ea559957582f1 all runs: crashed: KASAN: out-of-bounds Read in ext4_xattr_set_entry representative crash: KASAN: out-of-bounds Read in ext4_xattr_set_entry, types: [KASAN] crash still not fixed/happens on the oldest tested release revisions tested: 7, total time: 1h3m56.135246308s (build: 23m28.898461516s, test: 35m41.045754093s) crash still not fixed or there were kernel test errors commit msg: ANDROID: GKI: Update symbol list for mtk crash: KASAN: out-of-bounds Read in ext4_xattr_set_entry loop0: detected capacity change from 0 to 512 ================================================================== BUG: KASAN: out-of-bounds in ext4_xattr_set_entry+0x19b6/0x36c0 fs/ext4/xattr.c:1732 Read of size 18446744073709551584 at addr ffff88811b8f5fc8 by task syz-executor.0/3094 CPU: 0 PID: 3094 Comm: syz-executor.0 Not tainted 6.1.84-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 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 kasan_check_range+0x294/0x2a0 mm/kasan/generic.c:189 memmove+0x2d/0x70 mm/kasan/shadow.c:54 ext4_xattr_set_entry+0x19b6/0x36c0 fs/ext4/xattr.c:1732 ext4_xattr_ibody_set+0xf6/0x320 fs/ext4/xattr.c:2237 ext4_xattr_move_to_block fs/ext4/xattr.c:2624 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2692 [inline] ext4_expand_extra_isize_ea+0x108c/0x1bf0 fs/ext4/xattr.c:2784 __ext4_expand_extra_isize+0x20f/0x390 fs/ext4/inode.c:5921 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5964 [inline] __ext4_mark_inode_dirty+0x3ab/0x630 fs/ext4/inode.c:6042 ext4_inline_data_truncate+0x41e/0xba0 fs/ext4/inline.c:2031 ext4_truncate+0x463/0xe50 fs/ext4/inode.c:4235 ext4_process_orphan+0x190/0x2c0 fs/ext4/orphan.c:339 ext4_orphan_cleanup+0x88a/0xed0 fs/ext4/orphan.c:474 __ext4_fill_super fs/ext4/super.c:5520 [inline] ext4_fill_super+0x689e/0x71b0 fs/ext4/super.c:5651 get_tree_bdev+0x3c1/0x5e0 fs/super.c:1357 ext4_get_tree+0x10/0x20 fs/ext4/super.c:5681 vfs_get_tree+0x7c/0x170 fs/super.c:1564 do_new_mount+0x21a/0x900 fs/namespace.c:3051 path_mount+0x612/0xbe0 fs/namespace.c:3381 do_mount fs/namespace.c:3394 [inline] __do_sys_mount fs/namespace.c:3602 [inline] __se_sys_mount+0x23e/0x2d0 fs/namespace.c:3579 __x64_sys_mount+0xba/0xd0 fs/namespace.c:3579 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc32627f46a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007fc326f88ef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fc326f88f80 RCX: 00007fc32627f46a RDX: 0000000020000180 RSI: 00000000200000c0 RDI: 00007fc326f88f40 RBP: 0000000020000180 R08: 00007fc326f88f80 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000200000c0 R13: 00007fc326f88f40 R14: 000000000000046a R15: 0000000020000300 The buggy address belongs to the physical page: page:ffffea00046e3d40 refcount:3 mapcount:1 mapping:ffff888100549c50 index:0x1 pfn:0x11b8f5 memcg:ffff888121a16000 aops:def_blk_aops ino:700000 flags: 0x660000000002205e(referenced|uptodate|dirty|lru|workingset|private|mappedtodisk|zone=1) raw: 660000000002205e ffff888121bbc290 ffffea0004673908 ffff888100549c50 raw: 0000000000000001 ffff8881251570a8 0000000300000000 ffff888121a16000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x152c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 3095, tgid 3093 (syz-executor.0), ts 68269910177, free_ts 68261907144 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] page_cache_ra_unbounded+0x283/0x5f0 mm/readahead.c:259 do_page_cache_ra mm/readahead.c:311 [inline] page_cache_ra_order+0x5fe/0x880 mm/readahead.c:571 do_sync_mmap_readahead+0x4c6/0xc70 filemap_fault+0x6e1/0xec0 mm/filemap.c:3220 __do_fault mm/memory.c:4335 [inline] do_read_fault mm/memory.c:4694 [inline] do_fault+0x686/0x16b0 mm/memory.c:4830 handle_pte_fault mm/memory.c:5127 [inline] __handle_mm_fault mm/memory.c:5269 [inline] handle_mm_fault+0x123b/0x2550 mm/memory.c:5409 faultin_page mm/gup.c:1009 [inline] __get_user_pages+0x28a/0xb60 mm/gup.c:1233 populate_vma_page_range mm/gup.c:1590 [inline] __mm_populate+0x280/0x400 mm/gup.c:1704 mm_populate include/linux/mm.h:3052 [inline] vm_mmap_pgoff+0x2fb/0x380 mm/util.c:530 ksys_mmap_pgoff+0xbc/0x140 mm/mmap.c:1521 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0x103/0x120 arch/x86/kernel/sys_x86_64.c:86 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 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+0xb2/0x5b0 mm/page_alloc.c:3594 free_the_page mm/page_alloc.c:798 [inline] __free_pages+0x67/0xd0 mm/page_alloc.c:5803 free_pages+0x7c/0x90 mm/page_alloc.c:5814 tlb_batch_list_free mm/mmu_gather.c:75 [inline] tlb_finish_mmu+0x322/0x3b0 mm/mmu_gather.c:364 unmap_region+0x2a3/0x300 mm/mmap.c:2405 do_mas_align_munmap+0xb63/0x1150 mm/mmap.c:2672 do_mas_munmap+0x199/0x1e0 mm/mmap.c:2730 __vm_munmap+0x24e/0x360 mm/mmap.c:3020 __do_sys_munmap mm/mmap.c:3046 [inline] __se_sys_munmap mm/mmap.c:3042 [inline] __x64_sys_munmap+0x66/0x70 mm/mmap.c:3042 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff88811b8f5e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811b8f5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811b8f5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88811b8f6000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88811b8f6080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs error (device loop0): ext4_xattr_ibody_find:2213: inode #12: comm syz-executor.0: corrupted in-inode xattr EXT4-fs warning (device loop0): ext4_xattr_set_entry:1745: inode #12: comm syz-executor.0: unable to update i_inline_off EXT4-fs warning (device loop0): ext4_expand_extra_isize_ea:2810: Unable to expand inode 12. Delete some EAs or run e2fsck. EXT4-fs (loop0): 1 truncate cleaned up EXT4-fs (loop0): mounted filesystem without journal. Quota mode: writeback.