syzbot


BUG: corrupted list in reiserfs_lookup

Status: auto-obsoleted due to no activity on 2023/12/10 09:27
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+6deb6d40f4ca9198b2b4@syzkaller.appspotmail.com
First crash: 609d, last: 565d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in reiserfs_lookup reiserfs 12 779d 810d 0/28 auto-obsoleted due to no activity on 2023/06/09 14:19

Sample crash report:
loop2: detected capacity change from 0 to 64
list_add corruption. prev->next should be next (ffff88807bc87878), but was ffffffff8a984bc0. (prev=ffffffff8cdb9720).
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:30!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 12451 Comm: syz-executor.2 Not tainted 6.5.0-rc3-next-20230728-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:__list_add_valid+0xb6/0x100 lib/list_debug.c:30
Code: e8 1f 45 44 fd 0f 0b 48 89 d9 48 c7 c7 e0 7d c8 8a e8 0e 45 44 fd 0f 0b 48 89 f1 48 c7 c7 60 7e c8 8a 48 89 de e8 fa 44 44 fd <0f> 0b 48 89 f2 48 89 d9 48 89 ee 48 c7 c7 e0 7e c8 8a e8 e3 44 44
RSP: 0018:ffffc900054b75b0 EFLAGS: 00010286
RAX: 0000000000000075 RBX: ffff88807bc87878 RCX: ffffc9000b753000
RDX: 0000000000000000 RSI: ffffffff816adc22 RDI: 0000000000000005
RBP: ffffc900054b76b0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000001 R12: ffff88807bc87828
R13: ffff88807bc87880 R14: ffffffff8cdb9720 R15: ffffc900054b76b0
FS:  00007fb4857eb6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb484b98000 CR3: 000000002ae84000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __list_add include/linux/list.h:69 [inline]
 list_add_tail include/linux/list.h:102 [inline]
 __mutex_add_waiter+0x50/0x160 kernel/locking/mutex.c:210
 __mutex_lock_common kernel/locking/mutex.c:637 [inline]
 __mutex_lock+0x62c/0x1340 kernel/locking/mutex.c:747
 reiserfs_write_lock+0x79/0x100 fs/reiserfs/lock.c:27
 reiserfs_lookup+0x184/0x690 fs/reiserfs/namei.c:364
 lookup_open.isra.0+0x8dc/0x1360 fs/namei.c:3470
 open_last_lookups fs/namei.c:3560 [inline]
 path_openat+0x931/0x29c0 fs/namei.c:3790
 do_filp_open+0x1de/0x430 fs/namei.c:3820
 do_sys_openat2+0x176/0x1e0 fs/open.c:1418
 do_sys_open fs/open.c:1433 [inline]
 __do_sys_openat fs/open.c:1449 [inline]
 __se_sys_openat fs/open.c:1444 [inline]
 __x64_sys_openat+0x175/0x210 fs/open.c:1444
 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:0x7fb484a7cb29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb4857eb0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fb484b9bf80 RCX: 00007fb484a7cb29
RDX: 000000000000275a RSI: 0000000020000040 RDI: ffffffffffffff9c
RBP: 00007fb484ac847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fb484b9bf80 R15: 00007ffd5e8af6f8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_add_valid+0xb6/0x100 lib/list_debug.c:30
Code: e8 1f 45 44 fd 0f 0b 48 89 d9 48 c7 c7 e0 7d c8 8a e8 0e 45 44 fd 0f 0b 48 89 f1 48 c7 c7 60 7e c8 8a 48 89 de e8 fa 44 44 fd <0f> 0b 48 89 f2 48 89 d9 48 89 ee 48 c7 c7 e0 7e c8 8a e8 e3 44 44
RSP: 0018:ffffc900054b75b0 EFLAGS: 00010286
RAX: 0000000000000075 RBX: ffff88807bc87878 RCX: ffffc9000b753000
RDX: 0000000000000000 RSI: ffffffff816adc22 RDI: 0000000000000005
RBP: ffffc900054b76b0 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000001 R12: ffff88807bc87828
R13: ffff88807bc87880 R14: ffffffff8cdb9720 R15: ffffc900054b76b0
FS:  00007fb4857eb6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb484b98000 CR3: 000000002ae84000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/29 18:41 linux-next d7b3af5a77e8 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: corrupted list in reiserfs_lookup
2023/09/11 09:26 upstream 0bb80ecc33a8 6654cf89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in reiserfs_lookup
2023/08/07 10:46 upstream 52a93d39b17d 0ef3dfda .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-use-after-free Read in reiserfs_lookup
* Struck through repros no longer work on HEAD.