Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp438774pxb; Thu, 21 Jan 2021 10:35:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2/CBnVKbc+ZhP4Gc3gqWZVyQnNNc4Rr1n47UQc5p44m/DfO2XtJ8qqpJnIG0qJZoLPh2t X-Received: by 2002:a50:d604:: with SMTP id x4mr407346edi.64.1611254122798; Thu, 21 Jan 2021 10:35:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611254122; cv=none; d=google.com; s=arc-20160816; b=E+5WdkdMCmfsrWxQslZww9Q17SZUeb7rOsGkOSRxLvOD24AhTEWydVW9vj86MLnUae 3qUUBRlSBVv49TyGKoloHVj9HF8iUk0FIV9UL7sTmvUFv+A4pqwcb4pmg+1xusjz1//W T9ugG1yIoO4Za1EqsywJ8oC9TgAt1hMrK4lp50oOllDkOYZ9PkGSYDgzwpxSEZ63Dhjs f2rptiNbv6N3fRApPV3GDkSLKArWLPuiJrIsE/Zo3XfVVuJUEjnZnOKsjVdq+FFgZSRj taqejznjeiNdfqCvGa5nu/KAWSeqxlnEJ0wIc0Aq0b/sQuxGgRz1dxfTbdQy+KGa5z4J bAPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:in-reply-to:date :mime-version; bh=oVWccvp7x6PMxOa3dh/LvOXdIcojqs3FO4GiLhT8EWY=; b=nyC5I9bBEieSHVqU9xR+FVgKgjAhAVjmYYoBlJj4r21RadSPPXXy4c8EvG0oJccPma AZiZWuDX8QY0eEyYtW7bj2bbyU7+vvSMHY744sVQH6FjUESHhwJr6I3Ox7A/pdxOIfkv NDP0RLKXrx5KzvNefgqfmkgJ9G0nyqEujM6KWTUqEawGf5Vmj5mD/rk4Ne0W8V3n8UZt lHlbv0iDUX2Htn2prxlWnuPrhJ7lep407BEujZlOGv8gQ+3MTZcIjvmc5l2yZ5+e4m92 Y7Zf8zh4d0nxXFPvrLsMe2Tdzxj2uyQkD1n3Oo+ask3y0y0+PyHHVnV53MQk32VqJ4EI YGhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y18si2342561edv.524.2021.01.21.10.34.57; Thu, 21 Jan 2021 10:35:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727993AbhAUScB (ORCPT + 99 others); Thu, 21 Jan 2021 13:32:01 -0500 Received: from mail-io1-f72.google.com ([209.85.166.72]:37582 "EHLO mail-io1-f72.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728685AbhAUSbF (ORCPT ); Thu, 21 Jan 2021 13:31:05 -0500 Received: by mail-io1-f72.google.com with SMTP id d15so356858ioh.4 for ; Thu, 21 Jan 2021 10:30:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=oVWccvp7x6PMxOa3dh/LvOXdIcojqs3FO4GiLhT8EWY=; b=f78yvW/zONJt5ODtcuUrDJG6Ub0tV6IkP3haEm9Ljjl5oNuYzKutdusL+3n5YXYdA4 dYZhXcABJiIK7x+8QDp98sUyXptVjyyajIJBlHXNopVoPPsz3tIdrLNLOxIH8e3iuYOr jYz3wrSBaklmolLoKJQzZRcK3ecS9/eMfTLQYUcCdxtVC8NOmoG/wxTMWYpgnY5C12ct X6P0YZ+/s/HoVqa433qRlEvC2fPOf+30pCyKrtULgTBNRWvQeIzF6uyTfq+dawQCOfp2 pGwoNH2ZJFfVGuCk8oqMX1ziyxY9bB2DfQkUbwW7Yo3J1IPDBjTY5EkQZyljuueXdJhX 5miA== X-Gm-Message-State: AOAM531Mt3hDmicgUsRqZUZwh3JfBJZebRuS6ADo8Y+eInFpNLHOUd9y VtWo8QXFcu+s9H0bcGiBjpUcyn2G+YX5FY79j0TEK9i4ZmiU MIME-Version: 1.0 X-Received: by 2002:a6b:b258:: with SMTP id b85mr617052iof.97.1611253823888; Thu, 21 Jan 2021 10:30:23 -0800 (PST) Date: Thu, 21 Jan 2021 10:30:23 -0800 In-Reply-To: <0000000000004c9e3505b96c58eb@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000d0e9a705b96d4332@google.com> Subject: Re: UBSAN: array-index-out-of-bounds in decode_data From: syzbot To: ajk@comnets.uni-bremen.de, davem@davemloft.net, kuba@kernel.org, linux-hams@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: 9791581c Merge tag 'for-5.11-rc4-tag' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13cd09a4d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=39701af622f054a9 dashboard link: https://syzkaller.appspot.com/bug?extid=70ba6cae2f44c82dcb76 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=133d8030d00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+70ba6cae2f44c82dcb76@syzkaller.appspotmail.com ================================================================================ UBSAN: array-index-out-of-bounds in drivers/net/hamradio/6pack.c:845:16 index 400 is out of range for type 'unsigned char [400]' CPU: 1 PID: 8 Comm: kworker/u4:0 Not tainted 5.11.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound flush_to_ldisc Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 ubsan_epilogue+0xb/0x5a lib/ubsan.c:148 __ubsan_handle_out_of_bounds.cold+0x62/0x6c lib/ubsan.c:356 decode_data.part.0+0x2c8/0x2e0 drivers/net/hamradio/6pack.c:845 decode_data drivers/net/hamradio/6pack.c:965 [inline] sixpack_decode drivers/net/hamradio/6pack.c:968 [inline] sixpack_receive_buf drivers/net/hamradio/6pack.c:458 [inline] sixpack_receive_buf+0xd8c/0x1320 drivers/net/hamradio/6pack.c:435 tty_ldisc_receive_buf+0x14a/0x190 drivers/tty/tty_buffer.c:465 tty_port_default_receive_buf+0x6e/0xa0 drivers/tty/tty_port.c:38 receive_buf drivers/tty/tty_buffer.c:481 [inline] flush_to_ldisc+0x20d/0x380 drivers/tty/tty_buffer.c:533 process_one_work+0x98d/0x15f0 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 ================================================================================ Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 8 Comm: kworker/u4:0 Not tainted 5.11.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound flush_to_ldisc Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:120 panic+0x306/0x73d kernel/panic.c:231 ubsan_epilogue+0x54/0x5a lib/ubsan.c:162 __ubsan_handle_out_of_bounds.cold+0x62/0x6c lib/ubsan.c:356 decode_data.part.0+0x2c8/0x2e0 drivers/net/hamradio/6pack.c:845 decode_data drivers/net/hamradio/6pack.c:965 [inline] sixpack_decode drivers/net/hamradio/6pack.c:968 [inline] sixpack_receive_buf drivers/net/hamradio/6pack.c:458 [inline] sixpack_receive_buf+0xd8c/0x1320 drivers/net/hamradio/6pack.c:435 tty_ldisc_receive_buf+0x14a/0x190 drivers/tty/tty_buffer.c:465 tty_port_default_receive_buf+0x6e/0xa0 drivers/tty/tty_port.c:38 receive_buf drivers/tty/tty_buffer.c:481 [inline] flush_to_ldisc+0x20d/0x380 drivers/tty/tty_buffer.c:533 process_one_work+0x98d/0x15f0 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Kernel Offset: disabled Rebooting in 86400 seconds..