syzbot


KASAN: global-out-of-bounds Write in record_print_text

Status: auto-obsoleted due to no activity on 2023/04/16 08:59
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+db1faa35484efb6a54ea@syzkaller.appspotmail.com
First crash: 1358d, last: 1353d
Cause bisection: introduced by (bisect log) :
commit f0e386ee0c0b71ea6f7238506a4d0965a2dbef11
Author: John Ogness <john.ogness@linutronix.de>
Date: Thu Jan 14 17:04:12 2021 +0000

  printk: fix buffer overflow potential for print_text()

Crash: WARNING: bad unlock balance in ip6_output (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) [no-op commit]:
commit 38d26b244367e84ed657ac4f5093ae9e71c8a7a2
Author: Michael Walle <michael@walle.cc>
Date: Mon Dec 28 13:00:31 2020 +0000

  enetc: drop unneeded indirection

  
Discussions (1)
Title Replies (including bot) Last reply
KASAN: global-out-of-bounds Write in record_print_text 0 (1) 2021/01/25 21:14
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-out-of-bounds Write in record_print_text fs C done unreliable 17 1352d 1355d 19/28 fixed on 2021/03/10 01:48
Last patch testing requests (5)
Created Duration User Patch Repo Result
2023/04/16 08:40 18m retest repro linux-next OK log
2023/01/06 06:31 20m retest repro linux-next error
2022/09/27 22:30 17m retest repro linux-next error
2022/09/25 00:30 16m retest repro upstream OK log
2022/09/24 21:30 16m retest repro upstream OK log

