loop0: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: slab-out-of-bounds in dtMoveEntry fs/jfs/jfs_dtree.c:3931 [inline] BUG: KASAN: slab-out-of-bounds in dtSplitPage+0x1bce/0x36a0 fs/jfs/jfs_dtree.c:1558 Write of size 1 at addr ffff888041824100 by task syz.0.0/5343 CPU: 0 UID: 0 PID: 5343 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 dtMoveEntry fs/jfs/jfs_dtree.c:3931 [inline] dtSplitPage+0x1bce/0x36a0 fs/jfs/jfs_dtree.c:1558 dtSplitUp fs/jfs/jfs_dtree.c:1089 [inline] dtInsert+0x1080/0x5cb0 fs/jfs/jfs_dtree.c:868 jfs_symlink+0x8a1/0xfb0 fs/jfs/namei.c:1021 vfs_symlink+0x18e/0x330 fs/namei.c:5804 filename_symlinkat+0x1cd/0x410 fs/namei.c:5829 __do_sys_symlinkat fs/namei.c:5849 [inline] __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5844 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb91a39f559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb91b1abfe8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a RAX: ffffffffffffffda RBX: 00007fb91a625fa0 RCX: 00007fb91a39f559 RDX: 000020000000d580 RSI: ffffffffffffff9c RDI: 000020000000d440 RBP: 00007fb91a436b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb91a626038 R14: 00007fb91a625fa0 R15: 00007ffc96a9f668 Allocated by task 4717: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:351 [inline] __kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:377 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4720 [inline] kmem_cache_alloc_from_sheaf_noprof+0x9b/0x1b0 mm/slub.c:5437 mas_pop_node lib/maple_tree.c:1062 [inline] dst_setup+0x7e8/0x1160 lib/maple_tree.c:2418 mas_wr_split lib/maple_tree.c:3535 [inline] mas_wr_store_entry+0x34e9/0x7cf0 lib/maple_tree.c:3612 mas_insert lib/maple_tree.c:3856 [inline] mas_alloc_cyclic+0x548/0xb20 lib/maple_tree.c:3899 mtree_alloc_cyclic+0x1bd/0x270 lib/maple_tree.c:6016 simple_offset_add+0xe2/0x190 fs/libfs.c:296 shmem_mknod+0x21e/0x340 mm/shmem.c:4047 lookup_open+0xedc/0x1970 fs/namei.c:4569 open_last_lookups fs/namei.c:4768 [inline] path_openat+0x70c/0x20f0 fs/namei.c:5007 do_file_open+0x23e/0x4a0 fs/namei.c:5039 do_sys_openat2+0x115/0x200 fs/open.c:1442 do_sys_open fs/open.c:1448 [inline] __do_sys_openat fs/open.c:1464 [inline] __se_sys_openat fs/open.c:1459 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1459 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff888041824000 which belongs to the cache maple_node of size 256 The buggy address is located 0 bytes to the right of allocated 256-byte region [ffff888041824000, ffff888041824100) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888041824e00 pfn:0x41824 flags: 0x4fff00000000200(workingset|node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000200 ffff88801c44bc80 ffffea00011526d0 ffffea000103ebd0 raw: ffff888041824e00 0000000200080006 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2800(GFP_NOWAIT|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4717, tgid 4717 (udevd), ts 36298339667 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1854 prep_new_page mm/page_alloc.c:1862 [inline] get_page_from_freelist+0x220f/0x2280 mm/page_alloc.c:3933 __alloc_frozen_pages_noprof+0x1fc/0x400 mm/page_alloc.c:5429 alloc_slab_page mm/slub.c:3384 [inline] allocate_slab+0x7d/0x5e0 mm/slub.c:3499 new_slab mm/slub.c:3550 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7539 refill_sheaf mm/slub.c:2917 [inline] __prefill_sheaf_pfmemalloc+0x1c7/0x220 mm/slub.c:5198 kmem_cache_prefill_sheaf+0x2a5/0x4c0 mm/slub.c:5286 mt_get_sheaf lib/maple_tree.c:154 [inline] mas_alloc_nodes+0x1c2/0x350 lib/maple_tree.c:1116 mas_wr_preallocate lib/maple_tree.c:3806 [inline] mas_store_gfp+0x368/0x830 lib/maple_tree.c:4987 vma_iter_clear_gfp include/linux/mm.h:1669 [inline] do_vmi_align_munmap+0x303/0x4b0 mm/vma.c:1679 do_vmi_munmap+0x252/0x2d0 mm/vma.c:1732 __vm_munmap+0x241/0x3e0 mm/vma.c:3440 __do_sys_munmap mm/mmap.c:1094 [inline] __se_sys_munmap mm/mmap.c:1091 [inline] __x64_sys_munmap+0x60/0x70 mm/mmap.c:1091 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 15 tgid 15 ts 36296400141 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1401 [inline] __free_frozen_pages+0xc97/0xd90 mm/page_alloc.c:2952 __tlb_remove_table_free mm/mmu_gather.c:226 [inline] tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:287 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x92e/0x1230 kernel/rcu/tree.c:2919 handle_softirqs+0x265/0x8d0 kernel/softirq.c:669 run_ksoftirqd+0x36/0x60 kernel/softirq.c:1133 smpboot_thread_fn+0x5f8/0xb30 kernel/smpboot.c:162 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff888041824000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888041824080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888041824100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888041824180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888041824200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================