From patchwork Wed Jan 2 17:36:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 10746545 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 45CD76C5 for ; Wed, 2 Jan 2019 17:36:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F5A328405 for ; Wed, 2 Jan 2019 17:36:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 102AD28417; Wed, 2 Jan 2019 17:36:17 +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=-10.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, USER_IN_DEF_DKIM_WL autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77B5828405 for ; Wed, 2 Jan 2019 17:36:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5A13A8E0031; Wed, 2 Jan 2019 12:36:15 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 577238E0002; Wed, 2 Jan 2019 12:36:15 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4672D8E0031; Wed, 2 Jan 2019 12:36:15 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by kanga.kvack.org (Postfix) with ESMTP id E3E228E0002 for ; Wed, 2 Jan 2019 12:36:14 -0500 (EST) Received: by mail-wr1-f70.google.com with SMTP id w16so14840985wrk.10 for ; Wed, 02 Jan 2019 09:36:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:mime-version:content-transfer-encoding; bh=WqvxLRjs/8snQEsiyX94OkFXxMlQW9YzCnB6B4t2n8E=; b=IhB5+/Oz6RmmAkOLf6987XQqmlpXncNlu1ufI2rqSH/KzHHHTsQ+jmtfOH7h3TkQsP JvEJo5yAbdWCrX20X1bRFTc2F3E4vdNNV0Dw43cSQQE8tMjWXbZ7FvzMid2Wtu4kNyMT W517Abnn5FkXLoZp0e6LER4iXzm5pqnpYpysbSwmgWyhcQ4MNfLXsTLT4fNVksYdV/kG 6cgWCmzy08hX8zCJh0G4JzilatrHb4jHDxrjtVcYuT+IkbyAAsFfHtY8N95AtfsbmwRk PMhNhCXYywi1myjhiiLyLt85sFnwfKl7LuVRIzpB5adGCrxYMxep2O2LmA8Z15BIfyCY P3Bw== X-Gm-Message-State: AJcUukcB5ogOnWyUEHR4ckdKptJ0978WfkmXm5oVDMcTEOoU0BQmiA17 hs6l8fxlV3LpV0cT5q0svZzjvIELCdWK34qnlhqMuA3VH8yGFudM2GvhrpHNGMK2Ms7dgZyb0IZ npT8yoMRWsEfy1h9yWV/5OM5Cy+U0y/ZCXqsQotNe2mL/c9coWPNnJsbenmK+GLo+wBvjoZrbgb BwQK4gCcK2Thg4WE52CDu0U608hO8DmH9/vHw2ybwCXookf+iB2EKiZMLlnqB2hASaBGUAbx30S 2q845ARas5Oz17d9/bjf/irxr8Uu0kelVd2jnV+ANw4J/wEP/ADe+8n8pxIIp7mTRu/iRL+9Cc3 DTCguDSLDa/xTu4ut/rAKzyDYHeiU2wlaGfNWEwRZEDqpwCbZcrv+kqkjzggHDpyALdi00j8ZTe S X-Received: by 2002:a1c:7719:: with SMTP id t25mr152435wmi.7.1546450574445; Wed, 02 Jan 2019 09:36:14 -0800 (PST) X-Received: by 2002:a1c:7719:: with SMTP id t25mr152400wmi.7.1546450573588; Wed, 02 Jan 2019 09:36:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546450573; cv=none; d=google.com; s=arc-20160816; b=nkYbn8BmKqRHoUCzPqNLPox5/zOkAHwyQHuovC74rkpXy9YkcWuRw7kGGF/8SGZRTV UkG25zBx110Hvy1wrBeOk4VkCI7T+/QF14z0c7bAtBxz6XIOjeYztbufPfgO3uryJi4r znj4/lrQmK+HbGjE44fMNkIMGmKa2GnK4BVH0rZKh1Mwzp+CRGU9C+mJGESeuW9GazQw wA5d11FLeXtAERno7wHvd3YUH5LGDJ43ugfgT6jQVvqtxhnBTqgzHdWbbVt6D5shhg+V RZuTqqgwVzHhw9xp8iaZ+Kg35vtVYEmasF7piUZmf2w7saXdqDqFqvGjX/cHieg320sN t//w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=WqvxLRjs/8snQEsiyX94OkFXxMlQW9YzCnB6B4t2n8E=; b=iYrBKF6EAtx5BcRZcVReRdeZT0Uw9WPyUqyUNdV7f2OOyi9BAo0aZppFGN41cNsSZu IqMu/PknkuuLRxfso0GYCIBtClcDNfd+C59anVGo0FdcrWxwB9mFgFoqd6Ir2BsHLAnI LbX8orBOvetz+KcTKk30X+fcII3dlpwrtVXgtF18rRrV9hLHdxnZT6lsUrrYR2RJnyvv xqzurJ7tt3W/Atcr3PTqtfeXx31Ft+J5gd+zqDVf9+8Z9loaRSRe9Ac8rqV0/Zphm6hD TqNdU7H5SZVsGq2Ab62WsrHYWTW4UrrboeNEA3i5i81Nc9dCyzTKlF1Fu4PYb9GrYRnN bk9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eInQQm6s; spf=pass (google.com: domain of andreyknvl@google.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=andreyknvl@google.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id q10sor27086318wro.14.2019.01.02.09.36.13 for (Google Transport Security); Wed, 02 Jan 2019 09:36:13 -0800 (PST) Received-SPF: pass (google.com: domain of andreyknvl@google.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=eInQQm6s; spf=pass (google.com: domain of andreyknvl@google.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=andreyknvl@google.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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=WqvxLRjs/8snQEsiyX94OkFXxMlQW9YzCnB6B4t2n8E=; b=eInQQm6sEDrSW8Ri+2HTk9tz3KWL9anV9aQzBFXwpIjQ4AslOvmf6JrAnCjVPVskuq ggP7jCm5cJAgtjJ/fZmLjKcm/Xveqors2DstMRikDY34EH2+KXOkbSK4m0kIaz6QLcbI otUByN5572pZdK9BeiJ9bovq8A4K9xoY6l8mD3nYm3QjXsnb16R2Wg/qaxZGqvXtEoc6 UNb5Ta0RlReeCtasTgUG2dYzC6YmZAs1X6pvyDHur7RbcME8G/AXmy+Yrdw9M7dJ+YMs kqL+2tdPZkveGaEuzfj676vUysAAq7naoRF0853qdrcjSVmYRPA26o6RQaPkZzaIT0/V dC8w== X-Google-Smtp-Source: ALg8bN66RPF5pJV4sTABV8H6vo3c/v+grDb2wiefBxmR4QoVbGBAeb/TQmsmt/DjfRVG2/5x2PUzCA== X-Received: by 2002:a5d:5182:: with SMTP id k2mr38617647wrv.121.1546450573026; Wed, 02 Jan 2019 09:36:13 -0800 (PST) Received: from andreyknvl0.muc.corp.google.com ([2a00:79e0:15:13:8ce:d7fa:9f4c:492]) by smtp.gmail.com with ESMTPSA id t4sm45987076wrm.6.2019.01.02.09.36.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Jan 2019 09:36:11 -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 v2 0/3] kasan: tag-based mode fixes Date: Wed, 2 Jan 2019 18:36:05 +0100 Message-Id: X-Mailer: git-send-email 2.20.1.415.g653613c723-goog MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Hi Andrew, This patchset includes an updated "kasan, arm64: use ARCH_SLAB_MINALIGN instead of manual aligning" patch and fixes for two more issues that were uncovered while testing with a variety of different config options enabled. Thanks! 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/kasan.h | 4 ++++ include/linux/kasan.h | 14 +++++--------- include/linux/slab.h | 5 +++-- mm/kasan/common.c | 22 ++++++++++++---------- mm/slab.c | 8 ++++---- mm/slab_common.c | 2 +- mm/slub.c | 12 +++++++----- 7 files changed, 36 insertions(+), 31 deletions(-)