Message ID | 20201222200110.QNReXF7AZ%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 AF39CC433E0 for <linux-mm@archiver.kernel.org>; Tue, 22 Dec 2020 20:01:23 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5988923331 for <linux-mm@archiver.kernel.org>; Tue, 22 Dec 2020 20:01:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5988923331 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 908E76B00C1; Tue, 22 Dec 2020 15:01:13 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 86A3F6B00C3; Tue, 22 Dec 2020 15:01:13 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 70BD26B00C4; Tue, 22 Dec 2020 15:01:13 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0154.hostedemail.com [216.40.44.154]) by kanga.kvack.org (Postfix) with ESMTP id 5342C6B00C1 for <linux-mm@kvack.org>; Tue, 22 Dec 2020 15:01:13 -0500 (EST) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 18E0D181AEF32 for <linux-mm@kvack.org>; Tue, 22 Dec 2020 20:01:13 +0000 (UTC) X-FDA: 77621987226.19.tramp30_1e1693427462 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin19.hostedemail.com (Postfix) with ESMTP id DCA6C1ACEAD for <linux-mm@kvack.org>; Tue, 22 Dec 2020 20:01:12 +0000 (UTC) X-HE-Tag: tramp30_1e1693427462 X-Filterd-Recvd-Size: 3675 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf04.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Tue, 22 Dec 2020 20:01:12 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id EA34921D81; Tue, 22 Dec 2020 20:01:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1608667271; bh=2B/NNjgKynQJZv4Y6anRy8CVgpGnS6XKSXDRJna02cY=; h=Date:From:To:Subject:In-Reply-To:From; b=frmpgrx6Dr9aWTySZuUwloIMZnmG3NWspw52TjkqGthVAqLSWuwlYsLUzSS4FfPSS TcTLyoD1ORQsCsHRzj8PoEI0fTUHWwbovttI5/eMZboBNd6dAHgSjUva18hUGNaAit G5pA8hpNyPd7Ka0LmnAOvuCwevyiqvks/EzkERNQ= Date: Tue, 22 Dec 2020 12:01:10 -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 19/60] kasan: rename print_shadow_for_address to print_memory_metadata Message-ID: <20201222200110.QNReXF7AZ%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.000001, 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/report.c~kasan-rename-print_shadow_for_address-to-print_memory_metadata +++ a/mm/kasan/report.c @@ -252,7 +252,7 @@ static int shadow_pointer_offset(const v (shadow - row) / SHADOW_BYTES_PER_BLOCK + 1; } -static void print_shadow_for_address(const void *addr) +static void print_memory_metadata(const void *addr) { int i; const void *shadow = kasan_mem_to_shadow(addr); @@ -338,7 +338,7 @@ void kasan_report_invalid_free(void *obj pr_err("\n"); print_address_description(object, tag); pr_err("\n"); - print_shadow_for_address(object); + print_memory_metadata(object); end_report(&flags); } @@ -379,7 +379,7 @@ static void __kasan_report(unsigned long if (addr_has_metadata(untagged_addr)) { print_address_description(untagged_addr, get_tag(tagged_addr)); pr_err("\n"); - print_shadow_for_address(info.first_bad_addr); + print_memory_metadata(info.first_bad_addr); } else { dump_stack(); }