syzbot


KASAN: global-out-of-bounds Read in bit_putcs

Status: upstream: reported C repro on 2019/12/07 16:26
Reported-by: syzbot+8acda8a641bee9ac5ac3@syzkaller.appspotmail.com
First crash: 1802d, last: 792d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (12)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: global-out-of-bounds Read in bit_putcs (2) fbdev 13 1492d 1508d 0/28 auto-closed as invalid on 2021/02/09 16:38
linux-6.1 KASAN: global-out-of-bounds Read in bit_putcs 1 1d19h 1d19h 0/3 upstream: reported on 2024/11/11 05:01
upstream KASAN: global-out-of-bounds Read in bit_putcs fbdev C done 262 1510d 1804d 15/28 fixed on 2020/09/25 01:17
linux-4.19 KASAN: global-out-of-bounds Read in bit_putcs C done 214 1268d 1805d 1/1 fixed on 2021/06/24 08:01
upstream KASAN: global-out-of-bounds Read in bit_putcs (3) fbdev 6 13d 104d 0/28 upstream: reported on 2024/07/31 11:38
linux-6.1 BUG: unable to handle kernel paging request in bit_putcs C done 4 254d 450d 3/3 fixed on 2024/04/03 01:55
linux-4.14 KASAN: slab-out-of-bounds Read in bit_putcs C error 95 793d 1806d 0/1 upstream: reported C repro on 2019/12/03 16:38
upstream general protection fault in bit_putcs fbdev C 5 251d 405d 0/28 auto-obsoleted due to no activity on 2024/06/14 11:38
linux-4.19 KASAN: slab-out-of-bounds Read in bit_putcs C inconclusive 138 1271d 1806d 0/1 upstream: reported C repro on 2019/12/03 12:47
upstream KASAN: use-after-free Read in bit_putcs fbdev C 12 1504d 1724d 15/28 fixed on 2020/11/16 12:12
linux-4.14 KASAN: use-after-free Read in bit_putcs 17 1517d 1803d 0/1 auto-closed as invalid on 2021/01/15 05:05
linux-4.19 KASAN: use-after-free Read in bit_putcs 18 1567d 1801d 0/1 auto-closed as invalid on 2020/11/26 07:35
Fix bisection attempts (17)
Created Duration User Patch Repo Result
2022/10/13 02:28 0m bisect fix linux-4.14.y error job log
2022/09/12 21:00 20m bisect fix linux-4.14.y OK (0) job log log
2022/08/13 20:37 22m bisect fix linux-4.14.y OK (0) job log log
2022/07/14 20:14 23m bisect fix linux-4.14.y OK (0) job log log
2022/06/14 19:46 27m bisect fix linux-4.14.y OK (0) job log log
2022/05/15 18:43 28m bisect fix linux-4.14.y OK (0) job log log
2022/04/15 18:20 22m bisect fix linux-4.14.y OK (0) job log log
2022/03/16 06:24 25m bisect fix linux-4.14.y OK (0) job log log
2022/02/14 05:08 21m bisect fix linux-4.14.y OK (0) job log log
2022/01/15 04:44 22m bisect fix linux-4.14.y OK (0) job log log
2021/12/16 04:17 26m bisect fix linux-4.14.y OK (0) job log log
2021/11/16 03:52 25m bisect fix linux-4.14.y OK (0) job log log
2021/10/17 03:24 27m bisect fix linux-4.14.y OK (0) job log log
2021/09/17 03:00 24m bisect fix linux-4.14.y OK (0) job log log
2021/08/18 01:51 25m bisect fix linux-4.14.y OK (0) job log log
2021/07/19 01:23 27m bisect fix linux-4.14.y OK (0) job log log
2021/06/19 00:36 20m bisect fix linux-4.14.y OK (0) job log log

