ntfs3: loop4: Different NTFS' sector size (4096) and media sector size (512) ntfs3: loop4: Mark volume as dirty due to NTFS errors ================================================================== BUG: KASAN: slab-out-of-bounds in ntfs_list_ea fs/ntfs3/xattr.c:187 [inline] BUG: KASAN: slab-out-of-bounds in ntfs_listxattr+0x290/0x434 fs/ntfs3/xattr.c:710 Read of size 48 at addr ffff0000d85c1c30 by task syz-executor.4/5796 CPU: 0 PID: 5796 Comm: syz-executor.4 Not tainted 6.1.22-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x174/0x4c0 mm/kasan/report.c:395 kasan_report+0xd4/0x130 mm/kasan/report.c:495 kasan_check_range+0x264/0x2a4 mm/kasan/generic.c:189 memcpy+0x48/0x90 mm/kasan/shadow.c:65 ntfs_list_ea fs/ntfs3/xattr.c:187 [inline] ntfs_listxattr+0x290/0x434 fs/ntfs3/xattr.c:710 vfs_listxattr fs/xattr.c:457 [inline] listxattr+0x29c/0x3cc fs/xattr.c:804 path_listxattr fs/xattr.c:828 [inline] __do_sys_listxattr fs/xattr.c:840 [inline] __se_sys_listxattr fs/xattr.c:837 [inline] __arm64_sys_listxattr+0x13c/0x21c fs/xattr.c:837 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581 Allocated by task 5796: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:52 kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xac/0xc4 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:955 [inline] __kmalloc+0xd8/0x1c4 mm/slab_common.c:968 kmalloc include/linux/slab.h:558 [inline] ntfs_read_ea+0x39c/0x6d8 fs/ntfs3/xattr.c:110 ntfs_list_ea fs/ntfs3/xattr.c:168 [inline] ntfs_listxattr+0x148/0x434 fs/ntfs3/xattr.c:710 vfs_listxattr fs/xattr.c:457 [inline] listxattr+0x29c/0x3cc fs/xattr.c:804 path_listxattr fs/xattr.c:828 [inline] __do_sys_listxattr fs/xattr.c:840 [inline] __se_sys_listxattr fs/xattr.c:837 [inline] __arm64_sys_listxattr+0x13c/0x21c fs/xattr.c:837 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581 Last potentially related work creation: kasan_save_stack+0x40/0x70 mm/kasan/common.c:45 __kasan_record_aux_stack+0xcc/0xe8 mm/kasan/generic.c:486 kasan_record_aux_stack_noalloc+0x14/0x20 mm/kasan/generic.c:496 kvfree_call_rcu+0xb4/0x714 kernel/rcu/tree.c:3343 cfg80211_update_known_bss+0x13c/0x7e0 cfg80211_bss_update+0x160/0x1c64 net/wireless/scan.c:1730 cfg80211_inform_single_bss_frame_data net/wireless/scan.c:2499 [inline] cfg80211_inform_bss_frame_data+0x99c/0x1d50 net/wireless/scan.c:2532 ieee80211_bss_info_update+0x6a4/0xc78 net/mac80211/scan.c:190 ieee80211_rx_bss_info net/mac80211/ibss.c:1120 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1609 [inline] ieee80211_ibss_rx_queued_mgmt+0x954/0x279c net/mac80211/ibss.c:1638 ieee80211_iface_process_skb net/mac80211/iface.c:1632 [inline] ieee80211_iface_work+0x5c4/0xa90 net/mac80211/iface.c:1686 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2289 worker_thread+0x8e4/0xfec kernel/workqueue.c:2436 kthread+0x24c/0x2d4 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 The buggy address belongs to the object at ffff0000d85c1c00 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 48 bytes inside of 128-byte region [ffff0000d85c1c00, ffff0000d85c1c80) The buggy address belongs to the physical page: page:0000000059c34f7b refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1185c1 flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000200 0000000000000000 dead000000000001 ffff0000c0002300 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d85c1b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d85c1b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000d85c1c00: 00 00 00 00 00 00 00 04 fc fc fc fc fc fc fc fc ^ ffff0000d85c1c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000d85c1d00: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================