Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3866121imu; Tue, 18 Dec 2018 05:33:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/X68D18S/zL6J5x5QbrBOSQ3p020J9zITIS0t0SR3i99Pu2ZkxtkvC8qxs3Q5FwbkJlRo8E X-Received: by 2002:a63:8742:: with SMTP id i63mr2899681pge.298.1545140008142; Tue, 18 Dec 2018 05:33:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545140008; cv=none; d=google.com; s=arc-20160816; b=pAAUfhhVMfU1CKS6BMU3Pxui/MOx8ONYwJGf5UKs58bDp5KrGFmyYSFKXgFgAZomLd bkDhoUMnOZyI/iny2jWQMNAswq1xuUoMLUGGtaBzQNNPTAbQ1ZYvSUGN4a11n+42qou3 KcNH5UcsRINwjL5Ei2EE3YwSY5Wc3VjhKD/Jrc5mH3FHjI8o1Ij6JjE5iE2LUU63GTpE XvSOxTA5MyY5B3JzqRvi1YJ+KUuDr2IP6FQmshBKeVfHv1rIcrR5KxwqlMrtGwKFzgYb 3uEALLrlhfFjTmcayBCCNVgf4tsIVtWv8u+AsSYLryWORJOCBR+OznFTHhw8jGFVBC9W oR2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=h86N0lQF/Ig6ovkqWBcT1Ptx1emyXtcvgQtnEfD7pfE=; b=Dz+MzBDg/UmsYMcs/f6iRKZcUi0rMgo0Om3/7vZhwvWgc+Dd+zJ036rjY4ef/hRogw BS+jY7Tpcvrg362x3/NUJksA0qYOTkcvvCISQPdDva8OSsmhue+9PIPfp2p62pAbN+O0 fyI1702I7vvPsNn/L7iJXtDUA4nTmKE6taFVWEsSh7nW3uXYe0/JjvxiprgyhUlD/zx2 i7PDy2z53KjWfeUT+Z5g2KlIrf/BJVpaumFTC9TB6IRa4AO7+zdASotCBhSeh2fXxlmK G6OqbkX4dd4SltZVyrAQeQbLmPgrjLr3ZLSDwHpCEj/fyccpdTLNm33UDszAODckmvIY PxhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=sPlCvfML; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h5si13280830pgk.249.2018.12.18.05.33.12; Tue, 18 Dec 2018 05:33:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=sPlCvfML; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726675AbeLRNbu (ORCPT + 99 others); Tue, 18 Dec 2018 08:31:50 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:45549 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726541AbeLRNbt (ORCPT ); Tue, 18 Dec 2018 08:31:49 -0500 Received: by mail-pf1-f193.google.com with SMTP id g62so8125588pfd.12 for ; Tue, 18 Dec 2018 05:31:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h86N0lQF/Ig6ovkqWBcT1Ptx1emyXtcvgQtnEfD7pfE=; b=sPlCvfMLVbvOGvRmjIW74DD0y2VL1C2eFWGnGubSq9KW1xkb/nWs6ncO7SEGWLRap9 HeJj6vu+f3NESKHkonRKNkVwk7/a2vwQLSqUOyuy/7JewrG8QLMA4g7L7eboTJ5MOjuw uQ0scx3+jzQ/NJZNAuEC2eQjpQcsy8iTW4+6jukLsfbIuc3B5Wdf6rewdeY8mDdiddg0 MGGKMpxC2NzZwf0R4z2j5bXRASxaU/uxCP8PWGn6G2nWHtXNdKUit5vcUgEMDFEqWm90 swsmcyTvqwnx1VlFw0xpNBhfE4KpZBaCgAYy6r8lf1IFdsBBo+xas2+uwSjZy+5L7pST GQqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h86N0lQF/Ig6ovkqWBcT1Ptx1emyXtcvgQtnEfD7pfE=; b=rlam8IvihDST94EI3eLa9UVxzvam37JOScwHUCtI83E4+JTO23ZTPls4b88lKOAl4j /n2cIWvniZXuZCECZ0SDbZmsDw1fVkRyYX6UNHV/lWG8yVCqHvwJEc2oHxYMPpnRC30w crji6KJYlOVb5OcNUimgGQyIUm7EitapFa16uvQ7FQY0TlmoqUbF6QgdNOwXUwZ77/xY EDgR87IBH/lecW2G0tBRWUAXDxeujxjW2wPg7qICFA2Mqkhv4XAUd5XMhJOev+ZUT6Cu lAGCBxCJsaa+7U4tCZC5BH+ljX/+rGmnF+Mh+I1a9JdVXf4rBTae0InscfuX2l9tWHfr i4tg== X-Gm-Message-State: AA+aEWa45ichMhAaJlXKIGycnBZ/BkESRM8Ya33npeegRqTF35GIPxSM iBwld8apaX97NUFkhx7jF3yoAXC3HOZuppYzwUETcw== X-Received: by 2002:a62:1c86:: with SMTP id c128mr1807442pfc.54.1545139908555; Tue, 18 Dec 2018 05:31:48 -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 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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!