loop2: detected capacity change from 0 to 8192 ntfs3: loop2: Different NTFS sector size (4096) and media sector size (512). ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_iget5+0x2fd4/0x3670 fs/ntfs3/inode.c:531 Read of size 8 at addr ffff8880825aff60 by task syz-executor.2/2403 CPU: 1 PID: 2403 Comm: syz-executor.2 Not tainted 6.2.0-next-20230228-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:319 print_report mm/kasan/report.c:430 [inline] kasan_report+0x11c/0x130 mm/kasan/report.c:536 ntfs_iget5+0x2fd4/0x3670 fs/ntfs3/inode.c:531 ntfs_fill_super+0x20a4/0x3c20 fs/ntfs3/super.c:1057 get_tree_bdev+0x444/0x760 fs/super.c:1294 vfs_get_tree+0x8d/0x350 fs/super.c:1501 do_new_mount fs/namespace.c:3042 [inline] path_mount+0x1342/0x1e40 fs/namespace.c:3372 do_mount fs/namespace.c:3385 [inline] __do_sys_mount fs/namespace.c:3594 [inline] __se_sys_mount fs/namespace.c:3571 [inline] __x64_sys_mount+0x283/0x300 fs/namespace.c:3571 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fbf0548d62a 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:00007fbf06117f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000020bb8 RCX: 00007fbf0548d62a RDX: 0000000020000080 RSI: 0000000020000040 RDI: 00007fbf06117fe0 RBP: 00007fbf06118020 R08: 00007fbf06118020 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000080 R13: 0000000020000040 R14: 00007fbf06117fe0 R15: 0000000020000000 Allocated by task 5125: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x7f/0x90 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook mm/slab.h:769 [inline] slab_alloc_node mm/slub.c:3452 [inline] slab_alloc mm/slub.c:3460 [inline] __kmem_cache_alloc_lru mm/slub.c:3467 [inline] kmem_cache_alloc_lru+0x209/0x580 mm/slub.c:3483 alloc_inode_sb include/linux/fs.h:2686 [inline] sock_alloc_inode+0x27/0x1d0 net/socket.c:305 alloc_inode+0x61/0x230 fs/inode.c:260 new_inode_pseudo+0x17/0x80 fs/inode.c:1019 sock_alloc+0x40/0x270 net/socket.c:628 __sock_create+0xbd/0x850 net/socket.c:1507 udp_sock_create6+0xc9/0x690 net/ipv6/ip6_udp_tunnel.c:23 udp_sock_create include/net/udp_tunnel.h:62 [inline] geneve_create_sock+0x219/0x250 drivers/net/geneve.c:479 geneve_socket_create drivers/net/geneve.c:592 [inline] geneve_sock_add+0x573/0x910 drivers/net/geneve.c:679 geneve_open+0x9e/0x1c0 drivers/net/geneve.c:715 __dev_open+0x297/0x4d0 net/core/dev.c:1417 __dev_change_flags+0x587/0x750 net/core/dev.c:8527 dev_change_flags+0x97/0x170 net/core/dev.c:8599 do_setlink+0x9f4/0x3d30 net/core/rtnetlink.c:2833 __rtnl_newlink+0xd69/0x1840 net/core/rtnetlink.c:3623 rtnl_newlink+0x68/0xa0 net/core/rtnetlink.c:3670 rtnetlink_rcv_msg+0x43d/0xd50 net/core/rtnetlink.c:6174 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2574 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1942 sock_sendmsg_nosec net/socket.c:722 [inline] sock_sendmsg+0xde/0x190 net/socket.c:745 __sys_sendto+0x23a/0x340 net/socket.c:2145 __do_sys_sendto net/socket.c:2157 [inline] __se_sys_sendto net/socket.c:2153 [inline] __x64_sys_sendto+0xe1/0x1b0 net/socket.c:2153 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff8880825af800 which belongs to the cache sock_inode_cache of size 1408 The buggy address is located 480 bytes to the right of allocated 1408-byte region [ffff8880825af800, ffff8880825afd80) The buggy address belongs to the physical page: page:ffffea0002096a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880825aaa00 pfn:0x825a8 head:ffffea0002096a00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88801e11c901 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010200 ffff88801754ea00 ffffea0002094610 ffffea0001d4f410 raw: ffff8880825aaa00 0000000000150002 00000001ffffffff ffff88801e11c901 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d20d0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 5130, tgid 5130 (syz-executor.2), ts 325934812182, free_ts 0 prep_new_page mm/page_alloc.c:2492 [inline] get_page_from_freelist+0xf75/0x2ad0 mm/page_alloc.c:4256 __alloc_pages+0x1cb/0x5c0 mm/page_alloc.c:5522 alloc_pages+0x1aa/0x270 mm/mempolicy.c:2283 alloc_slab_page mm/slub.c:1851 [inline] allocate_slab+0x28e/0x380 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3193 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3292 __slab_alloc_node mm/slub.c:3345 [inline] slab_alloc_node mm/slub.c:3442 [inline] slab_alloc mm/slub.c:3460 [inline] __kmem_cache_alloc_lru mm/slub.c:3467 [inline] kmem_cache_alloc_lru+0x42d/0x580 mm/slub.c:3483 alloc_inode_sb include/linux/fs.h:2686 [inline] sock_alloc_inode+0x27/0x1d0 net/socket.c:305 alloc_inode+0x61/0x230 fs/inode.c:260 new_inode_pseudo+0x17/0x80 fs/inode.c:1019 sock_alloc+0x40/0x270 net/socket.c:628 __sock_create+0xbd/0x850 net/socket.c:1507 sock_create net/socket.c:1594 [inline] __sys_socket_create net/socket.c:1631 [inline] __sys_socket_create net/socket.c:1616 [inline] __sys_socket+0x133/0x250 net/socket.c:1664 __do_sys_socket net/socket.c:1677 [inline] __se_sys_socket net/socket.c:1675 [inline] __x64_sys_socket+0x73/0xb0 net/socket.c:1675 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page_owner free stack trace missing Memory state around the buggy address: ffff8880825afe00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880825afe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880825aff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880825aff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880825b0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================