syzbot


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

Status: upstream: reported C repro on 2019/12/03 16:38
Reported-by: syzbot+356425c446d6a7b50838@syzkaller.appspotmail.com
First crash: 1662d, last: 650d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-out-of-bounds Read in bit_putcs C done error 343 1351d 1660d 0/27 auto-obsoleted due to no activity on 2022/09/25 19:49
linux-4.19 KASAN: slab-out-of-bounds Read in bit_putcs C inconclusive 138 1128d 1662d 0/1 upstream: reported C repro on 2019/12/03 12:47
linux-4.14 KASAN: global-out-of-bounds Read in bit_putcs C error 241 648d 1658d 0/1 upstream: reported C repro on 2019/12/07 16:26
linux-6.1 BUG: unable to handle kernel paging request in bit_putcs C done 4 110d 306d 3/3 fixed on 2024/04/03 01:55
upstream general protection fault in bit_putcs fbdev C 5 107d 262d 0/27 auto-obsoleted due to no activity on 2024/06/14 11:38
linux-4.19 KASAN: global-out-of-bounds Read in bit_putcs C done 214 1124d 1661d 1/1 fixed on 2021/06/24 08:01
Fix bisection attempts (19)
Created Duration User Patch Repo Result
2022/10/13 02:25 0m bisect fix linux-4.14.y error job log (0)
2022/09/11 00:20 27m bisect fix linux-4.14.y job log (0) log
2022/08/11 23:54 26m bisect fix linux-4.14.y job log (0) log
2022/07/12 23:29 23m bisect fix linux-4.14.y job log (0) log
2022/06/12 23:03 26m bisect fix linux-4.14.y job log (0) log
2022/05/13 22:41 22m bisect fix linux-4.14.y job log (0) log
2022/04/13 21:53 31m bisect fix linux-4.14.y job log (0) log
2022/03/14 20:45 23m bisect fix linux-4.14.y job log (0) log
2022/02/12 18:06 33m bisect fix linux-4.14.y job log (0) log
2022/01/13 17:36 30m bisect fix linux-4.14.y job log (0) log
2021/12/14 17:04 31m bisect fix linux-4.14.y job log (0) log
2021/11/14 16:40 24m bisect fix linux-4.14.y job log (0) log
2021/10/15 16:07 32m bisect fix linux-4.14.y job log (0) log
2021/09/15 14:24 25m bisect fix linux-4.14.y job log (0) log
2021/08/16 13:56 27m bisect fix linux-4.14.y job log (0) log
2021/07/17 13:30 25m bisect fix linux-4.14.y job log (0) log
2021/06/17 13:07 23m bisect fix linux-4.14.y job log (0) log
2021/04/19 02:41 30m bisect fix linux-4.14.y job log (0) log
2020/12/13 17:51 24m bisect fix linux-4.14.y job log (0) log

Sample crash report:
audit: type=1400 audit(1602047127.319:8): avc:  denied  { execmem } for  pid=6353 comm="syz-executor652" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
==================================================================
BUG: KASAN: slab-out-of-bounds in __fb_pad_aligned_buffer include/linux/fb.h:663 [inline]
BUG: KASAN: slab-out-of-bounds in bit_putcs_aligned drivers/video/fbdev/core/bitblit.c:96 [inline]
BUG: KASAN: slab-out-of-bounds in bit_putcs+0xab7/0xc30 drivers/video/fbdev/core/bitblit.c:185
Read of size 1 at addr ffff8880a7da5b3e by task syz-executor652/6353

CPU: 1 PID: 6353 Comm: syz-executor652 Not tainted 4.14.198-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+0x54/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:1301
 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:0x4403c9
RSP: 002b:00007ffdbc816238 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004403c9
RDX: 0000000000001006 RSI: 0000000020000180 RDI: 0000000000000006
RBP: 00000000006cb018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 000000000000000d R11: 0000000000000246 R12: 0000000000401c30
R13: 0000000000401cc0 R14: 0000000000000000 R15: 0000000000000000

Allocated by task 6335:
 save_stack mm/kasan/kasan.c:447 [inline]
 set_track mm/kasan/kasan.c:459 [inline]
 kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551
 __do_kmalloc mm/slab.c:3720 [inline]
 __kmalloc+0x15a/0x400 mm/slab.c:3729
 kmalloc_array include/linux/slab.h:607 [inline]
 kcalloc include/linux/slab.h:618 [inline]
 alloc_pipe_info+0x140/0x3c0 fs/pipe.c:664
 get_pipe_inode fs/pipe.c:726 [inline]
 create_pipe_files+0xc4/0x880 fs/pipe.c:759
 __do_pipe_flags fs/pipe.c:816 [inline]
 SYSC_pipe2 fs/pipe.c:864 [inline]
 SyS_pipe2+0x76/0x160 fs/pipe.c:858
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb

