syzbot


general protection fault in __nilfs_btree_get_block

Status: auto-obsoleted due to no activity on 2023/02/03 15:53
Subsystems: nilfs
[Documentation on labels]
Reported-by: syzbot+3760ae4a4f4e0278a90f@syzkaller.appspotmail.com
First crash: 573d, last: 537d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] general protection fault in __nilfs_btree_get_block 0 (1) 2022/10/01 14:27

Sample crash report:
loop3: detected capacity change from 0 to 2048
general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037]
CPU: 1 PID: 8170 Comm: syz-executor.3 Not tainted 6.0.0-syzkaller-09423-g493ffd6605b2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:__nilfs_btree_get_block+0xc6/0x730 fs/nilfs2/btree.c:475
Code: 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 6d d6 92 fe 4c 89 7c 24 20 48 8b 1b 48 83 c3 30 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 4b d6 92 fe 4c 8d bc 24 80 00 00
RSP: 0018:ffffc9000518f140 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000030 RCX: ffff888021e1bb00
RDX: 0000000000000000 RSI: 0000000000001803 RDI: ffff888031560680
RBP: ffffc9000518f270 R08: ffffffff834708dc R09: 0000000000000000
R10: ffffed100f37edf3 R11: 1ffff1100f37edf0 R12: 1ffff92000a31e34
R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000001803
FS:  00007f150ed27700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f150ed28000 CR3: 00000000782d6000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 nilfs_btree_do_lookup+0x558/0xc80 fs/nilfs2/btree.c:569
 nilfs_btree_lookup+0x19d/0x1d0 fs/nilfs2/btree.c:686
 nilfs_bmap_lookup_at_level+0xd8/0x350 fs/nilfs2/bmap.c:69
 nilfs_bmap_lookup fs/nilfs2/bmap.h:170 [inline]
 nilfs_mdt_submit_block+0x23d/0x520 fs/nilfs2/mdt.c:142
 nilfs_mdt_read_block+0xa3/0x460 fs/nilfs2/mdt.c:176
 nilfs_mdt_get_block+0x104/0x820 fs/nilfs2/mdt.c:251
 nilfs_palloc_get_block+0x142/0x240 fs/nilfs2/alloc.c:216
 nilfs_palloc_get_entry_block+0x1e8/0x2e0 fs/nilfs2/alloc.c:318
 nilfs_ifile_get_inode_block+0xf0/0x1a0 fs/nilfs2/ifile.c:143
 __nilfs_read_inode fs/nilfs2/inode.c:477 [inline]
 nilfs_iget+0x253/0x8b0 fs/nilfs2/inode.c:603
 nilfs_get_root_dentry+0x28/0x230 fs/nilfs2/super.c:904
 nilfs_fill_super+0x3dd/0x5d0 fs/nilfs2/super.c:1078
 nilfs_mount+0x613/0x9b0 fs/nilfs2/super.c:1317
 legacy_get_tree+0xea/0x180 fs/fs_context.c:610
 vfs_get_tree+0x88/0x270 fs/super.c:1530
 do_new_mount+0x289/0xad0 fs/namespace.c:3040
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3568
 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:0x7f150dc8cada
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 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:00007f150ed26f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007f150dc8cada
RDX: 00000000200000c0 RSI: 0000000020000100 RDI: 00007f150ed26fe0
RBP: 00007f150ed27020 R08: 00007f150ed27020 R09: 00000000200000c0
R10: 0000000000000000 R11: 0000000000000202 R12: 00000000200000c0
R13: 0000000020000100 R14: 00007f150ed26fe0 R15: 0000000020000c40
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__nilfs_btree_get_block+0xc6/0x730 fs/nilfs2/btree.c:475
Code: 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 6d d6 92 fe 4c 89 7c 24 20 48 8b 1b 48 83 c3 30 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 4b d6 92 fe 4c 8d bc 24 80 00 00
RSP: 0018:ffffc9000518f140 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000030 RCX: ffff888021e1bb00
RDX: 0000000000000000 RSI: 0000000000001803 RDI: ffff888031560680
RBP: ffffc9000518f270 R08: ffffffff834708dc R09: 0000000000000000
R10: ffffed100f37edf3 R11: 1ffff1100f37edf0 R12: 1ffff92000a31e34
R13: dffffc0000000000 R14: dffffc0000000000 R15: 0000000000001803
FS:  00007f150ed27700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f150cbbbfc0 CR3: 00000000782d6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 48 89             	add    %cl,-0x77(%rax)
   3:	d8 48 c1             	fmuls  -0x3f(%rax)
   6:	e8 03 42 80 3c       	callq  0x3c80420e
   b:	30 00                	xor    %al,(%rax)
   d:	74 08                	je     0x17
   f:	48 89 df             	mov    %rbx,%rdi
  12:	e8 6d d6 92 fe       	callq  0xfe92d684
  17:	4c 89 7c 24 20       	mov    %r15,0x20(%rsp)
  1c:	48 8b 1b             	mov    (%rbx),%rbx
  1f:	48 83 c3 30          	add    $0x30,%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 4b d6 92 fe       	callq  0xfe92d684
  39:	4c                   	rex.WR
  3a:	8d                   	.byte 0x8d
  3b:	bc 24 80 00 00       	mov    $0x8024,%esp

