ci starts bisection 2023-01-25 03:44:07.067980625 +0000 UTC m=+203561.014042719 bisecting fixing commit since b357fd1c2afc1a3e1b73dc4574bb7ac0e3bd4193 building syzkaller on feb5635181eb12a6e3516172a3f5af06a3bc93e1 ensuring issue is reproducible on original commit b357fd1c2afc1a3e1b73dc4574bb7ac0e3bd4193 testing commit b357fd1c2afc1a3e1b73dc4574bb7ac0e3bd4193 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9b9ae770deea7e9e55d53ad53840716c0fc4f61cf26a2ab85c6023adb3dfc4d4 all runs: crashed: KASAN: slab-out-of-bounds Read in ea_get testing current HEAD 7c46948a6e9cf47ed03b0d489fde894ad46f1437 testing commit 7c46948a6e9cf47ed03b0d489fde894ad46f1437 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8af51c80466153b9ee9ab4492f2a464bfb967062d27ff49377bace3c2b586167 all runs: crashed: KASAN: slab-out-of-bounds Read in ea_get revisions tested: 2, total time: 20m52.254957713s (build: 13m35.483550606s, test: 6m31.856633195s) the crash still happens on HEAD commit msg: Merge tag 'fs.fuse.acl.v6.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/idmapping crash: KASAN: slab-out-of-bounds Read in ea_get ffff88806fa859f0: e8 59 a8 6f 80 88 ff ff 00 00 00 00 00 00 00 00 .Y.o............ ffff88806fa85a00: 00 5a a8 6f 80 88 ff ff 00 5a a8 6f 80 88 ff ff .Z.o.....Z.o.... ffff88806fa85a10: 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................ ffff88806fa85a20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff88806fa85a30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ================================================================== BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0x909/0xc10 lib/hexdump.c:193 Read of size 1 at addr ffff88806fa85a40 by task syz-executor.0/5572 CPU: 0 PID: 5572 Comm: syz-executor.0 Not tainted 6.2.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106 print_address_description mm/kasan/report.c:306 [inline] print_report+0x15e/0x461 mm/kasan/report.c:417 kasan_report+0xbb/0x1f0 mm/kasan/report.c:517 hex_dump_to_buffer+0x909/0xc10 lib/hexdump.c:193 print_hex_dump+0xf7/0x180 lib/hexdump.c:276 ea_get.cold+0xa8/0x269 fs/jfs/xattr.c:561 __jfs_getxattr+0xba/0x330 fs/jfs/xattr.c:807 jfs_xattr_get+0x27/0x30 fs/jfs/xattr.c:931 __vfs_getxattr+0xe6/0x140 fs/xattr.c:425 inode_doinit_use_xattr+0xab/0x2b0 security/selinux/hooks.c:1321 inode_doinit_with_dentry+0xaee/0x11b0 security/selinux/hooks.c:1443 security_d_instantiate+0x41/0xb0 security/security.c:2138 d_splice_alias+0x68/0xbf0 fs/dcache.c:3146 jfs_lookup+0x1a5/0x260 fs/jfs/namei.c:1467 lookup_open.isra.0+0x649/0x1460 fs/namei.c:3391 open_last_lookups fs/namei.c:3481 [inline] path_openat+0x795/0x2290 fs/namei.c:3711 do_filp_open+0x1a5/0x3d0 fs/namei.c:3741 do_sys_openat2+0x11e/0x3f0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0xfd/0x1a0 fs/open.c:1330 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1f2e28a5a9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1f2f4a3168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f1f2e3abf80 RCX: 00007f1f2e28a5a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007f1f2e2e5580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff8069cd7f R14: 00007f1f2f4a3300 R15: 0000000000022000 Allocated by task 5572: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:45 kasan_set_track+0x21/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x7b/0x80 mm/kasan/common.c:325 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slab.h:761 [inline] slab_alloc_node mm/slab.c:3263 [inline] slab_alloc mm/slab.c:3272 [inline] __kmem_cache_alloc_lru mm/slab.c:3449 [inline] kmem_cache_alloc_lru+0x245/0x7b0 mm/slab.c:3465 alloc_inode_sb include/linux/fs.h:3119 [inline] jfs_alloc_inode+0x1a/0x50 fs/jfs/super.c:105 alloc_inode+0x56/0x1e0 fs/inode.c:259 iget_locked+0x14d/0x5f0 fs/inode.c:1286 jfs_iget+0xd/0x420 fs/jfs/inode.c:29 jfs_lookup+0x1d5/0x260 fs/jfs/namei.c:1462 lookup_open.isra.0+0x649/0x1460 fs/namei.c:3391 open_last_lookups fs/namei.c:3481 [inline] path_openat+0x795/0x2290 fs/namei.c:3711 do_filp_open+0x1a5/0x3d0 fs/namei.c:3741 do_sys_openat2+0x11e/0x3f0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0xfd/0x1a0 fs/open.c:1330 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88806fa85180 which belongs to the cache jfs_ip of size 2240 The buggy address is located 0 bytes to the right of 2240-byte region [ffff88806fa85180, ffff88806fa85a40) The buggy address belongs to the physical page: page:ffffea0001bea140 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88806fa85fff pfn:0x6fa85 memcg:ffff88801fe60d81 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffff888145cea300 ffffea0001beec50 ffff88801a237950 raw: ffff88806fa85fff ffff88806fa85180 0000000100000001 ffff88801fe60d81 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Reclaimable, gfp_mask 0x342050(__GFP_IO|__GFP_NOWARN|__GFP_COMP|__GFP_HARDWALL|__GFP_THISNODE|__GFP_RECLAIMABLE), pid 5572, tgid 5571 (syz-executor.0), ts 88593652133, free_ts 88469976956 prep_new_page mm/page_alloc.c:2531 [inline] get_page_from_freelist+0x119c/0x2ce0 mm/page_alloc.c:4283 __alloc_pages+0x1c7/0x5a0 mm/page_alloc.c:5549 __alloc_pages_node include/linux/gfp.h:237 [inline] kmem_getpages mm/slab.c:1363 [inline] cache_grow_begin+0x94/0x390 mm/slab.c:2576 cache_alloc_refill+0x27f/0x380 mm/slab.c:2949 ____cache_alloc mm/slab.c:3025 [inline] ____cache_alloc mm/slab.c:3008 [inline] __do_cache_alloc mm/slab.c:3208 [inline] slab_alloc_node mm/slab.c:3256 [inline] slab_alloc mm/slab.c:3272 [inline] __kmem_cache_alloc_lru mm/slab.c:3449 [inline] kmem_cache_alloc_lru+0x65c/0x7b0 mm/slab.c:3465 alloc_inode_sb include/linux/fs.h:3119 [inline] jfs_alloc_inode+0x1a/0x50 fs/jfs/super.c:105 alloc_inode+0x56/0x1e0 fs/inode.c:259 iget_locked+0x14d/0x5f0 fs/inode.c:1286 jfs_iget+0xd/0x420 fs/jfs/inode.c:29 jfs_lookup+0x1d5/0x260 fs/jfs/namei.c:1462 lookup_open.isra.0+0x649/0x1460 fs/namei.c:3391 open_last_lookups fs/namei.c:3481 [inline] path_openat+0x795/0x2290 fs/namei.c:3711 do_filp_open+0x1a5/0x3d0 fs/namei.c:3741 do_sys_openat2+0x11e/0x3f0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0xfd/0x1a0 fs/open.c:1330 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1446 [inline] free_pcp_prepare+0x65c/0xc00 mm/page_alloc.c:1496 free_unref_page_prepare mm/page_alloc.c:3369 [inline] free_unref_page+0x19/0x480 mm/page_alloc.c:3464 slab_destroy mm/slab.c:1619 [inline] slabs_destroy+0x85/0xc0 mm/slab.c:1639 cache_flusharray mm/slab.c:3367 [inline] ___cache_free+0x2a8/0x3d0 mm/slab.c:3430 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x4f/0x1a0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x18e/0x220 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x5f/0x80 mm/kasan/common.c:302 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slab.h:761 [inline] slab_alloc_node mm/slab.c:3263 [inline] slab_alloc mm/slab.c:3272 [inline] __kmem_cache_alloc_lru mm/slab.c:3449 [inline] kmem_cache_alloc+0x21d/0x450 mm/slab.c:3458 mt_alloc_one lib/maple_tree.c:152 [inline] mas_alloc_nodes+0x34b/0x670 lib/maple_tree.c:1231 mas_node_count_gfp lib/maple_tree.c:1315 [inline] mas_preallocate+0x234/0x300 lib/maple_tree.c:5724 do_mas_align_munmap+0x10e/0xdb0 mm/mmap.c:2314 do_mas_munmap+0x1b6/0x200 mm/mmap.c:2502 mmap_region+0x1df/0x1a60 mm/mmap.c:2550 do_mmap+0x5a6/0xd30 mm/mmap.c:1411 vm_mmap_pgoff+0x160/0x210 mm/util.c:520 ksys_mmap_pgoff+0x2df/0x490 mm/mmap.c:1457 Memory state around the buggy address: ffff88806fa85900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806fa85980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806fa85a00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88806fa85a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806fa85b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================