From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCDD5C83F19 for ; Tue, 29 Aug 2023 13:23:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235993AbjH2NWx (ORCPT ); Tue, 29 Aug 2023 09:22:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236087AbjH2NWp (ORCPT ); Tue, 29 Aug 2023 09:22:45 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61F30194 for ; Tue, 29 Aug 2023 06:22:39 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1D4C9210E3; Tue, 29 Aug 2023 13:22:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1693315358; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HZIcur+xewkLKW/qjIrg/ibBM/IsMy1nG6uPmP1nz7Y=; b=XXdzd63fUG9ulCUnDiwOdFm2QsuFqxjGaWyjUBWkZG/uy45XtmW18lYGdRrKzWVYeiynmC HiR0jX9eDcfGAlTqTpy33O0WgIqZRS9VyBc9l+M4Vn+bGtxRwLsruE9KhelUB2YTs0zUr9 i9gkTssof0jUI3uVC2lbHvDVRxuXEVo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1693315358; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HZIcur+xewkLKW/qjIrg/ibBM/IsMy1nG6uPmP1nz7Y=; b=FLTmrMsv7lKVprFZLRi/6BUCfVmSBcH9oFlWXQosyKmrX6z7G33Yk7qN4VOvuWXtr30EPk s3/EhqPgbchfXtDw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E379A13301; Tue, 29 Aug 2023 13:22:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id SmjUNh3x7WT0WQAAMHmgww (envelope-from ); Tue, 29 Aug 2023 13:22:37 +0000 Message-ID: Date: Tue, 29 Aug 2023 15:22:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 From: Vlastimil Babka Subject: [GIT PULL] slab updates for 6.6 To: Linus Torvalds Cc: David Rientjes , Joonsoo Kim , Christoph Lameter , Pekka Enberg , Andrew Morton , "linux-mm@kvack.org" , LKML , patches@lists.linux.dev, Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Kees Cook Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, please pull the latest slab updates from: git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git tags/slab-for-6.6 This happens to be a small one (due to summer I guess), and all hardening related. Thanks, Vlastimil ====================================== * Randomized kmalloc caches, by GONG, Ruiqi. A new opt-in hardening feature to make heap spraying harder. It creates multiple (16) copies of kmalloc caches, reducing the chance of an attacker-controllable allocation site to land in the same slab as e.g. an allocation site with use-after-free vulnerability. The selection of the copy is derived from the allocation site address, including a per-boot random seed. * Stronger typing for hardened freelists in SLUB, by Jann Horn Introduces a custom type for hardened freelist entries instead of "void *" as those are not directly dereferencable. While reviewing this, I've noticed opportunities for further cleanups in that code and added those on top. ---------------------------------------------------------------- GONG, Ruiqi (1): Randomized slab caches for kmalloc() Jann Horn (1): mm/slub: refactor freelist to use custom type Vlastimil Babka (3): mm/slub: remove redundant kasan_reset_tag() from freelist_ptr calculations mm/slub: remove freelist_dereference() Merge branch 'slab/for-6.6/random_kmalloc' into slab/for-next include/linux/percpu.h | 12 +++++++--- include/linux/slab.h | 23 +++++++++++++++++--- mm/Kconfig | 17 +++++++++++++++ mm/kfence/kfence_test.c | 7 ++++-- mm/slab.c | 2 +- mm/slab.h | 2 +- mm/slab_common.c | 49 ++++++++++++++++++++++++++++++++++++----- mm/slub.c | 58 ++++++++++++++++++++++++++++--------------------- 8 files changed, 130 insertions(+), 40 deletions(-) ~