Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp489657lqp; Wed, 12 Jun 2024 07:38:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5z3ezpx/gmGlrxwKuYYdAAOtIwWHDcOVb9R8XIXGbIbAmS1pUcwo8H3SFNLSM2HL2cj1fLJPfiQ1+pOa6Wb7ogKIMRM6XIL4DzPmq+Q== X-Google-Smtp-Source: AGHT+IGOh6GzxzTfVqaH7h9xp/wc2Gr29PiP+8TM89SjCYxrtGp7TAIiS9+Bg4Sb8+ANDMUZzf3+ X-Received: by 2002:a17:902:d512:b0:1f8:3c47:9d9d with SMTP id d9443c01a7336-1f83c47b2f7mr20472095ad.38.1718203102430; Wed, 12 Jun 2024 07:38:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718203102; cv=pass; d=google.com; s=arc-20160816; b=Cl4A0hrQjNQChiX3kyoj4+X8NKOw7ogwK0coeuoHSifTCnjWY4wNeC6A3XtEcNcZWY EUmdTAkU1Kxs4WcOKcUavFds/4WyKuRXNBtfuU6YM8BqSWNxFsaWMtiUjEXBdeFT3F/V LSAytirgNCayKgyjW/hFKyxbdBM7nwUabUzJUh94omy/GvEKBfH65fiXNhKZswniT2fb eGO7TH+s9pWFrd9+jmubtjqA6DrjnAWe36RWQfArOC5N4aT9TKDuS/TDayLQEKfSskdh TkJWItqMk8ISdzi6RtE5KoC0G25PdYAM9dFZV7Dysk0BQfX/UtszgSMFkkt1TUMOQP2w Ldog== 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=zd0uj1rXKZGKYpD2nK8lFl0X4btT9YSG8e3xnkxzCJE=; fh=az2dZpEYiEm4vtTr4+qsX4XJoeJGU4fUES6heyq65CU=; b=oSQGYX7OFphzAJ78av9x8XMFLw6F8rPGLJNdsjoX7AXyRr3aQbaXhDbkgRkXa8KsUn D+fQWK6GwG8qqPGkIyjnzE2WJZb9hxli48sDdE3OGYm4kqts3ubZ9NnZfi3m8A870LP8 lSTdWhPODgvZ/esc8ZX4tFGoOUj/sTKH51fUanbjp6nz+FlfFWPGLoXRI0v8F//abgav 6yz5sFdvXOy46ndfEHoAbfXLXVdhI6kFCU5/2n06ESFeBmvLnXpBeOZBZqOOee7FtALl Bve+ip+dlkeCRBQAtUt6JACA1guLbvoBST/lvkubJarkp894J86HIHJl+bWWSHChHmro /iWw==; 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-211681-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211681-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 d9443c01a7336-1f6bd7609cfsi74977765ad.67.2024.06.12.07.38.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 07:38:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211681-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-211681-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211681-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 CA7322839FF for ; Wed, 12 Jun 2024 14:38:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4FA7417E90F; Wed, 12 Jun 2024 14:37:31 +0000 (UTC) Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by smtp.subspace.kernel.org (Postfix) with SMTP id BD1CA17E456 for ; Wed, 12 Jun 2024 14:37:27 +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=1718203050; cv=none; b=ZpnxUZtARNlkBRtotxNu71tRU7acXx5fGmBNIsGsr/fMoTsZTJWrdOzOZb5ZQJkn0MWM2uyinIJEMTV2kg1hKVPAh2dW/9CVUUAn7VEhmKkB9qVDxEqgc5CU4pd2DWahLy1QzLTgnoYNeoy7FF78NaPayVioOTD6aZPxMZgWb3Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718203050; c=relaxed/simple; bh=bQA6/YbD0LnAqlHHCD0lNcxUEHgiqOkL0iQb13PzXRI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hbJcr7L3nWHJdIWNJCwrT3e9ivF3Gk7H6QqNeP3xpSLXXXt5pPcGlcJzUvVXUX/DWDTiNJLC9yq2Au1Le3jT7MO7oXUFKPlbmOf4nz+pZgfz5dfONouKX6prCki7Dl38s08RShn/WXxTptXZv9972y32shgB3y6ZBsvJZyG7Org= 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 226065 invoked by uid 1000); 12 Jun 2024 10:37:26 -0400 Date: Wed, 12 Jun 2024 10:37:26 -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: <2bfca69a-b7e0-4f66-9025-1324af803318@rowland.harvard.edu> References: <684687e4-8be4-42ee-a125-8ef9acc3fec9@rowland.harvard.edu> <000000000000babbf8061aa113df@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: <000000000000babbf8061aa113df@google.com> On Tue, Jun 11, 2024 at 11:03:03AM -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=14e092de980000 > 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=137c697e980000 > > Note: testing is done by a robot and is best-effort only. Let's try Greg's suggestion to replace dev_err() with dev_err_ratelimited(). Alan Stern Index: usb-devel/drivers/usb/class/cdc-wdm.c =================================================================== --- usb-devel.orig/drivers/usb/class/cdc-wdm.c +++ usb-devel/drivers/usb/class/cdc-wdm.c @@ -266,14 +266,14 @@ static void wdm_int_callback(struct urb dev_err(&desc->intf->dev, "Stall on int endpoint\n"); goto sw; /* halt is cleared in work */ default: - dev_err(&desc->intf->dev, + dev_err_ratelimited(&desc->intf->dev, "nonzero urb status received: %d\n", status); break; } } if (urb->actual_length < sizeof(struct usb_cdc_notification)) { - dev_err(&desc->intf->dev, "wdm_int_callback - %d bytes\n", + dev_err_ratelimited(&desc->intf->dev, "wdm_int_callback - %d bytes\n", urb->actual_length); goto exit; }