syzbot


general protection fault in ni_readpage_cmpr

Status: auto-obsoleted due to no activity on 2023/12/30 05:23
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+af224b63e76b2d869bc3@syzkaller.appspotmail.com
First crash: 418d, last: 221d
Cause bisection: introduced by (bisect log) :
commit 9fd472af84abd6da15376353c2283b3df9497646
Author: NeilBrown <neilb@suse.de>
Date: Tue Mar 22 21:38:54 2022 +0000

  mm: improve cleanup when ->readpages doesn't process all pages

Crash: general protection fault in ni_readpage_cmpr (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 013ff63b649475f0ee134e2c8d0c8e65284ede50
Author: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Date: Fri Jun 30 12:17:02 2023 +0000

  fs/ntfs3: Add more attributes checks in mi_enum_attr()

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs3?] general protection fault in ni_readpage_cmpr 0 (4) 2023/11/21 15:58
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: unable to handle kernel paging request in ni_readpage_cmpr C error 11 298d 418d 0/3 auto-obsoleted due to no activity on 2023/11/29 11:32
linux-5.15 BUG: unable to handle kernel paging request in ni_readpage_cmpr origin:upstream missing-backport C error 2 226d 276d 0/3 upstream: reported C repro on 2023/08/27 20:46
Last patch testing requests (6)
Created Duration User Patch Repo Result
2023/11/04 08:32 2h27m retest repro linux-next OK log
2023/11/04 08:32 22m retest repro upstream OK log
2023/11/04 08:32 19m retest repro upstream OK log
2023/11/04 08:32 20m retest repro upstream OK log
2023/11/04 08:32 23m retest repro linux-next OK log
2023/11/04 07:15 24m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci OK log

Sample crash report:
RSP: 002b:00007ffed3921068 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f0996ccaf79
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000005
RBP: 00007f0996d656a0 R08: 00007ffed3920e06 R09: 0000000000000140
R10: 000000000000c049 R11: 0000000000000246 R12: 0000000000000004
R13: 00007ffed39210a0 R14: 0000000000000003 R15: 000000000000000c
 </TASK>
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 5026 Comm: syz-executor114 Not tainted 6.6.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
RIP: 0010:_compound_head include/linux/page-flags.h:247 [inline]
RIP: 0010:unlock_page+0x26/0x130 mm/folio-compat.c:21
Code: 00 00 00 00 f3 0f 1e fa 41 57 41 56 53 49 89 fe 49 bf 00 00 00 00 00 fc ff df e8 c5 ab ca ff 49 8d 5e 08 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 ab 1d 25 00 48 8b 1b 48 89 de 48
RSP: 0018:ffffc90003baf400 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffff888079f58000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff82d370d4 R09: 1ffffd4000397eb0
R10: dffffc0000000000 R11: fffff94000397eb1 R12: ffff888018f00d08
R13: 00000000fffffff4 R14: 0000000000000000 R15: dffffc0000000000
FS:  0000555556cdd380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f90e3623ed8 CR3: 00000000741c7000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ni_readpage_cmpr+0x42a/0xa50 fs/ntfs3/frecord.c:2153
 ntfs_read_folio+0x19e/0x210 fs/ntfs3/inode.c:718
 filemap_read_folio+0x19c/0x770 mm/filemap.c:2382
 filemap_create_folio mm/filemap.c:2510 [inline]
 filemap_get_pages+0xdf7/0x2080 mm/filemap.c:2563
 filemap_splice_read+0x4ce/0xcd0 mm/filemap.c:2919
 splice_direct_to_actor+0x2c4/0x9e0 fs/splice.c:1069
 do_splice_direct+0x2ac/0x3f0 fs/splice.c:1194
 do_sendfile+0x623/0x1070 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f0996ccaf79
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 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:00007ffed3921068 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f0996ccaf79
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000005
RBP: 00007f0996d656a0 R08: 00007ffed3920e06 R09: 0000000000000140
R10: 000000000000c049 R11: 0000000000000246 R12: 0000000000000004
R13: 00007ffed39210a0 R14: 0000000000000003 R15: 000000000000000c
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:_compound_head include/linux/page-flags.h:247 [inline]
RIP: 0010:unlock_page+0x26/0x130 mm/folio-compat.c:21
Code: 00 00 00 00 f3 0f 1e fa 41 57 41 56 53 49 89 fe 49 bf 00 00 00 00 00 fc ff df e8 c5 ab ca ff 49 8d 5e 08 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 ab 1d 25 00 48 8b 1b 48 89 de 48
RSP: 0018:ffffc90003baf400 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffff888079f58000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff82d370d4 R09: 1ffffd4000397eb0
R10: dffffc0000000000 R11: fffff94000397eb1 R12: ffff888018f00d08
R13: 00000000fffffff4 R14: 0000000000000000 R15: dffffc0000000000
FS:  0000555556cdd380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f90e3623ed8 CR3: 00000000741c7000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	00 00                	add    %al,(%rax)
   4:	f3 0f 1e fa          	endbr64
   8:	41 57                	push   %r15
   a:	41 56                	push   %r14
   c:	53                   	push   %rbx
   d:	49 89 fe             	mov    %rdi,%r14
  10:	49 bf 00 00 00 00 00 	movabs $0xdffffc0000000000,%r15
  17:	fc ff df
  1a:	e8 c5 ab ca ff       	call   0xffcaabe4
  1f:	49 8d 5e 08          	lea    0x8(%r14),%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 ab 1d 25 00       	call   0x251de4
  39:	48 8b 1b             	mov    (%rbx),%rbx
  3c:	48 89 de             	mov    %rbx,%rsi
  3f:	48                   	rex.W

