Re: [PATCH for-next v3 2/9] mm/slab, slub_kunit: register kprobe to trigger _nolock APIs
From: Harry Yoo
Date: Mon Jun 29 2026 - 04:21:20 EST
On 6/29/26 4:34 PM, Harry Yoo wrote:
>
>
> On 6/24/26 10:41 PM, Pedro Falcato wrote:
>> On Mon, Jun 15, 2026 at 08:05:56PM +0900, Harry Yoo (Oracle) wrote:
>>> Since kmalloc_nolock() always fails in NMI and hardirq contexts on
>>> PREEMPT_RT, slub_kunit cannot properly test _nolock() APIs.
>>>
>>> Register a kprobe pre-handler to invoke kmalloc_nolock() and
>>> kfree_nolock() in the middle of the slab allocator. However, do not
>>> register the handler on UP kernels [1].
>>
>> Maybe explain in the commit message why that is?
>
> Because it's the case is broken on UP and we decided not bother to fix.
> Thought the cover letter in Link: would give enough context.
But I will clarify this on the commit message, thanks!
--
Cheers,
Harry / Hyeonggon
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature