syzbot


BUG: unable to handle kernel NULL pointer dereference in __lookup_slow

Status: fixed on 2021/04/10 11:48
Reported-by: syzbot+9a0b21b8e095def1655c@syzkaller.appspotmail.com
Fix commit: b8590c82b3cc reiserfs: add check for an invalid ih_entry_count
First crash: 1511d, last: 1353d
Fix bisection: fixed by (bisect log) :
commit b8590c82b3ccf9fb4d9f0b0b097be10736869333
Author: Rustam Kovhaev <rkovhaev@gmail.com>
Date: Sun Nov 1 14:09:58 2020 +0000

  reiserfs: add check for an invalid ih_entry_count

  
Similar bugs (4)
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 1374d 1515d 19/28 fixed on 2021/03/10 01:48
linux-4.19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow (2) C done 15 1197d 1320d 1/1 fixed on 2021/09/13 16:54
upstream BUG: unable to handle kernel NULL pointer dereference in __lookup_slow (2) reiserfs C inconclusive 4 1235d 1318d 0/28 auto-obsoleted due to no activity on 2023/04/14 10:28
upstream BUG: unable to handle kernel NULL pointer dereference in __lookup_slow (3) overlayfs C inconclusive 132 17h53m 207d 0/28 upstream: reported C repro on 2024/04/28 08:01
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2021/04/07 20:12 3h20m bisect fix linux-4.19.y OK (1) job log
2021/02/04 10:12 1m bisect fix linux-4.19.y error job log

Sample crash report:
reiserfs: using flush barriers
REISERFS (device loop0): journal params: device loop0, size 8192, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30
REISERFS (device loop0): checking transaction log (loop0)
REISERFS (device loop0): Using rupasov hash to sort names
REISERFS (device loop0): using 3.5.x disk format
BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
PGD aa363067 P4D aa363067 PUD 983c6067 PMD 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8123 Comm: syz-executor964 Not tainted 4.19.152-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:ffff888094c078a8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 1ffff11012980f18 RCX: ffffffff81a7de9b
RDX: 0000000000000000 RSI: ffff88808e22a5c0 RDI: ffff88808ace7740
RBP: ffffffff8878ce00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88808e22a5c0
R13: ffff88808ace7740 R14: ffff888094c07a38 R15: ffff888094c078e0
FS:  0000000000fbe880(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000000a9c44000 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/0x2ce4 fs/reiserfs/super.c:2179
 mount_bdev+0x2fc/0x3b0 fs/super.c:1158
 mount_fs+0xa3/0x30c 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:0x447d9a
Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 7d a3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 5a a3 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007ffd75de9b18 EFLAGS: 00000297 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffd75de9b70 RCX: 0000000000447d9a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffd75de9b30
RBP: 00007ffd75de9b30 R08: 00007ffd75de9b70 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000297 R12: 0000000000000006
R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003
Modules linked in:
CR2: 0000000000000000
---[ end trace 5619fcbd191dfb9f ]---
RIP: 0010:          (null)
Code: Bad RIP value.
RSP: 0018:ffff888094c078a8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 1ffff11012980f18 RCX: ffffffff81a7de9b
RDX: 0000000000000000 RSI: ffff88808e22a5c0 RDI: ffff88808ace7740
RBP: ffffffff8878ce00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88808e22a5c0
R13: ffff88808ace7740 R14: ffff888094c07a38 R15: ffff888094c078e0
FS:  0000000000fbe880(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 00000000a9c44000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/25 19:39 linux-4.19.y ad326970d25c a1839e81 .config console log report syz C ci2-linux-4-19
2020/10/02 05:24 linux-4.19.y b09c34517e1a 9602ddf4 .config console log report syz C ci2-linux-4-19
2021/03/08 20:11 linux-4.19.y 2cae3e25b706 09fbf400 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/02/20 15:27 linux-4.19.y 255b58a2b3af 3e5ed8b4 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/02/16 06:49 linux-4.19.y 811218eceeaa 98682e5e .config console log report info ci2-linux-4-19 BUG: unable to handle kernel NULL pointer dereference in __lookup_slow
2021/01/05 09:51 linux-4.19.y 3207316b3bee 2a28ff1f .config console log report info ci2-linux-4-19
2021/01/02 03:27 linux-4.19.y 3207316b3bee 79264ae3 .config console log report info ci2-linux-4-19
2020/12/31 13:54 linux-4.19.y 3207316b3bee 79264ae3 .config console log report info ci2-linux-4-19
2020/12/31 13:21 linux-4.19.y 3207316b3bee 5cc121d6 .config console log report info ci2-linux-4-19
2020/12/30 22:01 linux-4.19.y 3207316b3bee ecb8c012 .config console log report info ci2-linux-4-19
2020/12/23 06:01 linux-4.19.y 13d2ce42de8c 04201c06 .config console log report info ci2-linux-4-19
2020/12/12 18:06 linux-4.19.y 13d2ce42de8c bca53db9 .config console log report info ci2-linux-4-19
2020/12/07 05:13 linux-4.19.y daefdc9eb24b c521566d .config console log report info ci2-linux-4-19
2020/12/05 19:45 linux-4.19.y daefdc9eb24b 50503117 .config console log report info ci2-linux-4-19
2020/11/19 23:56 linux-4.19.y 2c746135a12e 0767f13f .config console log report info ci2-linux-4-19
2020/11/17 00:02 linux-4.19.y 31acccdc8774 1bf9a662 .config console log report info ci2-linux-4-19
2020/11/16 04:56 linux-4.19.y 31acccdc8774 1bf9a662 .config console log report info ci2-linux-4-19
2020/11/13 09:38 linux-4.19.y 31acccdc8774 16fca0c8 .config console log report info ci2-linux-4-19
2020/11/09 19:37 linux-4.19.y b94de4d19498 cba33199 .config console log report info ci2-linux-4-19
2020/11/08 13:29 linux-4.19.y b94de4d19498 cba33199 .config console log report info ci2-linux-4-19
2020/10/12 11:31 linux-4.19.y a1b977b49b66 4a77ae0b .config console log report info ci2-linux-4-19
2020/10/08 08:33 linux-4.19.y a1b977b49b66 1880b4a9 .config console log report info ci2-linux-4-19
2020/10/01 20:51 linux-4.19.y b09c34517e1a 9602ddf4 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.