ci starts bisection 2023-04-26 20:34:10.197895106 +0000 UTC m=+27193.872155016 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: 1ce0ec4a6c6444e75222b60341345dc7a3f9cf33645dcbe727826dedb8eb366a all runs: crashed: KASAN: slab-out-of-bounds Read in ea_get testing current HEAD 36006b1d5c04692924f011aa949e8788f1c604de testing commit 36006b1d5c04692924f011aa949e8788f1c604de gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: be4b67fedd8669042e1cc18789def198d812ac30e43e2811521e9a184ca5315b all runs: crashed: KASAN: slab-out-of-bounds Read in ea_get revisions tested: 2, total time: 21m1.537351447s (build: 12m59.365924997s, test: 7m22.109416018s) the crash still happens on HEAD commit msg: Merge tag 'ata-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata crash: KASAN: slab-out-of-bounds Read in ea_get ffff888070557a00: 00 7a 55 70 80 88 ff ff 00 7a 55 70 80 88 ff ff .zUp.....zUp.... ffff888070557a10: 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................ ffff888070557a20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff888070557a30: 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 ffff888070557a40 by task syz-executor.0/5409 CPU: 1 PID: 5409 Comm: syz-executor.0 Not tainted 6.3.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x60/0xa0 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:319 print_report mm/kasan/report.c:430 [inline] kasan_report+0x118/0x130 mm/kasan/report.c:536 hex_dump_to_buffer+0x909/0xc10 lib/hexdump.c:193 print_hex_dump+0x12e/0x1e0 lib/hexdump.c:276 ea_get+0x5b7/0x14b0 fs/jfs/xattr.c:561 __jfs_getxattr+0xbb/0x310 fs/jfs/xattr.c:807 jfs_xattr_get+0x27/0x30 fs/jfs/xattr.c:931 __vfs_getxattr+0xe6/0x140 fs/xattr.c:424 inode_doinit_use_xattr+0xab/0x370 security/selinux/hooks.c:1311 inode_doinit_with_dentry+0xb24/0x12e0 security/selinux/hooks.c:1433 security_d_instantiate+0x41/0xb0 security/security.c:3760 d_splice_alias+0x68/0xcc0 fs/dcache.c:3146 jfs_lookup+0x1a1/0x2a0 fs/jfs/namei.c:1467 lookup_open.isra.0+0x844/0x1510 fs/namei.c:3394 open_last_lookups fs/namei.c:3484 [inline] path_openat+0x7ad/0x2280 fs/namei.c:3712 do_filp_open+0x1a5/0x3d0 fs/namei.c:3742 do_sys_openat2+0x11e/0x3f0 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_open fs/open.c:1380 [inline] __se_sys_open fs/open.c:1376 [inline] __x64_sys_open+0xfd/0x1a0 fs/open.c:1376 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:0x7ff6f408a5a9 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:00007ff6f511f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ff6f41abf80 RCX: 00007ff6f408a5a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007ff6f40e5580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd26b24c4f R14: 00007ff6f511f300 R15: 0000000000022000 Allocated by task 5409: 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:328 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook mm/slab.h:710 [inline] slab_alloc_node mm/slab.c:3257 [inline] slab_alloc mm/slab.c:3266 [inline] __kmem_cache_alloc_lru mm/slab.c:3443 [inline] kmem_cache_alloc_lru+0x1df/0x640 mm/slab.c:3459 alloc_inode_sb include/linux/fs.h:2691 [inline] jfs_alloc_inode+0x1a/0x50 fs/jfs/super.c:105 alloc_inode+0x56/0x1e0 fs/inode.c:260 iget_locked+0x14d/0x5f0 fs/inode.c:1287 jfs_iget+0xd/0x420 fs/jfs/inode.c:29 jfs_lookup+0x1fa/0x2a0 fs/jfs/namei.c:1462 lookup_open.isra.0+0x844/0x1510 fs/namei.c:3394 open_last_lookups fs/namei.c:3484 [inline] path_openat+0x7ad/0x2280 fs/namei.c:3712 do_filp_open+0x1a5/0x3d0 fs/namei.c:3742 do_sys_openat2+0x11e/0x3f0 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_open fs/open.c:1380 [inline] __se_sys_open fs/open.c:1376 [inline] __x64_sys_open+0xfd/0x1a0 fs/open.c:1376 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 ffff888070557180 which belongs to the cache jfs_ip of size 2240 The buggy address is located 0 bytes to the right of allocated 2240-byte region [ffff888070557180, ffff888070557a40) The buggy address belongs to the physical page: page:ffffea0001c155c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888070557fff pfn:0x70557 memcg:ffff888016365b81 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffff888019357d00 ffffea0001c15590 ffff888019359650 raw: ffff888070557fff ffff888070557180 0000000100000001 ffff888016365b81 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 5409, tgid 5408 (syz-executor.0), ts 84847233978, free_ts 67456047955 prep_new_page mm/page_alloc.c:2553 [inline] get_page_from_freelist+0x1190/0x2e20 mm/page_alloc.c:4326 __alloc_pages+0x1c7/0x490 mm/page_alloc.c:5592 __alloc_pages_node include/linux/gfp.h:237 [inline] kmem_getpages mm/slab.c:1360 [inline] cache_grow_begin+0x9b/0x3b0 mm/slab.c:2570 cache_alloc_refill+0x27f/0x380 mm/slab.c:2943 ____cache_alloc mm/slab.c:3019 [inline] ____cache_alloc mm/slab.c:3002 [inline] __do_cache_alloc mm/slab.c:3202 [inline] slab_alloc_node mm/slab.c:3250 [inline] slab_alloc mm/slab.c:3266 [inline] __kmem_cache_alloc_lru mm/slab.c:3443 [inline] kmem_cache_alloc_lru+0x53c/0x640 mm/slab.c:3459 alloc_inode_sb include/linux/fs.h:2691 [inline] jfs_alloc_inode+0x1a/0x50 fs/jfs/super.c:105 alloc_inode+0x56/0x1e0 fs/inode.c:260 iget_locked+0x14d/0x5f0 fs/inode.c:1287 jfs_iget+0xd/0x420 fs/jfs/inode.c:29 jfs_lookup+0x1fa/0x2a0 fs/jfs/namei.c:1462 lookup_open.isra.0+0x844/0x1510 fs/namei.c:3394 open_last_lookups fs/namei.c:3484 [inline] path_openat+0x7ad/0x2280 fs/namei.c:3712 do_filp_open+0x1a5/0x3d0 fs/namei.c:3742 do_sys_openat2+0x11e/0x3f0 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_open fs/open.c:1380 [inline] __se_sys_open fs/open.c:1376 [inline] __x64_sys_open+0xfd/0x1a0 fs/open.c:1376 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:1454 [inline] free_pcp_prepare+0x5c7/0xa30 mm/page_alloc.c:1504 free_unref_page_prepare mm/page_alloc.c:3388 [inline] free_unref_page+0x19/0x480 mm/page_alloc.c:3483 slab_destroy mm/slab.c:1613 [inline] slabs_destroy+0x85/0xc0 mm/slab.c:1633 cache_flusharray mm/slab.c:3361 [inline] ___cache_free+0x2aa/0x3d0 mm/slab.c:3424 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x4f/0x1a0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x191/0x220 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x5f/0x80 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook mm/slab.h:710 [inline] slab_alloc_node mm/slab.c:3257 [inline] slab_alloc mm/slab.c:3266 [inline] __kmem_cache_alloc_lru mm/slab.c:3443 [inline] kmem_cache_alloc+0x1b5/0x3f0 mm/slab.c:3452 mt_alloc_one lib/maple_tree.c:159 [inline] mas_alloc_nodes+0x3b2/0x700 lib/maple_tree.c:1287 mas_node_count_gfp lib/maple_tree.c:1367 [inline] mas_preallocate+0x232/0x300 lib/maple_tree.c:5806 vma_iter_prealloc mm/internal.h:972 [inline] vma_expand+0x1ef/0x8d0 mm/mmap.c:683 shift_arg_pages+0x16e/0x3a0 fs/exec.c:702 setup_arg_pages+0x400/0x8b0 fs/exec.c:831 load_elf_binary+0x83d/0x4430 fs/binfmt_elf.c:1018 search_binary_handler fs/exec.c:1736 [inline] exec_binprm fs/exec.c:1778 [inline] bprm_execve fs/exec.c:1853 [inline] bprm_execve+0x677/0x14f0 fs/exec.c:1809 do_execveat_common+0x602/0x800 fs/exec.c:1960 Memory state around the buggy address: ffff888070557900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888070557980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888070557a00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff888070557a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888070557b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================