loop0: detected capacity change from 0 to 8226 ================================================================== BUG: KASAN: slab-out-of-bounds in run_unpack+0x85c/0xd10 fs/ntfs3/run.c:944 Read of size 1 at addr ffff88801f21b900 by task syz-executor.0/26822 CPU: 0 PID: 26822 Comm: syz-executor.0 Not tainted 6.1.0-rc2-syzkaller-00078-g98555239e4c3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:284 print_report+0x107/0x220 mm/kasan/report.c:395 kasan_report+0x139/0x170 mm/kasan/report.c:495 run_unpack+0x85c/0xd10 fs/ntfs3/run.c:944 run_unpack_ex+0x14f/0x910 fs/ntfs3/run.c:1057 ntfs_read_mft fs/ntfs3/inode.c:368 [inline] ntfs_iget5+0x1d47/0x36f0 fs/ntfs3/inode.c:501 ntfs_fill_super+0x3079/0x4420 fs/ntfs3/super.c:1095 get_tree_bdev+0x400/0x620 fs/super.c:1323 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x289/0xad0 fs/namespace.c:3040 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1d54a8cada Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007f1d558b9f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000bc0 RCX: 00007f1d54a8cada RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f1d558b9fe0 RBP: 00007f1d558ba020 R08: 00007f1d558ba020 R09: 0000000020000000 R10: 0000000000008802 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 00007f1d558b9fe0 R15: 0000000020003580 Allocated by task 1: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:371 [inline] __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:380 kmalloc_node include/linux/slab.h:598 [inline] kzalloc_node include/linux/slab.h:723 [inline] throtl_pd_alloc+0x9b/0x5f0 block/blk-throttle.c:345 blkcg_activate_policy+0x22e/0xa00 block/blk-cgroup.c:1373 blk_throtl_init+0x399/0x490 block/blk-throttle.c:2390 blkcg_init_disk+0x283/0x340 block/blk-cgroup.c:1251 __alloc_disk_node+0x2cc/0x590 block/genhd.c:1375 __blk_alloc_disk+0x2c/0x80 block/genhd.c:1414 zram_add+0xae/0x5c0 drivers/block/zram/zram_drv.c:1915 zram_init+0xbb/0x15e drivers/block/zram/zram_drv.c:2142 do_one_initcall+0xbd/0x2b0 init/main.c:1303 do_initcall_level+0x168/0x218 init/main.c:1376 do_initcalls+0x4b/0x8c init/main.c:1392 kernel_init_freeable+0x471/0x61d init/main.c:1631 kernel_init+0x19/0x2b0 init/main.c:1519 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 The buggy address belongs to the object at ffff88801f21b000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 256 bytes to the right of 2048-byte region [ffff88801f21b000, ffff88801f21b800) The buggy address belongs to the physical page: page:ffffea00007c8600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1f218 head:ffffea00007c8600 order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffffea0000777000 dead000000000002 ffff888012042000 raw: 0000000000000000 0000000000080008 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2000(__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 6641889583, free_ts 0 prep_new_page mm/page_alloc.c:2538 [inline] get_page_from_freelist+0x72b/0x7a0 mm/page_alloc.c:4287 __alloc_pages+0x259/0x560 mm/page_alloc.c:5554 __alloc_pages_node include/linux/gfp.h:223 [inline] alloc_slab_page+0x2e/0xf0 mm/slub.c:1796 allocate_slab+0x5e/0x4b0 mm/slub.c:1939 new_slab mm/slub.c:1992 [inline] ___slab_alloc+0x7f4/0xeb0 mm/slub.c:3180 __slab_alloc mm/slub.c:3279 [inline] slab_alloc_node mm/slub.c:3364 [inline] __kmem_cache_alloc_node+0x252/0x310 mm/slub.c:3437 __do_kmalloc_node mm/slab_common.c:954 [inline] __kmalloc_node+0x9e/0x190 mm/slab_common.c:962 kmalloc_array_node include/linux/slab.h:689 [inline] kcalloc_node include/linux/slab.h:694 [inline] blk_mq_alloc_rq_map block/blk-mq.c:3250 [inline] blk_mq_alloc_map_and_rqs+0x128/0x990 block/blk-mq.c:3689 blk_mq_sched_alloc_map_and_rqs block/blk-mq-sched.c:507 [inline] blk_mq_init_sched+0x369/0x8e0 block/blk-mq-sched.c:588 elevator_init_mq+0x39d/0x520 block/elevator.c:709 device_add_disk+0x101/0xcf0 block/genhd.c:404 add_disk include/linux/blkdev.h:758 [inline] nbd_dev_add+0x710/0xa80 drivers/block/nbd.c:1823 nbd_init+0x21d/0x2ca drivers/block/nbd.c:2526 do_one_initcall+0xbd/0x2b0 init/main.c:1303 do_initcall_level+0x168/0x218 init/main.c:1376 do_initcalls+0x4b/0x8c init/main.c:1392 page_owner free stack trace missing Memory state around the buggy address: ffff88801f21b800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801f21b880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88801f21b900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88801f21b980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801f21ba00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================