From patchwork Tue Jul 30 14:32:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13747473 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 11B5DC3DA49 for ; Tue, 30 Jul 2024 14:33:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=MtnzvQTBIwAaV657JFZTmUy/kQi8XhJ5xFQ78uM4kfQ=; b=AT9ghUyRIqRhHi8JofrF8a9wbh BELJrFAI0n9ljl9qrgMqZRf/oVpoByZwblcuxZFLloydH+AopoRXJhMuPwKZ/e1tvHMBF7FI2fwJr q1piQ3bmqgXPgr0spV7TUJLYxM9Xeo1fuDlntQA6m/XLvcVpCHm8M+iJ77mr3TpTU7fYMX1Dk3Z68 3uGpLJ/yHM8frdOUsnsVHJgkvi9dmX7mThjjbhWSQQxpwem51acBx07eoYRuFllPwb3tVH70JP8fV mlWdurAZPpJGRVXU2vgV8AAIjtEK3WrambP09+z8tysQvxV4VPFNINc0ZOOADdozlvayz5Wc2Ale0 BPjhmWfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYnuW-0000000FSnc-32pF; Tue, 30 Jul 2024 14:33:08 +0000 Received: from albert.telenet-ops.be ([2a02:1800:110:4::f00:1a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYnu4-0000000FSj3-2LR0 for linux-arm-kernel@lists.infradead.org; Tue, 30 Jul 2024 14:32:42 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:520d:93ad:ff6d:335e]) by albert.telenet-ops.be with bizsmtp id tqYY2C00d30Ayot06qYYul; Tue, 30 Jul 2024 16:32:32 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1sYntZ-004B0d-HP; Tue, 30 Jul 2024 16:32:32 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1sYntw-00E1Ch-JJ; Tue, 30 Jul 2024 16:32:32 +0200 From: Geert Uytterhoeven To: Magnus Damm Cc: linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven Subject: [PATCH] ARM: shmobile: defconfig: Enable slab hardening and kmalloc buckets Date: Tue, 30 Jul 2024 16:32:24 +0200 Message-Id: <96fc3f0ed509b6364d8aeb297d5acf4abed18404.1722349907.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240730_073240_754410_CF9BDC66 X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable slab freelist metadata hardening, which in turn enables support for allocation from separate kmalloc buckets. The latter is recommended to be enabled, as per its help text. Signed-off-by: Geert Uytterhoeven --- To be queued in renesas-devel for v6.12. --- arch/arm/configs/shmobile_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/shmobile_defconfig b/arch/arm/configs/shmobile_defconfig index 56925adfe8422921..0e380e450a620e61 100644 --- a/arch/arm/configs/shmobile_defconfig +++ b/arch/arm/configs/shmobile_defconfig @@ -24,6 +24,7 @@ CONFIG_CPUFREQ_DT=y CONFIG_VFP=y CONFIG_NEON=y # CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set +CONFIG_SLAB_FREELIST_HARDENED=y CONFIG_CMA=y CONFIG_NET=y CONFIG_PACKET=y