syzbot


general protection fault in do_journal_end

Status: upstream: reported C repro on 2023/01/05 12:44
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+0b1d8fe60d804bd14009@syzkaller.appspotmail.com
First crash: 448d, last: 411d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in do_journal_end reiserfs C error 3 436d 485d 0/1 upstream: reported C repro on 2022/11/30 04:17
linux-6.1 BUG: unable to handle kernel paging request in do_journal_end origin:upstream C 2 29d 220d 0/3 upstream: reported C repro on 2023/08/21 09:50
upstream KASAN: null-ptr-deref Read in do_journal_end (2) reiserfs C error done 40699 80d 607d 0/26 auto-obsoleted due to no activity on 2024/03/18 13:22
linux-5.15 KASAN: null-ptr-deref Read in do_journal_end origin:upstream C error 6 163d 357d 0/3 upstream: reported C repro on 2023/04/06 14:35
upstream KASAN: null-ptr-deref Read in do_journal_end reiserfs 1 887d 882d 0/26 auto-closed as invalid on 2022/02/20 18:03
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/02/11 08:24 30m bisect fix linux-4.14.y job log (0) log

Sample crash report:
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
audit: type=1800 audit(1673511745.986:2): pid=7962 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor284" name="bus" dev="loop0" ino=4 res=0
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 7962 Comm: syz-executor284 Not tainted 4.14.302-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff8880b32ae0c0 task.stack: ffff8880963d0000
RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:328 [inline]
RIP: 0010:set_buffer_uptodate include/linux/buffer_head.h:144 [inline]
RIP: 0010:do_journal_end+0x111f/0x4310 fs/reiserfs/journal.c:4090
RSP: 0018:ffff8880963d7ab8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffc90001ae0000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffea000263bc40
RBP: ffff8880b2e36000 R08: ffffea000263bc40 R09: 0000000000000003
R10: 0000000000000000 R11: ffff8880b32ae0c0 R12: 0000000000000000
R13: ffffc90001ae0058 R14: ffffc90001ae0048 R15: ffff8880963d7bf0
FS:  0000555556b10300(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0325f04bb8 CR3: 000000009adfe000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 reiserfs_sync_fs+0xbb/0xd0 fs/reiserfs/super.c:78
 __sync_filesystem fs/sync.c:39 [inline]
 sync_filesystem fs/sync.c:64 [inline]
 sync_filesystem+0xe2/0x230 fs/sync.c:48
 generic_shutdown_super+0x70/0x370 fs/super.c:432
 kill_block_super+0x95/0xe0 fs/super.c:1161
 deactivate_locked_super+0x6c/0xd0 fs/super.c:319
 deactivate_super+0x7f/0xa0 fs/super.c:350
 cleanup_mnt+0x186/0x2c0 fs/namespace.c:1183
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xa44/0x2850 kernel/exit.c:868
 do_group_exit+0x100/0x2e0 kernel/exit.c:965
 SYSC_exit_group kernel/exit.c:976 [inline]
 SyS_exit_group+0x19/0x20 kernel/exit.c:974
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f5ec9873ae9
RSP: 002b:00007ffed83f5d88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f5ec98e9350 RCX: 00007f5ec9873ae9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 00007f5ec98e3e40
R10: 000080001d00c0d0 R11: 0000000000000246 R12: 00007f5ec98e9350
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
Code: 00 0f 85 4e 2d 00 00 48 8b 7b 18 b9 08 00 00 00 e8 b7 22 e0 ff 48 89 c2 48 89 44 24 60 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 11 2d 00 00 48 8b 5c 24 60 48 8b 03 a8 01 75 
RIP: constant_test_bit arch/x86/include/asm/bitops.h:328 [inline] RSP: ffff8880963d7ab8
RIP: set_buffer_uptodate include/linux/buffer_head.h:144 [inline] RSP: ffff8880963d7ab8
RIP: do_journal_end+0x111f/0x4310 fs/reiserfs/journal.c:4090 RSP: ffff8880963d7ab8
---[ end trace 975c141c4ff9f963 ]---
----------------
Code disassembly (best guess):
   0:	00 0f                	add    %cl,(%rdi)
   2:	85 4e 2d             	test   %ecx,0x2d(%rsi)
   5:	00 00                	add    %al,(%rax)
   7:	48 8b 7b 18          	mov    0x18(%rbx),%rdi
   b:	b9 08 00 00 00       	mov    $0x8,%ecx
  10:	e8 b7 22 e0 ff       	callq  0xffe022cc
  15:	48 89 c2             	mov    %rax,%rdx
  18:	48 89 44 24 60       	mov    %rax,0x60(%rsp)
  1d:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  24:	fc ff df
  27:	48 c1 ea 03          	shr    $0x3,%rdx
* 2b:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2f:	0f 85 11 2d 00 00    	jne    0x2d46
  35:	48 8b 5c 24 60       	mov    0x60(%rsp),%rbx
  3a:	48 8b 03             	mov    (%rbx),%rax
  3d:	a8 01                	test   $0x1,%al
  3f:	75                   	.byte 0x75

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/12 08:24 linux-4.14.y c4215ee4771b 96166539 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 general protection fault in do_journal_end
2023/01/05 12:43 linux-4.14.y c4215ee4771b 1dac8c7a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 general protection fault in do_journal_end
* Struck through repros no longer work on HEAD.