Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp507365lqp; Mon, 10 Jun 2024 10:25:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCeomsTCpLpFYNeSPZvAyJgWoV3TMRmBakBm9+GZ8tjfsT2sxsDB94xaEEZQDRCHdEhgNnBVjGfNFFqW/ZKY3aRilNudU96Zrj4Oplww== X-Google-Smtp-Source: AGHT+IEzU0EFeh+rYI0BESJp6im+qlEPS5FgxF0rUUQlj4lZY8e8nNAVX+Dgz7qfmjmDtZpNoPpB X-Received: by 2002:a05:6a20:561a:b0:1a7:60d8:a6dd with SMTP id adf61e73a8af0-1b2f9ccac10mr10341346637.53.1718040306513; Mon, 10 Jun 2024 10:25:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718040306; cv=pass; d=google.com; s=arc-20160816; b=AiikEosab1OW5SbVpXM9Yx4zFZfc4j/9wD/xxBZl49zXkoGoD9n0F1YQ7+UlQ8FSBY luYPPsdqk3v6DhhNZcKFJ+S1jib3YZIh7uEeLCVuXpq4Isvy8pVk+FPVTBeC+Nwlrb5O Nryv9V5o0Ne86BJ3l77Z8JmI7CXpxX0vO3vr0cAFzyLXyHrXaavrodv4UkFZJxvWXGBA 0VbrCRjdQ64rEbEdrtVJ547HR1vXewAwij6isdLO8/DUTQz0q0LXdnUB74SfXYJCUKrd zUd7vQK8ZhpjpZRN/JnfHuzV4iWFq0OqmMbxbMpiQ8zUDjUZL8hLqe9lNKoZCldG+s8F lAJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=85DsUpdArfAxnlk2NzCi3NHBTdgTTjwuedIs2p1rmPo=; fh=az2dZpEYiEm4vtTr4+qsX4XJoeJGU4fUES6heyq65CU=; b=bzBJNkoRvdFpBFTrjiaSsVZ1K++Br1LW1goDT5EvsIBZk6ydv1RM8e6XbFUx5sT38U mtoQehyzWsVXVsYzcB6tKdg1nfZvFagquFa1Ii4XPSa46JU5xEKjW5blFjONUGcFlIDz Em1ExSZlyytPGZOi8YD+Jwp8YyY/HO0NPPZCPCerSswc0vrpmhk+nMRxy59D2hRgJ8+X nVihTDUxYlZYoZrhxLkBz0xltVDZ+yJfiV032/Zf9QkouIKopthWPPNUX6MGGOiD5G5S riRNmtM0wNUGOwEZuQBQRZquOjrPTSne8T0gf1js1sdcIxPMQ98z5Z8t3TcvmTNWMZmT vRvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-208644-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208644-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2073c944si8202923a12.140.2024.06.10.10.25.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 10:25:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208644-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-208644-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208644-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1D4212849BF for ; Mon, 10 Jun 2024 17:25:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1EF8146A85; Mon, 10 Jun 2024 17:25:00 +0000 (UTC) Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by smtp.subspace.kernel.org (Postfix) with SMTP id 0CBB9145B09 for ; Mon, 10 Jun 2024 17:24:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.131.102.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718040300; cv=none; b=slP4QfIR/iWl835u4bGreCj1gcgadqcafNmr7v1/aMVO2W/goVXIvEzAOyYlcLqxuzzvTAVOppc1IhxwSCOIewxJ+hWDtRpN006hAPRE1eYaXj5c6PickMz77QqfBWUSfnk6kSX7HIY8vPuBR8jccZVN7NViC9cT8eS3K+iil/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718040300; c=relaxed/simple; bh=yDfpHqalm5/j4G3WM6FlWkEaCClv6ag+bC0+aRQ0eoE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OvsAOyomgdaddbiqdiKtE/Ic7WiOY3Dm3QHLzZ/Rb7GANawuXH4befl0dmNkNGUu9ZI9w0m8+ipFUM9rGnaQhmHaZSp0Apq5krpApx81xLhs3+VozuEewH0ecCyl1rt1uuoMGvq2OWwiv1/wE0YGKQ29nZqoZqV7cH6EyHGnIdw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu; spf=pass smtp.mailfrom=netrider.rowland.org; arc=none smtp.client-ip=192.131.102.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netrider.rowland.org Received: (qmail 156890 invoked by uid 1000); 10 Jun 2024 13:24:50 -0400 Date: Mon, 10 Jun 2024 13:24:50 -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] [usb?] INFO: rcu detected stall in raw_ioctl Message-ID: References: <8177975b-7eff-45db-9b4b-4a6d321ac7ab@rowland.harvard.edu> <000000000000f225de061a6da393@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000000000000f225de061a6da393@google.com> On Sat, Jun 08, 2024 at 09:41:04PM -0700, syzbot wrote: > Hello, > > syzbot has tested the proposed patch and the reproducer did not trigger any issue: > > Reported-and-tested-by: syzbot+5f996b83575ef4058638@syzkaller.appspotmail.com > > Tested on: > > commit: 8867bbd4 mm: arm64: Fix the out-of-bounds issue in con.. > git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git > console output: https://syzkaller.appspot.com/x/log.txt?x=11f0680a980000 > kernel config: https://syzkaller.appspot.com/x/.config?x=3b4350cf56c61c80 > dashboard link: https://syzkaller.appspot.com/bug?extid=5f996b83575ef4058638 > compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 > userspace arch: arm64 > patch: https://syzkaller.appspot.com/x/patch.diff?x=118743fc980000 > > Note: testing is done by a robot and is best-effort only. I'd like to determine the reason behind this entire class of bugs. As far as I can see, the design of dummy-hcd shouldn't allow them to occur. Alan Stern #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git 8867bbd4a056 Index: usb-devel/drivers/usb/gadget/udc/dummy_hcd.c =================================================================== --- usb-devel.orig/drivers/usb/gadget/udc/dummy_hcd.c +++ usb-devel/drivers/usb/gadget/udc/dummy_hcd.c @@ -1826,6 +1826,7 @@ static void dummy_timer(struct timer_lis break; dum->ep[i].already_seen = 0; } + dev_info(dummy_dev(dum_hcd), "Timer handler\n"); restart: list_for_each_entry_safe(urbp, tmp, &dum_hcd->urbp_list, urbp_list) { @@ -1835,6 +1836,9 @@ restart: struct dummy_ep *ep = NULL; int status = -EINPROGRESS; + dev_info(dummy_dev(dum_hcd), "urbp %p %x next_frame %p\n", + urbp, urbp->urb->pipe, dum_hcd->next_frame_urbp); + /* stop when we reach URBs queued after the timer interrupt */ if (urbp == dum_hcd->next_frame_urbp) break;