syzbot


KASAN: slab-out-of-bounds Read in ntfs_fill_super

Status: auto-obsoleted due to no activity on 2023/12/21 03:26
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+bd6d0c83fe8442ad6ef5@syzkaller.appspotmail.com
First crash: 567d, last: 191d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) [merge commit]:
commit 675f176b4dcc2b75adbcea7ba0e9a649527f53bd
Author: David S. Miller <davem@davemloft.net>
Date: Fri Feb 17 11:06:39 2023 +0000

  Merge ra.kernel.org:/pub/scm/linux/kernel/git/netdev/net

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] KASAN: slab-out-of-bounds Read in ntfs_fill_super 0 (2) 2022/10/10 17:12
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in ntfs_fill_super mm 1 87d 87d 0/26 moderation: reported on 2024/01/24 09:13
Last patch testing requests (8)
Created Duration User Patch Repo Result
2023/12/19 14:25 21m retest repro upstream OK log
2023/10/26 09:10 21m retest repro linux-next OK log
2023/10/26 09:10 23m retest repro linux-next OK log
2023/10/26 08:09 19m retest repro upstream OK log
2023/10/26 08:09 19m retest repro upstream OK log
2023/10/26 07:23 28m retest repro upstream OK log
2023/10/10 13:48 31m retest repro upstream report log
2023/05/06 01:28 33m retest repro upstream OK log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/02/24 09:23 4h26m bisect fix upstream job log (1)
2023/01/25 08:31 50m bisect fix upstream job log (0) log

Sample crash report:
memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=5020 'syz-executor298'
loop0: detected capacity change from 0 to 4096
ntfs3: loop0: Different NTFS sector size (4096) and media sector size (512).
ntfs3: loop0: RAW NTFS volume: Filesystem size 16384.00 Gb > volume size 0.00 Gb. Mount in read-only.
ntfs3: loop0: NTFS 16384.00 Gb is too big to use 32 bits per cluster.
==================================================================
BUG: KASAN: use-after-free in memcmp+0x172/0x1c0 lib/string.c:681
Read of size 8 at addr ffff888072324002 by task syz-executor298/5020

CPU: 0 PID: 5020 Comm: syz-executor298 Not tainted 6.5.0-rc6-syzkaller-00200-gd4ddefee5160 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:364 [inline]
 print_report+0xc4/0x620 mm/kasan/report.c:475
 kasan_report+0xda/0x110 mm/kasan/report.c:588
 memcmp+0x172/0x1c0 lib/string.c:681
 memcmp include/linux/fortify-string.h:728 [inline]
 ntfs_init_from_boot fs/ntfs3/super.c:860 [inline]
 ntfs_fill_super+0x6e0/0x43b0 fs/ntfs3/super.c:1141
 get_tree_bdev+0x43e/0x7d0 fs/super.c:1318
 vfs_get_tree+0x88/0x350 fs/super.c:1519
 do_new_mount fs/namespace.c:3335 [inline]
 path_mount+0x1492/0x1ed0 fs/namespace.c:3662
 do_mount fs/namespace.c:3675 [inline]
 __do_sys_mount fs/namespace.c:3884 [inline]
 __se_sys_mount fs/namespace.c:3861 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:3861
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8508171e5a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 8e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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:00007ffc2a1ea908 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffc2a1ea920 RCX: 00007f8508171e5a
RDX: 00000000200000c0 RSI: 0000000020000000 RDI: 00007ffc2a1ea920
RBP: 0000000000000004 R08: 00007ffc2a1ea960 R09: 000000000001f1a1
R10: 0000000000800000 R11: 0000000000000286 R12: 0000000000800000
R13: 00007ffc2a1ea960 R14: 0000000000000003 R15: 0000000000200000
 </TASK>

