syzbot


general protection fault in errseq_set

Status: auto-obsoleted due to no activity on 2024/10/24 17:15
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+43fe607f28c0f0bcbb14@syzkaller.appspotmail.com
First crash: 214d, last: 147d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 BUG: unable to handle kernel paging request in errseq_set origin:lts-only C error 272 13d 622d 0/3 upstream: reported C repro on 2023/04/09 06:13
linux-4.14 general protection fault in errseq_set xfs C 2 657d 727d 0/1 upstream: reported C repro on 2022/12/24 15:39
linux-4.19 general protection fault in errseq_set xfs C error 6 701d 736d 0/1 upstream: reported C repro on 2022/12/16 00:36

Sample crash report:
BTRFS: error (device loop2 state A) in __cow_file_range_inline:678: errno=-5 IO failure
BTRFS info (device loop2 state EA): forced readonly
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000026: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000130-0x0000000000000137]
CPU: 0 UID: 0 PID: 52 Comm: kworker/u8:3 Not tainted 6.10.0-syzkaller-12562-g1722389b0d86 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
Workqueue: writeback wb_workfn (flush-btrfs-7)
RIP: 0010:errseq_set+0x28/0x120 lib/errseq.c:72
Code: 90 90 f3 0f 1e fa 55 41 57 41 56 41 54 53 41 89 f7 49 89 fe e8 e9 05 ec fc 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 cd 00 00 00 45 8b 26 bf 01 f0 ff ff 44 89
RSP: 0018:ffffc90000bc6d48 EFLAGS: 00010202
RAX: 0000000000000026 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 00000000fffffffb RDI: 0000000000000130
RBP: 00000000fffffffb R08: ffffffff934e98b7 R09: 1ffffffff269d316
R10: dffffc0000000000 R11: fffffbfff269d317 R12: ffffc90000bc6f18
R13: dffffc0000000000 R14: 0000000000000130 R15: 00000000fffffffb
FS:  0000000000000000(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd3adf9f38 CR3: 00000000541ea000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __filemap_set_wb_err+0x22/0x210 mm/filemap.c:705
 mapping_set_error include/linux/pagemap.h:235 [inline]
 __extent_writepage fs/btrfs/extent_io.c:1594 [inline]
 extent_write_cache_pages fs/btrfs/extent_io.c:2251 [inline]
 btrfs_writepages+0x13d5/0x2760 fs/btrfs/extent_io.c:2373
 do_writepages+0x35d/0x870 mm/page-writeback.c:2683
 __writeback_single_inode+0x165/0x10b0 fs/fs-writeback.c:1651
 writeback_sb_inodes+0x99c/0x1380 fs/fs-writeback.c:1947
 wb_writeback+0x481/0xd40 fs/fs-writeback.c:2127
 wb_do_writeback fs/fs-writeback.c:2274 [inline]
 wb_workfn+0x410/0x1090 fs/fs-writeback.c:2314
 process_one_work kernel/workqueue.c:3231 [inline]
 process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312
 worker_thread+0x86d/0xd40 kernel/workqueue.c:3390
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:errseq_set+0x28/0x120 lib/errseq.c:72
Code: 90 90 f3 0f 1e fa 55 41 57 41 56 41 54 53 41 89 f7 49 89 fe e8 e9 05 ec fc 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 cd 00 00 00 45 8b 26 bf 01 f0 ff ff 44 89
RSP: 0018:ffffc90000bc6d48 EFLAGS: 00010202
RAX: 0000000000000026 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 00000000fffffffb RDI: 0000000000000130
RBP: 00000000fffffffb R08: ffffffff934e98b7 R09: 1ffffffff269d316
R10: dffffc0000000000 R11: fffffbfff269d317 R12: ffffc90000bc6f18
R13: dffffc0000000000 R14: 0000000000000130 R15: 00000000fffffffb
FS:  0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f63ef03a440 CR3: 00000000234c2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	90                   	nop
   1:	90                   	nop
   2:	f3 0f 1e fa          	endbr64
   6:	55                   	push   %rbp
   7:	41 57                	push   %r15
   9:	41 56                	push   %r14
   b:	41 54                	push   %r12
   d:	53                   	push   %rbx
   e:	41 89 f7             	mov    %esi,%r15d
  11:	49 89 fe             	mov    %rdi,%r14
  14:	e8 e9 05 ec fc       	call   0xfcec0602
  19:	4c 89 f0             	mov    %r14,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	0f b6 04 08          	movzbl (%rax,%rcx,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	0f 85 cd 00 00 00    	jne    0x103
  36:	45 8b 26             	mov    (%r14),%r12d
  39:	bf 01 f0 ff ff       	mov    $0xfffff001,%edi
  3e:	44                   	rex.R
  3f:	89                   	.byte 0x89

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/26 17:14 upstream 1722389b0d86 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in errseq_set
2024/05/20 17:37 upstream 6e51b4b5bbc0 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in errseq_set
* Struck through repros no longer work on HEAD.