ci starts bisection 2023-02-25 04:31:53.334166026 +0000 UTC m=+52837.536743945 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: e176f5256c6223699b8269bbf849a37d09232c5e774656e06c6fb172c63c1a45 all runs: crashed: KASAN: slab-out-of-bounds Read in ea_get testing current HEAD 489fa31ea873282b41046d412ec741f93946fc2d testing commit 489fa31ea873282b41046d412ec741f93946fc2d gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9ad36577993ceabfce610eb4c8491221f57454c792979ad00d3840ae6779dd92 run #0: basic kernel testing failed: BUG: program execution failed: executor NUM: failed to write control pipe: write |NUM: broken pipe run #1: crashed: KASAN: slab-out-of-bounds Read in ea_get run #2: crashed: KASAN: slab-out-of-bounds Read in ea_get run #3: crashed: KASAN: slab-out-of-bounds Read in ea_get run #4: crashed: KASAN: slab-out-of-bounds Read in ea_get run #5: crashed: KASAN: slab-out-of-bounds Read in ea_get run #6: crashed: KASAN: slab-out-of-bounds Read in ea_get run #7: crashed: KASAN: slab-out-of-bounds Read in ea_get run #8: crashed: KASAN: slab-out-of-bounds Read in ea_get run #9: crashed: KASAN: slab-out-of-bounds Read in ea_get revisions tested: 2, total time: 20m40.233113115s (build: 13m19.576358849s, test: 6m42.242877169s) the crash still happens on HEAD commit msg: Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs crash: KASAN: slab-out-of-bounds Read in ea_get ffff88806f6bca10: 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................ ffff88806f6bca20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff88806f6bca30: 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 ffff88806f6bca40 by task syz-executor.0/5591 CPU: 0 PID: 5591 Comm: syz-executor.0 Not tainted 6.2.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/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:426 inode_doinit_use_xattr+0xab/0x380 security/selinux/hooks.c:1321 inode_doinit_with_dentry+0xaee/0x11b0 security/selinux/hooks.c:1443 security_d_instantiate+0x41/0xb0 security/security.c:2139 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:1312 do_sys_open fs/open.c:1328 [inline] __do_sys_open fs/open.c:1336 [inline] __se_sys_open fs/open.c:1332 [inline] __x64_sys_open+0xfd/0x1a0 fs/open.c:1332 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:0x7f3d81e8a5a9 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:00007f3d82f89168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f3d81fabf80 RCX: 00007f3d81e8a5a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007f3d81ee5580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffe5a7453f R14: 00007f3d82f89300 R15: 0000000000022000 Allocated by task 5591: 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:769 [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+0x1e5/0x5d0 mm/slab.c:3459 alloc_inode_sb include/linux/fs.h:2686 [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:1312 do_sys_open fs/open.c:1328 [inline] __do_sys_open fs/open.c:1336 [inline] __se_sys_open fs/open.c:1332 [inline] __x64_sys_open+0xfd/0x1a0 fs/open.c:1332 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 ffff88806f6bc180 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 [ffff88806f6bc180, ffff88806f6bca40) The buggy address belongs to the physical page: page:ffffea0001bdaf00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88806f6bcfff pfn:0x6f6bc memcg:ffff88802a5d0d41 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffff888019ef1800 ffffea0001bdb050 ffff888019efa650 raw: ffff88806f6bcfff ffff88806f6bc180 0000000100000001 ffff88802a5d0d41 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 5591, tgid 5590 (syz-executor.0), ts 72752480034, free_ts 72714360807 prep_new_page mm/page_alloc.c:2552 [inline] get_page_from_freelist+0x1190/0x2f80 mm/page_alloc.c:4325 __alloc_pages+0x1c7/0x5b0 mm/page_alloc.c:5591 __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+0x4ba/0x5d0 mm/slab.c:3459 alloc_inode_sb include/linux/fs.h:2686 [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:1312 do_sys_open fs/open.c:1328 [inline] __do_sys_open fs/open.c:1336 [inline] __se_sys_open fs/open.c:1332 [inline] __x64_sys_open+0xfd/0x1a0 fs/open.c:1332 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:1453 [inline] free_pcp_prepare+0x65a/0xb40 mm/page_alloc.c:1503 free_unref_page_prepare mm/page_alloc.c:3387 [inline] free_unref_page+0x19/0x480 mm/page_alloc.c:3482 slab_destroy mm/slab.c:1613 [inline] slabs_destroy+0x85/0xc0 mm/slab.c:1633 cache_flusharray mm/slab.c:3361 [inline] ___cache_free+0x2a8/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+0x18e/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:769 [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+0x1ae/0x350 mm/slab.c:3452 getname_flags.part.0+0x4a/0x440 fs/namei.c:140 user_path_at_empty+0x1e/0x50 fs/namei.c:2876 user_path_at include/linux/namei.h:57 [inline] user_statfs+0x7d/0x110 fs/statfs.c:103 __do_sys_statfs+0x6b/0xc0 fs/statfs.c:195 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 Memory state around the buggy address: ffff88806f6bc900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806f6bc980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806f6bca00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88806f6bca80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806f6bcb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================