syzbot


BUG: unable to handle kernel paging request in bitfill_aligned (4)

Status: moderation: reported on 2024/11/08 07:39
Subsystems: fbdev
[Documentation on labels]
Reported-by: syzbot+8287860d9308ca12155a@syzkaller.appspotmail.com
First crash: 16d, last: 3d14h
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: unable to handle kernel paging request in bitfill_aligned 1 825d 825d 0/1 auto-obsoleted due to no activity on 2022/12/16 16:52
linux-4.19 BUG: unable to handle kernel paging request in bitfill_aligned C error 11 646d 1076d 0/1 upstream: reported C repro on 2021/12/10 10:17
upstream BUG: unable to handle kernel paging request in bitfill_aligned (3) fbdev C unreliable 11 821d 863d 22/28 fixed on 2023/02/24 13:50
upstream BUG: unable to handle kernel paging request in bitfill_aligned (2) fbdev C inconclusive done 26 1056d 1464d 20/28 fixed on 2022/05/13 11:13
upstream BUG: unable to handle kernel paging request in bitfill_aligned fbdev 1 1656d 1653d 0/28 closed as dup on 2020/08/16 15:35

Sample crash report:
BUG: unable to handle page fault for address: ffffc90004f81000
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD 1b000067 P4D 1b000067 PUD 1c281067 PMD 2508d067 PTE 0
Oops: Oops: 0002 [#1] PREEMPT SMP KASAN NOPTI
CPU: 2 UID: 0 PID: 7998 Comm: syz.4.504 Not tainted 6.12.0-rc7-syzkaller-00212-g4a5df3796467 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:memset64 arch/x86/include/asm/string_64.h:60 [inline]
RIP: 0010:memset_l include/linux/string.h:240 [inline]
RIP: 0010:bitfill_aligned drivers/video/fbdev/core/sysfillrect.c:53 [inline]
RIP: 0010:bitfill_aligned+0x183/0x210 drivers/video/fbdev/core/sysfillrect.c:25
Code: 44 24 08 48 31 d0 49 89 45 f8 44 89 e0 29 e8 29 c3 e8 31 51 b4 fc 89 d8 31 d2 4c 89 ef 41 f7 f4 48 89 c3 48 89 c1 48 8b 04 24 <f3> 48 ab 31 ff 4c 89 f6 e8 80 53 b4 fc 4d 85 f6 0f 84 6a ff ff ff
RSP: 0018:ffffc90003a7f6b8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000208 RCX: 0000000000000008
RDX: 0000000000000000 RSI: ffffffff84d92a2f RDI: ffffc90004f81000
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000040
R13: ffffc90004f80000 R14: 0000000000000000 R15: 0000000000008200
FS:  00007fc3433a96c0(0000) GS:ffff88806a800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90004f81000 CR3: 000000004c6ac000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 sys_fillrect+0x47b/0x900 drivers/video/fbdev/core/sysfillrect.c:284
 drm_fbdev_shmem_defio_fillrect+0x22/0x140 drivers/gpu/drm/drm_fbdev_shmem.c:39
 bit_clear_margins+0x302/0x4f0 drivers/video/fbdev/core/bitblit.c:232
 fbcon_clear_margins.constprop.0+0x1d0/0x290 drivers/video/fbdev/core/fbcon.c:1319
 fbcon_switch+0xa30/0x14f0 drivers/video/fbdev/core/fbcon.c:2190
 redraw_screen+0x2bf/0x760 drivers/tty/vt/vt.c:957
 fbcon_set_disp+0x7cc/0xe00 drivers/video/fbdev/core/fbcon.c:1412
 con2fb_init_display drivers/video/fbdev/core/fbcon.c:812 [inline]
 set_con2fb_map+0x6fd/0x1060 drivers/video/fbdev/core/fbcon.c:885
 fbcon_set_con2fb_map_ioctl+0x16d/0x220 drivers/video/fbdev/core/fbcon.c:3112
 do_fb_ioctl+0x32a/0x7d0 drivers/video/fbdev/core/fb_chrdev.c:138
 fb_ioctl+0xe5/0x150 drivers/video/fbdev/core/fb_chrdev.c:169
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl fs/ioctl.c:893 [inline]
 __x64_sys_ioctl+0x18f/0x220 fs/ioctl.c:893
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc34257e719
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:00007fc3433a9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fc342736130 RCX: 00007fc34257e719
RDX: 00000000200005c0 RSI: 0000000000004610 RDI: 0000000000000004
RBP: 00007fc3425f175e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fc342736130 R15: 00007ffee2ee6ad8
 </TASK>
Modules linked in:
CR2: ffffc90004f81000
---[ end trace 0000000000000000 ]---
RIP: 0010:memset64 arch/x86/include/asm/string_64.h:60 [inline]
RIP: 0010:memset_l include/linux/string.h:240 [inline]
RIP: 0010:bitfill_aligned drivers/video/fbdev/core/sysfillrect.c:53 [inline]
RIP: 0010:bitfill_aligned+0x183/0x210 drivers/video/fbdev/core/sysfillrect.c:25
Code: 44 24 08 48 31 d0 49 89 45 f8 44 89 e0 29 e8 29 c3 e8 31 51 b4 fc 89 d8 31 d2 4c 89 ef 41 f7 f4 48 89 c3 48 89 c1 48 8b 04 24 <f3> 48 ab 31 ff 4c 89 f6 e8 80 53 b4 fc 4d 85 f6 0f 84 6a ff ff ff
RSP: 0018:ffffc90003a7f6b8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000208 RCX: 0000000000000008
RDX: 0000000000000000 RSI: ffffffff84d92a2f RDI: ffffc90004f81000
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000040
R13: ffffc90004f80000 R14: 0000000000000000 R15: 0000000000008200
FS:  00007fc3433a96c0(0000) GS:ffff88806a800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90004f81000 CR3: 000000004c6ac000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	44 24 08             	rex.R and $0x8,%al
   3:	48 31 d0             	xor    %rdx,%rax
   6:	49 89 45 f8          	mov    %rax,-0x8(%r13)
   a:	44 89 e0             	mov    %r12d,%eax
   d:	29 e8                	sub    %ebp,%eax
   f:	29 c3                	sub    %eax,%ebx
  11:	e8 31 51 b4 fc       	call   0xfcb45147
  16:	89 d8                	mov    %ebx,%eax
  18:	31 d2                	xor    %edx,%edx
  1a:	4c 89 ef             	mov    %r13,%rdi
  1d:	41 f7 f4             	div    %r12d
  20:	48 89 c3             	mov    %rax,%rbx
  23:	48 89 c1             	mov    %rax,%rcx
  26:	48 8b 04 24          	mov    (%rsp),%rax
* 2a:	f3 48 ab             	rep stos %rax,%es:(%rdi) <-- trapping instruction
  2d:	31 ff                	xor    %edi,%edi
  2f:	4c 89 f6             	mov    %r14,%rsi
  32:	e8 80 53 b4 fc       	call   0xfcb453b7
  37:	4d 85 f6             	test   %r14,%r14
  3a:	0f 84 6a ff ff ff    	je     0xffffffaa

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/17 15:52 upstream 4a5df3796467 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel paging request in bitfill_aligned
2024/11/04 07:36 upstream a33ab3f94f51 f00eed24 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: unable to handle kernel paging request in bitfill_aligned
* Struck through repros no longer work on HEAD.