Re: [PATCH v4 RESEND 0/7] Handle faults in KUnit tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On 4/8/24 01:46, Mickaël Salaün wrote:

This patch series teaches KUnit to handle kthread faults as errors, and
it brings a few related fixes and improvements.

Shuah, everything should be OK now, could you please merge this series?

All these tests pass (on top of v6.8):
./tools/testing/kunit/ run --alltests
./tools/testing/kunit/ run --alltests --arch x86_64
./tools/testing/kunit/ run --alltests --arch arm64 \

I also built and ran KUnit tests as a kernel module.

A new test case check NULL pointer dereference, which wasn't possible

This is useful to test current kernel self-protection mechanisms or
future ones such as Heki:

Previous versions:


Mickaël Salaün (7):
   kunit: Handle thread creation error
   kunit: Fix kthread reference
   kunit: Fix timeout message
   kunit: Handle test faults
   kunit: Fix KUNIT_SUCCESS() calls in iov_iter tests
   kunit: Print last test location on fault
   kunit: Add tests for fault

Thank you for the resend. Applied to linux-kselftest kunit branch
for Linux 6.10-rc1.

-- Shuah

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux