Received: by 2002:a05:7208:20d2:b0:82:bbfa:f723 with SMTP id z18csp62824rbz; Tue, 7 May 2024 10:35:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUKa12YR6+HTkN+jvkVeMrKPxNj3z9ogUGvWN0f6ZTNv9zehUBuvFspEIbpzQY0QLsPJCjnFFkzKpcDWHQSGFskKvCpwJFcyFHktv4JNw== X-Google-Smtp-Source: AGHT+IHGathRC11uAOEzSW+FO4sNU7oqtRga2qZhdQNO5nRCZg6tVycDn8R6m66N+Td/KG7y92oj X-Received: by 2002:a17:906:4a11:b0:a59:ad15:6133 with SMTP id a640c23a62f3a-a59fb9dd014mr7921966b.71.1715103342069; Tue, 07 May 2024 10:35:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715103342; cv=pass; d=google.com; s=arc-20160816; b=NZxgwlAMiEwP6Wjt+FB2UbDsq3chUPfPPCKlcbv8/VWCRiLZnL15G0bCaJcTKfnaDd gQteA0scUa6H70vIs65RJuwSBlimLIr6PI4LpzypZ3RmLLe3T4WAdvrMQMn4Sov1wc1b REZLFwrb9+fQS1bdFqbXE3HQ2dM7of2fJzCnAD9xaXV0rw8JWnBjuS+oTPk4rQCpAYBd dqQJas/Otf6PBlz1d8lylNkW0czA80hGbUs/6jO5/1NP8XyHBRwBeaNAoicI9zJI5LXV kM1qILc83Tbe/WCl9NddRCtpsi0VUJrJNIPrKgXCMSGKBlWV1NzvtOxS+j8F6jw1NyUL LXXA== 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=m5/gP181MvnaGJj147fHBJ8rnFMErdD9Lj46Pg5X+Co=; fh=Vz5MDfBPFfNUrm2cCKEWXqEsD87SEevDbeCUnXVR1iU=; b=obxBQ7en+dHe80d1CAf5G1oaGFc0zSII4/4ZRf47ARXCj1FU36ypg8pcIuiCxwbHqv 1wVz8KYAYLgtU3NEJqvFBfwTWvJ4Rz5HKC0gxhsbQpXwQKouAfCRmlDtms3cV2FT35Z+ LFnugPixwZOcm2Hewh3gf2qIlY8zwT51EKXMA7I2i6p5p2nQl19jzKgUaRmhYZHY0i9N Jzix790bKcVNKVOxm0P8RqB7Ycy3gjXbKQ7Nczy97SOanPEOQkMkewcocIsFELD6Dmhf BDU0EbZvCyLL/BdDon+fFozImlsv9zYHfIlMZzwfu5ZKmFj8rvTqT6ZLNrOWJ+Jwgqx1 wAFQ==; 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-171921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171921-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ht21-20020a170907609500b00a59defd86d3si1734723ejc.257.2024.05.07.10.35.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 10:35:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-171921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171921-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CE7E51F25AE5 for ; Tue, 7 May 2024 17:35:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94B5216C860; Tue, 7 May 2024 17:35:30 +0000 (UTC) Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by smtp.subspace.kernel.org (Postfix) with SMTP id 92FCC13C9B9 for ; Tue, 7 May 2024 17:35:28 +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=1715103330; cv=none; b=nd4+HWTg2Q1dHxVd7gHFTjgLUNwlSPgqvMB9FJ5G/pqhXOno3tJZ4HDuZZQ353DTqf+faB93PljHSvJqt4m+MH6XRz3TdimVZ0wRUKj28qzh0H+Pt39zFmljqUA7qdBfNBJn6eSwAJwjsSZIhPtLhAyyWusduo7rbmyEADyTSVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715103330; c=relaxed/simple; bh=R6+CIXvzD7onNjVoPlm/Avc0hn/fGIYtQFm64yzV7Qg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jvzZVsJsxkqCmyHxsU120IOC1jFA83pf8YTWDBgKxOM327Jthptw2G9ufQ9JyY/Bms2SHQAA6Vb6eDwtWyRKgBVVwYFMu+End1j1CG82oL3TR74ihxC3tqocQMWlp8o+uuWtPtPHUoa5/2XvOkfBNWJe1couGvqgyuM22cdkaI4= 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 929094 invoked by uid 1000); 7 May 2024 13:35:22 -0400 Date: Tue, 7 May 2024 13:35:22 -0400 From: Alan Stern To: syzbot Cc: bentiss@kernel.org, jikos@kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [input?] [usb?] WARNING in hid_output_report Message-ID: <0f5a27f2-b949-4d15-906e-552b44557f61@rowland.harvard.edu> References: <0000000000005e57b10617bc951f@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: <0000000000005e57b10617bc951f@google.com> On Sun, May 05, 2024 at 03:36:27PM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: 18daea77cca6 Merge tag 'for-linus' of git://git.kernel.org.. > git tree: upstream > console+strace: https://syzkaller.appspot.com/x/log.txt?x=159f1f17180000 > kernel config: https://syzkaller.appspot.com/x/.config?x=d2f00edef461175 > dashboard link: https://syzkaller.appspot.com/bug?extid=5186630949e3c55f0799 > compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13deb917180000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1035ae87180000 > > Downloadable assets: > disk image: https://storage.googleapis.com/syzbot-assets/4614372cf68b/disk-18daea77.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/e118db95ea43/vmlinux-18daea77.xz > kernel image: https://storage.googleapis.com/syzbot-assets/998cf091eeb5/bzImage-18daea77.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+5186630949e3c55f0799@syzkaller.appspotmail.com > > keytouch 0003:0926:3333.0001: implement() called with too large value 8 (n: 1)! (kworker/0:0) > ------------[ cut here ]------------ > WARNING: CPU: 0 PID: 7 at drivers/hid/hid-core.c:1451 implement drivers/hid/hid-core.c:1451 [inline] > WARNING: CPU: 0 PID: 7 at drivers/hid/hid-core.c:1451 hid_output_report+0x548/0x760 drivers/hid/hid-core.c:1863 I suspect the WARN_ON(1) call in implement() should simply be removed. It looks like the keytouch driver is trying to write 8 to a 1-bit field in an output report. It probably doesn't verify the field sizes and just assumes the device is reasonable. Alan Stern