ntfs3: loop1: Different NTFS' sector size (2048) and media sector size (512)
==================================================================
BUG: KASAN: slab-out-of-bounds in ntfs_iget5+0x154/0x3910 fs/ntfs3/inode.c:525
Read of size 8 at addr ffff88805d40ff60 by task syz-executor.1/12816

CPU: 0 PID: 12816 Comm: syz-executor.1 Not tainted 5.15.153-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 print_address_description+0x63/0x3b0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:434 [inline]
 kasan_report+0x16b/0x1c0 mm/kasan/report.c:451
 ntfs_iget5+0x154/0x3910 fs/ntfs3/inode.c:525
 ntfs_fill_super+0x237d/0x4350 fs/ntfs3/super.c:1004
 get_tree_bdev+0x3fe/0x620 fs/super.c:1312
 vfs_get_tree+0x88/0x270 fs/super.c:1517
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3005
 do_mount fs/namespace.c:3348 [inline]
 __do_sys_mount fs/namespace.c:3556 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3533
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f5a0211e56a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f5a0068eef8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5a0068ef80 RCX: 00007f5a0211e56a
RDX: 00000000200000c0 RSI: 000000002001f3c0 RDI: 00007f5a0068ef40
RBP: 00000000200000c0 R08: 00007f5a0068ef80 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 000000002001f3c0
R13: 00007f5a0068ef40 R14: 000000000001f3a4 R15: 0000000020000200
 </TASK>

Allocated by task 8180:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 __kasan_slab_alloc+0x8e/0xc0 mm/kasan/common.c:467
 kasan_slab_alloc include/linux/kasan.h:254 [inline]
 slab_post_alloc_hook+0x53/0x380 mm/slab.h:519
 slab_alloc_node mm/slub.c:3220 [inline]
 slab_alloc mm/slub.c:3228 [inline]
 kmem_cache_alloc+0xf3/0x280 mm/slub.c:3233
 radix_tree_node_alloc+0x196/0x3b0 lib/radix-tree.c:251
 idr_get_free+0x292/0xab0 lib/radix-tree.c:1504
 idr_alloc_u32 lib/idr.c:46 [inline]
 idr_alloc_cyclic+0x1ec/0x5d0 lib/idr.c:125
 __kernfs_new_node+0x124/0x750 fs/kernfs/dir.c:599
 kernfs_new_node+0x136/0x230 fs/kernfs/dir.c:669
 __kernfs_create_file+0x45/0x2e0 fs/kernfs/file.c:985
 sysfs_add_file_mode_ns+0x308/0x3e0 fs/sysfs/file.c:317
 create_files fs/sysfs/group.c:64 [inline]
 internal_create_group+0x573/0xf00 fs/sysfs/group.c:149
 internal_create_groups fs/sysfs/group.c:189 [inline]
 sysfs_create_groups+0x52/0x110 fs/sysfs/group.c:215
 device_add_groups drivers/base/core.c:2473 [inline]
 device_add_attrs+0x8a/0x470 drivers/base/core.c:2621
 device_add+0x63e/0xfd0 drivers/base/core.c:3345
 netdev_register_kobject+0x176/0x310 net/core/net-sysfs.c:2014
 register_netdevice+0x108c/0x1720 net/core/dev.c:10357
 macvlan_common_newlink+0xfff/0x1740 drivers/net/macvlan.c:1500
 __rtnl_newlink net/core/rtnetlink.c:3501 [inline]
 rtnl_newlink+0x14bd/0x2070 net/core/rtnetlink.c:3549
 rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5629
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
 netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1356
 netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1924
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 __sys_sendto+0x564/0x720 net/socket.c:2058
 __do_sys_sendto net/socket.c:2070 [inline]
 __se_sys_sendto net/socket.c:2066 [inline]
 __x64_sys_sendto+0xda/0xf0 net/socket.c:2066
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb

Last potentially related work creation:
 kasan_save_stack+0x36/0x60 mm/kasan/common.c:38
 kasan_record_aux_stack+0xba/0x100 mm/kasan/generic.c:348
 __call_rcu kernel/rcu/tree.c:3007 [inline]
 call_rcu+0x1c4/0xa70 kernel/rcu/tree.c:3087
 xa_node_free lib/xarray.c:258 [inline]
 xas_delete_node lib/xarray.c:494 [inline]
 update_node lib/xarray.c:758 [inline]
 xas_store+0x102f/0x19e0 lib/xarray.c:843
 __xa_erase lib/xarray.c:1494 [inline]
 xa_erase+0x125/0x200 lib/xarray.c:1515
 io_uring_del_tctx_node+0x5d/0x2b0 io_uring/io_uring.c:9793
 io_uring_clean_tctx io_uring/io_uring.c:9816 [inline]
 io_uring_cancel_generic+0x6a3/0x900 io_uring/io_uring.c:9893
 io_uring_files_cancel include/linux/io_uring.h:16 [inline]
 do_exit+0x278/0x2480 kernel/exit.c:827
 do_group_exit+0x144/0x310 kernel/exit.c:994
 get_signal+0xc66/0x14e0 kernel/signal.c:2889
 arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:867
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:172
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x5d/0x250 kernel/entry/common.c:301
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x61/0xcb

