Conversation

Hmm, this looks wrong. The 5.9 and 5.14 changes did not affect the merging of kmalloc caches with special-purpose ones. Also, I don't think there were any changes wrt SLAB_ACCOUNT in 4.16? Merging was prevented by hardened usercopy.
Quote Tweet
Replying to @vnik5287 @linkersec and @poppop7331
Ah, so wrt kmalloc caches: they are not mergeable with non-kmalloc ones ever since 4.16 due to hardened usercopy, and these newer patches only affect whether GFP_KERNEL_ACCOUNT kmalloc allocations get dispatched into a different set of kmalloc caches than GFP_KERNEL ones. Right?