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: 61d, last: 61d
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 201d 201d 0/3 auto-obsoleted due to no activity on 2025/10/03 20:19

Sample crash report:
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: 0 PID: 4834 Comm: syz.3.110 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:folio_write_one+0x279/0x650 mm/page-writeback.c:2543
Code: 00 00 00 e8 39 35 24 00 f0 41 ff 04 24 48 8b 44 24 10 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 69 33 24 00 4d 8b 6d 00 4c 89 e8 48
RSP: 0018:ffffc90005a27800 EFLAGS: 00010202
RAX: 0000000000000037 RBX: ffffea000175ecc0 RCX: dffffc0000000000
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffea000175ecf4
RBP: ffffc90005a27938 R08: dffffc0000000000 R09: fffff940002ebd9f
R10: fffff940002ebd9f R11: 1ffffd40002ebd9e R12: ffffea000175ecf4
R13: 00000000000001b8 R14: 1ffffd40002ebd9e R15: 0000000000000000
FS:  00007f67dcdc96c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f67dcd86f98 CR3: 000000002dd74000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 write_one_page include/linux/pagemap.h:1104 [inline]
 release_metapage+0x4d6/0x980 fs/jfs/jfs_metapage.c:749
 dtSearch+0x1b3f/0x2050 fs/jfs/jfs_dtree.c:793
 jfs_symlink+0x6b3/0xe60 fs/jfs/namei.c:1016
 vfs_symlink+0x247/0x3d0 fs/namei.c:4479
 do_symlinkat+0x1ae/0x3f0 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:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f67dbf8f6c9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f67dcdc9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000058
RAX: ffffffffffffffda RBX: 00007f67dc1e5fa0 RCX: 00007f67dbf8f6c9
RDX: 0000000000000000 RSI: 0000200000000e40 RDI: 0000200000001640
RBP: 00007f67dc011f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f67dc1e6038 R14: 00007f67dc1e5fa0 R15: 00007fff4bf7d398
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:folio_write_one+0x279/0x650 mm/page-writeback.c:2543
Code: 00 00 00 e8 39 35 24 00 f0 41 ff 04 24 48 8b 44 24 10 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 69 33 24 00 4d 8b 6d 00 4c 89 e8 48
RSP: 0018:ffffc90005a27800 EFLAGS: 00010202
RAX: 0000000000000037 RBX: ffffea000175ecc0 RCX: dffffc0000000000
RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffea000175ecf4
RBP: ffffc90005a27938 R08: dffffc0000000000 R09: fffff940002ebd9f
R10: fffff940002ebd9f R11: 1ffffd40002ebd9e R12: ffffea000175ecf4
R13: 00000000000001b8 R14: 1ffffd40002ebd9e R15: 0000000000000000
FS:  00007f67dcdc96c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000558033905000 CR3: 000000002dd74000 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:	39 35 24 00 f0 41    	cmp    %esi,0x41f00024(%rip)        # 0x41f0002e
   a:	ff 04 24             	incl   (%rsp)
   d:	48 8b 44 24 10       	mov    0x10(%rsp),%rax
  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 69 33 24 00       	call   0x2433a1
  38:	4d 8b 6d 00          	mov    0x0(%r13),%r13
  3c:	4c 89 e8             	mov    %r13,%rax
  3f:	48                   	rex.W

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
* Struck through repros no longer work on HEAD.