Re: [PATCH] slab: fix memory leak when refill_sheaf() fails

From: Harry Yoo

Date: Wed Mar 11 2026 - 23:36:08 EST


On Thu, Mar 12, 2026 at 10:21:42AM +0800, Qing Wang wrote:
> On Wed, 11 Mar 2026 at 19:48, Harry Yoo <harry.yoo@xxxxxxxxxx> wrote:
> > Just out of curiosity, could you please tell us how you discovered
> > this and confirmed that it's fixed, given that kmemleak won't detect it?
>
> Just discovered it by code reading (while learing this featch):). And there
> is no good way to reproduce it, so confirmed it by code logic.

Ah, that makes sense.
Thanks!

--
Cheers,
Harry / Hyeonggon