==================================================================
BUG: KASAN: vmalloc-out-of-bounds in fb_write_offset drivers/video/fbdev/core/sysmem.h:30 [inline]
BUG: KASAN: vmalloc-out-of-bounds in bitfill drivers/video/fbdev/core/fb_fillrect.h:133 [inline]
BUG: KASAN: vmalloc-out-of-bounds in fb_fillrect_static drivers/video/fbdev/core/fb_fillrect.h:219 [inline]
BUG: KASAN: vmalloc-out-of-bounds in fb_fillrect drivers/video/fbdev/core/fb_fillrect.h:278 [inline]
BUG: KASAN: vmalloc-out-of-bounds in sys_fillrect+0x174a/0x1910 drivers/video/fbdev/core/sysfillrect.c:24
Write of size 8 at addr ffffc90004feb000 by task syz.0.1513/12273
CPU: 2 UID: 0 PID: 12273 Comm: syz.0.1513 Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
fb_write_offset drivers/video/fbdev/core/sysmem.h:30 [inline]
bitfill drivers/video/fbdev/core/fb_fillrect.h:133 [inline]
fb_fillrect_static drivers/video/fbdev/core/fb_fillrect.h:219 [inline]
fb_fillrect drivers/video/fbdev/core/fb_fillrect.h:278 [inline]
sys_fillrect+0x174a/0x1910 drivers/video/fbdev/core/sysfillrect.c:24
drm_fbdev_shmem_defio_fillrect+0x22/0x140 drivers/gpu/drm/drm_fbdev_shmem.c:39
bit_clear+0x17d/0x220 drivers/video/fbdev/core/bitblit.c:72
__fbcon_clear+0x633/0x760 drivers/video/fbdev/core/fbcon.c:1382
fbcon_scroll+0x48b/0x650 drivers/video/fbdev/core/fbcon.c:1934
con_scroll+0x464/0x690 drivers/tty/vt/vt.c:616
csi_M drivers/tty/vt/vt.c:2193 [inline]
csi_ECMA.constprop.0+0x1238/0x3b60 drivers/tty/vt/vt.c:2616
do_con_trol drivers/tty/vt/vt.c:2831 [inline]
do_con_write+0x3663/0x4ae0 drivers/tty/vt/vt.c:3328
con_write+0x23/0xb0 drivers/tty/vt/vt.c:3664
process_output_block drivers/tty/n_tty.c:557 [inline]
n_tty_write+0x431/0x1160 drivers/tty/n_tty.c:2366
iterate_tty_write drivers/tty/tty_io.c:1008 [inline]
file_tty_write.isra.0+0x4d2/0x890 drivers/tty/tty_io.c:1056
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6af/0x1050 fs/read_write.c:687
ksys_write+0x12a/0x250 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7efe1839e559
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:00007efe19349028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007efe18625fa0 RCX: 00007efe1839e559
RDX: 0000000000001006 RSI: 0000200000000880 RDI: 000000000000000a
RBP: 00007efe18435ad8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007efe18626038 R14: 00007efe18625fa0 R15: 00007ffd19291528
The buggy address belongs to a vmalloc virtual mapping
Memory state around the buggy address:
ffffc90004feaf00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
ffffc90004feaf80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
>ffffc90004feb000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
^
ffffc90004feb080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
ffffc90004feb100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8
==================================================================
BUG: unable to handle page fault for address: ffffc90004feb000
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD 1d000067 P4D 1d000067 PUD 1e695067 PMD 28412067 PTE 0
Oops: Oops: 0002 [#1] SMP KASAN NOPTI
CPU: 2 UID: 0 PID: 12273 Comm: syz.0.1513 Tainted: G B L syzkaller #0 PREEMPT(full)
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:fb_write_offset drivers/video/fbdev/core/sysmem.h:30 [inline]
RIP: 0010:bitfill drivers/video/fbdev/core/fb_fillrect.h:133 [inline]
RIP: 0010:fb_fillrect_static drivers/video/fbdev/core/fb_fillrect.h:219 [inline]
RIP: 0010:fb_fillrect drivers/video/fbdev/core/fb_fillrect.h:278 [inline]
RIP: 0010:sys_fillrect+0xc87/0x1910 drivers/video/fbdev/core/sysfillrect.c:24
Code: 89 7c 24 10 48 89 74 24 30 eb 03 45 89 ef e8 a0 fe 90 fc 4c 89 e1 48 c1 e9 03 42 80 3c 31 00 0f 85 c0 0a 00 00 48 8b 44 24 08 <49> 89 2c 24 49 8d 3c 04 48 89 f9 48 c1 e9 03 42 80 3c 31 00 0f 85
RSP: 0018:ffffc900055475d8 EFLAGS: 00010286
RAX: 0000000000000008 RBX: 000000000000018f RCX: ffffc900068d2000
RDX: 0000000000080000 RSI: ffffffff81c8745d RDI: ffff888027f8cb00
RBP: 0009000000090000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffc90004feb000
R13: ffffc90004feb000 R14: dffffc0000000000 R15: 0000000000000004
FS: 00007efe193496c0(0000) GS:ffff8880d4b46000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90004feb000 CR3: 000000002f846000 CR4: 0000000000352ef0
Call Trace:
drm_fbdev_shmem_defio_fillrect+0x22/0x140 drivers/gpu/drm/drm_fbdev_shmem.c:39
bit_clear+0x17d/0x220 drivers/video/fbdev/core/bitblit.c:72
__fbcon_clear+0x633/0x760 drivers/video/fbdev/core/fbcon.c:1382
fbcon_scroll+0x48b/0x650 drivers/video/fbdev/core/fbcon.c:1934
con_scroll+0x464/0x690 drivers/tty/vt/vt.c:616
csi_M drivers/tty/vt/vt.c:2193 [inline]
csi_ECMA.constprop.0+0x1238/0x3b60 drivers/tty/vt/vt.c:2616
do_con_trol drivers/tty/vt/vt.c:2831 [inline]
do_con_write+0x3663/0x4ae0 drivers/tty/vt/vt.c:3328
con_write+0x23/0xb0 drivers/tty/vt/vt.c:3664
process_output_block drivers/tty/n_tty.c:557 [inline]
n_tty_write+0x431/0x1160 drivers/tty/n_tty.c:2366
iterate_tty_write drivers/tty/tty_io.c:1008 [inline]
file_tty_write.isra.0+0x4d2/0x890 drivers/tty/tty_io.c:1056
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x6af/0x1050 fs/read_write.c:687
ksys_write+0x12a/0x250 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7efe1839e559
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:00007efe19349028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007efe18625fa0 RCX: 00007efe1839e559
RDX: 0000000000001006 RSI: 0000200000000880 RDI: 000000000000000a
RBP: 00007efe18435ad8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007efe18626038 R14: 00007efe18625fa0 R15: 00007ffd19291528
Modules linked in:
CR2: ffffc90004feb000
---[ end trace 0000000000000000 ]---
RIP: 0010:fb_write_offset drivers/video/fbdev/core/sysmem.h:30 [inline]
RIP: 0010:bitfill drivers/video/fbdev/core/fb_fillrect.h:133 [inline]
RIP: 0010:fb_fillrect_static drivers/video/fbdev/core/fb_fillrect.h:219 [inline]
RIP: 0010:fb_fillrect drivers/video/fbdev/core/fb_fillrect.h:278 [inline]
RIP: 0010:sys_fillrect+0xc87/0x1910 drivers/video/fbdev/core/sysfillrect.c:24
Code: 89 7c 24 10 48 89 74 24 30 eb 03 45 89 ef e8 a0 fe 90 fc 4c 89 e1 48 c1 e9 03 42 80 3c 31 00 0f 85 c0 0a 00 00 48 8b 44 24 08 <49> 89 2c 24 49 8d 3c 04 48 89 f9 48 c1 e9 03 42 80 3c 31 00 0f 85
RSP: 0018:ffffc900055475d8 EFLAGS: 00010286
RAX: 0000000000000008 RBX: 000000000000018f RCX: ffffc900068d2000
RDX: 0000000000080000 RSI: ffffffff81c8745d RDI: ffff888027f8cb00
RBP: 0009000000090000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffc90004feb000
R13: ffffc90004feb000 R14: dffffc0000000000 R15: 0000000000000004
FS: 00007efe193496c0(0000) GS:ffff8880d4b46000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90004feb000 CR3: 000000002f846000 CR4: 0000000000352ef0
----------------
Code disassembly (best guess):
0: 89 7c 24 10 mov %edi,0x10(%rsp)
4: 48 89 74 24 30 mov %rsi,0x30(%rsp)
9: eb 03 jmp 0xe
b: 45 89 ef mov %r13d,%r15d
e: e8 a0 fe 90 fc call 0xfc90feb3
13: 4c 89 e1 mov %r12,%rcx
16: 48 c1 e9 03 shr $0x3,%rcx
1a: 42 80 3c 31 00 cmpb $0x0,(%rcx,%r14,1)
1f: 0f 85 c0 0a 00 00 jne 0xae5
25: 48 8b 44 24 08 mov 0x8(%rsp),%rax
* 2a: 49 89 2c 24 mov %rbp,(%r12) <-- trapping instruction
2e: 49 8d 3c 04 lea (%r12,%rax,1),%rdi
32: 48 89 f9 mov %rdi,%rcx
35: 48 c1 e9 03 shr $0x3,%rcx
39: 42 80 3c 31 00 cmpb $0x0,(%rcx,%r14,1)
3e: 0f .byte 0xf
3f: 85 .byte 0x85