syzbot


general protection fault in prepare_for_delete_or_cut

Status: upstream: reported C repro on 2023/01/06 16:52
Labels: reiserfs (incorrect?)
Reported-by: syzbot+e621a445f96fd0e94be4@syzkaller.appspotmail.com
First crash: 143d, last: 1d13h

Cause bisection: failed (error log, bisect log)
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [reiserfs?] general protection fault in prepare_for_delete_or_cut 0 (1) 2023/01/06 16:52
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in prepare_for_delete_or_cut fat reiserfs C error 3 117d 146d 0/1 upstream: reported C repro on 2023/01/01 21:41
linux-4.14 general protection fault in prepare_for_delete_or_cut reiserfs fat C 2 102d 149d 0/1 upstream: reported C repro on 2022/12/30 06:10
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/04/07 12:11 1h02m bisect fix upstream job log (0) log
2023/03/08 11:23 47m bisect fix upstream job log (0) log

Sample crash report:
REISERFS error (device loop0): vs-5150 search_by_key: invalid format found in block 532. Fsck?
REISERFS (device loop0): Remounting filesystem read-only
REISERFS error (device loop0): vs-13050 reiserfs_update_sd_size: i/o failure occurred trying to update [2 2 0x0 SD] stat data
REISERFS warning: reiserfs-5093 is_leaf: item entry count seems wrong *3.5*[2 1 0(1) DIR], item_len 35, item_location 4029, free_space(entry_count) 2
REISERFS error (device loop0): vs-5150 search_by_key: invalid format found in block 532. Fsck?
general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 0 PID: 5067 Comm: syz-executor356 Not tainted 6.2.0-rc2-syzkaller-00057-g41c03ba9beea #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:reiserfs_node_data fs/reiserfs/reiserfs.h:2184 [inline]
RIP: 0010:item_head fs/reiserfs/reiserfs.h:2200 [inline]
RIP: 0010:tp_item_head fs/reiserfs/reiserfs.h:2226 [inline]
RIP: 0010:prepare_for_delete_or_cut+0x182/0x21a0 fs/reiserfs/stree.c:1050
Code: 89 d8 48 c1 e8 03 49 bc 00 00 00 00 00 fc ff df 42 8a 04 20 84 c0 0f 85 f2 17 00 00 4c 63 3b 49 83 c6 28 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 ef 41 b3 ff 4d 8b 36 48 b8 00 00
RSP: 0018:ffffc90003bff100 EFLAGS: 00010206
RAX: 0000000000000005 RBX: ffffc90003bff8c0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000008
RBP: ffffc90003bff268 R08: ffffffff822e42d9 R09: ffffc90003bff730
R10: 0000000000000002 R11: ffff888023991d40 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000028 R15: 0000000000000000
FS:  0000555556956300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f656836c18 CR3: 000000007aa25000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 reiserfs_cut_from_item+0x38c/0x25b0 fs/reiserfs/stree.c:1682
 reiserfs_do_truncate+0x9d6/0x15a0 fs/reiserfs/stree.c:1973
 reiserfs_truncate_file+0x471/0x790 fs/reiserfs/inode.c:2310
 reiserfs_file_release+0x887/0xa30 fs/reiserfs/file.c:109
 __fput+0x3ba/0x880 fs/file_table.c:320
 task_work_run+0x243/0x300 kernel/task_work.c:179
 ptrace_notify+0x29a/0x340 kernel/signal.c:2354
 ptrace_report_syscall include/linux/ptrace.h:411 [inline]
 ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
 syscall_exit_work+0x8c/0xe0 kernel/entry/common.c:251
 syscall_exit_to_user_mode_prepare+0x63/0xc0 kernel/entry/common.c:278
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0xa/0x60 kernel/entry/common.c:296
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3739c112f3
Code: c7 c2 c0 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb ba 0f 1f 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8
RSP: 002b:00007ffcb18bf408 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f3739c112f3
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007ffcb18bf418 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcb18bf420
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:reiserfs_node_data fs/reiserfs/reiserfs.h:2184 [inline]
RIP: 0010:item_head fs/reiserfs/reiserfs.h:2200 [inline]
RIP: 0010:tp_item_head fs/reiserfs/reiserfs.h:2226 [inline]
RIP: 0010:prepare_for_delete_or_cut+0x182/0x21a0 fs/reiserfs/stree.c:1050
Code: 89 d8 48 c1 e8 03 49 bc 00 00 00 00 00 fc ff df 42 8a 04 20 84 c0 0f 85 f2 17 00 00 4c 63 3b 49 83 c6 28 4c 89 f0 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 f7 e8 ef 41 b3 ff 4d 8b 36 48 b8 00 00
RSP: 0018:ffffc90003bff100 EFLAGS: 00010206
RAX: 0000000000000005 RBX: ffffc90003bff8c0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000008
RBP: ffffc90003bff268 R08: ffffffff822e42d9 R09: ffffc90003bff730
R10: 0000000000000002 R11: ffff888023991d40 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000028 R15: 0000000000000000
FS:  0000555556956300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f656836c18 CR3: 000000007aa25000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	89 d8                	mov    %ebx,%eax
   2:	48 c1 e8 03          	shr    $0x3,%rax
   6:	49 bc 00 00 00 00 00 	movabs $0xdffffc0000000000,%r12
   d:	fc ff df
  10:	42 8a 04 20          	mov    (%rax,%r12,1),%al
  14:	84 c0                	test   %al,%al
  16:	0f 85 f2 17 00 00    	jne    0x180e
  1c:	4c 63 3b             	movslq (%rbx),%r15
  1f:	49 83 c6 28          	add    $0x28,%r14
  23:	4c 89 f0             	mov    %r14,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 f7             	mov    %r14,%rdi
  34:	e8 ef 41 b3 ff       	callq  0xffb34228
  39:	4d 8b 36             	mov    (%r14),%r14
  3c:	48                   	rex.W
  3d:	b8                   	.byte 0xb8

