loop0: detected capacity change from 0 to 4096 ntfs3: loop0: Different NTFS' sector size (2048) and media sector size (512) ================================================================== BUG: KASAN: use-after-free in memcmp lib/string.c:776 [inline] BUG: KASAN: use-after-free in bcmp+0x1af/0x1e0 lib/string.c:797 Read of size 1 at addr ffff888018871e20 by task syz-executor314/3634 CPU: 0 PID: 3634 Comm: syz-executor314 Not tainted 6.1.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:284 print_report+0x107/0x1f0 mm/kasan/report.c:395 kasan_report+0xcd/0x100 mm/kasan/report.c:495 memcmp lib/string.c:776 [inline] bcmp+0x1af/0x1e0 lib/string.c:797 _Z6memcmpPKvU17pass_object_size0S0_U17pass_object_size0m include/linux/fortify-string.h:549 [inline] mi_find_attr+0x124/0x2b0 fs/ntfs3/record.c:310 ni_find_attr+0x38d/0x8c0 fs/ntfs3/frecord.c:202 ntfs_objid_init+0xd6/0x240 fs/ntfs3/fsntfs.c:2281 ntfs_fill_super+0x40dd/0x42a0 fs/ntfs3/super.c:1253 get_tree_bdev+0x400/0x620 fs/super.c:1324 vfs_get_tree+0x88/0x270 fs/super.c:1531 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+0x2d3/0x3c0 fs/namespace.c:3568 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+0x63/0xcd RIP: 0033:0x7f5be754fb0a Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffe071d4b8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f5be754fb0a RDX: 000000002001f340 RSI: 000000002001f380 RDI: 00007fffe071d4d0 RBP: 00007fffe071d4d0 R08: 00007fffe071d510 R09: 000000000001f365 R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000004 R13: 0000555556ed22c0 R14: 0000000000000000 R15: 00007fffe071d510 The buggy address belongs to the physical page: page:ffffea0000621c40 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x18871 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 ffffffff00620301 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 3, migratetype Unmovable, gfp_mask 0x52a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 0, tgid 0 (swapper/0), ts 41582050580, free_ts 43082184396 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x742/0x7c0 mm/page_alloc.c:4291 __alloc_pages+0x259/0x560 mm/page_alloc.c:5558 skb_page_frag_refill+0x14c/0x2d0 net/core/sock.c:2843 add_recvbuf_mergeable+0x1b4/0x720 drivers/net/virtio_net.c:1413 try_fill_recv+0xfe/0xc00 drivers/net/virtio_net.c:1454 virtnet_receive drivers/net/virtio_net.c:1568 [inline] virtnet_poll+0x888/0x1280 drivers/net/virtio_net.c:1674 __napi_poll+0xbe/0x4b0 net/core/dev.c:6498 napi_poll net/core/dev.c:6565 [inline] net_rx_action+0x75c/0x10d0 net/core/dev.c:6676 __do_softirq+0x277/0x738 kernel/softirq.c:571 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare+0x80c/0x8f0 mm/page_alloc.c:1509 free_unref_page_prepare mm/page_alloc.c:3387 [inline] free_unref_page+0x7d/0x5f0 mm/page_alloc.c:3483 __skb_frag_unref include/linux/skbuff.h:3385 [inline] skb_release_data+0x37a/0x6d0 net/core/skbuff.c:783 skb_release_all net/core/skbuff.c:854 [inline] napi_consume_skb+0x11c/0x1c0 net/core/skbuff.c:1111 skb_defer_free_flush net/core/dev.c:6646 [inline] net_rx_action+0x4ee/0x10d0 net/core/dev.c:6667 __do_softirq+0x277/0x738 kernel/softirq.c:571 Memory state around the buggy address: ffff888018871d00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888018871d80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888018871e00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888018871e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888018871f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================