From: Luis Chamberlain <mcgrof@kernel.org>
To: Joel Granados <j.granados@samsung.com>
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-kselftest@vger.kernel.org
Subject: Re: [PATCH 0/8] Remove child from struct ctl_table
Date: Tue, 6 Jun 2023 11:56:26 -0700 [thread overview]
Message-ID: <ZH+BWiQOSQGNDQCv@bombadil.infradead.org> (raw)
In-Reply-To: <20230602110638.789426-1-j.granados@samsung.com>
On Fri, Jun 02, 2023 at 01:06:30PM +0200, Joel Granados wrote:
> Resending as the first set got mangled with smtp error.
>
> This is part of the effort to remove the empty element of the ctl_table
> structures (used to calculate size) and replace it with an ARRAY_SIZE call. By
> replacing the child element in struct ctl_table with a flags element we make
> sure that there are no forward recursions on child nodes and therefore set
> ourselves up for just using an ARRAY_SIZE. We also added some self tests to
> make sure that we do not break anything.
>
> Patchset is separated in 4: parport fixes, selftests fixes, selftests additions and
> replacement of child element. Tested everything with sysctl self tests and everything
> seems "ok".
>
> 1. parport fixes: @mcgrof: this is related to my previous series and it plugs a
> sysct table leak in the parport driver. Please tell me if you want me to repost
> the parport series with this one stiched in.
>
> 2. Selftests fixes: Remove the prefixed zeros when passing a awk field to the
> awk print command because it was causing $0009 to be interpreted as $0.
> Replaced continue with return in sysctl.sh(test_case) so the test actually
> gets skipped. The skip decision is now in sysctl.sh(skip_test).
>
> 3. Selftest additions: New test to confirm that unregister actually removes
> targets. New test to confirm that permanently empty targets are indeed
> created and that no other targets can be created "on top".
>
> 4. Replaced the child pointer in struct ctl_table with a u8 flag. The flag
> is used to differentiate between permanently empty targets and non-empty ones.
>
> Comments/feedback greatly appreciated
This all looks great, thanks so much for doing all this work! I pushed
to sysctl-next.
Luis
next prev parent reply other threads:[~2023-06-06 18:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20230602110640eucas1p11b79cbd7f116be6828a670f9873ed24e@eucas1p1.samsung.com>
2023-06-02 11:06 ` [PATCH 0/8] Remove child from struct ctl_table Joel Granados
[not found] ` <CGME20230602110641eucas1p1e2e92293c385e8083ed104dbb96aa68b@eucas1p1.samsung.com>
2023-06-02 11:06 ` [PATCH 1/8] parport: plug a sysctl register leak Joel Granados
[not found] ` <CGME20230602110645eucas1p1ee5f3fe8c849258d7773288e1607e183@eucas1p1.samsung.com>
2023-06-02 11:06 ` [PATCH 2/8] test_sysctl: Fix test metadata getters Joel Granados
[not found] ` <CGME20230602110646eucas1p115dd1191419eb10bca47c9a6eefa6450@eucas1p1.samsung.com>
2023-06-02 11:06 ` [PATCH 3/8] test_sysctl: Group node sysctl test under one func Joel Granados
[not found] ` <CGME20230602110649eucas1p1fc4db9a31735ed13e14c3142e1edb23b@eucas1p1.samsung.com>
2023-06-02 11:06 ` [PATCH 4/8] test_sysctl: Add an unregister sysctl test Joel Granados
[not found] ` <CGME20230602110650eucas1p1e04fdac1151ed028d1d081cf30433174@eucas1p1.samsung.com>
2023-06-02 11:06 ` [PATCH 5/8] test_sysctl: Add an option to prevent test skip Joel Granados
[not found] ` <CGME20230602110653eucas1p19b1f6aac96a61c61e49af5738a0a11ff@eucas1p1.samsung.com>
2023-06-02 11:06 ` [PATCH 6/8] test_sysclt: Test for registering a mount point Joel Granados
2023-06-04 14:41 ` kernel test robot
2023-06-06 9:27 ` Joel Granados
2023-06-06 18:47 ` Luis Chamberlain
2023-06-10 13:58 ` Oliver Sang
[not found] ` <CGME20230602110655eucas1p158a37f974de602978a3307dc9e4a1356@eucas1p1.samsung.com>
2023-06-02 11:06 ` [PATCH 7/8] sysctl: Remove debugging dump_stack Joel Granados
[not found] ` <CGME20230602110658eucas1p27d31eeac2417f9e19f8d4b6de012209b@eucas1p2.samsung.com>
2023-06-02 11:06 ` [PATCH 8/8] sysctl: replace child with a flags var Joel Granados
2023-06-06 18:56 ` Luis Chamberlain [this message]
2023-06-07 8:13 ` [PATCH 0/8] Remove child from struct ctl_table Joel Granados
[not found] <CGME20230602100809eucas1p2c8bb96fb0de40a0f38ab28611246f95c@eucas1p2.samsung.com>
2023-06-02 10:07 ` Joel Granados
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZH+BWiQOSQGNDQCv@bombadil.infradead.org \
--to=mcgrof@kernel.org \
--cc=j.granados@samsung.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).