Crashes (65):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/26 09:12 upstream 6465e260f487 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root general protection fault in ni_readpage_cmpr
2023/06/18 17:09 upstream 1b29d271614a f3921d4d .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/06/10 09:19 upstream 64569520920a 7086cdb9 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/07/27 19:40 linux-next 451cc82bd11e 92476829 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/07/14 17:16 linux-next 7c2878be5732 d624500f .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/05/07 10:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a 90c93c40 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ni_readpage_cmpr
2023/10/08 18:19 upstream b9ddbb0cde2a 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/10/02 04:32 upstream e81a2dabc3f3 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in ni_readpage_cmpr
2023/09/10 05:13 upstream a3c57ab79a06 6654cf89 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/09/09 08:30 upstream ca9c7abf9502 6654cf89 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/10/09 09:56 upstream 94f6f0550c62 5e837c76 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ni_readpage_cmpr
2023/10/01 06:23 upstream 3b517966c561 8e26a358 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ni_readpage_cmpr
2023/09/24 12:42 upstream 3aba70aed91f 0b6a67ac .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ni_readpage_cmpr
2023/09/21 15:05 upstream 42dc814987c1 0b6a67ac .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ni_readpage_cmpr
2023/09/13 05:18 upstream a747acc0b752 59da8366 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ni_readpage_cmpr
2023/09/12 06:56 upstream 0bb80ecc33a8 59da8366 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ni_readpage_cmpr
2023/10/20 06:29 upstream 7cf4bea77ab6 a42250d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ni_readpage_cmpr
2023/10/02 18:17 upstream 8a749fd1a872 0c7326f3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ni_readpage_cmpr
2023/09/30 16:20 upstream 9f3ebbef746f 8e26a358 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ni_readpage_cmpr
2023/09/24 10:06 upstream 3aba70aed91f 0b6a67ac .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ni_readpage_cmpr
2023/09/18 04:34 upstream e789286468a9 0b6a67ac .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ni_readpage_cmpr
2023/07/19 11:15 upstream ccff6d117d8d 022df2bb .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ni_readpage_cmpr
2023/07/18 10:38 upstream fdf0eaf11452 20f8b3c2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/07/16 19:16 upstream 831fe284d827 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/07/16 00:31 upstream b6e6cc1f78c7 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in ni_readpage_cmpr
2023/07/15 20:19 upstream b6e6cc1f78c7 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/07/09 16:03 upstream 1c7873e33645 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/07/02 18:27 upstream 995b406c7e97 bfc47836 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ni_readpage_cmpr
2023/06/21 04:58 upstream 99ec1ed7c2ed 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in ni_readpage_cmpr
2023/06/18 04:07 upstream 1b29d271614a f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/06/06 11:02 upstream f8dba31b0a82 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/06/04 23:53 upstream 6f64a5ebe1dc a4ae4f42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ni_readpage_cmpr
2023/06/02 06:07 upstream 1874a42a7d74 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/05/27 23:57 upstream 4e893b5aa4ac cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in ni_readpage_cmpr
2023/05/26 19:32 upstream 0d85b27b0cc6 b0e6aca7 .config console log report info ci-qemu-upstream general protection fault in ni_readpage_cmpr
2023/05/16 08:59 upstream f1fcbaa18b28 71b00cfb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/05/11 00:33 upstream ad2fd53a7870 0fbd49f4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in ni_readpage_cmpr
2023/04/21 18:57 upstream 2af3e53a4dc0 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/04/20 21:28 upstream cb0856346a60 a219f34e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in ni_readpage_cmpr
2023/04/18 05:04 upstream 6a8f57ae2eb0 436577a9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/04/17 16:33 upstream 6a8f57ae2eb0 c6ec7083 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/04/14 01:24 upstream de4664485abb 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/04/08 17:34 upstream aa318c48808c 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in ni_readpage_cmpr
2023/04/07 13:48 upstream f2afccfefe7b f7ba566d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/04/07 08:33 upstream f2afccfefe7b 00ce4c67 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/07/18 00:54 upstream fdf0eaf11452 20f8b3c2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ni_readpage_cmpr
2023/07/16 18:41 upstream 831fe284d827 35d9ecc5 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ni_readpage_cmpr
2023/06/27 20:44 upstream 1ef6663a587b 4cd5bb25 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ni_readpage_cmpr
2023/06/26 15:37 upstream 6995e2de6891 4cd5bb25 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in ni_readpage_cmpr
2023/09/26 01:41 linux-next 8fff9184d1b5 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/08/11 11:16 linux-next 21ef7b1e17d0 da3c3ef8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/06/04 23:51 linux-next 715abedee4cd a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/05/31 11:46 linux-next 715abedee4cd 09898419 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in ni_readpage_cmpr
2023/10/21 05:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 78124b0c1d10 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ni_readpage_cmpr
2023/09/24 15:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe4469582053 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ni_readpage_cmpr
2023/08/29 09:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe4469582053 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ni_readpage_cmpr
2023/08/06 15:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 86d7896480b0 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ni_readpage_cmpr
2023/07/28 16:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6eaae1980760 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ni_readpage_cmpr
2023/07/15 19:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ni_readpage_cmpr
2023/06/21 09:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 177239177378 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ni_readpage_cmpr
2023/05/07 10:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a 90c93c40 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ni_readpage_cmpr
2023/04/20 06:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 327bf9bb94cf a219f34e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ni_readpage_cmpr
2023/04/19 16:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 327bf9bb94cf 94b4184e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in ni_readpage_cmpr
* Struck through repros no longer work on HEAD.