The buggy address belongs to the physical page:
page:ffffea0001c8c900 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x72324
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 00fff00000000000 ffffea0001c8c948 ffff8880b9843460 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 0, migratetype Movable, gfp_mask 0x8(__GFP_MOVABLE), pid 1, tgid 1 (swapper/0), ts 10022712808, free_ts 10617431865
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook+0x2d2/0x350 mm/page_alloc.c:1570
 split_map_pages+0x1ff/0x520 mm/compaction.c:97
 isolate_freepages_range+0x31e/0x380 mm/compaction.c:754
 alloc_contig_range+0x32e/0x510 mm/page_alloc.c:6270
 __alloc_contig_pages mm/page_alloc.c:6293 [inline]
 alloc_contig_pages+0x30c/0x600 mm/page_alloc.c:6373
 debug_vm_pgtable_alloc_huge_page mm/debug_vm_pgtable.c:1096 [inline]
 init_args mm/debug_vm_pgtable.c:1279 [inline]
 debug_vm_pgtable+0x955/0x3ff0 mm/debug_vm_pgtable.c:1317
 do_one_initcall+0x117/0x630 init/main.c:1232
 do_initcall_level init/main.c:1294 [inline]
 do_initcalls init/main.c:1310 [inline]
 do_basic_setup init/main.c:1329 [inline]
 kernel_init_freeable+0x5bd/0x8f0 init/main.c:1546
 kernel_init+0x1c/0x2a0 init/main.c:1437
 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1161 [inline]
 free_unref_page_prepare+0x508/0xb90 mm/page_alloc.c:2348
 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2443
 free_contig_range+0xb6/0x190 mm/page_alloc.c:6395
 destroy_args+0x686/0x940 mm/debug_vm_pgtable.c:1029
 debug_vm_pgtable+0x2339/0x3ff0 mm/debug_vm_pgtable.c:1410
 do_one_initcall+0x117/0x630 init/main.c:1232
 do_initcall_level init/main.c:1294 [inline]
 do_initcalls init/main.c:1310 [inline]
 do_basic_setup init/main.c:1329 [inline]
 kernel_init_freeable+0x5bd/0x8f0 init/main.c:1546
 kernel_init+0x1c/0x2a0 init/main.c:1437
 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304

Memory state around the buggy address:
 ffff888072323f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888072323f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888072324000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                   ^
 ffff888072324080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff888072324100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================

