Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp935564pxb; Tue, 19 Oct 2021 16:37:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8VXewYJkX+qd443f4VPLzujFtK+ZHo0daBY5vI+I/zGbWc6bb1IWDaWbrOYZYSu0SqGJe X-Received: by 2002:a05:6402:1908:: with SMTP id e8mr57260548edz.252.1634686663113; Tue, 19 Oct 2021 16:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634686663; cv=none; d=google.com; s=arc-20160816; b=G3Y1KqhlZ7XGrEm2DeG3TSOUYPxkWvO/l85rHnwBqylsD0caP5xKqCJXLpc+NlcZJK e3OSBGkf2C6zRvj2JSfaV9h7SO/7SRvA4U+WKzZ0hmGoM4qHQvrt1sf3EtU/Y1/UvY95 74kS/IvqV5ck/WPeKRJB7BN6pzjwBJj+9joIPrbSeQwjlIMOLVe0BYXn3VJ9JxHwQHZ3 hqVoW/3MC4XTLquFzaqUfjlRANmjKf352p9MLAe+7K5h18EaUk4Id19qVi7kHar9Ceai jbC7M4eg1UVph9EJrARG9o8oixX7Wpk5daAHchbBEGrSzI37fkMUqe2qq6mIUFfrB8D0 Vphw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=WLYCm9PqVmFsDSIp8nDRKg5nHs01uXe4D46mNrJsnRk=; b=QjFTxHVZNe/0lujPsunxi9fmzbdHSUeeSKIK71Jeyk9n0LpW7wqCubh6kzThCSL6Vm YhL/3r/vURnNAdfL7Mo2JmK0C2efWEJAwVzwS/ZpDiYbHZ2ohA07Cew5Omu+jxF3vWJg Ku7b5/sNbhzfAFi+JpzL7wtizZBwjAHnuEnhLVmlDfufrhhic39T8alqFkBNoH6oCrjZ ufrGNgPwFZ2XxcGv0Sy/QN2u8TrhywyhMxjwrA1WddJAUwmberNBta0fanwlM8/nwAKH C7EW36FHphYIvdV+7lh3CfaAXfu6uGkt1LVG0e58uZecpgEzdDOLywZqEVa6E5LVNAJX DC2Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gu9si670711ejb.569.2021.10.19.16.37.18; Tue, 19 Oct 2021 16:37:43 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229555AbhJSXhk (ORCPT + 99 others); Tue, 19 Oct 2021 19:37:40 -0400 Received: from netrider.rowland.org ([192.131.102.5]:39695 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S229668AbhJSXhi (ORCPT ); Tue, 19 Oct 2021 19:37:38 -0400 Received: (qmail 1099285 invoked by uid 1000); 19 Oct 2021 19:35:24 -0400 Date: Tue, 19 Oct 2021 19:35:24 -0400 From: Alan Stern To: syzbot Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] UBSAN: array-index-out-of-bounds in ehci_hub_control Message-ID: <20211019233524.GA1099077@rowland.harvard.edu> References: <0000000000001611e605cebabab5@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0000000000001611e605cebabab5@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 19, 2021 at 01:44:24PM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: d999ade1cc86 Merge tag 'perf-tools-fixes-for-v5.15-2021-10.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17d85d34b00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=b5d8cfd89abd92bf > dashboard link: https://syzkaller.appspot.com/bug?extid=9df2568864dedf79db36 > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > > Unfortunately, I don't have any reproducer for this issue yet. > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+9df2568864dedf79db36@syzkaller.appspotmail.com > > ================================================================================ > UBSAN: array-index-out-of-bounds in drivers/usb/host/ehci-hub.c:754:39 > index 254 is out of range for type 'u32 [15]' > CPU: 0 PID: 11514 Comm: syz-executor.1 Not tainted 5.15.0-rc5-syzkaller #0 > Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 This should already be fixed by https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/drivers/usb/host/ehci-hub.c?h=usb-next&id=846cbf98cbef20376b1a95fa3734c435543f3519 (although it can't be tested if there is no reproducer). That commit is scheduled to go into 5.16-rc1. This isn't really a bug, because the pointer doesn't get used in cases where the index is beyond the end of the array. Alan Stern