From: Guenter Roeck <linux@roeck-us.net>
To: Kees Cook <kees@kernel.org>
Cc: Joel Granados <joel.granados@kernel.org>,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
Wen Yang <wen.yang@linux.dev>
Subject: Re: [PATCH] kernel/sysctl-test: Unregister sysctl table after test completion
Date: Thu, 22 May 2025 11:53:15 -0700 [thread overview]
Message-ID: <ce50a353-e501-4a22-9742-188edfa2a7b2@roeck-us.net> (raw)
In-Reply-To: <20250522013211.3341273-1-linux@roeck-us.net>
On Wed, May 21, 2025 at 06:32:11PM -0700, Guenter Roeck wrote:
> One of the sysctl tests registers a valid sysctl table. This operation
> is expected to succeed. However, it does not unregister the table after
> executing the test. If the code is built as module and the module is
> unloaded after the test, the next operation trying to access the table
> (such as 'sysctl -a') will trigger a crash.
>
> Unregister the registered table after test completiion to solve the
> problem.
>
Never mind, I just learned that a very similar patch has been submitted
last December or so but was rejected, and that the acceptable (?) fix seems
to be stalled.
Sorry for the noise.
Guenter
next prev parent reply other threads:[~2025-05-22 18:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-22 1:32 [PATCH] kernel/sysctl-test: Unregister sysctl table after test completion Guenter Roeck
2025-05-22 18:53 ` Guenter Roeck [this message]
2025-05-23 15:01 ` Joel Granados
2025-05-23 15:54 ` Guenter Roeck
2025-05-27 7:09 ` 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=ce50a353-e501-4a22-9742-188edfa2a7b2@roeck-us.net \
--to=linux@roeck-us.net \
--cc=joel.granados@kernel.org \
--cc=kees@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wen.yang@linux.dev \
/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