syzbot


BUG: unable to handle kernel NULL pointer dereference in __lookup_slow (2)

Status: fixed on 2021/09/13 16:54
Reported-by: syzbot+f871373fd0aaa3073617@syzkaller.appspotmail.com
Fix commit: df2f583b6363 reiserfs: add check for root_inode in reiserfs_fill_super
First crash: 1109d, last: 985d
Fix bisection: fixed by (bisect log) :
commit df2f583b63637f9f882ba604cf23e0336de82220
Author: Yu Kuai <yukuai3@huawei.com>
Date: Fri Jul 2 04:07:43 2021 +0000

  reiserfs: add check for root_inode in reiserfs_fill_super

  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in __lookup_slow reiserfs C inconclusive done 3 1163d 1304d 19/26 fixed on 2021/03/10 01:48
upstream BUG: unable to handle kernel NULL pointer dereference in __lookup_slow (2) reiserfs C inconclusive 4 1023d 1107d 0/26 auto-obsoleted due to no activity on 2023/04/14 10:28
linux-4.19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow C done 23 1142d 1300d 1/1 fixed on 2021/04/10 11:48

Sample crash report:
reiserfs: using flush barriers
REISERFS (device loop0): journal params: device loop0, size 15748, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
REISERFS (device loop0): checking transaction log (loop0)
REISERFS (device loop0): Using tea hash to sort names
BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
PGD a4a6a067 P4D a4a6a067 PUD ab9e0067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8087 Comm: syz-executor691 Not tainted 4.19.196-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:          (null)
Code: Bad RIP value.
RSP: 0018:ffff8880a4bb78a8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 1ffff11014976f18 RCX: ffffffff81a51e1b
RDX: 0000000000000000 RSI: ffff88808e59e2c0 RDI: ffff88808aa4e740
RBP: ffffffff8878d700 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88808e59e2c0
R13: ffff88808aa4e740 R14: ffff8880a4bb7a38 R15: ffff8880a4bb78e0
FS:  0000000001fa0300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000000ab7ce000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __lookup_slow+0x246/0x4a0 fs/namei.c:1672
 lookup_one_len+0x163/0x190 fs/namei.c:2544
 reiserfs_lookup_privroot+0x92/0x280 fs/reiserfs/xattr.c:970
 reiserfs_fill_super+0x202c/0x2cf0 fs/reiserfs/super.c:2179
 mount_bdev+0x2fc/0x3b0 fs/super.c:1158
 mount_fs+0xa3/0x310 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2469 [inline]
 do_mount+0x113c/0x2f10 fs/namespace.c:2799
 ksys_mount+0xcf/0x130 fs/namespace.c:3015
 __do_sys_mount fs/namespace.c:3029 [inline]
 __se_sys_mount fs/namespace.c:3026 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3026
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x445b6a
Code: 48 c7 c2 c0 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 a8 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffef5a17e28 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffef5a17e80 RCX: 0000000000445b6a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffef5a17e40
RBP: 00007ffef5a17e40 R08: 00007ffef5a17e80 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000286 R12: 00000000200002a8
R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000007
Modules linked in:
CR2: 0000000000000000
---[ end trace b779b95de8fc263d ]---
RIP: 0010:          (null)
Code: Bad RIP value.
RSP: 0018:ffff8880a4bb78a8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 1ffff11014976f18 RCX: ffffffff81a51e1b
RDX: 0000000000000000 RSI: ffff88808e59e2c0 RDI: ffff88808aa4e740
RBP: ffffffff8878d700 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88808e59e2c0
R13: ffff88808aa4e740 R14: ffff8880a4bb7a38 R15: ffff8880a4bb78e0
FS:  0000000001fa0300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000000ab7ce000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/10 07:33 linux-4.19.y 9f84340f012e 8f5a7b8c .config console log report syz C ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/06/10 23:14 linux-4.19.y 9a2dc0e6c531 1ba81399 .config console log report syz C ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/04/10 23:06 linux-4.19.y 830a059cbba6 6a81331a .config console log report syz C ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/08/12 10:54 linux-4.19.y 5c66974a6304 6972b106 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/08/08 16:42 linux-4.19.y 5c66974a6304 6972b106 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/07/28 06:00 linux-4.19.y 4938296e03bd 17d6ab15 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/07/26 05:54 linux-4.19.y 4938296e03bd 4d1b57d4 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/06/23 06:11 linux-4.19.y eb575cd5d7f6 aba2b2fb .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/06/14 02:19 linux-4.19.y 9a2dc0e6c531 1ba81399 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/06/01 05:48 linux-4.19.y 6b7b0056defc 032639db .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/05/31 14:04 linux-4.19.y 6b7b0056defc 032639db .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/05/31 02:06 linux-4.19.y 6b7b0056defc 325a8dab .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/05/22 22:09 linux-4.19.y 1e986fe9ad15 3c7fef33 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/04/29 09:50 linux-4.19.y 97a8651cadce 77e2b668 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/04/10 22:21 linux-4.19.y 830a059cbba6 6a81331a .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
* Struck through repros no longer work on HEAD.