Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp965063pxb; Fri, 22 Apr 2022 15:28:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrS1ICPi9E+I5lLmuNDetsl4i3UZICEpdJS9R15MThQhLAk231WNMYfktl2xktFFKdI8MC X-Received: by 2002:aa7:8241:0:b0:509:979d:c760 with SMTP id e1-20020aa78241000000b00509979dc760mr7084750pfn.84.1650666524941; Fri, 22 Apr 2022 15:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650666524; cv=none; d=google.com; s=arc-20160816; b=ORY9kDbLrqm2u5nHHGzsZKJDZx1dDoMOFbQGEEfxh8dzGX1egZ9uNsaIlM0yHHscOg oFpoLBXRCLdnkycoByviU3hYi7bDSFNVWy8dIXfSJVtJxcM+EZjuoxc14OWnBb5eEKS0 IlmhIql0ZxW6pXnpX8I3vO6EvNbJpl01r5xVuKGyVpSI81yth+bzXOghcej+LqDrE8ZA bClC8/IeLmJUwBmFCU0bWrDbdNGL86Aa4kHSuAm80+ScHU7NyBLzBorJEK1m/O1w0DYz mqQSLOIXTjRpeVAZokHdbR2REVJIyk6si8njkFpXHMn8R/U09FEhB0ckDdO3OZ90Ogwb ZWSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=dsDtCCme8HJtyk4HzU69xTajIHj6Y4Ohs4kn+li3/IE=; b=XDWefIaj43ixiwWxV8dHPkrMSzrhoi8rooeqlL1zWlln7Z8wq/GuZ8dI7dzhfRJTJi /1OyhzZb5uAaIKreTNiaTLelj5nQxfksgzkgNiGW6RR2PPRb5kheRMLvM6CNAhWGTM2h WBtPITIJpm/y3F13ER727V7313tVvNJfa5DdPnVqioqz0jW4nln0UL+tSNMx7+XunC/M nXLFDji4+l0wb8wfK+CSUs/H2T6qTgTwX8IdhLa04wRfhjpLPI3HKgzo0C+1FtXs4DEI izteAFw3LxOyJ49ffiJZ3UhM+nD/Dh2SXYKy8Q5c6/nfMcWYVBU6wa9PVWqaOWykMGLQ r4HA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id bc13-20020a656d8d000000b0039db5256a84si10629975pgb.100.2022.04.22.15.28.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:28:44 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BC0FD28198C; Fri, 22 Apr 2022 13:35:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233490AbiDVSIS (ORCPT + 99 others); Fri, 22 Apr 2022 14:08:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236328AbiDVSGV (ORCPT ); Fri, 22 Apr 2022 14:06:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EED4811838B for ; Fri, 22 Apr 2022 11:03:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 731D6B831F6 for ; Fri, 22 Apr 2022 18:03:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F166FC385A0; Fri, 22 Apr 2022 18:03:01 +0000 (UTC) Date: Fri, 22 Apr 2022 19:02:58 +0100 From: Catalin Marinas To: Peter Collingbourne Cc: Andrey Konovalov , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Andrew Morton , Linux ARM , Linux Memory Management List , Linux Kernel Mailing List , vbabka@suse.cz, penberg@kernel.org, roman.gushchin@linux.dev, iamjoonsoo.kim@lge.com, rientjes@google.com, Herbert Xu , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , kasan-dev , Eric Biederman , Kees Cook Subject: Re: [PATCH v2] mm: make minimum slab alignment a runtime property Message-ID: References: <20220421211549.3884453-1-pcc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220421211549.3884453-1-pcc@google.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 21, 2022 at 02:15:48PM -0700, Peter Collingbourne wrote: > diff --git a/include/linux/slab.h b/include/linux/slab.h > index 373b3ef99f4e..80e517593372 100644 > --- a/include/linux/slab.h > +++ b/include/linux/slab.h > @@ -201,21 +201,33 @@ void kmem_dump_obj(void *object); > #endif > > /* > - * Setting ARCH_SLAB_MINALIGN in arch headers allows a different alignment. > + * Setting ARCH_SLAB_MIN_MINALIGN in arch headers allows a different alignment. > * Intended for arches that get misalignment faults even for 64 bit integer > * aligned buffers. > */ > -#ifndef ARCH_SLAB_MINALIGN > -#define ARCH_SLAB_MINALIGN __alignof__(unsigned long long) > +#ifndef ARCH_SLAB_MIN_MINALIGN > +#define ARCH_SLAB_MIN_MINALIGN __alignof__(unsigned long long) > +#endif Sorry, only a drive-by comment, I'll look at the arm64 parts next week. I've seen it mentioned in the first version, what's the point of MIN_MIN and not just MIN? -- Catalin