Second to last potentially related work creation:
 kasan_save_stack+0x36/0x60 mm/kasan/common.c:38
 kasan_record_aux_stack+0xba/0x100 mm/kasan/generic.c:348
 __call_rcu kernel/rcu/tree.c:3007 [inline]
 call_rcu+0x1c4/0xa70 kernel/rcu/tree.c:3087
 xa_node_free lib/xarray.c:258 [inline]
 xas_delete_node lib/xarray.c:494 [inline]
 update_node lib/xarray.c:758 [inline]
 xas_store+0x102f/0x19e0 lib/xarray.c:843
 page_cache_delete mm/filemap.c:142 [inline]
 __delete_from_page_cache+0x672/0x860 mm/filemap.c:232
 delete_from_page_cache+0x126/0x190 mm/filemap.c:266
 truncate_inode_page+0x8d/0xb0 mm/truncate.c:219
 shmem_undo_range+0x535/0x1b50 mm/shmem.c:960
 shmem_truncate_range mm/shmem.c:1063 [inline]
 shmem_evict_inode+0x21b/0xa00 mm/shmem.c:1145
 evict+0x2a4/0x620 fs/inode.c:587
 __dentry_kill+0x436/0x650 fs/dcache.c:582
 dentry_kill+0xbb/0x290
 dput+0xd8/0x1a0 fs/dcache.c:889
 __fput+0x5ec/0x890 fs/file_table.c:288
 task_work_run+0x129/0x1a0 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:175
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x5d/0x250 kernel/entry/common.c:301
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x61/0xcb

The buggy address belongs to the object at ffff88805d40fc80
 which belongs to the cache radix_tree_node of size 576
The buggy address is located 160 bytes to the right of
 576-byte region [ffff88805d40fc80, ffff88805d40fec0)
The buggy address belongs to the page:
page:ffffea0001750300 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5d40c
head:ffffea0001750300 order:2 compound_mapcount:0 compound_pincount:0
memcg:ffff88805ebb0d01
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 0000000000000000 0000000400000001 ffff888011c4fdc0
raw: 0000000000000000 0000000000170017 00000001ffffffff ffff88805ebb0d01
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Reclaimable, gfp_mask 0x152810(GFP_NOWAIT|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 3769, ts 67896890791, free_ts 16762006181
 prep_new_page mm/page_alloc.c:2426 [inline]
 get_page_from_freelist+0x322a/0x33c0 mm/page_alloc.c:4159
 __alloc_pages+0x272/0x700 mm/page_alloc.c:5421
 alloc_slab_page mm/slub.c:1775 [inline]
 allocate_slab mm/slub.c:1912 [inline]
 new_slab+0xbb/0x4b0 mm/slub.c:1975
 ___slab_alloc+0x6f6/0xe10 mm/slub.c:3008
 __slab_alloc mm/slub.c:3095 [inline]
 slab_alloc_node mm/slub.c:3186 [inline]
 slab_alloc mm/slub.c:3228 [inline]
 kmem_cache_alloc+0x18e/0x280 mm/slub.c:3233
 xas_alloc lib/xarray.c:374 [inline]
 xas_create+0x10cd/0x1620 lib/xarray.c:676
 xas_store+0x97/0x19e0 lib/xarray.c:786
 __add_to_page_cache_locked+0x9ac/0x11a0 mm/filemap.c:927
 add_to_page_cache_lru+0x1b3/0x560 mm/filemap.c:984
 do_read_cache_page+0x205/0x1040 mm/filemap.c:3460
 btrfs_read_dev_one_super+0x2da/0x400 fs/btrfs/disk-io.c:3769
 btrfs_get_bdev_and_sb+0x17a/0x1f0 fs/btrfs/volumes.c:520
 btrfs_open_one_device fs/btrfs/volumes.c:656 [inline]
 open_fs_devices+0x251/0xf90 fs/btrfs/volumes.c:1270
 btrfs_mount_root+0x531/0x930 fs/btrfs/super.c:1726
 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611
 vfs_get_tree+0x88/0x270 fs/super.c:1517
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1340 [inline]
 free_pcp_prepare mm/page_alloc.c:1391 [inline]
 free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317
 free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396
 free_contig_range+0x95/0xf0 mm/page_alloc.c:9340
 destroy_args+0xfe/0x97f mm/debug_vm_pgtable.c:1018
 debug_vm_pgtable+0x40d/0x462 mm/debug_vm_pgtable.c:1331
 do_one_initcall+0x22b/0x7a0 init/main.c:1300
 do_initcall_level+0x157/0x207 init/main.c:1373
 do_initcalls+0x49/0x86 init/main.c:1389
 kernel_init_freeable+0x425/0x5b5 init/main.c:1613
 kernel_init+0x19/0x290 init/main.c:1504
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298

Memory state around the buggy address:
 ffff88805d40fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff88805d40fe80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
>ffff88805d40ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                                                       ^
 ffff88805d40ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88805d410000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================