Crashes (128):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/19 18:24 upstream d4ddefee5160 d216d8a0 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/07/14 19:54 upstream 4b810bf037e5 d624500f .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/07/11 18:47 upstream 3f01e9fed845 2f19aa4f .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/07/10 03:55 upstream 06c2afb862f9 668cb1fa .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream KASAN: use-after-free Read in ntfs_fill_super
2022/10/20 15:31 upstream 55be6084c8e0 b31320fc .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-kasan-gce-root general protection fault in ntfs_fill_super
2022/10/10 17:12 upstream 493ffd6605b2 5bcf0c31 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci2-upstream-fs general protection fault in ntfs_fill_super
2023/05/16 08:33 linux-next 715abedee4cd 71b00cfb .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/05/10 23:09 linux-next 578215f3e21c 0fbd49f4 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2022/10/12 17:17 upstream 55be6084c8e0 89b5a509 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: slab-out-of-bounds Read in ntfs_fill_super
2022/10/01 08:59 upstream ffb4d94b4314 feb56351 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root KASAN: slab-out-of-bounds Read in ntfs_fill_super
2023/10/12 02:29 upstream 8182d7a3f1b8 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/10/12 00:33 upstream 8182d7a3f1b8 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root KASAN: use-after-free Read in ntfs_fill_super
2023/09/26 05:27 upstream 6465e260f487 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/09/17 11:00 upstream f0b0d403eabb 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/09/16 19:29 upstream 57d88e8a5974 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/09/16 06:42 upstream e42bebf6db29 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/09/13 15:28 upstream 3669558bdf35 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/09/13 00:16 upstream a747acc0b752 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/09/04 19:21 upstream 708283abf896 8bc9053e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root KASAN: use-after-free Read in ntfs_fill_super
2023/09/01 14:30 upstream 99d99825fc07 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/10/11 02:56 upstream 1c8b86a3799f 83165b57 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 KASAN: use-after-free Read in ntfs_fill_super
2023/09/19 09:17 upstream 2cf0f7156238 0b6a67ac .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 KASAN: use-after-free Read in ntfs_fill_super
2023/09/12 19:39 upstream a747acc0b752 59da8366 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 KASAN: use-after-free Read in ntfs_fill_super
2023/08/24 15:11 upstream 93f5de5f648d 4d7ae7ab .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root KASAN: use-after-free Read in ntfs_fill_super
2023/08/18 10:22 upstream 0e8860d2125f 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/08/13 03:06 upstream a785fd28d31f 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/08/12 16:39 upstream f8de32cc060b 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/08/12 02:39 upstream 9106536c1aa3 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/08/11 17:25 upstream 25aa0bebba72 39990d51 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: use-after-free Read in ntfs_fill_super
2023/08/10 17:11 upstream 374a7f47bf40 da3c3ef8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: use-after-free Read in ntfs_fill_super
2023/08/08 20:19 upstream 14f9643dc90a 3c27dfcd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root KASAN: use-after-free Read in ntfs_fill_super
2023/08/06 17:19 upstream f0ab9f34e59e 4ffcc9ef .config console log report info ci-upstream-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/08/06 15:53 upstream f0ab9f34e59e 4ffcc9ef .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: use-after-free Read in ntfs_fill_super
2023/08/05 22:50 upstream 024ff300db33 4ffcc9ef .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: use-after-free Read in ntfs_fill_super
2023/08/02 18:34 upstream 5d0c230f1de8 39a91c18 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/08/02 02:49 upstream 5d0c230f1de8 df07ffe8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root KASAN: use-after-free Read in ntfs_fill_super
2023/08/01 07:24 upstream 5d0c230f1de8 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/07/31 07:53 upstream 5d0c230f1de8 2a0d0f29 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: use-after-free Read in ntfs_fill_super
2023/07/29 08:03 upstream f837f0a3c948 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/07/28 00:55 upstream 57012c57536f 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/07/27 21:57 upstream 57012c57536f 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/07/27 17:38 upstream 0a8db05b571a 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/07/27 15:03 upstream 0a8db05b571a 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/07/27 10:23 upstream 0a8db05b571a 41fe1bae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/07/26 18:36 upstream 18b44bc5a672 41fe1bae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/07/26 14:22 upstream 18b44bc5a672 6756545c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: use-after-free Read in ntfs_fill_super
2023/07/26 00:18 upstream af2e19389c2c 00adc293 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: use-after-free Read in ntfs_fill_super
2023/07/24 17:00 upstream 6eaae1980760 68162649 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream KASAN: use-after-free Read in ntfs_fill_super
2023/07/22 14:48 upstream d192f5382581 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root KASAN: use-after-free Read in ntfs_fill_super
2023/07/15 06:17 upstream 2772d7df3c93 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root KASAN: use-after-free Read in ntfs_fill_super
2022/11/13 05:49 upstream fef7fd48922d f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Write in ntfs_fill_super
2022/10/23 07:03 upstream 4da34b7d175d c0b80a55 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in ntfs_fill_super
2022/10/07 21:40 upstream 4c86114194e6 79a59635 .config console log report info ci2-upstream-fs KASAN: stack-out-of-bounds Read in ntfs_fill_super
2023/08/24 08:55 upstream 93f5de5f648d 4d7ae7ab .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 KASAN: use-after-free Read in ntfs_fill_super
2023/08/16 17:21 upstream 4853c74bd7ab 7773e940 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 KASAN: use-after-free Read in ntfs_fill_super
2023/08/11 19:34 upstream 9106536c1aa3 39990d51 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 KASAN: use-after-free Read in ntfs_fill_super
2023/08/04 08:20 upstream c1a515d3c027 74621247 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 KASAN: use-after-free Read in ntfs_fill_super
2023/07/26 00:50 upstream af2e19389c2c 00adc293 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 KASAN: out-of-bounds Read in ntfs_fill_super
2023/07/22 01:23 upstream d192f5382581 27cbe77f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 KASAN: use-after-free Read in ntfs_fill_super
2023/09/26 13:45 linux-next 4ae73bba62a3 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/09/04 17:20 linux-next a47fc304d2b6 8bc9053e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/09/02 10:05 linux-next a47fc304d2b6 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/09/02 05:57 linux-next a47fc304d2b6 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
2023/08/24 11:33 linux-next 2b3bd393093b 4d7ae7ab .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: out-of-bounds Read in ntfs_fill_super
2023/08/18 19:01 linux-next 7271b2a53042 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: use-after-free Read in ntfs_fill_super
* Struck through repros no longer work on HEAD.