Freed by task 6335:
 save_stack mm/kasan/kasan.c:447 [inline]
 set_track mm/kasan/kasan.c:459 [inline]
 kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524
 __cache_free mm/slab.c:3496 [inline]
 kfree+0xc9/0x250 mm/slab.c:3815
 free_pipe_info+0x1f0/0x2a0 fs/pipe.c:697
 put_pipe_info fs/pipe.c:575 [inline]
 pipe_release+0x29f/0x300 fs/pipe.c:596
 __fput+0x25f/0x7a0 fs/file_table.c:210
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:191 [inline]
 exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
 do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x46/0xbb

The buggy address belongs to the object at ffff8880a7da56c0
 which belongs to the cache kmalloc-1024 of size 1024
The buggy address is located 126 bytes to the right of
 1024-byte region [ffff8880a7da56c0, ffff8880a7da5ac0)
The buggy address belongs to the page:
page:ffffea00029f6900 count:1 mapcount:0 mapping:ffff8880a7da4040 index:0x0 compound_mapcount: 0
flags: 0xfffe0000008100(slab|head)
raw: 00fffe0000008100 ffff8880a7da4040 0000000000000000 0000000100000007
raw: ffffea00029f1620 ffffea00029f69a0 ffff88812fe50ac0 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8880a7da5a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8880a7da5a80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
>ffff8880a7da5b00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb
                                        ^
 ffff8880a7da5b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff8880a7da5c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Crashes (95):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/07 05:07 linux-4.14.y cbfa1702aaf6 1880b4a9 .config console log report syz C ci2-linux-4-14
2020/07/12 10:51 linux-4.14.y b850307b279c 115e1930 .config console log report syz C ci2-linux-4-14
2020/04/12 09:24 linux-4.14.y 4520f06b03ae a8c6a3f8 .config console log report syz C ci2-linux-4-14
2019/12/09 04:41 linux-4.14.y a844dc4c5442 1508f453 .config console log report syz C ci2-linux-4-14
2019/12/08 10:15 linux-4.14.y a844dc4c5442 1508f453 .config console log report syz C ci2-linux-4-14
2019/12/03 15:37 linux-4.14.y fbc5fe7a54d0 ab342da3 .config console log report syz C ci2-linux-4-14
2021/05/18 13:06 linux-4.14.y 7d7d1c0ab3eb a343ba6b .config console log report info ci2-linux-4-14 KASAN: slab-out-of-bounds Read in bit_putcs
2021/03/20 02:41 linux-4.14.y cb83ddcd5332 3d01c4de .config console log report info ci2-linux-4-14 KASAN: slab-out-of-bounds Read in bit_putcs
2021/03/17 21:48 linux-4.14.y cb83ddcd5332 fdb2bb2c .config console log report info ci2-linux-4-14 KASAN: slab-out-of-bounds Read in bit_putcs
2021/03/02 13:16 linux-4.14.y 3242aa3a635c 92ead296 .config console log report info ci2-linux-4-14 KASAN: slab-out-of-bounds Read in bit_putcs
2021/02/11 05:00 linux-4.14.y 2c8a3fceddf0 a52ee10a .config console log report info ci2-linux-4-14 KASAN: slab-out-of-bounds Read in bit_putcs
2021/01/31 08:15 linux-4.14.y 2c8a3fceddf0 fc9fd31e .config console log report info ci2-linux-4-14 KASAN: slab-out-of-bounds Read in bit_putcs
2021/01/13 15:43 linux-4.14.y f79dc86058bc a945f0a3 .config console log report info ci2-linux-4-14
2020/12/30 18:35 linux-4.14.y 1752938529c6 ecb8c012 .config console log report info ci2-linux-4-14
2020/11/13 17:48 linux-4.14.y 27ce4f2a6817 4a7fa9b4 .config console log report info ci2-linux-4-14
2020/10/27 00:43 linux-4.14.y 5b7a52cd2eef 8b3eaf58 .config console log report info ci2-linux-4-14
2020/10/12 16:27 linux-4.14.y cbfa1702aaf6 d32b0bbf .config console log report info ci2-linux-4-14
2020/09/26 02:16 linux-4.14.y cbfa1702aaf6 4a006f63 .config console log report info ci2-linux-4-14
2020/09/23 19:39 linux-4.14.y cbfa1702aaf6 54289b08 .config console log report info ci2-linux-4-14
2020/09/16 18:45 linux-4.14.y cbfa1702aaf6 77507d02 .config console log report info ci2-linux-4-14
2020/09/02 02:16 linux-4.14.y d7e78d08fa77 abf9ba4f .config console log report ci2-linux-4-14
2020/08/26 11:31 linux-4.14.y d7e78d08fa77 318430cb .config console log report ci2-linux-4-14
2020/08/17 15:58 linux-4.14.y 14b58326976d 5ce13532 .config console log report ci2-linux-4-14
2020/08/11 23:02 linux-4.14.y 14b58326976d bb3e5fe6 .config console log report ci2-linux-4-14
2020/08/09 14:05 linux-4.14.y 14b58326976d 70301872 .config console log report ci2-linux-4-14
2020/08/05 17:05 linux-4.14.y ca4f2c56d416 b7129355 .config console log report ci2-linux-4-14
2020/08/04 22:51 linux-4.14.y 7f2c5eb458b8 02034dac .config console log report ci2-linux-4-14
2020/07/30 21:59 linux-4.14.y e5a54aa2d312 8df85ed9 .config console log report ci2-linux-4-14
2020/07/29 07:17 linux-4.14.y e5a54aa2d312 19a8de55 .config console log report ci2-linux-4-14
2020/07/12 05:02 linux-4.14.y b850307b279c 7ba05d2d .config console log report ci2-linux-4-14
2020/07/11 03:29 linux-4.14.y b850307b279c 18d18b59 .config console log report ci2-linux-4-14
2020/07/07 07:27 linux-4.14.y b850307b279c 42723355 .config console log report ci2-linux-4-14
2020/07/04 05:17 linux-4.14.y b850307b279c 51095195 .config console log report ci2-linux-4-14
2020/07/04 01:02 linux-4.14.y b850307b279c 51095195 .config console log report ci2-linux-4-14
2020/07/03 12:07 linux-4.14.y b850307b279c 6e569755 .config console log report ci2-linux-4-14
2020/07/02 08:20 linux-4.14.y b850307b279c bed10395 .config console log report ci2-linux-4-14
2020/07/02 05:53 linux-4.14.y b850307b279c bed10395 .config console log report ci2-linux-4-14
2020/07/02 00:03 linux-4.14.y b850307b279c bed10395 .config console log report ci2-linux-4-14
2020/06/29 19:43 linux-4.14.y b850307b279c ce9ef6f2 .config console log report ci2-linux-4-14
2020/06/29 05:38 linux-4.14.y b850307b279c a2cdad9d .config console log report ci2-linux-4-14
2020/06/29 00:05 linux-4.14.y b850307b279c a2cdad9d .config console log report ci2-linux-4-14
2020/06/28 16:03 linux-4.14.y b850307b279c a2cdad9d .config console log report ci2-linux-4-14
2020/06/27 16:42 linux-4.14.y b850307b279c a2cdad9d .config console log report ci2-linux-4-14
2020/06/27 11:30 linux-4.14.y b850307b279c 032b4239 .config console log report ci2-linux-4-14
2020/06/26 11:55 linux-4.14.y b850307b279c b202c7a8 .config console log report ci2-linux-4-14
2020/06/25 23:04 linux-4.14.y b850307b279c aea82c00 .config console log report ci2-linux-4-14
2020/06/24 00:48 linux-4.14.y b850307b279c bbad15ae .config console log report ci2-linux-4-14
2020/06/23 02:51 linux-4.14.y b850307b279c 1afe1535 .config console log report ci2-linux-4-14
2020/06/18 00:55 linux-4.14.y b850307b279c d45a4d69 .config console log report ci2-linux-4-14
2020/06/12 05:22 linux-4.14.y b850307b279c 819b58b0 .config console log report ci2-linux-4-14
2020/06/05 02:14 linux-4.14.y c6db52a88798 2420d1bc .config console log report ci2-linux-4-14
2020/05/28 13:59 linux-4.14.y 4f68020fef1c c7192a2f .config console log report ci2-linux-4-14
2020/05/28 05:50 linux-4.14.y 4f68020fef1c 9072c126 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.