loop0: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: slab-out-of-bounds in dbAllocBits+0x617/0x630 fs/jfs/jfs_dmap.c:2257 Read of size 8 at addr ffff88802a4dceb8 by task syz-executor.0/6104 CPU: 0 UID: 0 PID: 6104 Comm: syz-executor.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 dbAllocBits+0x617/0x630 fs/jfs/jfs_dmap.c:2257 dbAllocDmap+0x5c/0x110 fs/jfs/jfs_dmap.c:2034 dbAllocNear fs/jfs/jfs_dmap.c:1247 [inline] dbAlloc+0x79c/0xac0 fs/jfs/jfs_dmap.c:832 ea_get+0xc7d/0x1330 fs/jfs/xattr.c:516 __jfs_setxattr+0x1eb/0x1030 fs/jfs/xattr.c:727 __jfs_set_acl+0x116/0x1b0 fs/jfs/acl.c:87 jfs_set_acl+0x254/0x330 fs/jfs/acl.c:115 set_posix_acl+0x25f/0x320 fs/posix_acl.c:954 vfs_set_acl+0x5a7/0x930 fs/posix_acl.c:1133 do_set_acl+0xd9/0x1a0 fs/posix_acl.c:1278 do_setxattr+0xeb/0x180 fs/xattr.c:633 filename_setxattr+0x16b/0x1d0 fs/xattr.c:665 path_setxattrat+0x1de/0x2a0 fs/xattr.c:713 __do_sys_lsetxattr fs/xattr.c:754 [inline] __se_sys_lsetxattr fs/xattr.c:750 [inline] __x64_sys_lsetxattr+0xc9/0x140 fs/xattr.c:750 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc9db67dca9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc9dc34d0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007fc9db7abf80 RCX: 00007fc9db67dca9 RDX: 0000000020000180 RSI: 0000000020000040 RDI: 0000000020000000 RBP: 00007fc9db6c947e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000024 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc9db7abf80 R15: 00007ffc37389fc8 The buggy address belongs to the object at ffff88802a4dc000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1720 bytes to the right of allocated 2048-byte region [ffff88802a4dc000, ffff88802a4dc800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2a4d8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b442f00 dead000000000122 0000000000000000 raw: 0000000000000000 0000000080080008 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b442f00 dead000000000122 0000000000000000 head: 0000000000000000 0000000080080008 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0000a93601 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6104, tgid 6102 (syz-executor.0), ts 68655362326, free_ts 68527326574 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1850 prep_new_page mm/page_alloc.c:1858 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3884 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5183 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:3055 [inline] allocate_slab mm/slub.c:3228 [inline] new_slab+0x24a/0x360 mm/slub.c:3282 ___slab_alloc+0xdae/0x1a60 mm/slub.c:4651 __slab_alloc.constprop.0+0x63/0x110 mm/slub.c:4770 __slab_alloc_node mm/slub.c:4846 [inline] slab_alloc_node mm/slub.c:5268 [inline] __do_kmalloc_node mm/slub.c:5641 [inline] __kmalloc_node_track_caller_noprof+0x4db/0x8a0 mm/slub.c:5751 kmalloc_reserve+0xef/0x2c0 net/core/skbuff.c:601 __alloc_skb+0x166/0x380 net/core/skbuff.c:670 alloc_skb include/linux/skbuff.h:1383 [inline] nlmsg_new include/net/netlink.h:1055 [inline] audit_buffer_alloc kernel/audit.c:1836 [inline] audit_log_start+0x34e/0x950 kernel/audit.c:1955 common_lsm_audit+0xb2/0x300 security/lsm_audit.c:442 slow_avc_audit+0x186/0x210 security/selinux/avc.c:778 avc_audit security/selinux/include/avc.h:131 [inline] avc_has_perm+0x1b5/0x1f0 security/selinux/avc.c:1197 inode_has_perm+0x168/0x1d0 security/selinux/hooks.c:1685 path_has_perm security/selinux/hooks.c:1723 [inline] selinux_mount+0x384/0x460 security/selinux/hooks.c:2782 page last free pid 6043 tgid 6043 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] __free_frozen_pages+0x7df/0x1160 mm/page_alloc.c:2906 discard_slab mm/slub.c:3326 [inline] __put_partials+0x130/0x170 mm/slub.c:3872 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4d/0x120 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x195/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:352 kasan_slab_alloc include/linux/kasan.h:252 [inline] slab_post_alloc_hook mm/slub.c:4970 [inline] slab_alloc_node mm/slub.c:5280 [inline] kmem_cache_alloc_noprof+0x250/0x6e0 mm/slub.c:5287 getname_flags.part.0+0x4c/0x550 fs/namei.c:146 getname_flags+0x93/0xf0 include/linux/audit.h:345 getname include/linux/fs.h:2922 [inline] do_sys_openat2+0xb8/0x1d0 fs/open.c:1431 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x174/0x210 fs/open.c:1463 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88802a4dcd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802a4dce00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88802a4dce80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802a4dcf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802a4dcf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================