Message ID | 20201222200249.pSPi936nP%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=3xAm=F2=kvack.org=owner-linux-mm@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=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 BF4BDC433E6 for <linux-mm@archiver.kernel.org>; Tue, 22 Dec 2020 20:03:47 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 544C520700 for <linux-mm@archiver.kernel.org>; Tue, 22 Dec 2020 20:03:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 544C520700 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3FE5F8D003B; Tue, 22 Dec 2020 15:02:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 35B328D0038; Tue, 22 Dec 2020 15:02:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 271FB8D003B; Tue, 22 Dec 2020 15:02:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0155.hostedemail.com [216.40.44.155]) by kanga.kvack.org (Postfix) with ESMTP id 091A08D0038 for <linux-mm@kvack.org>; Tue, 22 Dec 2020 15:02:52 -0500 (EST) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id C5903180AD807 for <linux-mm@kvack.org>; Tue, 22 Dec 2020 20:02:51 +0000 (UTC) X-FDA: 77621991342.11.stick49_1102e7427462 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin11.hostedemail.com (Postfix) with ESMTP id 92586180F8B87 for <linux-mm@kvack.org>; Tue, 22 Dec 2020 20:02:51 +0000 (UTC) X-HE-Tag: stick49_1102e7427462 X-Filterd-Recvd-Size: 3291 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf27.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Tue, 22 Dec 2020 20:02:51 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id A63DF20771; Tue, 22 Dec 2020 20:02:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1608667370; bh=qTjQu+aAiKh3WeHDrcy3Ad4bAKWypLWyNRllSXK4W20=; h=Date:From:To:Subject:In-Reply-To:From; b=vV789QWAgVBT5A0euD4P8/nHuuqivsdYaCOmWjIBCj565zpMHb8JCcRG2m9aCHQTm KFrZLWCKwYs3GDy5OY23Gg2RXn/O/lvn8M8kOsidgjyBF0xGoXjQaASaKUnirZuxd+ jiTlLF7PaB0/xnk1QnRnprE1eDjppk3eK+VH977Y= Date: Tue, 22 Dec 2020 12:02:49 -0800 From: Andrew Morton <akpm@linux-foundation.org> To: akpm@linux-foundation.org, andreyknvl@google.com, aryabinin@virtuozzo.com, Branislav.Rankov@arm.com, catalin.marinas@arm.com, dvyukov@google.com, elver@google.com, eugenis@google.com, glider@google.com, gor@linux.ibm.com, kevin.brodsky@arm.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org, vincenzo.frascino@arm.com, will.deacon@arm.com Subject: [patch 47/60] kasan: remove __kasan_unpoison_stack Message-ID: <20201222200249.pSPi936nP%akpm@linux-foundation.org> In-Reply-To: <20201222115844.d30aaef7df6f5b120d3e0c3d@linux-foundation.org> User-Agent: s-nail v14.8.16 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: <linux-mm.kvack.org> |
Series |
[01/60] kasan: drop unnecessary GPL text from comment headers
|
expand
|
--- a/mm/kasan/common.c~kasan-remove-__kasan_unpoison_stack +++ a/mm/kasan/common.c @@ -64,18 +64,12 @@ void kasan_unpoison_range(const void *ad } #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; - - unpoison_range(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); + + unpoison_range(base, THREAD_SIZE); } /* Unpoison the stack for the current task beyond a watermark sp value. */