Message ID | 7b5f4b94b922c1753190886d0b6984bc1c16828f.1658189199.git.andreyknvl@google.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1FC09C433EF for <linux-mm@archiver.kernel.org>; Tue, 19 Jul 2022 00:13:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 924D5940008; Mon, 18 Jul 2022 20:13:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8D7386B0075; Mon, 18 Jul 2022 20:13:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 79C416B0074; Mon, 18 Jul 2022 20:13:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 5CCE0940008 for <linux-mm@kvack.org>; Mon, 18 Jul 2022 20:13:38 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id 3A3001214A7 for <linux-mm@kvack.org>; Tue, 19 Jul 2022 00:13:38 +0000 (UTC) X-FDA: 79701925716.08.329232D Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by imf21.hostedemail.com (Postfix) with ESMTP id 812C21C0067 for <linux-mm@kvack.org>; Tue, 19 Jul 2022 00:13:37 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1658189616; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ewIngwsCZaE/TDWKEzevD/ov9nRjvr0Ni51fNvRF6vM=; b=Ez4NK3MJ+4tuDDIgHgxsu4MiYUaqGfY5VOiQUKIwGvQBUsYJ7GKoPfKXc55qtCSds5QjTg zAvcXssV/9wWlJajGb7voWZ66ktaEQqD9D8S7tuhDWKIDHvuAmrTGk1WZ8B5A2lVn8f5Am 9EtvJhAOrXSt/GHEyuJMYKNsxpPcuR4= From: andrey.konovalov@linux.dev To: Marco Elver <elver@google.com>, Alexander Potapenko <glider@google.com> Cc: Andrey Konovalov <andreyknvl@gmail.com>, Dmitry Vyukov <dvyukov@google.com>, Andrey Ryabinin <ryabinin.a.a@gmail.com>, kasan-dev@googlegroups.com, Peter Collingbourne <pcc@google.com>, Evgenii Stepanov <eugenis@google.com>, Florian Mayer <fmayer@google.com>, Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov <andreyknvl@google.com> Subject: [PATCH mm v2 21/33] kasan: cosmetic changes in report.c Date: Tue, 19 Jul 2022 02:10:01 +0200 Message-Id: <7b5f4b94b922c1753190886d0b6984bc1c16828f.1658189199.git.andreyknvl@google.com> In-Reply-To: <cover.1658189199.git.andreyknvl@google.com> References: <cover.1658189199.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658189617; a=rsa-sha256; cv=none; b=R8Ar9unkSLlut8Sonp4kSreBWBnbgCwQoBEetY2McX0XDHIZ3oiCgWlIGl8BcXexcnUUdw EnH5vr8en2EAiX3ZxF+IeJq71HUYj5aradEKJ0hdSXJHifTvTBSX3cRebJXqqC2MSEedZ1 3WEPfXw6YOj0wShX8WWJwSQLd01cSxM= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=Ez4NK3MJ; spf=pass (imf21.hostedemail.com: domain of andrey.konovalov@linux.dev designates 94.23.1.103 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658189617; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ewIngwsCZaE/TDWKEzevD/ov9nRjvr0Ni51fNvRF6vM=; b=E1/Mjc7/gE2RTmjnnqJ6Rhii2V5bj1+qT/OfATyFat+Vlukj8sSSCl/hG3tbdtrJ+PQYz0 05qzHLoJqHbjMao5jayaO9pAkXrTXrqIdC/QB5+Zf8zWNt/b3G1WnoKq5/vGJGHBkPcUIq ytdLIWlXEN7VmQi7eL/JJnc88HO0A54= X-Rspamd-Queue-Id: 812C21C0067 Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=Ez4NK3MJ; spf=pass (imf21.hostedemail.com: domain of andrey.konovalov@linux.dev designates 94.23.1.103 as permitted sender) smtp.mailfrom=andrey.konovalov@linux.dev; dmarc=pass (policy=none) header.from=linux.dev X-Rspam-User: X-Rspamd-Server: rspam06 X-Stat-Signature: wrabcradckbaz94xnkzbmbipms74mo1d X-HE-Tag: 1658189617-225301 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 |
kasan: switch tag-based modes to stack ring from per-object metadata
|
expand
|
diff --git a/mm/kasan/report.c b/mm/kasan/report.c index 5d225d7d9c4c..83f420a28c0b 100644 --- a/mm/kasan/report.c +++ b/mm/kasan/report.c @@ -200,25 +200,22 @@ static void print_error_description(struct kasan_report_info *info) static void print_track(struct kasan_track *track, const char *prefix) { pr_err("%s by task %u:\n", prefix, track->pid); - if (track->stack) { + if (track->stack) stack_depot_print(track->stack); - } else { + else pr_err("(stack is not available)\n"); - } } struct page *kasan_addr_to_page(const void *addr) { - if ((addr >= (void *)PAGE_OFFSET) && - (addr < high_memory)) + if ((addr >= (void *)PAGE_OFFSET) && (addr < high_memory)) return virt_to_head_page(addr); return NULL; } struct slab *kasan_addr_to_slab(const void *addr) { - if ((addr >= (void *)PAGE_OFFSET) && - (addr < high_memory)) + if ((addr >= (void *)PAGE_OFFSET) && (addr < high_memory)) return virt_to_slab(addr); return NULL; }