Sample crash report:
==================================================================
BUG: KASAN: global-out-of-bounds in __fb_pad_aligned_buffer include/linux/fb.h:663 [inline]
BUG: KASAN: global-out-of-bounds in bit_putcs_aligned drivers/video/fbdev/core/bitblit.c:96 [inline]
BUG: KASAN: global-out-of-bounds in bit_putcs+0xab7/0xc30 drivers/video/fbdev/core/bitblit.c:185
Read of size 1 at addr ffffffff87cf4863 by task syz-executor055/7997

CPU: 0 PID: 7997 Comm: syz-executor055 Not tainted 4.14.212-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x283 lib/dump_stack.c:58
 print_address_description.cold+0x5/0x1d3 mm/kasan/report.c:252
 kasan_report_error.cold+0x8a/0x194 mm/kasan/report.c:351
 kasan_report mm/kasan/report.c:409 [inline]
 __asan_report_load1_noabort+0x68/0x70 mm/kasan/report.c:427
 __fb_pad_aligned_buffer include/linux/fb.h:663 [inline]
 bit_putcs_aligned drivers/video/fbdev/core/bitblit.c:96 [inline]
 bit_putcs+0xab7/0xc30 drivers/video/fbdev/core/bitblit.c:185
 fbcon_putcs+0x2fe/0x480 drivers/video/fbdev/core/fbcon.c:1247
 con_flush drivers/tty/vt/vt.c:2206 [inline]
 do_con_write+0x9dd/0x19b0 drivers/tty/vt/vt.c:2453
 con_write+0x21/0xa0 drivers/tty/vt/vt.c:2805
 process_output_block drivers/tty/n_tty.c:595 [inline]
 n_tty_write+0x352/0xda0 drivers/tty/n_tty.c:2333
 do_tty_write drivers/tty/tty_io.c:959 [inline]
 tty_write+0x410/0x740 drivers/tty/tty_io.c:1043
 __vfs_write+0xe4/0x630 fs/read_write.c:480
 vfs_write+0x17f/0x4d0 fs/read_write.c:544
 SYSC_write fs/read_write.c:590 [inline]
 SyS_write+0xf2/0x210 fs/read_write.c:582
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x4413a9
RSP: 002b:00007ffdf5846ba8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004413a9
RDX: 0000000000000018 RSI: 0000000020001340 RDI: 0000000000000004
RBP: 0000000000007571 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000402150
R13: 00000000004021e0 R14: 0000000000000000 R15: 0000000000000000

The buggy address belongs to the variable:
 oid_index+0x2e3/0x9a0

Memory state around the buggy address:
 ffffffff87cf4700: fa fa fa fa 06 fa fa fa fa fa fa fa 05 fa fa fa
 ffffffff87cf4780: fa fa fa fa 07 fa fa fa fa fa fa fa 00 01 fa fa
>ffffffff87cf4800: fa fa fa fa 00 05 fa fa fa fa fa fa 03 fa fa fa
                                                       ^
 ffffffff87cf4880: fa fa fa fa 03 fa fa fa fa fa fa fa 03 fa fa fa
 ffffffff87cf4900: fa fa fa fa 00 07 fa fa fa fa fa fa 00 07 fa fa
==================================================================

Crashes (241):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/28 04:39 linux-4.14.y 3f2ecb86cb90 2242f77f .config console log report syz C ci2-linux-4-14
2020/06/06 16:03 linux-4.14.y c6db52a88798 e6b89e4e .config console log report syz C ci2-linux-4-14
2020/01/12 06:46 linux-4.14.y b0cdffaa546e 4c04afaa .config console log report syz C ci2-linux-4-14
2020/01/08 18:33 linux-4.14.y 84f5ad468100 ddc3e859 .config console log report syz C ci2-linux-4-14
2019/12/19 00:15 linux-4.14.y bfb9e5c03076 79b211f7 .config console log report syz C ci2-linux-4-14
2020/07/25 04:23 linux-4.14.y 69b94dd6dcd1 0a13649c .config console log report syz ci2-linux-4-14
2021/05/20 00:36 linux-4.14.y 7d7d1c0ab3eb a343ba6b .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/05/19 23:54 linux-4.14.y 7d7d1c0ab3eb a343ba6b .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/05/19 10:11 linux-4.14.y 7d7d1c0ab3eb a343ba6b .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/05/17 23:51 linux-4.14.y 7d7d1c0ab3eb a343ba6b .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/05/17 21:11 linux-4.14.y 7d7d1c0ab3eb a2eb125d .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/05/17 12:07 linux-4.14.y 7d7d1c0ab3eb a2eb125d .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/05/16 20:13 linux-4.14.y 7d7d1c0ab3eb f54a5c09 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/05/16 02:29 linux-4.14.y 7d7d1c0ab3eb f54a5c09 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/05/11 20:48 linux-4.14.y 7d7d1c0ab3eb b3c3bb8e .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/05/11 00:51 linux-4.14.y 7d7d1c0ab3eb ca873091 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/05/04 11:26 linux-4.14.y 7d7d1c0ab3eb 09efdd63 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/05/03 23:41 linux-4.14.y 7d7d1c0ab3eb ad61f371 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/25 20:17 linux-4.14.y cf256fbcbe34 2a82f1b3 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/25 17:02 linux-4.14.y cf256fbcbe34 36c88236 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/25 07:53 linux-4.14.y cf256fbcbe34 36c88236 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/24 13:51 linux-4.14.y cf256fbcbe34 17f0b706 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/23 13:08 linux-4.14.y cf256fbcbe34 17f0b706 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/22 16:14 linux-4.14.y cf256fbcbe34 33c28d03 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/21 22:28 linux-4.14.y cf256fbcbe34 2bc8999a .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/21 08:57 linux-4.14.y cf256fbcbe34 95777977 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/20 09:01 linux-4.14.y cf256fbcbe34 c0ced557 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/19 12:40 linux-4.14.y cf256fbcbe34 50f523d7 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/18 16:16 linux-4.14.y cf256fbcbe34 7e2b734b .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/18 12:37 linux-4.14.y cf256fbcbe34 7e2b734b .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/14 07:53 linux-4.14.y 958e517f4e16 a184b83e .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/13 06:20 linux-4.14.y 958e517f4e16 6a81331a .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/10 15:43 linux-4.14.y 958e517f4e16 6a81331a .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/09 16:13 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/04/07 13:41 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/03/27 12:49 linux-4.14.y 670d6552eda8 a8529b82 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/03/23 17:15 linux-4.14.y cb83ddcd5332 e613994b .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/03/23 11:41 linux-4.14.y cb83ddcd5332 8092f30d .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/03/20 11:01 linux-4.14.y cb83ddcd5332 e45f5621 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/03/19 10:27 linux-4.14.y cb83ddcd5332 2af9d324 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/03/10 13:29 linux-4.14.y 1d177c0872ab 26967e35 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/02/23 09:20 linux-4.14.y 29c52025152b fcc6d71b .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/02/23 02:30 linux-4.14.y 29c52025152b fcc6d71b .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/02/21 13:35 linux-4.14.y 29c52025152b 3e5ed8b4 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/02/12 18:45 linux-4.14.y 2c8a3fceddf0 98682e5e .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/02/11 21:01 linux-4.14.y 2c8a3fceddf0 a5f86b15 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/02/08 12:57 linux-4.14.y 2c8a3fceddf0 2ce644fc .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/02/03 12:16 linux-4.14.y 2c8a3fceddf0 624dad51 .config console log report info ci2-linux-4-14 KASAN: global-out-of-bounds Read in bit_putcs
2021/03/03 19:02 linux-4.14.y 397a88b2cc86 06ed56cd .config console log report info ci2-linux-4-14 KASAN: use-after-free Read in bit_putcs
2021/01/05 04:40 linux-4.14.y 1752938529c6 2a28ff1f .config console log report info ci2-linux-4-14
2019/12/07 16:25 linux-4.14.y a844dc4c5442 85f26751 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.