Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp461643lqm; Wed, 1 May 2024 06:16:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUbwpOal6ovLmfCWFAqhXlQ8kQw27L5T+3f3V7pKBvQnLuPod4d1cP6Ab2LxxWAbQB3jtxew6GO1vnRONdOcFJ47XRpE+vWlq6TBA1CNA== X-Google-Smtp-Source: AGHT+IE74djvIxd7zSxF2eQa+JibBtj7YCoydrxDEJGrcvQJBHBG45Lj9iMsFWTdguQG0YhSUq7P X-Received: by 2002:a05:6512:1327:b0:518:b144:9020 with SMTP id x39-20020a056512132700b00518b1449020mr1661655lfu.61.1714569380997; Wed, 01 May 2024 06:16:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714569380; cv=pass; d=google.com; s=arc-20160816; b=dYuN0uaN/QSXWd5xYItffV4g+ga6uWlhWbivEYrdO6pGQC+I+tcSQnVb4nZhulB/49 zQxwMuLnBItZyBEJH1ELgYoBknMmfaVBxFb+XNAbk7lYW6J8u+WMG1R5TsTtGccOnLpA C5lKe3VzCrati6xfvGD5qEgCG419AX0Bnax3P302V8K7jOmgtUsvwLkaIwbndRsP0NCK t33LA8Ep/1ybTdSg2N4vk5n9auYD/1i6wtgjf4GokgUPBNB16cO4a7rrt6i4g6g+lzPn ILbcio/YHn/8RykztxIY3hFFMPNayejHFDPZceGehGCbIwchhNxCYVYs5ciAhgHEfVoO I7Iw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-disposition:in-reply-to :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=wsnK8JZjeYSU6e+sLy0WLcpiUvpTlTkvI2h3WwfGFo4=; fh=Pi5nHXkuD3Aq+FdKF6MeMQdtUS8xN9k5148wNBge2xs=; b=Q03sOiZxT20gdcOPio6JZKfPJFBcIlKbpuyiom7/8ByQ676k2J1+iz3aJMPksaw7KZ cSfHd0LG+x2QYhBo8dnAgFxQ4niMZAsvYzxCmHI13Pf449MoOInkQCye/4tH/b6ZlrM2 yJVGlCuMcidBDHIOIisKL5E170ImgGISHLY1PG7o0i9Pdr0vtJuKwJK35FXOm+rb9YhG 1IIesy2BiH0yUNq2l5xZfGWWp5RWxmJC1AWNUIf/5P8Yxkz89Uq2oEE5Vr6NLcxANGvR 7gV79qt1bTuoBppKbTgao33xFyHYe1nMHhXd3rwI/WTnDl9DOEkhCw6nObxQfM/UgEXo fPqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-nfs+bounces-3118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3118-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x14-20020a50ba8e000000b00571b9a27539si16711611ede.684.2024.05.01.06.16.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 06:16:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3118-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 (google.com: domain of linux-nfs+bounces-3118-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3118-linux.lists.archive=gmail.com@vger.kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8B2C11F22D42 for ; Wed, 1 May 2024 13:16:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8F0DC12DDBF; Wed, 1 May 2024 13:16:17 +0000 (UTC) X-Original-To: linux-nfs@vger.kernel.org Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [207.211.30.44]) (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 5B27D12DD8E for ; Wed, 1 May 2024 13:16:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=207.211.30.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714569377; cv=none; b=JkQXm3bdBVFEJ6qmSrXCLpj84n1UTun8Ne4ycNMHp+Pz1g9szGwGbBjEnJSRwrs4NE87/q0NRxri3m9o70z3hGUuyES429vBLvij1fmyhvGGynpQc9XolRXWVusRS+xeaZgFP7UixxQYOjmEW+wCTwlVN9cnxISX72jO8ftet2k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714569377; c=relaxed/simple; bh=E4JD48EzrcbVz6QbQEs6xRmajMOwhFuIhzhkDGkLnNg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: In-Reply-To:Content-Type:Content-Disposition; b=arSzXbGG6y+moY66JjQh1IGZE/BPXEfGgJ3eKi6tXVYFmALOnSKM2vscaBvSamosF8jy8Z++BoJWS/JRCf78La2S+AG/BDYCE06/0GRgFC3wA8qP66M+4CzAA/cx1J019/xkVuQl2Vn1q8a04k352f2vSy7VUmGM6gK3Jskn9hw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=queasysnail.net; spf=none smtp.mailfrom=queasysnail.net; arc=none smtp.client-ip=207.211.30.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=queasysnail.net Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=queasysnail.net Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-569-7VD2Mx-0MruFMXPFfcU4hA-1; Wed, 01 May 2024 09:16:06 -0400 X-MC-Unique: 7VD2Mx-0MruFMXPFfcU4hA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 085AE81F317; Wed, 1 May 2024 13:16:06 +0000 (UTC) Received: from hog (unknown [10.39.193.137]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0FC61C271A4; Wed, 1 May 2024 13:15:55 +0000 (UTC) Date: Wed, 1 May 2024 15:15:54 +0200 From: Sabrina Dubroca To: j.granados@samsung.com Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexander Aring , Stefan Schmidt , Miquel Raynal , David Ahern , Steffen Klassert , Herbert Xu , Matthieu Baerts , Mat Martineau , Geliang Tang , Remi Denis-Courmont , Allison Henderson , David Howells , Marc Dionne , Marcelo Ricardo Leitner , Xin Long , Wenjia Zhang , Jan Karcher , "D. Wythe" , Tony Lu , Wen Gu , Trond Myklebust , Anna Schumaker , Chuck Lever , Jeff Layton , Neil Brown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Jon Maloy , Ying Xue , Martin Schiller , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , Roopa Prabhu , Nikolay Aleksandrov , Simon Horman , Julian Anastasov , Joerg Reuter , Luis Chamberlain , Kees Cook , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, dccp@vger.kernel.org, linux-wpan@vger.kernel.org, mptcp@lists.linux.dev, linux-hams@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, linux-afs@lists.infradead.org, linux-sctp@vger.kernel.org, linux-s390@vger.kernel.org, linux-nfs@vger.kernel.org, tipc-discussion@lists.sourceforge.net, linux-x25@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, bridge@lists.linux.dev, lvs-devel@vger.kernel.org Subject: Re: [PATCH net-next v6 8/8] ax.25: x.25: Remove the now superfluous sentinel elements from ctl_table array Message-ID: References: <20240501-jag-sysctl_remset_net-v6-0-370b702b6b4a@samsung.com> <20240501-jag-sysctl_remset_net-v6-8-370b702b6b4a@samsung.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240501-jag-sysctl_remset_net-v6-8-370b702b6b4a@samsung.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: queasysnail.net Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 2024-05-01, 11:29:32 +0200, Joel Granados via B4 Relay wrote: > From: Joel Granados >=20 > This commit comes at the tail end of a greater effort to remove the > empty elements at the end of the ctl_table arrays (sentinels) which will > reduce the overall build time size of the kernel and run time memory > bloat by ~64 bytes per sentinel (further information Link : > https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/) >=20 > Avoid a buffer overflow when traversing the ctl_table by ensuring that > AX25_MAX_VALUES is the same as the size of ax25_param_table. This is > done with a BUILD_BUG_ON where ax25_param_table is defined and a > CONFIG_AX25_DAMA_SLAVE guard in the unnamed enum definition as well as > in the ax25_dev_device_up and ax25_ds_set_timer functions. ^^ nit: not anymore ;) (but not worth a repost IMO) > diff --git a/net/ax25/ax25_ds_timer.c b/net/ax25/ax25_ds_timer.c > index c4f8adbf8144..c50a58d9e368 100644 > --- a/net/ax25/ax25_ds_timer.c > +++ b/net/ax25/ax25_ds_timer.c > @@ -55,6 +55,7 @@ void ax25_ds_set_timer(ax25_dev *ax25_dev) > =09ax25_dev->dama.slave_timeout =3D > =09=09msecs_to_jiffies(ax25_dev->values[AX25_VALUES_DS_TIMEOUT]) / 10; > =09mod_timer(&ax25_dev->dama.slave_timer, jiffies + HZ); > +=09return; nit: return not needed here since we're already at the bottom of the function, but probably not worth a repost of the series. > } --=20 Sabrina