From patchwork Thu Jan 3 18:45:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 10747731 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AFC1417E6 for ; Thu, 3 Jan 2019 18:45:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A46F628D04 for ; Thu, 3 Jan 2019 18:45:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9819128D06; Thu, 3 Jan 2019 18:45:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, USER_IN_DEF_DKIM_WL autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56E0B28D05 for ; Thu, 3 Jan 2019 18:45:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726207AbfACSpw (ORCPT ); Thu, 3 Jan 2019 13:45:52 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:39878 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbfACSp1 (ORCPT ); Thu, 3 Jan 2019 13:45:27 -0500 Received: by mail-wm1-f67.google.com with SMTP id f81so31113514wmd.4 for ; Thu, 03 Jan 2019 10:45:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ITHs4YFYCIBJqlnIEDmL4pdf24tyFGf+yxfC0Fh4pdM=; b=h7mND0Ja2CKX3WEOQZZNYqd9Wl32B4mOeHcoyNptcwaUsD1PDVzEu47VrmDVJUf5I/ WypbBGhjGDrsNseH3LE81ezH6HRM+2k+CLcnghlohirns+/D5S+RzY88W5ncYB/QXGE4 FbSucETcPMTEFkrY8hH7Ezrp+JFajaHzL+fEpNCZVUcWhEeCvstyL4ZBK2jmpnv3KX// zhlc96slJeXGPvl+PDvcNgEKSIZ3PYuexVQtTtCSTtMcJRwOKvVuipGRsELAuHweHeIM 5kGT8cfnOeSShUJDPY4ZZYwnvDDgcJHkq2gdObP0PmXMvHEIam2ksYVYLTM8kno/zPM2 fQWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ITHs4YFYCIBJqlnIEDmL4pdf24tyFGf+yxfC0Fh4pdM=; b=dBz3aBiHvnaV78h1xLsFouqBESI3Lev9RJI5Ql/jVFXcFdYQENXg29rn/uj88SS3W3 u5/mF58yyFSu6LnKiL3RpVTaSJV3fEkzFGIUiKo7RFHgt0PjaEjnY+a8lXeJuQ11RqfK uR9aBHQUUNQI5Y28HIXl1bevC6hfVrcVBWwkEhUWfchb/HxEYkXZJFo3qBErUvNZF7pe PYkBmGiMcaZC8w6oKfJnZurn6iDz3/UfewPuo0HyXtHNWyssfg4dBVGJLuRwOPJU2zPB CNtsJeTFnUQAoKwKMg4VfkUxzIE+Jp0TEePAWZP1cqKJ5ORSDhnHxFqD7+tuWa76oC6U F/yg== X-Gm-Message-State: AJcUukebgvWS8BnXGzfQ0xggloqtLnGMZ20d0PgM2GUcAyUoG3Yu2QEd 0Ewr2FwbV4h1b0vBnOsNPVW+jw== X-Google-Smtp-Source: ALg8bN6PfR1Ylu4w+0u4VmomLr/zJW+6Qt2xgzQ9hKBfW94sc2lkLW4VnkWuDt9Lz7DbH3yYH4+Q1w== X-Received: by 2002:a7b:cb18:: with SMTP id u24mr37572044wmj.138.1546541125030; Thu, 03 Jan 2019 10:45:25 -0800 (PST) Received: from andreyknvl0.muc.corp.google.com ([2a00:79e0:15:13:8ce:d7fa:9f4c:492]) by smtp.gmail.com with ESMTPSA id t12sm52236944wrr.65.2019.01.03.10.45.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Jan 2019 10:45:23 -0800 (PST) From: Andrey Konovalov To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Catalin Marinas , Will Deacon , Christoph Lameter , Andrew Morton , 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 , Vincenzo Frascino , kasan-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sparse@vger.kernel.org, linux-mm@kvack.org, linux-kbuild@vger.kernel.org Cc: Kostya Serebryany , Evgeniy Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Jann Horn , Mark Brand , Chintan Pandya , Vishwath Mohan , Andrey Konovalov Subject: [PATCH v3 0/3] kasan: tag-based mode fixes Date: Thu, 3 Jan 2019 19:45:18 +0100 Message-Id: X-Mailer: git-send-email 2.20.1.415.g653613c723-goog MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Changes in v3: - Fixed krealloc tag assigning without changing kasan_kmalloc hook and added more comments to the assign_tag function while at it. - Moved ARCH_SLAB_MINALIGN definition to arch/arm64/include/asm/cache.h. Changes in v2: - Added "kasan: make tag based mode work with CONFIG_HARDENED_USERCOPY" patch. - Added "kasan: fix krealloc handling for tag-based mode" patch. Andrey Konovalov (3): kasan, arm64: use ARCH_SLAB_MINALIGN instead of manual aligning kasan: make tag based mode work with CONFIG_HARDENED_USERCOPY kasan: fix krealloc handling for tag-based mode arch/arm64/include/asm/cache.h | 6 ++++ mm/kasan/common.c | 65 ++++++++++++++++++++++------------ mm/slub.c | 2 ++ 3 files changed, 51 insertions(+), 22 deletions(-)