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: 938d, last: 18d
similar bugs (8):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: global-out-of-bounds Read in bit_putcs (2) 13 628d 644d 0/22 auto-closed as invalid on 2021/02/09 16:38
upstream KASAN: global-out-of-bounds Read in bit_putcs C done 262 647d 940d 17/22 fixed on 2020/09/25 01:17
linux-4.19 KASAN: global-out-of-bounds Read in bit_putcs C done 214 404d 941d 1/1 fixed on 2021/06/24 08:01
linux-4.14 KASAN: slab-out-of-bounds Read in bit_putcs C 95 20d 942d 0/1 upstream: reported C repro on 2019/12/03 16:38
linux-4.19 KASAN: slab-out-of-bounds Read in bit_putcs C inconclusive 138 407d 942d 0/1 upstream: reported C repro on 2019/12/03 12:47
upstream KASAN: use-after-free Read in bit_putcs C 12 640d 860d 17/22 fixed on 2020/11/16 12:12
linux-4.14 KASAN: use-after-free Read in bit_putcs 17 653d 939d 0/1 auto-closed as invalid on 2021/01/15 05:05
linux-4.19 KASAN: use-after-free Read in bit_putcs 18 703d 937d 0/1 auto-closed as invalid on 2020/11/26 07:35

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
==================================================================

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