ntfs3: loop0: Mark volume as dirty due to NTFS errors ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_list_ea fs/ntfs3/xattr.c:230 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_listxattr+0x3b2/0x5b0 fs/ntfs3/xattr.c:749 Read of size 48 at addr ffff8880682b4fb0 by task syz-executor.0/20154 CPU: 0 PID: 20154 Comm: syz-executor.0 Not tainted 5.15.148-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __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 kasan_check_range+0x27e/0x290 mm/kasan/generic.c:189 memcpy+0x25/0x60 mm/kasan/shadow.c:65 ntfs_list_ea fs/ntfs3/xattr.c:230 [inline] ntfs_listxattr+0x3b2/0x5b0 fs/ntfs3/xattr.c:749 vfs_listxattr fs/xattr.c:448 [inline] listxattr+0x282/0x2e0 fs/xattr.c:783 path_listxattr fs/xattr.c:807 [inline] __do_sys_llistxattr fs/xattr.c:825 [inline] __se_sys_llistxattr fs/xattr.c:822 [inline] __x64_sys_llistxattr+0x16f/0x230 fs/xattr.c:822 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:0x7f3ff9dbbda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3ff831c0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000c3 RAX: ffffffffffffffda RBX: 00007f3ff9eeb050 RCX: 00007f3ff9dbbda9 RDX: 000000000000009d RSI: 0000000020000040 RDI: 0000000020000000 RBP: 00007f3ff9e0847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f3ff9eeb050 R15: 00007ffe47396398 Allocated by task 20154: 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_kmalloc+0xba/0xf0 mm/kasan/common.c:513 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc+0x168/0x300 mm/slub.c:4407 kmalloc include/linux/slab.h:596 [inline] ntfs_read_ea+0x48a/0xa00 fs/ntfs3/xattr.c:117 ntfs_list_ea fs/ntfs3/xattr.c:202 [inline] ntfs_listxattr+0x179/0x5b0 fs/ntfs3/xattr.c:749 vfs_listxattr fs/xattr.c:448 [inline] listxattr+0x282/0x2e0 fs/xattr.c:783 path_listxattr fs/xattr.c:807 [inline] __do_sys_llistxattr fs/xattr.c:825 [inline] __se_sys_llistxattr fs/xattr.c:822 [inline] __x64_sys_llistxattr+0x16f/0x230 fs/xattr.c:822 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 kvfree_call_rcu+0x118/0x8a0 kernel/rcu/tree.c:3596 sctp_bind_addr_clean net/sctp/bind_addr.c:131 [inline] sctp_bind_addr_free+0x136/0x170 net/sctp/bind_addr.c:140 sctp_association_free+0x288/0x7b0 net/sctp/associola.c:358 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:944 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1331 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline] sctp_do_sm+0x3c58/0x5c80 net/sctp/sm_sideeffect.c:1170 sctp_assoc_bh_rcv+0x3ed/0x640 net/sctp/associola.c:1053 sctp_backlog_rcv+0x16f/0x3c0 net/sctp/input.c:346 sk_backlog_rcv include/net/sock.h:1059 [inline] __release_sock+0x198/0x4b0 net/core/sock.c:2713 release_sock+0x5d/0x1c0 net/core/sock.c:3254 sctp_wait_for_connect+0x3c9/0x6e0 net/sctp/socket.c:9346 sctp_sendmsg_to_asoc+0x1a45/0x1fe0 net/sctp/socket.c:1885 sctp_sendmsg+0x1f49/0x3370 net/sctp/socket.c:2031 sock_sendmsg_nosec net/socket.c:704 [inline] __sock_sendmsg net/socket.c:716 [inline] ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2431 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2485 __sys_sendmmsg+0x2bf/0x560 net/socket.c:2571 __do_sys_sendmmsg net/socket.c:2600 [inline] __se_sys_sendmmsg net/socket.c:2597 [inline] __x64_sys_sendmmsg+0x9c/0xb0 net/socket.c:2597 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 The buggy address belongs to the object at ffff8880682b4f80 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 48 bytes inside of 64-byte region [ffff8880682b4f80, ffff8880682b4fc0) The buggy address belongs to the page: page:ffffea0001a0ad00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x682b4 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 dead000000000100 dead000000000122 ffff888011c41640 raw: 0000000000000000 0000000080200020 00000001ffffffff 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 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 3540, ts 249381440854, free_ts 249024740381 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] __kmalloc_node+0x1fa/0x390 mm/slub.c:4451 kmalloc_node include/linux/slab.h:614 [inline] kvmalloc_node+0x80/0x140 mm/util.c:619 kvmalloc include/linux/mm.h:805 [inline] kvzalloc include/linux/mm.h:813 [inline] allocate_hook_entries_size net/netfilter/core.c:61 [inline] nf_hook_entries_grow+0x331/0x760 net/netfilter/core.c:128 __nf_register_net_hook+0x22f/0x8e0 net/netfilter/core.c:401 nf_register_net_hook+0xac/0x180 net/netfilter/core.c:536 nf_register_net_hooks+0x3d/0x1a0 net/netfilter/core.c:552 arpt_register_table+0x651/0x760 net/ipv4/netfilter/arp_tables.c:1552 arptable_filter_table_init+0x3e/0x60 net/ipv4/netfilter/arptable_filter.c:47 xt_find_table_lock+0x2cc/0x3a0 net/netfilter/x_tables.c:1259 xt_request_find_table_lock+0x22/0xf0 net/netfilter/x_tables.c:1284 get_info net/ipv4/netfilter/arp_tables.c:807 [inline] do_arpt_get_ctl+0x8ea/0x1680 net/ipv4/netfilter/arp_tables.c:1443 nf_getsockopt+0x28e/0x2b0 net/netfilter/nf_sockopt.c:116 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 do_slab_free mm/slub.c:3487 [inline] ___cache_free+0xe3/0x100 mm/slub.c:3506 qlist_free_all+0x36/0x90 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x162/0x180 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xc0 mm/kasan/common.c:444 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_trace+0xfb/0x290 mm/slub.c:3245 kmalloc include/linux/slab.h:591 [inline] kzalloc include/linux/slab.h:721 [inline] nsim_fib4_rt_create drivers/net/netdevsim/fib.c:278 [inline] nsim_fib4_rt_insert drivers/net/netdevsim/fib.c:424 [inline] nsim_fib4_event drivers/net/netdevsim/fib.c:462 [inline] nsim_fib_event drivers/net/netdevsim/fib.c:882 [inline] nsim_fib_event_work+0xe13/0x4120 drivers/net/netdevsim/fib.c:1481 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 process_scheduled_works kernel/workqueue.c:2373 [inline] worker_thread+0xdcf/0x1280 kernel/workqueue.c:2459 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Memory state around the buggy address: ffff8880682b4e80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ffff8880682b4f00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff8880682b4f80: 00 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc ^ ffff8880682b5000: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff8880682b5080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================