syzbot


BUG: unable to handle kernel paging request in write_inode_now

Status: upstream: reported C repro on 2023/04/26 14:54
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+93da6e97a594c63ac165@syzkaller.appspotmail.com
First crash: 586d, last: 5d01h
Bug presence (2)
Date Name Commit Repro Result
2023/05/24 linux-5.15.y (ToT) 9d6bde853685 C [report] KASAN: out-of-bounds Write in end_buffer_read_sync
2023/05/23 upstream (ToT) 27e462c8fad4 C Didn't crash
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/10/24 21:30 17m retest repro linux-5.15.y OK log
2024/10/24 21:30 18m retest repro linux-5.15.y report log
2024/10/24 21:30 3h10m retest repro linux-5.15.y report log
2024/10/24 21:30 2h59m retest repro linux-5.15.y report log
2024/10/24 21:30 16m retest repro linux-5.15.y OK log
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2024/03/30 04:50 2h55m bisect fix linux-5.15.y OK (0) job log log
2024/02/28 15:20 2h12m bisect fix linux-5.15.y OK (0) job log log
2024/01/19 14:59 2h40m bisect fix linux-5.15.y OK (0) job log log
2023/12/12 08:36 2h05m bisect fix linux-5.15.y OK (0) job log log
2023/11/11 08:21 2h14m bisect fix linux-5.15.y OK (0) job log log
2023/10/09 04:55 2h19m fix candidate upstream OK (0) job log log
2023/07/22 14:04 2h31m bisect fix linux-5.15.y OK (0) job log log

