Re: [PATCH v2] kunit: Fix potential null dereference in kunit_device_driver_test()

2024-11-15 Thread David Gow
On Fri, 15 Nov 2024 at 13:43, Gax-c wrote: > > From: Zichen Xie > > kunit_kzalloc() may return a NULL pointer, dereferencing it without > NULL check may lead to NULL dereference. > Add a NULL check for test_state. > > Fixes: d03c720e03bd ("kunit: Add APIs for managing devices") > Signed-off-by: Z

Re: [PATCH v1] MAINTAINERS: Update KUnit email address for Brendan Higgins

2024-11-15 Thread David Gow
On Fri, 15 Nov 2024 at 13:05, Brendan Higgins wrote: > > Update Brendan's email address for the KUnit entry. > > Signed-off-by: Brendan Higgins > --- > I am leaving Google and am going through and cleaning up my @google.com > address in the relevant places. This patch updates my email address for

[RFC v2] MAINTAINERS: split kselftest entry into 'framework' and 'all'

2024-11-15 Thread Jakub Kicinski
The testing effort is increasing throughout the community. The tests are generally merged into the subsystem trees, and are of relatively narrow interest. The patch volume on linux-kselftest@vger.kernel.org makes it hard to follow the changes to the framework, and discuss proposals. Create a new M

Re: [PATCH] selftests/livepatch: Check if CONFIG_LIVEPATCH is enabled

2024-11-15 Thread Petr Mladek
On Wed 2024-11-06 23:11:20, Siddharth Menon wrote: > When CONFIG_LIVEPATCH is disabled, compilation fails due to the > required structs from the livepatch header file being undefined. > This checks for CONFIG_LIVEPATCH in order to verify that > it is enabled before compiling livepatch self-tests. >

Re: [PATCH net-next] selftests: net: netlink-dumps: validation checks

2024-11-15 Thread Simon Horman
On Thu, Nov 14, 2024 at 04:32:48PM -0800, Jakub Kicinski wrote: > The sanity checks are going to get silently cast to unsigned > and always pass. Cast the sizeof to signed size. > > Signed-off-by: Jakub Kicinski Ouch. I checked and I couldn't see any other instances of this problem under tools/t

Re: [PATCH] selftests/livepatch: Check if CONFIG_LIVEPATCH is enabled

2024-11-15 Thread Miroslav Benes
Hi, On Wed, 6 Nov 2024, Siddharth Menon wrote: > When CONFIG_LIVEPATCH is disabled, compilation fails due to the > required structs from the livepatch header file being undefined. > This checks for CONFIG_LIVEPATCH in order to verify that > it is enabled before compiling livepatch self-tests. >