Crashes (43):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/20 12:01 upstream 493ffd6605b2 b31320fc .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/20 07:04 upstream 493ffd6605b2 b31320fc .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/20 06:36 upstream 493ffd6605b2 b31320fc .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/18 15:07 upstream 493ffd6605b2 b31320fc .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/18 14:40 upstream 55be6084c8e0 754863b4 .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in __nilfs_btree_get_block
2022/10/18 13:13 upstream 493ffd6605b2 b31320fc .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/17 14:39 upstream 55be6084c8e0 67cb024c .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-selinux-root general protection fault in __nilfs_btree_get_block
2022/10/16 13:16 upstream 493ffd6605b2 67cb024c .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/16 05:41 upstream 493ffd6605b2 67cb024c .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/16 02:14 upstream 55be6084c8e0 67cb024c .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root general protection fault in __nilfs_btree_get_block
2022/10/15 17:20 upstream 55be6084c8e0 67cb024c .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root general protection fault in __nilfs_btree_get_block
2022/10/15 02:34 upstream 493ffd6605b2 67cb024c .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/14 06:53 upstream 493ffd6605b2 4954e4b2 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/14 01:37 upstream 493ffd6605b2 4954e4b2 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/14 01:13 upstream 493ffd6605b2 4954e4b2 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/13 08:00 upstream 493ffd6605b2 3f6b40a1 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/12 08:13 upstream 493ffd6605b2 02b6492e .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/11 18:25 upstream 493ffd6605b2 02b6492e .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/11 12:23 upstream 55be6084c8e0 2b253ced .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root general protection fault in __nilfs_btree_get_block
2022/10/10 21:55 upstream 493ffd6605b2 5bcf0c31 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/09 23:47 upstream a6afa4199d3d aea5da89 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-smack-root general protection fault in __nilfs_btree_get_block
2022/10/09 21:05 upstream a6afa4199d3d aea5da89 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/08 14:17 upstream 62e6e5940c0c aea5da89 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/08 14:15 upstream 62e6e5940c0c aea5da89 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/07 22:42 upstream 4c86114194e6 79a59635 .config console log report info ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/07 08:41 upstream 833477fce7a1 80b58a42 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/06 20:19 upstream 833477fce7a1 80b58a42 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/05 18:46 upstream 0326074ff465 267e3bb1 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/05 11:49 upstream 0326074ff465 267e3bb1 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/05 05:57 upstream 0326074ff465 267e3bb1 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/03 00:36 upstream a962b54e162c feb56351 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/09/30 12:40 upstream 987a926c1d8a 45fd7169 .config console log report info [disk image] [vmlinux] ci2-upstream-fs general protection fault in __nilfs_btree_get_block
2022/10/02 19:25 linux-next aaa11ce2ffc8 feb56351 .config console log report info [disk image] [vmlinux] ci-upstream-linux-next-kasan-gce-root general protection fault in __nilfs_btree_get_block
2022/11/05 15:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __nilfs_btree_get_block
2022/11/01 02:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 a1d8560a .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __nilfs_btree_get_block
2022/11/01 00:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __nilfs_btree_get_block
2022/10/30 23:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __nilfs_btree_get_block
2022/10/30 00:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __nilfs_btree_get_block
2022/10/25 07:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 45645420 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __nilfs_btree_get_block
2022/10/18 14:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 754863b4 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __nilfs_btree_get_block
2022/10/15 07:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __nilfs_btree_get_block
2022/10/09 15:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 aea5da89 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __nilfs_btree_get_block
2022/10/08 12:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 aea5da89 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in __nilfs_btree_get_block
* Struck through repros no longer work on HEAD.