Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp302464rdb; Thu, 25 Jan 2024 16:24:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEkf6CuX9m+3uoUQtnoTqcUNN2kvlp9JFDooVmC2rODpPRBrkWLWJjhVfAzd/sTjMNPNDGE X-Received: by 2002:a05:6a00:4590:b0:6dd:8184:92bd with SMTP id it16-20020a056a00459000b006dd818492bdmr433487pfb.25.1706228675572; Thu, 25 Jan 2024 16:24:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706228675; cv=pass; d=google.com; s=arc-20160816; b=Zi+AgDKSQ1WLnR+E5wO/HD7AJFJ0yWO8ls91LUSB87IB/soPE9PtBxsc0nsUtlS/FI IsgQwWuk+yJAiZM05J4TF95D+CcTt4ReNIHo5hqBxN4epQz9TSipU8qOgr9954mTYNWO H5AgNJjhLTPIAQ50VnC6gNYRCueicU3SCi8SxSYdXkXtl4ETnULL+a49giOgoqF/GXxX y8rO7tu1RkRV+VwgxUd/lvoZQ9fivdRsiCUivA8yBk9GyqRPbu9ILSh3jGZSyXsbsH0V Qy8zq1rjhGWTjRXeT34ANrwPOrcitYjJZI3tHQX0Zzkn/PInUVSJU2u5raiEGpfRdkR0 JzAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent: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=GloqAGaE/8Xt5EH+nEjxDsFciv6uGLru4K2wOJLFbuY=; fh=l/d82L9cuSU47wdX34z7PhwZqc6OubOZlqWa3X/8s08=; b=h9KYHld/B+/e18Yiq9nO8im9PfZVTYX4hQZPpHJE5DeyAVLmyRCxdBUGQkpqwE9M/o JqKEnsIn1JtBu6HHeo/V+YAzY+Id0zLt+2rkuccn1yUpnl80b4d/dYLBDA3tvbyutaJ1 u5bCI4P3roLWivCo8a7Yn8Nv9E5/Gd1DDu9RS4grEydiNoX/6T3FZUGoLslmnevoullP 4T8YapeUGszJlJr/isc46R4EHyJusNGdV6d8/nmjwKL9gCaidrs44YpkcnmyJkMopxIp vY7wr1hwiB8EUJKw+kea1pGKK0HiNfuMSBo/8VyZOHHwI3xgl1KDZR3KzIFqXBJlAZND 0Lgg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=SLpqS0QE; arc=pass (i=1 spf=pass spfdomain=fastly.com dkim=pass dkdomain=fastly.com dmarc=pass fromdomain=fastly.com); spf=pass (google.com: domain of linux-kernel+bounces-39452-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39452-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fastly.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t39-20020a056a0013a700b006dde33be7f6si159930pfg.218.2024.01.25.16.24.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 16:24:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39452-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@fastly.com header.s=google header.b=SLpqS0QE; arc=pass (i=1 spf=pass spfdomain=fastly.com dkim=pass dkdomain=fastly.com dmarc=pass fromdomain=fastly.com); spf=pass (google.com: domain of linux-kernel+bounces-39452-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39452-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fastly.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9F917B26ADB for ; Fri, 26 Jan 2024 00:11:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9871A15BF; Fri, 26 Jan 2024 00:11:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b="SLpqS0QE" Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5AEFA64C for ; Fri, 26 Jan 2024 00:11:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706227894; cv=none; b=RJ8bchxpOFeTwNc7Xu1KgX1SPINJuBDQoj32Cct5tLbPK9yq4dOHU8c1Tga/0Kh2MqfSMjCXBgQIqCjQZjyTEgKOezsyGfDtthVQ/bxqFy/q+jIGQLRkOGoatXtlRtgQLJy6AlsgtVIOdSnsLxOfwcbslxPUg1UCvCjceBfQfR8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706227894; c=relaxed/simple; bh=tS1D/gC3eczV4hc9F7HIorCotTTkm6mnvxscD4v6Lmw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=exhSYh568znXmsiUYFuPxxygd8Nl7wXIZRcKc/U6dwpqOVryZ4+8Cv//8wW85t/JqcWArMRQbpQqF9S4Re8LnzVA5vw9qSuPGOPsq8rxAqVEXL/+AdZWRfMvAE26Wm9bXSEtwugdZLz0vBJUnrye5ZtRRtFXPHIDZ3h5W70DFPY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fastly.com; spf=pass smtp.mailfrom=fastly.com; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b=SLpqS0QE; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fastly.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fastly.com Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1d88e775d91so9700225ad.2 for ; Thu, 25 Jan 2024 16:11:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1706227893; x=1706832693; darn=vger.kernel.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=GloqAGaE/8Xt5EH+nEjxDsFciv6uGLru4K2wOJLFbuY=; b=SLpqS0QE4w8luvxKbPVs2v4sG9kn8FfJ5NXxIFbRIQSvf5cDB4lSzet3I+FEf6DH6k Ya4COsKKQjC8B0wvlVvLpmI3NuhfaMh1LzQE4ar1m5np4jmPDIftq1T8QG4lzO7YXx1b MgGab/TqBd6SZa9Wsvjbc68+8v8NB0nHsqBlY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706227893; x=1706832693; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GloqAGaE/8Xt5EH+nEjxDsFciv6uGLru4K2wOJLFbuY=; b=D+/X7betVeNkJNqy9uDEV4/cMqskKBXrL3/d30bLI2Iv/hMwNUswf1crjP+P4brKYl wcOUw8BjKJyaN45H9fv/4pjxxVGRQOITXDHaGnlpqGWMU+bhPThv1azlS9/MZeu+dPVM jHntldJk+nxciBy/iqKEXCvTHffU6FcLIu2UCknD/OZjMYTweJ9ZAWJCNAP5Mn8cmJqI lqlcVbtvMYydm/Oq20GTCrbon8/Ez2Al7+0XHyYNpSfa77jyYh47XAloLVs3IjQtNu9G 8BKpD4HAMgKntcmvvKCwSUwQD3HZrqyDFTRabq+1XxUUcXeNnElRxCGpeOjzFuS4NG1I qvgg== X-Gm-Message-State: AOJu0Yw4hKVN8pVelQqhK07oBSV+CVyyVvfdEhkBaG1YRE4I6FVQBAw8 x4Q3ZsPwMgnkqAB5UnmkAc6PhBET3pSJwWZgJmzYETQTehQ3ydVlQZCKYMllRGU= X-Received: by 2002:a17:902:6509:b0:1d4:868b:7ccc with SMTP id b9-20020a170902650900b001d4868b7cccmr455778plk.111.1706227892703; Thu, 25 Jan 2024 16:11:32 -0800 (PST) Received: from fastly.com (c-24-6-151-244.hsd1.ca.comcast.net. [24.6.151.244]) by smtp.gmail.com with ESMTPSA id mn7-20020a1709030a4700b001d49a08495esm66286plb.118.2024.01.25.16.11.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Jan 2024 16:11:32 -0800 (PST) Date: Thu, 25 Jan 2024 16:11:28 -0800 From: Joe Damato To: Greg Kroah-Hartman Cc: 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, Jonathan Corbet , Alexander Viro , Jan Kara , Michael Ellerman , Nathan Lynch , Steve French , Thomas Zimmermann , Jiri Slaby , Julien Panis , Arnd Bergmann , Andrew Waterman , Thomas Huth , Palmer Dabbelt , "open list:DOCUMENTATION" , "open list:FILESYSTEMS (VFS and infrastructure)" Subject: Re: [PATCH net-next v3 3/3] eventpoll: Add epoll ioctl for epoll_params Message-ID: <20240126001128.GC1987@fastly.com> References: <20240125225704.12781-1-jdamato@fastly.com> <20240125225704.12781-4-jdamato@fastly.com> <2024012551-anyone-demeaning-867b@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: <2024012551-anyone-demeaning-867b@gregkh> User-Agent: Mutt/1.5.24 (2015-08-30) On Thu, Jan 25, 2024 at 03:21:46PM -0800, Greg Kroah-Hartman wrote: > On Thu, Jan 25, 2024 at 10:56:59PM +0000, Joe Damato wrote: > > +struct epoll_params { > > + u64 busy_poll_usecs; > > + u16 busy_poll_budget; > > + > > + /* for future fields */ > > + u8 data[118]; > > +} EPOLL_PACKED; > > variables that cross the user/kernel boundry need to be __u64, __u16, > and __u8 here. I'll make that change for the next version, thank you. > And why 118? I chose this arbitrarily. I figured that a 128 byte struct would support 16 u64s in the event that other fields needed to be added in the future. 118 is what was left after the existing fields. There's almost certainly a better way to do this - or perhaps it is unnecessary as per your other message. I am not sure if leaving extra space in the struct is a recommended practice for ioctls or not - I thought I noticed some code that did and some that didn't in the kernel so I err'd on the side of leaving the space and probably did it in the worst way possible. Thanks, Joe