From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by kanga.kvack.org (Postfix) with ESMTP id 544BF8E0001 for ; Tue, 18 Dec 2018 08:31:50 -0500 (EST) Received: by mail-pl1-f200.google.com with SMTP id g7so11892970plp.10 for ; Tue, 18 Dec 2018 05:31:50 -0800 (PST) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id e19sor25566712pfb.55.2018.12.18.05.31.49 for (Google Transport Security); Tue, 18 Dec 2018 05:31:49 -0800 (PST) MIME-Version: 1.0 References: <2bf7415e-2724-b3c3-9571-20c8b6d43b92@arm.com> <20181217123847.492b9ae4934bd0d95b0bbbdc@linux-foundation.org> In-Reply-To: <20181217123847.492b9ae4934bd0d95b0bbbdc@linux-foundation.org> From: Andrey Konovalov Date: Tue, 18 Dec 2018 14:31:37 +0100 Message-ID: Subject: Re: [PATCH v13 19/25] kasan: add hooks implementation for tag-based mode Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Vincenzo Frascino , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Catalin Marinas , Will Deacon , Christoph Lameter , Mark Rutland , Nick Desaulniers , Marc Zyngier , Dave Martin , Ard Biesheuvel , "Eric W . Biederman" , Ingo Molnar , Paul Lawrence , Geert Uytterhoeven , Arnd Bergmann , "Kirill A. Shutemov" , Greg Kroah-Hartman , Kate Stewart , Mike Rapoport , kasan-dev , "open list:DOCUMENTATION" , LKML , Linux ARM , linux-sparse@vger.kernel.org, Linux Memory Management List , Linux Kbuild mailing list , Vishwath Mohan , Chintan Pandya , Jacob Bramley , Jann Horn , Ruben Ayrapetyan , Lee Smith , Kostya Serebryany , Mark Brand , Ramana Radhakrishnan , Evgenii Stepanov On Mon, Dec 17, 2018 at 9:38 PM Andrew Morton wrote: > > On Mon, 17 Dec 2018 20:33:42 +0100 Andrey Konovalov wrote: > > > > Curiosity, did you try your patches with SLUB red zoning enabled? > > > Since the area used for the Redzone is just after the payload, aligning the > > > object_size independently from the allocator could have side effects, at least > > > if I understand well how the mechanism works. > > > > > > Setting ARCH_SLAB_MINALIGN should avoid this as well. > > > > > > What do you think? > > > > Sounds good to me. > > > > Andrew, how should proceed with this? Send another fixup patch or > > resend the whole series? > > It depends on how extensive the changes are. I prefer a fixup, but at > some point it's time to drop it all and start again. The fixup in only a few lines, so I just sent it as a separate patch named "[PATCH mm] kasan, arm64: use ARCH_SLAB_MINALIGN instead of manual aligning". Thanks!