ntfs3: loop0: Different NTFS' sector size (2048) and media sector size (512) ================================================================== BUG: KASAN: out-of-bounds in ntfs_set_ea+0xcb5/0x1760 fs/ntfs3/xattr.c:336 Read of size 18446744069414584440 at addr ffff888129bba410 by task syz-executor.0/18267 CPU: 0 PID: 18267 Comm: syz-executor.0 Not tainted 6.1.0-syzkaller-10971-g041fae9c105a #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/0x290 lib/dump_stack.c:106 print_address_description+0x74/0x340 mm/kasan/report.c:306 print_report+0x107/0x1f0 mm/kasan/report.c:417 kasan_report+0xcd/0x100 mm/kasan/report.c:517 kasan_check_range+0x2a7/0x2e0 mm/kasan/generic.c:189 memmove+0x25/0x60 mm/kasan/shadow.c:54 ntfs_set_ea+0xcb5/0x1760 fs/ntfs3/xattr.c:336 ntfs_save_wsl_perm+0x1f4/0x490 fs/ntfs3/xattr.c:936 ntfs3_setattr+0x959/0xb40 fs/ntfs3/file.c:817 notify_change+0xe50/0x1100 fs/attr.c:482 chown_common+0x5b6/0x910 fs/open.c:736 do_fchownat+0x165/0x240 fs/open.c:767 __do_sys_chown fs/open.c:787 [inline] __se_sys_chown fs/open.c:785 [inline] __x64_sys_chown+0x7e/0x90 fs/open.c:785 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:0x7fc5f548c0d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc5f61b2168 EFLAGS: 00000246 ORIG_RAX: 000000000000005c RAX: ffffffffffffffda RBX: 00007fc5f55abf80 RCX: 00007fc5f548c0d9 RDX: 0000000039323420 RSI: 0000000000000000 RDI: 0000000020001d80 RBP: 00007fc5f54e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc0d784d7f R14: 00007fc5f61b2300 R15: 0000000000022000 The buggy address belongs to the physical page: page:ffffea0004a6ee80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x129bba flags: 0x17ff00000001000(reserved|node=0|zone=2|lastcpupid=0x7ff) raw: 017ff00000001000 ffffea0004a6ee88 ffffea0004a6ee88 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff888129bba300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888129bba380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888129bba400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888129bba480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888129bba500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================