[v6.1] general protection fault in folio_write_one

0 views
Skip to first unread message

syzbot

unread,
Nov 12, 2025, 5:58:35 PM (8 days ago) Nov 12
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: f6e38ae624cf Linux 6.1.158
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11c94914580000
kernel config: https://syzkaller.appspot.com/x/.config?x=7eb38bd5021fec61
dashboard link: https://syzkaller.appspot.com/bug?extid=d2b3ccccdba348aa3d3c
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/2b7003e2661d/disk-f6e38ae6.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/0696cea8d016/vmlinux-f6e38ae6.xz
kernel image: https://storage.googleapis.com/syzbot-assets/6b7a89e636d7/bzImage-f6e38ae6.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+d2b3cc...@syzkaller.appspotmail.com

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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages