syzbot


general protection fault in folio_write_one

Status: upstream: reported on 2025/11/12 22:58
Reported-by: syzbot+d2b3ccccdba348aa3d3c@syzkaller.appspotmail.com
First crash: 162d, last: 11d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: unable to handle kernel paging request in folio_write_one 8 1 302d 302d 0/3 auto-obsoleted due to no activity on 2025/10/03 20:19

Sample crash report:
bn = 0, index = 0
bn = 72c, index = 96
bn = 0, index = 0
bn = 72c, index = 96
bn = 0, index = 0
bn = 72c, index = 96
bn = 0, index = 0
bn = 0, index = 0
general protection fault, probably for non-canonical address 0xdffffc0000000037: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000001b8-0x00000000000001bf]
CPU: 1 PID: 4553 Comm: syz.1.9 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
RIP: 0010:folio_write_one+0x2a4/0x690 mm/page-writeback.c:2543
Code: 00 00 00 e8 3e a2 24 00 f0 41 ff 04 24 48 8b 44 24 18 4c 8d a8 b8 01 00 00 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 ef e8 6e a0 24 00 4c 89 7c 24 10 4d 8b 6d
RSP: 0018:ffffc9000540f800 EFLAGS: 00010202
RAX: 0000000000000037 RBX: ffffea0001ed5440 RCX: dffffc0000000000
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffea0001ed5474
RBP: ffffc9000540f930 R08: ffffea0001ed5477 R09: 1ffffd40003daa8e
R10: dffffc0000000000 R11: fffff940003daa8f R12: ffffea0001ed5474
R13: 00000000000001b8 R14: 1ffff92000a81f04 R15: 1ffffd40003daa8e
FS:  00007fb2f13f66c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f63479afe9c CR3: 000000007d19d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 write_one_page include/linux/pagemap.h:1106 [inline]
 release_metapage+0x4d6/0x980 fs/jfs/jfs_metapage.c:749
 dtSearch+0x1b43/0x2050 fs/jfs/jfs_dtree.c:793
 jfs_symlink+0x851/0xfb0 fs/jfs/namei.c:1016
 vfs_symlink+0x247/0x3d0 fs/namei.c:4479
 do_symlinkat+0x1b6/0x400 fs/namei.c:4508
 __do_sys_symlink fs/namei.c:4530 [inline]
 __se_sys_symlink fs/namei.c:4528 [inline]
 __x64_sys_symlink+0x7a/0x90 fs/namei.c:4528
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fb2f319c819
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb2f13f6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000058
RAX: ffffffffffffffda RBX: 00007fb2f3416090 RCX: 00007fb2f319c819
RDX: 0000000000000000 RSI: 0000200000000240 RDI: 0000200000001640
RBP: 00007fb2f3232c91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb2f3416128 R14: 00007fb2f3416090 R15: 00007ffc3addc8c8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:folio_write_one+0x2a4/0x690 mm/page-writeback.c:2543
Code: 00 00 00 e8 3e a2 24 00 f0 41 ff 04 24 48 8b 44 24 18 4c 8d a8 b8 01 00 00 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 ef e8 6e a0 24 00 4c 89 7c 24 10 4d 8b 6d
RSP: 0018:ffffc9000540f800 EFLAGS: 00010202
RAX: 0000000000000037 RBX: ffffea0001ed5440 RCX: dffffc0000000000
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffea0001ed5474
RBP: ffffc9000540f930 R08: ffffea0001ed5477 R09: 1ffffd40003daa8e
R10: dffffc0000000000 R11: fffff940003daa8f R12: ffffea0001ed5474
R13: 00000000000001b8 R14: 1ffff92000a81f04 R15: 1ffffd40003daa8e
FS:  00007fb2f13f66c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa9509c6000 CR3: 000000007d19d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	00 e8                	add    %ch,%al
   4:	3e a2 24 00 f0 41 ff 	ds movabs %al,0x482404ff41f00024
   b:	04 24 48
   e:	8b 44 24 18          	mov    0x18(%rsp),%eax
  12:	4c 8d a8 b8 01 00 00 	lea    0x1b8(%rax),%r13
  19:	4c 89 e8             	mov    %r13,%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:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	4c 89 ef             	mov    %r13,%rdi
  33:	e8 6e a0 24 00       	call   0x24a0a6
  38:	4c 89 7c 24 10       	mov    %r15,0x10(%rsp)
  3d:	4d                   	rex.WRB
  3e:	8b                   	.byte 0x8b
  3f:	6d                   	insl   (%dx),%es:(%rdi)

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/04/12 13:57 linux-6.1.y 8e8fc038cad5 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in folio_write_one
2026/04/12 01:07 linux-6.1.y 8e8fc038cad5 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in folio_write_one
2026/04/12 01:05 linux-6.1.y 8e8fc038cad5 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in folio_write_one
2026/04/12 00:57 linux-6.1.y 8e8fc038cad5 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in folio_write_one
2026/04/06 22:43 linux-6.1.y 1989cd3d56e2 4440e7c2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in folio_write_one
2025/11/12 22:57 linux-6.1.y f6e38ae624cf 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in folio_write_one
2025/11/12 22:57 linux-6.1.y f6e38ae624cf 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in folio_write_one
2026/01/24 21:07 linux-6.1.y cd9b81672742 40acda8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 BUG: unable to handle kernel paging request in folio_write_one
* Struck through repros no longer work on HEAD.