Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1762096rdb; Wed, 31 Jan 2024 08:18:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFT3ot95ioKJlhAha0kWwctXI6fpiCz+LfTFrYlJtteDNesnDs1ApqZHzQhbjLG2wk3xlBr X-Received: by 2002:a17:902:760c:b0:1d7:5da2:90a9 with SMTP id k12-20020a170902760c00b001d75da290a9mr1982859pll.5.1706717938283; Wed, 31 Jan 2024 08:18:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706717938; cv=pass; d=google.com; s=arc-20160816; b=QHQ5BHmhF8871HfARCo+7hLbAFCIPl1wFjt7lgnwBjxUQjgl+0uJSfWUzV+ZzZV45v Fhduqk/wILuzebnURZZlD2n+xein8rOxUyB1CixtfyVKGvypX/qoc33zUTQ8sRkJq8C5 18HRYM+SvOzZRXXKoX6j9sHmpJpPWHtzkeQD85IR2gNaMgKte5SYS67239ManmDpbbo0 uGs1IsTtnApB4acEr5gKIwFoB/YTIijPyhLcgmqIhgKRXM2liKQbt6RxsIDfLXYz6Zao IozBI5IZo/GL+9+0EQhw9xZ5PbekIiZyJO9EFsrRtzJsD9QscYXQuEOo4msmGWEF43/h bXpQ== 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=No+u3EeXZxV4RhGP8FKbQ3qdi6g5ATr9Iu7b+EiovWA=; fh=/v5Ti4/YWO6GJC2EVc21k3VpgAh9VSIB/Oeyj9ldp00=; b=k01Rg9yaPsu2LaNrVnck+iIJHyDFH1UVyKwSogzey+n5ru8FSiLTvg6LNC571KrSGY 15vC0vVHgoVsaZtzd0Fdw7dhtb7bcaZ8sbplGaspt9ugyYCTw9z+OZpOue66u5AeRs9m q9JrOHBjbP+NQcZG7gZ9jS4WvpdszZPqtqlkaVZ10nD2krJDZ91m6iWLJhBDPtFDtWAn wvtD+rtH+npk4axGJ/cezuku7u0u0Ly+7MoFcrFFnuv/LHsH4dE/aCfaa6SSESifDTL1 MPd3xEbmalynYo8e7vEtQXGmxQY84nYsxGvn3Uog/uE4cpuBIAyn3A/QaXT4Xgm1QJ+t 9o5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CgORUqrJ; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-46774-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46774-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org X-Forwarded-Encrypted: i=1; AJvYcCVez/kh/AaB4pimZWgIxp3oSc9tfFVs1aC4ushtnwo6JYbhZ/2+Xh3xMA1lb/yfgonPOTb3ASpqClPMRnd8Po/4D5ZmpZvsT1FxqcqJaA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p15-20020a170902e74f00b001d7271fb159si6075415plf.105.2024.01.31.08.18.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 08:18:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46774-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CgORUqrJ; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-46774-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46774-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 C2DA728EF14 for ; Wed, 31 Jan 2024 16:17:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8FBDF12C522; Wed, 31 Jan 2024 16:16:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="CgORUqrJ" 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 6F0D712BF04; Wed, 31 Jan 2024 16:16:54 +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=1706717815; cv=none; b=DtlDLfrOpFKrgioGhjBUy4lPhId86mTNvTPgFy8Gnxm56g36zsTHfKIcfvqYmU20WLzuGyi/dUPDMYOcLNcGKsX2DLV6NUjGmGGE+hGCb3YOeQNMGpDKgwH0UFLLme1MZ3H7k9MyQrj4BkNGUUMGif3A9E5u0VCTos8y4Yup2lU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706717815; c=relaxed/simple; bh=UWlq1EvrM0m1ICwPMbYYxNGA47wTvXH22WzmLVpjSio=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DYO+zqimSqrEDPrvrtPfhVH6616/+e8MtYUvpuvT3pjuhPLP58GKGfoEiXToJGa6vWvx7VEAqFzK8aOUWnFWNfumkLnaQLPhTkk8TaJZpu7ZM4SP5XvkvQ5Cc4OZqwMY/T3LUVfRnC/DHObq2kbDJXfUA6HUibIcN09F7ili5Xg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CgORUqrJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE299C43394; Wed, 31 Jan 2024 16:16:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1706717814; bh=UWlq1EvrM0m1ICwPMbYYxNGA47wTvXH22WzmLVpjSio=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CgORUqrJmMRy+gVz2WCDjKWTEcugunpPRz1KOkLESVexKQmfsQnJYdqUuBz3sUPZ5 uarGdPXOwzHzLluU5h8xUdzXA/6nuIWUeZPHlK37WXT8q8/lDhrNKur26A4mv8mYh4 u8PERyhH9A4LdAC+CI34Ay5qoQNbZssp3TOu4CAk= Date: Wed, 31 Jan 2024 08:16:54 -0800 From: Greg Kroah-Hartman To: Jiri Slaby Cc: Joe Damato , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, chuck.lever@oracle.com, jlayton@kernel.org, linux-api@vger.kernel.org, brauner@kernel.org, edumazet@google.com, davem@davemloft.net, alexander.duyck@gmail.com, sridhar.samudrala@intel.com, kuba@kernel.org, willemdebruijn.kernel@gmail.com, weiwan@google.com, David.Laight@aculab.com, arnd@arndb.de, Jonathan Corbet , Alexander Viro , Jan Kara , Michael Ellerman , Nathan Lynch , Thomas Zimmermann , Maik Broemme , Steve French , Julien Panis , Thomas Huth , Andrew Waterman , Albert Ou , Palmer Dabbelt , "open list:DOCUMENTATION" , "open list:FILESYSTEMS (VFS and infrastructure)" Subject: Re: [PATCH net-next v4 3/3] eventpoll: Add epoll ioctl for epoll_params Message-ID: <2024013145-payment-enjoyment-6274@gregkh> References: <20240131014738.469858-1-jdamato@fastly.com> <20240131014738.469858-4-jdamato@fastly.com> <2024013001-prison-strum-899d@gregkh> <20240131022756.GA4837@fastly.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: On Wed, Jan 31, 2024 at 07:03:54AM +0100, Jiri Slaby wrote: > On 31. 01. 24, 3:27, Joe Damato wrote: > > On Tue, Jan 30, 2024 at 06:08:36PM -0800, Greg Kroah-Hartman wrote: > > > On Wed, Jan 31, 2024 at 01:47:33AM +0000, Joe Damato wrote: > > > > +struct epoll_params { > > > > + __aligned_u64 busy_poll_usecs; > > > > + __u16 busy_poll_budget; > > > > + > > > > + /* pad the struct to a multiple of 64bits for alignment on all arches */ > > > > + __u8 __pad[6]; > > > > > > You HAVE to check this padding to be sure it is all 0, otherwise it can > > > never be used in the future for anything. > > > > Is there some preferred mechanism for this in the kernel that I should be > > using or is this as simple as adding a for loop to check each u8 == 0 ? > > You are likely looking for memchr_inv(). Ah, never noticed that, thanks!