Sample crash report:
k?)={|o<Hx5mKe'6HGӳ#]lT
GpM,Y-'(#[CC979+$Vc,[F.VuJ~ "z05e-Ol<S@bX'Yi9AT*
&L"܏?j*u}lkl2@+ҧ3+=r&г4oa4>8GcRBi%Tױ9k
-R{;w6WQ"mBTA~<R^Y^>}̿9$4UyncW4$@3]m'Q;kevw}γ)bwLowE`=ABaX>1R3(cH]sVE@	]]ޱx2K}Swu'd^|T(iLm&j%g|L"~\P4a$e./㠣Ȏ~iS&oX6iaOLۊYx^EC{AJCU\ "qot.}WS'
==================================================================
BUG: KASAN: global-out-of-bounds in record_print_text+0x33f/0x380 kernel/printk/printk.c:1401
Write of size 1 at addr ffffffff8f08d01e by task kauditd/35

CPU: 1 PID: 35 Comm: kauditd Not tainted 5.11.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x107/0x163 lib/dump_stack.c:120
 print_address_description.constprop.0.cold+0x5/0x2c6 mm/kasan/report.c:230
 __kasan_report mm/kasan/report.c:396 [inline]
 kasan_report.cold+0x79/0xd5 mm/kasan/report.c:413
 record_print_text+0x33f/0x380 kernel/printk/printk.c:1401
 console_unlock+0x318/0xbb0 kernel/printk/printk.c:2555
 vprintk_emit+0x189/0x490 kernel/printk/printk.c:2092
 vprintk_func+0x8d/0x1e0 kernel/printk/printk_safe.c:393
 printk+0xba/0xed kernel/printk/printk.c:2140
 kauditd_printk_skb kernel/audit.c:538 [inline]
 kauditd_hold_skb.cold+0x41/0x50 kernel/audit.c:571
 kauditd_send_queue+0x19d/0x210 kernel/audit.c:734
 kauditd_thread+0x7f0/0xb80 kernel/audit.c:860
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296

The buggy address belongs to the variable:
 console_waiter+0x3e/0x40

Memory state around the buggy address:
 ffffffff8f08cf00: f9 f9 f9 f9 00 00 f9 f9 f9 f9 f9 f9 01 f9 f9 f9
 ffffffff8f08cf80: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9
>ffffffff8f08d000: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9
                            ^
 ffffffff8f08d080: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 f9 f9
 ffffffff8f08d100: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (45):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/23 04:57 upstream 83d09ad4b950 4080af96 .config console log report syz C ci-upstream-kasan-gce-selinux-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 04:25 upstream 83d09ad4b950 4080af96 .config console log report syz C ci-upstream-kasan-gce-selinux-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/21 21:25 linux-next bc085f8fc88f d4f4eca5 .config console log report syz C ci-upstream-linux-next-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/25 12:21 upstream 6ee1d745b7c9 52e37319 .config console log report info ci-upstream-kasan-gce-smack-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/25 04:10 upstream e68061375f79 52e37319 .config console log report info ci-upstream-kasan-gce-smack-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/25 04:10 upstream e68061375f79 52e37319 .config console log report info ci-upstream-kasan-gce-smack-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/24 17:32 upstream e1ae4b0be158 52e37319 .config console log report info ci-upstream-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/24 17:32 upstream e1ae4b0be158 52e37319 .config console log report info ci-upstream-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/24 16:58 upstream e1ae4b0be158 52e37319 .config console log report info ci-upstream-kasan-gce-smack-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/24 16:58 upstream e1ae4b0be158 52e37319 .config console log report info ci-upstream-kasan-gce-smack-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/24 16:53 upstream e1ae4b0be158 52e37319 .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/24 16:52 upstream e1ae4b0be158 52e37319 .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/24 10:16 upstream e1ae4b0be158 52e37319 .config console log report info ci-upstream-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/24 01:44 upstream e1ae4b0be158 52e37319 .config console log report info ci-upstream-kasan-gce-smack-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 21:14 upstream fe75a21824e7 52e37319 .config console log report info ci-upstream-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 21:14 upstream fe75a21824e7 52e37319 .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 21:14 upstream fe75a21824e7 52e37319 .config console log report info ci-upstream-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 21:08 upstream fe75a21824e7 52e37319 .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 21:07 upstream fe75a21824e7 52e37319 .config console log report info ci-upstream-kasan-gce-smack-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 21:07 upstream fe75a21824e7 52e37319 .config console log report info ci-upstream-kasan-gce-smack-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 03:10 upstream 83d09ad4b950 4080af96 .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 00:41 upstream 83d09ad4b950 4080af96 .config console log report info ci-upstream-kasan-gce-smack-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 00:38 upstream 83d09ad4b950 4080af96 .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 00:34 upstream 83d09ad4b950 4080af96 .config console log report info ci-upstream-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 00:34 upstream 83d09ad4b950 4080af96 .config console log report info ci-upstream-kasan-gce-smack-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 00:33 upstream 83d09ad4b950 4080af96 .config console log report info ci-upstream-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 00:31 upstream 83d09ad4b950 4080af96 .config console log report info ci-upstream-kasan-gce-smack-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/22 10:08 upstream 9f29bd8b2e71 d4f4eca5 .config console log report info ci-upstream-kasan-gce-smack-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/22 06:26 upstream 9f29bd8b2e71 d4f4eca5 .config console log report info ci-upstream-kasan-gce-selinux-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/22 06:24 upstream 9f29bd8b2e71 d4f4eca5 .config console log report info ci-upstream-kasan-gce-smack-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/22 05:13 upstream 9f29bd8b2e71 d4f4eca5 .config console log report info ci-upstream-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/22 03:16 upstream 9f29bd8b2e71 d4f4eca5 .config console log report info ci-upstream-kasan-gce-smack-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/22 04:44 upstream 9f29bd8b2e71 d4f4eca5 .config console log report info ci-upstream-kasan-gce-386 KASAN: global-out-of-bounds Write in record_print_text
2021/01/27 02:22 linux-next bc085f8fc88f 55a7d4df .config console log report info ci-upstream-linux-next-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/26 10:22 linux-next bc085f8fc88f 52e37319 .config console log report info ci-upstream-linux-next-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/24 16:52 linux-next bc085f8fc88f 52e37319 .config console log report info ci-upstream-linux-next-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/24 16:52 linux-next bc085f8fc88f 52e37319 .config console log report info ci-upstream-linux-next-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 21:23 linux-next bc085f8fc88f 52e37319 .config console log report info ci-upstream-linux-next-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 00:42 linux-next bc085f8fc88f 4080af96 .config console log report info ci-upstream-linux-next-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/23 00:33 linux-next bc085f8fc88f 4080af96 .config console log report info ci-upstream-linux-next-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/21 21:08 linux-next bc085f8fc88f d4f4eca5 .config console log report info ci-upstream-linux-next-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/21 21:05 linux-next bc085f8fc88f d4f4eca5 .config console log report info ci-upstream-linux-next-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
2021/01/21 21:05 linux-next bc085f8fc88f d4f4eca5 .config console log report info ci-upstream-linux-next-kasan-gce-root KASAN: global-out-of-bounds Write in record_print_text
* Struck through repros no longer work on HEAD.