Re: [PATCH v8 0/2] allow KASAN to detect UAF in SLAB_TYPESAFE_BY_RCU slabs

From: David Sterba
Date: Fri Aug 09 2024 - 14:27:59 EST


On Fri, Aug 09, 2024 at 05:36:54PM +0200, Jann Horn wrote:
> Changes in v8:
> - in patch 2/2:
> - move rcu_barrier() out of locked region (vbabka)
> - rearrange code in slab_free_after_rcu_debug (vbabka)
> - Link to v7: https://lore.kernel.org/r/20240808-kasan-tsbrcu-v7-0-0d0590c54ae6@xxxxxxxxxx
>
> Changes in v7:
> - in patch 2/2:
> - clarify kconfig comment (Marco)
> - fix memory leak (vbabka and dsterba)

FWIW, I've retested v7 and got no OOM (caused by the leak), on KASAN,
KFENCE and other debugging options enabled.