Message ID | 20201222200149.zhH1IPBra%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=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 69D83C433DB for <linux-mm@archiver.kernel.org>; Tue, 22 Dec 2020 20:02:15 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id EAF7D21D81 for <linux-mm@archiver.kernel.org>; Tue, 22 Dec 2020 20:02:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EAF7D21D81 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 64ADF8D001A; Tue, 22 Dec 2020 15:01:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 5D15A8D0019; Tue, 22 Dec 2020 15:01:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4707A8D001A; Tue, 22 Dec 2020 15:01:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0068.hostedemail.com [216.40.44.68]) by kanga.kvack.org (Postfix) with ESMTP id 2E55C8D0019 for <linux-mm@kvack.org>; Tue, 22 Dec 2020 15:01:52 -0500 (EST) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id E8DE6824999B for <linux-mm@kvack.org>; Tue, 22 Dec 2020 20:01:51 +0000 (UTC) X-FDA: 77621988822.15.rate71_6314a8527462 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin15.hostedemail.com (Postfix) with ESMTP id BC3851814B0C7 for <linux-mm@kvack.org>; Tue, 22 Dec 2020 20:01:51 +0000 (UTC) X-HE-Tag: rate71_6314a8527462 X-Filterd-Recvd-Size: 3203 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf18.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Tue, 22 Dec 2020 20:01:51 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id DFB9120700; Tue, 22 Dec 2020 20:01:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1608667310; bh=rXPig3Y2BiXNEZi+1w0PI3jdh8Ii07tQ40TtSpXIZlQ=; h=Date:From:To:Subject:In-Reply-To:From; b=n4PJIavFFOdKcM4PaeR1OhWVk1SCIJ6K0nz4FK8seo+0ebIso9PIlRgXUZgOIYuf5 W32lVn18Ow9LNYiSORE5M0kGa9F/IXHcP7H8bFFCB9LOVKuE7YSXezWqzu0QQudGhe mQMpipd5L0UdZeBK3rlHAfq45CpAPuFfQozwDpM8= Date: Tue, 22 Dec 2020 12:01: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 30/60] kasan, mm: untag page address in free_reserved_area Message-ID: <20201222200149.zhH1IPBra%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/page_alloc.c~kasan-mm-untag-page-address-in-free_reserved_area +++ a/mm/page_alloc.c @@ -7671,6 +7671,11 @@ unsigned long free_reserved_area(void *s * alias for the memset(). */ direct_map_addr = page_address(page); + /* + * Perform a kasan-unchecked memset() since this memory + * has not been initialized. + */ + direct_map_addr = kasan_reset_tag(direct_map_addr); if ((unsigned int)poison <= 0xFF) memset(direct_map_addr, poison, PAGE_SIZE);