Message ID | f5a46b4c122fb08bbe2fe25d91165e8d7aa232a7.1604534322.git.andreyknvl@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=3g0P=EL=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFB14C00A89 for <linux-arm-kernel@archiver.kernel.org>; Thu, 5 Nov 2020 04:25:23 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 84AB920795 for <linux-arm-kernel@archiver.kernel.org>; Thu, 5 Nov 2020 04:25:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="soqVr30i"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="MjHqa6Wv"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="EIGseFkU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 84AB920795 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:From:Subject:References:Mime-Version:Message-Id: In-Reply-To:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yiHYbBi5ldB5gJydRqD8Xiuffx/oFxU4Gy0nuajN15w=; b=soqVr30iQwK7v0lQh+hqXXdit s/yMa5sswYeShIj0KIUu5a5Goh9tKbIRhmvd5OGwEtpwbKl/tcbPVAeKxZFx+Os1VFe0237SZL6/7 kvwQ5MckRHr9gl+zlizZ63uRClfjjaI/hxoZAaayfvgH5j5vEcUAAWKGZXrYj9TqlxrOY2dZYeYeC wQtSa0EaCQQm0JnZYTqYwe6dzD0L+OMs9WBwpLw9siBr8V+XMg4MCPgey0684o59Wux7Dh+UShuCl wcQTjXKOAWibOuLifhojZp7tse039OZXFyF0E/NxFAIzVwdcIUs+enyV7gs75xYn0WNbGRWKgfMz3 wnaKuK60g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaWoL-0006fs-Go; Thu, 05 Nov 2020 04:23:45 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaW3s-000145-Ud for linux-arm-kernel@merlin.infradead.org; Thu, 05 Nov 2020 03:35:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:Cc:To:From:Subject: References:Mime-Version:Message-Id:In-Reply-To:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=JW8D6ibToVOb7LpAkCihsputAW6li7gT66iFpWFJlB0=; b=MjHqa6Wv8TOxj9HyXjWTfBVxjV 1ShMDTfMZoxor5EUIXathH0c1PWXlXt/QaJTCRXrzT9uRSWg5LVzM+/p+I1p+QeXhRZZM2GnM5YWP XFWA3cK0s7sn6Nym6Yz560b6EZHeIOmmhlBZHpd4ZG8ewjQrgst13cPHot0OJ/xp59E4hDc9C2bGz hpESCSIYWYwzGuccHm5AxKzqrsoOrm7TLqGVv798kpNHq6zSPlST5zK8B82L5elnnakcjTVzSIc9s e1t+NwowAeotEuiKnFUrC5dLAuNJtpE6LeXzs79hFwqaIpoj3dqloi2fwqPrjlKEvQ50L0ZCt37DB cXdGZ2Eg==; Received: from mail-yb1-xb4a.google.com ([2607:f8b0:4864:20::b4a]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaSkq-0000ot-5C for linux-arm-kernel@lists.infradead.org; Thu, 05 Nov 2020 00:03:54 +0000 Received: by mail-yb1-xb4a.google.com with SMTP id y11so452975ybm.22 for <linux-arm-kernel@lists.infradead.org>; Wed, 04 Nov 2020 16:03:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=JW8D6ibToVOb7LpAkCihsputAW6li7gT66iFpWFJlB0=; b=EIGseFkUbu4j97m+Rhe8ifiJEJ0/vSgBaoaF2oPB6YJuPwOq2yFl8o3MdZTisWpG8v 7KPp5oAaiwsPmjeCUi37l89Z7cZJJj/hhe5YwAUSX9ohPHFQHG9rviik167v9qNGYxg+ P0LNwwi8goSo5pXkQCm2SaSogyReaDgIOTbI5K97sZj9flQ0v+LrD0Pth2BoTDM0Nawq hRM42A6VpyD9FTb4ipeHNtA1FxJV0NecpqgkotIXjwA3kZts685NAweHbMSnkr4kQD/y wrASYwOEExzSGG5j537dCqcaS992EojrvnZ4VEjnIXPSewtClP3KbuoKPCc76tmqA1U1 kE1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=JW8D6ibToVOb7LpAkCihsputAW6li7gT66iFpWFJlB0=; b=AZQvwNdAjdADJGfBUhHHficavg3AuJo8VVqWRgRRVyMumHSXqBp3q8BwmrgXiu+8r6 1ggECxJsuPUoIF1ADgpHpMnK9scFA4IhGBloOQMNMyE+eKEkMfI9c8MaMd16C3NcEnFX +3QWs96KT+ASLGfGMTvBt4uKBst8dx3QQs/MddW+v/l/n1WvHOUuEu6U5blyPRoAOtUb 72GcY12nFI0U8UIP6nSlLt1YICr0BYgP5ewEQoDcK6QMBAwcCCFmndlRMOCWYkzPf041 t+yY28Q3NP1yJpqfynpPvOXoNlX2WN7SLMS2mDlM1W3aEEofIsqbsWsC6EpuGBHvbVIJ wBjA== X-Gm-Message-State: AOAM532wrqOvRGO9YIv8zfMkcMFDbUL2fneuZyV/2Hp87HZ1azhoSlK9 a1ZvDUTmYBGeciHIfSdzwQNeE6Z8VEr4HBig X-Google-Smtp-Source: ABdhPJyMEsriifNDEGfN+BopmjlIR9t9CjJFRB97WqiYs1BD5RFz7wmlp/gc3XkSEP7qscjhGorWWs7vzkyRjDGQ X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a25:48c:: with SMTP id 134mr48783ybe.158.1604534569629; Wed, 04 Nov 2020 16:02:49 -0800 (PST) Date: Thu, 5 Nov 2020 01:02:16 +0100 In-Reply-To: <cover.1604534322.git.andreyknvl@google.com> Message-Id: <f5a46b4c122fb08bbe2fe25d91165e8d7aa232a7.1604534322.git.andreyknvl@google.com> Mime-Version: 1.0 References: <cover.1604534322.git.andreyknvl@google.com> X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog Subject: [PATCH 06/20] kasan: remove __kasan_unpoison_stack From: Andrey Konovalov <andreyknvl@google.com> To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com>, Vincenzo Frascino <vincenzo.frascino@arm.com>, Dmitry Vyukov <dvyukov@google.com>, Alexander Potapenko <glider@google.com>, Marco Elver <elver@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201105_000352_468989_9FF396B0 X-CRM114-Status: GOOD ( 11.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Branislav Rankov <Branislav.Rankov@arm.com>, Andrey Konovalov <andreyknvl@google.com>, Kevin Brodsky <kevin.brodsky@arm.com>, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, Andrey Ryabinin <aryabinin@virtuozzo.com>, Andrew Morton <akpm@linux-foundation.org>, Evgenii Stepanov <eugenis@google.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
kasan: boot parameters for hardware tag-based mode
|
expand
|
diff --git a/mm/kasan/common.c b/mm/kasan/common.c index a3e67d49b893..9008fc6b0810 100644 --- a/mm/kasan/common.c +++ b/mm/kasan/common.c @@ -59,18 +59,12 @@ void kasan_disable_current(void) #endif /* CONFIG_KASAN_GENERIC || CONFIG_KASAN_SW_TAGS */ #if CONFIG_KASAN_STACK -static void __kasan_unpoison_stack(struct task_struct *task, const void *sp) -{ - void *base = task_stack_page(task); - size_t size = sp - base; - - kasan_unpoison_memory(base, size); -} - /* Unpoison the entire stack for a task. */ void kasan_unpoison_task_stack(struct task_struct *task) { - __kasan_unpoison_stack(task, task_stack_page(task) + THREAD_SIZE); + void *base = task_stack_page(task); + + kasan_unpoison_memory(base, THREAD_SIZE); } /* Unpoison the stack for the current task beyond a watermark sp value. */