ci starts bisection 2023-05-26 21:52:37.541613528 +0000 UTC m=+22658.322782194 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: 474635d9143dbd5bd9f4636bda5b2f8ee1c7bbfe03b13f8a6ee3d9bc96b47954 all runs: crashed: KASAN: slab-out-of-bounds Read in ea_get testing current HEAD 77af1f2b9a2464e4bce20cfd32bfb2390c67de7c testing commit 77af1f2b9a2464e4bce20cfd32bfb2390c67de7c gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e23db68af7e9997bc5d00a3401ff56300e9305ee466032d1f79308d3055ae00e all runs: crashed: KASAN: slab-out-of-bounds Read in ea_get crash still not fixed/happens on the oldest tested release revisions tested: 2, total time: 21m0.874452255s (build: 13m25.959974128s, test: 6m47.728887292s) crash still not fixed on HEAD or HEAD had kernel test errors commit msg: Merge tag 'thermal-6.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm crash: KASAN: slab-out-of-bounds Read in ea_get ffff888070a1d9f0: e8 d9 a1 70 80 88 ff ff 00 00 00 00 00 00 00 00 ...p............ ffff888070a1da00: 00 da a1 70 80 88 ff ff 00 da a1 70 80 88 ff ff ...p.......p.... ffff888070a1da10: 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 ................ ffff888070a1da20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ffff888070a1da30: 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 ffff888070a1da40 by task syz-executor.0/5391 CPU: 0 PID: 5391 Comm: syz-executor.0 Not tainted 6.4.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/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:351 print_report mm/kasan/report.c:462 [inline] kasan_report+0x118/0x130 mm/kasan/report.c:572 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:3470 open_last_lookups fs/namei.c:3560 [inline] path_openat+0x7ad/0x2280 fs/namei.c:3788 do_filp_open+0x1a5/0x3d0 fs/namei.c:3818 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:0x7f4e49a8a5a9 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:00007f4e4ab43168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f4e49babf80 RCX: 00007f4e49a8a5a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000340 RBP: 00007f4e49ae5580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe5cf13c9f R14: 00007f4e4ab43300 R15: 0000000000022000 Allocated by task 5391: 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:711 [inline] slab_alloc_node mm/slab.c:3256 [inline] slab_alloc mm/slab.c:3265 [inline] __kmem_cache_alloc_lru mm/slab.c:3442 [inline] kmem_cache_alloc_lru+0x1df/0x640 mm/slab.c:3458 alloc_inode_sb include/linux/fs.h:2711 [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:1286 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:3470 open_last_lookups fs/namei.c:3560 [inline] path_openat+0x7ad/0x2280 fs/namei.c:3788 do_filp_open+0x1a5/0x3d0 fs/namei.c:3818 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 ffff888070a1d180 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 [ffff888070a1d180, ffff888070a1da40) The buggy address belongs to the physical page: page:ffffea0001c28740 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888070a1dfff pfn:0x70a1d memcg:ffff88801fefb241 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) page_type: 0x1() raw: 00fff00000000200 ffff888017179300 ffffea0001c28710 ffff88801a5acd50 raw: ffff888070a1dfff ffff888070a1d180 0000000100000001 ffff88801fefb241 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 5391, tgid 5390 (syz-executor.0), ts 85651381717, free_ts 75827031075 prep_new_page mm/page_alloc.c:1738 [inline] get_page_from_freelist+0xf85/0x2ca0 mm/page_alloc.c:3502 __alloc_pages+0x1c7/0x490 mm/page_alloc.c:4768 __alloc_pages_node include/linux/gfp.h:237 [inline] kmem_getpages mm/slab.c:1360 [inline] cache_grow_begin+0x9b/0x3b0 mm/slab.c:2569 cache_alloc_refill+0x27f/0x380 mm/slab.c:2942 ____cache_alloc mm/slab.c:3018 [inline] ____cache_alloc mm/slab.c:3001 [inline] __do_cache_alloc mm/slab.c:3201 [inline] slab_alloc_node mm/slab.c:3249 [inline] slab_alloc mm/slab.c:3265 [inline] __kmem_cache_alloc_lru mm/slab.c:3442 [inline] kmem_cache_alloc_lru+0x53c/0x640 mm/slab.c:3458 alloc_inode_sb include/linux/fs.h:2711 [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:1286 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:3470 open_last_lookups fs/namei.c:3560 [inline] path_openat+0x7ad/0x2280 fs/namei.c:3788 do_filp_open+0x1a5/0x3d0 fs/namei.c:3818 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:1302 [inline] free_unref_page_prepare+0x620/0xc80 mm/page_alloc.c:2564 free_unref_page+0x2f/0x370 mm/page_alloc.c:2659 slab_destroy mm/slab.c:1612 [inline] slabs_destroy+0x85/0xc0 mm/slab.c:1632 drain_array+0x93/0xa0 mm/slab.c:3814 cache_reap+0x187/0x2e0 mm/slab.c:3863 process_one_work+0x86e/0x1410 kernel/workqueue.c:2405 worker_thread+0x5ab/0xef0 kernel/workqueue.c:2552 kthread+0x2e6/0x3c0 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Memory state around the buggy address: ffff888070a1d900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888070a1d980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888070a1da00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff888070a1da80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888070a1db00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================