Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'slab-fixes-for-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab

Pull slab fix from Vlastimil Babka:

- stable fix to prevent kernel warnings with KASAN_HW_TAGS on arm64
due to improperly resolved kmalloc alignment restrictions (Catalin
Marinas)

* tag 'slab-fixes-for-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab:
mm: slab: Do not create kmalloc caches smaller than arch_slab_minalign()

+5 -2
+5 -2
mm/slab_common.c
··· 895 895 896 896 static unsigned int __kmalloc_minalign(void) 897 897 { 898 + unsigned int minalign = dma_get_cache_alignment(); 899 + 898 900 if (IS_ENABLED(CONFIG_DMA_BOUNCE_UNALIGNED_KMALLOC) && 899 901 is_swiotlb_allocated()) 900 - return ARCH_KMALLOC_MINALIGN; 901 - return dma_get_cache_alignment(); 902 + minalign = ARCH_KMALLOC_MINALIGN; 903 + 904 + return max(minalign, arch_slab_minalign()); 902 905 } 903 906 904 907 void __init