================================================================== 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+0xf78/0x2540 drivers/video/fbdev/core/sysfillrect.c:24 Write of size 8 at addr ffff80008f149000 by task syz.0.178/3983 CPU: 1 UID: 0 PID: 3983 Comm: syz.0.178 Tainted: G W syzkaller #0 PREEMPT Tainted: [W]=WARN Hardware name: linux,dummy-virt (DT) Call trace: show_stack+0x18/0x24 arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x7c/0xb0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x18c/0x4e8 mm/kasan/report.c:482 kasan_report+0xb8/0x15c mm/kasan/report.c:595 __asan_report_store8_noabort+0x20/0x2c mm/kasan/report_generic.c:386 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+0xf78/0x2540 drivers/video/fbdev/core/sysfillrect.c:24 drm_fbdev_shmem_defio_fillrect+0x1c/0x134 drivers/gpu/drm/drm_fbdev_shmem.c:39 bit_clear+0x134/0x1c0 drivers/video/fbdev/core/bitblit.c:72 __fbcon_clear+0x464/0x6f0 drivers/video/fbdev/core/fbcon.c:1375 fbcon_scroll+0x374/0x4e0 drivers/video/fbdev/core/fbcon.c:1927 con_scroll+0x1d4/0x4a4 drivers/tty/vt/vt.c:616 csi_M drivers/tty/vt/vt.c:2191 [inline] csi_ECMA.constprop.0+0xb80/0x2c98 drivers/tty/vt/vt.c:2614 do_con_trol drivers/tty/vt/vt.c:2829 [inline] do_con_write+0x25e4/0x4100 drivers/tty/vt/vt.c:3325 con_write+0x1c/0xd0 drivers/tty/vt/vt.c:3661 process_output_block drivers/tty/n_tty.c:557 [inline] n_tty_write+0x2fc/0xc0c drivers/tty/n_tty.c:2366 iterate_tty_write drivers/tty/tty_io.c:1006 [inline] file_tty_write.isra.0+0x298/0x65c drivers/tty/tty_io.c:1054 tty_write+0x30/0x58 drivers/tty/tty_io.c:1075 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x4c0/0xbac fs/read_write.c:687 ksys_write+0xf0/0x1e0 fs/read_write.c:739 __do_sys_write fs/read_write.c:750 [inline] __se_sys_write fs/read_write.c:747 [inline] __arm64_sys_write+0x70/0xa0 fs/read_write.c:747 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x74/0x240 arch/arm64/kernel/syscall.c:49 el0_svc_common.constprop.0+0xac/0x230 arch/arm64/kernel/syscall.c:121 do_el0_svc+0x40/0x58 arch/arm64/kernel/syscall.c:140 el0_svc+0x58/0x2a4 arch/arm64/kernel/entry-common.c:758 el0t_64_sync_handler+0xa0/0xe4 arch/arm64/kernel/entry-common.c:777 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590 The buggy address belongs to a vmalloc virtual mapping Memory state around the buggy address: ffff80008f148f00: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffff80008f148f80: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 >ffff80008f149000: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ^ ffff80008f149080: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ffff80008f149100: f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 f8 ================================================================== Unable to handle kernel paging request at virtual address ffff80008f149000 KASAN: probably user-memory-access in range [0x0000000478a48000-0x0000000478a48007] Mem abort info: ESR = 0x0000000096000047 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x07: level 3 translation fault Data abort info: ISV = 0, ISS = 0x00000047, ISS2 = 0x00000000 CM = 0, WnR = 1, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0 swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000047695000 [ffff80008f149000] pgd=0000000000000000, p4d=100000004dd69003, pud=100000004dd6a003, pmd=10000000549d1403, pte=0000000000000000 Internal error: Oops: 0000000096000047 [#1] SMP Modules linked in: CPU: 1 UID: 0 PID: 3983 Comm: syz.0.178 Tainted: G B W syzkaller #0 PREEMPT Tainted: [B]=BAD_PAGE, [W]=WARN Hardware name: linux,dummy-virt (DT) pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : fb_write_offset drivers/video/fbdev/core/sysmem.h:30 [inline] pc : bitfill drivers/video/fbdev/core/fb_fillrect.h:133 [inline] pc : fb_fillrect_static drivers/video/fbdev/core/fb_fillrect.h:219 [inline] pc : fb_fillrect drivers/video/fbdev/core/fb_fillrect.h:278 [inline] pc : sys_fillrect+0x6d0/0x2540 drivers/video/fbdev/core/sysfillrect.c:24 lr : fb_write_offset drivers/video/fbdev/core/sysmem.h:30 [inline] lr : bitfill drivers/video/fbdev/core/fb_fillrect.h:133 [inline] lr : fb_fillrect_static drivers/video/fbdev/core/fb_fillrect.h:219 [inline] lr : fb_fillrect drivers/video/fbdev/core/fb_fillrect.h:278 [inline] lr : sys_fillrect+0xf78/0x2540 drivers/video/fbdev/core/sysfillrect.c:24 sp : ffff8000a27a72a0 x29: ffff8000a27a72a0 x28: 0000000000000001 x27: 0000000000000000 x26: ffff80008f149000 x25: 0000000000000002 x24: 0000000000000003 x23: 0000000000000000 x22: 0000000000000180 x21: dfff800000000000 x20: ffff80008f149000 x19: 0000000000000004 x18: 0000000000000000 x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000006000 x14: 0000000000008000 x13: 0000000000000038 x12: ffff700011269439 x11: 1ffff00011269438 x10: ffff700011269438 x9 : dfff800000000000 x8 : 000000000000002f x7 : 0000000000000001 x6 : 0000000000000008 x5 : 0000000000000010 x4 : 0000000000000018 x3 : ffffffffffffffff x2 : 0000000000000000 x1 : ffff0000102bba00 x0 : ffff80008f149008 Call trace: fb_write_offset drivers/video/fbdev/core/sysmem.h:30 [inline] (P) bitfill drivers/video/fbdev/core/fb_fillrect.h:135 [inline] (P) fb_fillrect_static drivers/video/fbdev/core/fb_fillrect.h:219 [inline] (P) fb_fillrect drivers/video/fbdev/core/fb_fillrect.h:278 [inline] (P) sys_fillrect+0x6d0/0x2540 drivers/video/fbdev/core/sysfillrect.c:24 (P) drm_fbdev_shmem_defio_fillrect+0x1c/0x134 drivers/gpu/drm/drm_fbdev_shmem.c:39 bit_clear+0x134/0x1c0 drivers/video/fbdev/core/bitblit.c:72 __fbcon_clear+0x464/0x6f0 drivers/video/fbdev/core/fbcon.c:1375 fbcon_scroll+0x374/0x4e0 drivers/video/fbdev/core/fbcon.c:1927 con_scroll+0x1d4/0x4a4 drivers/tty/vt/vt.c:616 csi_M drivers/tty/vt/vt.c:2191 [inline] csi_ECMA.constprop.0+0xb80/0x2c98 drivers/tty/vt/vt.c:2614 do_con_trol drivers/tty/vt/vt.c:2829 [inline] do_con_write+0x25e4/0x4100 drivers/tty/vt/vt.c:3325 con_write+0x1c/0xd0 drivers/tty/vt/vt.c:3661 process_output_block drivers/tty/n_tty.c:557 [inline] n_tty_write+0x2fc/0xc0c drivers/tty/n_tty.c:2366 iterate_tty_write drivers/tty/tty_io.c:1006 [inline] file_tty_write.isra.0+0x298/0x65c drivers/tty/tty_io.c:1054 tty_write+0x30/0x58 drivers/tty/tty_io.c:1075 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x4c0/0xbac fs/read_write.c:687 ksys_write+0xf0/0x1e0 fs/read_write.c:739 __do_sys_write fs/read_write.c:750 [inline] __se_sys_write fs/read_write.c:747 [inline] __arm64_sys_write+0x70/0xa0 fs/read_write.c:747 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x74/0x240 arch/arm64/kernel/syscall.c:49 el0_svc_common.constprop.0+0xac/0x230 arch/arm64/kernel/syscall.c:121 do_el0_svc+0x40/0x58 arch/arm64/kernel/syscall.c:140 el0_svc+0x58/0x2a4 arch/arm64/kernel/entry-common.c:758 el0t_64_sync_handler+0xa0/0xe4 arch/arm64/kernel/entry-common.c:777 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590 Code: d343fe80 38f56800 35004480 8b060280 (f900029b) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: d343fe80 lsr x0, x20, #3 4: 38f56800 ldrsb w0, [x0, x21] 8: 35004480 cbnz w0, 0x898 c: 8b060280 add x0, x20, x6 * 10: f900029b str x27, [x20] <-- trapping instruction