Crashes (32):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Manager Title
2023/01/06 16:08 upstream 41c03ba9beea 1dac8c7a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/05/04 08:51 linux-next 92e815cf07ed b5918830 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root general protection fault in prepare_for_delete_or_cut
2023/05/26 23:11 upstream 0d85b27b0cc6 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/05/26 14:57 upstream 9db898594c54 b40ef614 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/05/21 22:06 upstream e2065b8c1b01 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/05/20 21:11 upstream d635f6cc934b 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/05/20 08:06 upstream cbd6ac3837cd 96689200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/05/20 00:42 upstream cbd6ac3837cd 96689200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/05/18 20:40 upstream 4d6d4c7f541d 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/05/18 09:43 upstream 1b66c114d161 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/05/16 03:07 upstream f1fcbaa18b28 71b00cfb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/05/15 22:45 upstream f1fcbaa18b28 c4d362e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/02/06 11:22 upstream 4ec5183ec486 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/02/06 07:30 upstream 4ec5183ec486 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/02/05 09:24 upstream db27c22251e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/02/04 11:53 upstream 0136d86b7852 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/02/03 09:14 upstream e7368fd30165 33fc5c09 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/02/02 10:42 upstream 9f266ccaa2f5 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/02/02 00:25 upstream c0b67534c95c 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/01/31 22:15 upstream 22b8077d0fce b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/01/29 13:42 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/01/28 18:41 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/01/28 17:05 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/01/27 02:16 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/01/26 02:42 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in prepare_for_delete_or_cut
2023/01/17 05:26 upstream d532dd102151 a63719e7 .config console log report info ci-qemu-upstream general protection fault in prepare_for_delete_or_cut
2023/01/15 21:26 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/01/14 00:25 upstream d9fc1511728c 529798b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/01/08 01:49 upstream 0a71553536d2 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/01/06 16:09 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in prepare_for_delete_or_cut
2023/01/06 15:46 upstream 41c03ba9beea 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
2023/01/05 01:12 upstream 69b41ac87e4a 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in prepare_for_delete_or_cut
* Struck through repros no longer work on HEAD.