Sample crash report:
loop0: detected capacity change from 0 to 4096
ntfs3: loop0: Different NTFS' sector size (2048) and media sector size (512)
BUG: unable to handle page fault for address: fffff52100bc4f2b
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD 23ffee067 P4D 23ffee067 PUD 0 
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 6733 Comm: syz-executor184 Not tainted 5.15.131-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
RIP: 0010:write_inode_now+0x27c/0x2f0 fs/fs-writeback.c:2778
Code: 0a 00 00 31 d2 e8 64 24 77 ff 2e 2e 2e 31 c0 4c 89 ff 48 8d 74 24 40 e8 82 00 00 00 48 c7 44 24 20 0e 36 e0 45 48 8b 4c 24 18 <41> c7 04 0e 00 00 00 00 41 c7 44 0e 10 00 00 00 00 65 48 8b 0c 25
RSP: 0018:ffffc90005e27940 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 1ffff92000bc4f2c
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000001
RBP: ffffc90005e27a48 R08: dffffc0000000000 R09: ffffed100e08c148
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880704609b0
R13: ffff8880704609b0 R14: dffffc00ffffffff R15: ffff8880704609b0
FS:  00005555564e4380(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffff52100bc4f2b CR3: 000000001d50b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 iput_final fs/inode.c:1692 [inline]
 iput+0x5ce/0x8b0 fs/inode.c:1731
 ntfs_fill_super+0x3c3f/0x4450 fs/ntfs3/super.c:1185
 get_tree_bdev+0x3fe/0x620 fs/super.c:1312
 vfs_get_tree+0x88/0x270 fs/super.c:1517
 do_new_mount+0x28b/0xae0 fs/namespace.c:2994
 do_mount fs/namespace.c:3337 [inline]
 __do_sys_mount fs/namespace.c:3545 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3522
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f9701e73a7a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 9e 06 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdf9a97578 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9701e73a7a
RDX: 0000000020000000 RSI: 0000000020000080 RDI: 00007ffdf9a975c0
RBP: 0000000000000004 R08: 00007ffdf9a97600 R09: 000000000001f384
R10: 0000000000000000 R11: 0000000000000286 R12: 00007ffdf9a97600
R13: 00007ffdf9a975c0 R14: 0000000000200000 R15: 0000000000000003
 </TASK>
Modules linked in:
CR2: fffff52100bc4f2b
---[ end trace 8dc0b2cd9bb1b11c ]---
RIP: 0010:write_inode_now+0x27c/0x2f0 fs/fs-writeback.c:2778
Code: 0a 00 00 31 d2 e8 64 24 77 ff 2e 2e 2e 31 c0 4c 89 ff 48 8d 74 24 40 e8 82 00 00 00 48 c7 44 24 20 0e 36 e0 45 48 8b 4c 24 18 <41> c7 04 0e 00 00 00 00 41 c7 44 0e 10 00 00 00 00 65 48 8b 0c 25
RSP: 0018:ffffc90005e27940 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 1ffff92000bc4f2c
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000001
RBP: ffffc90005e27a48 R08: dffffc0000000000 R09: ffffed100e08c148
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880704609b0
R13: ffff8880704609b0 R14: dffffc00ffffffff R15: ffff8880704609b0
FS:  00005555564e4380(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffff52100bc4f2b CR3: 000000001d50b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	0a 00                	or     (%rax),%al
   2:	00 31                	add    %dh,(%rcx)
   4:	d2 e8                	shr    %cl,%al
   6:	64 24 77             	fs and $0x77,%al
   9:	ff 2e                	ljmp   *(%rsi)
   b:	2e 2e 31 c0          	cs cs xor %eax,%eax
   f:	4c 89 ff             	mov    %r15,%rdi
  12:	48 8d 74 24 40       	lea    0x40(%rsp),%rsi
  17:	e8 82 00 00 00       	call   0x9e
  1c:	48 c7 44 24 20 0e 36 	movq   $0x45e0360e,0x20(%rsp)
  23:	e0 45
  25:	48 8b 4c 24 18       	mov    0x18(%rsp),%rcx
* 2a:	41 c7 04 0e 00 00 00 	movl   $0x0,(%r14,%rcx,1) <-- trapping instruction
  31:	00
  32:	41 c7 44 0e 10 00 00 	movl   $0x0,0x10(%r14,%rcx,1)
  39:	00 00
  3b:	65                   	gs
  3c:	48                   	rex.W
  3d:	8b                   	.byte 0x8b
  3e:	0c 25                	or     $0x25,%al

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/10 14:26 linux-5.15.y aff03380bda4 6654cf89 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2023/08/13 02:35 linux-5.15.y 24c4de4069cb 39990d51 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2023/05/23 22:05 linux-5.15.y 9d6bde853685 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/11/28 05:28 linux-5.15.y 0a51d2d4527b 5df23865 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/10/08 10:53 linux-5.15.y 3a5928702e71 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/09/30 19:09 linux-5.15.y 3a5928702e71 bbd4e0a4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/09/12 11:42 linux-5.15.y 3a5928702e71 60e1a995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/08/19 22:38 linux-5.15.y fa93fa65db6e 9f0ab3fb .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/07/26 22:42 linux-5.15.y 7c6d66f0266f 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/06/15 02:08 linux-5.15.y c61bd26ae81a f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/05/22 14:58 linux-5.15.y 83655231580b 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/05/15 22:52 linux-5.15.y 284087d4f7d5 94b087b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/05/10 02:30 linux-5.15.y 284087d4f7d5 de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/05/06 12:03 linux-5.15.y 284087d4f7d5 d884b519 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/05/04 07:55 linux-5.15.y 284087d4f7d5 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/04/27 18:05 linux-5.15.y b925f60c6ee7 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/04/22 16:51 linux-5.15.y c52b9710c83d 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/04/22 13:40 linux-5.15.y c52b9710c83d 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/04/19 07:10 linux-5.15.y c52b9710c83d af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/04/09 19:37 linux-5.15.y 9465fef4ae35 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2024/04/03 13:28 linux-5.15.y 9465fef4ae35 7925100d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2023/12/19 09:19 linux-5.15.y d0fc081c6241 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2023/06/11 18:27 linux-5.15.y 7349e40704a0 49519f06 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2023/08/23 22:47 linux-5.15.y f6f7927ac664 b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2023/05/10 06:38 linux-5.15.y 8a7f2a5c5aa1 1964022b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
2023/04/26 14:53 linux-5.15.y f48aeeaaa64c 8d843721 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan BUG: unable to handle kernel paging request in write_inode_now
* Struck through repros no longer work on HEAD.