Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2887940rdb; Mon, 12 Feb 2024 23:21:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXtxM43hiH7SASlVyy7YvdyRNnU0gAXljpejsRo3RWxit36bk7e06NCpvq/iXUFoZ5NGfHgT85LzLyGRnIhRP3a0L72SRGymCMLcTLGXg== X-Google-Smtp-Source: AGHT+IEMAI5nlFwwanPPbJOhCwFQnRvoHWiaFltj5r/r5GGnfPsBzfZawxg5i0OH/C/67wspQ/sh X-Received: by 2002:a05:6a20:3554:b0:19e:b95f:123c with SMTP id f20-20020a056a20355400b0019eb95f123cmr5628633pze.49.1707808915157; Mon, 12 Feb 2024 23:21:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707808915; cv=pass; d=google.com; s=arc-20160816; b=vXEA0YgsVeO3FFYbo4iMs6Es/8+5GW02PYT5WvgX5QFzWlFQhwuHrEsjy4R8tZHqz8 fDH28oaCJBBbJ2sk0W4j0zRQev960/B1IxuJc9tBVzvibd0yN5uO6IMPoq+l14kOc/Rl Tn8uDaZ/XMabrUAPgGXTuHCIMcY/d76oQ2jaSiKLuge2KTXx0im4RLoSakOlIe7+wuJW SJvOYG0VCzNX0R/HcTCKFxvfVkGD3weQ2QpgpSZgwaDJOGc4Rrb12ZENCll0aMOSBbDQ KoQBFthlf2f1UNxR9RSITvQLHH0sZocVtUumdE1B1UduriM0cfLU1wC7KhG5mbS8yGFT cJRQ== 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:dkim-signature; bh=4hw31BWdMIN1YllUwIRC+oDRHqBQzpIdIKCvTfvrJPw=; fh=fve3debL98eXbM4m0CpuLD4MQPIDdzkIqeminS3kpvY=; b=GuhufjQA8u1RTYk6uMmvhmob654kZkTu8yJFZKOqdmyt1c9uvdjKYnbR3LEMn7CGTK aM80TeF2zeH9QM55j6L7p6JwFcIluZagMmCNQILQL2UTYgrPk7oVdfrTPsJxLwkoAdgC i8fqLRkc2Td29Ig/N7ZP62++ilTjmoC8o8TLo84XLZ13P3KHAecSPpOp5c82BSsE37G7 JWLhmCqaXBZ4Re3hDduDVplhintJ+q8KME67g0QZllwC98HgXDUnDfwHSjQ2wtM8WgrP euHr6AWew5bqd0FAc+34W7Us58uytCnGu+LG//6GXGS+2GQRr5HRloqmV32HrqYHoD7T 1sRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ve01hH6N; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-63040-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=2; AJvYcCUPnh73c+pIExXrLzxBvFoXr550kFCYIcdf46tBdl4yLpqbTJbCXbTo+cWq1FbcpBrC03ponFVRRJBWDp//jXM1zHycBkgkVax9P88HQQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fn7-20020a056a002fc700b006dfebd23706si6266047pfb.67.2024.02.12.23.21.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 23:21:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63040-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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ve01hH6N; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-63040-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org 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 C9B3B282DDC for ; Tue, 13 Feb 2024 07:21:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08B9B1799D; Tue, 13 Feb 2024 07:21:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ve01hH6N" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C18E1774C; Tue, 13 Feb 2024 07:21:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707808882; cv=none; b=XCiu1GrQTNRioHXCQPJUOux3LGuB8F4rNQMB/9UEHUXZPMOSBfuANOdI0jDT0KJv1hjcE+0pj7cRHTZgDn12zhngWJ21uRushXCyHrHGwHuF/PTaIPxsmfyGMqfpv9hTi7Y47O3yhdXzX0EoxVqi/UbR6sZMkHy9D2UoWOmUvBg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707808882; c=relaxed/simple; bh=7aj2dsWrq6HhDMS2141xPNojK2aQpCE6F46PWy5w7tU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NVSGpEOMIMxM9qNlR2NUvP7pytZII8QUwuZ92ZLs1iyhAB0eGL4PyXMaHlcTKVhMa4vZhXZCHGdrTFolFHzDy9ZD8AOZiIE16No68du0mUWZCPv7+t+xD4klTxIy6abXaqZvOErn1ufTOR8UzL9oeA5l9Er4M6evi1ivnveqL/4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ve01hH6N; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38E29C433F1; Tue, 13 Feb 2024 07:21:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1707808881; bh=7aj2dsWrq6HhDMS2141xPNojK2aQpCE6F46PWy5w7tU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ve01hH6N7tUS/qsm+x4boxAhqJXMc0x5hoSXAt8fx1DzHRNrHxA5xHyKU6UmEf1QP V0pAZXkoojtLitvxMQ2AIkO8J64dHXxp/gi5UUK/9qFydDtBCPSwZGzi9XZ1wtMCyW lgjLz8r8RNRx5ALO5FH9ScuvrEWN9jN5B4c0udVg= Date: Tue, 13 Feb 2024 08:21:18 +0100 From: Greg KH To: Edward Adam Davis Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, rafael@kernel.org, syzbot+8e41bb0c055b209ebbf4@syzkaller.appspotmail.com, syzkaller-bugs@googlegroups.com Subject: Re: [PATCH riscv64] kobject: fix WARNING in input_register_device Message-ID: <2024021356-unveiling-falcon-54db@gregkh> References: <2024020821-quintet-survival-54f4@gregkh> 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: On Tue, Feb 13, 2024 at 08:50:01AM +0800, Edward Adam Davis wrote: > On Thu, 8 Feb 2024 12:25:35 +0000, Greg KH wrote: > > On Thu, Feb 08, 2024 at 07:37:56PM +0800, Edward Adam Davis wrote: > > > On Thu, 8 Feb 2024 10:56:00, Greg KH wrote: > > > > > The input_add_uevent_modalias_var()->input_print_modalias() will add 1684 bytes > > > > > of data to env, which will result in insufficient memory allocated to the buf > > > > > members of env. > > > > > > > > What is "env"? And can you wrap your lines at 72 columns please? > > > env is an instance of struct kobj_uevent_env. > > > > Also, why is "risc64" in the subject line? > Because when syzbot reported this issue, it wrote "userspace arch: riscv64". > However, I actually tested it on the master branch of upstream. Then of course, this was not correct in the subject line. thanks, greg k-h