Message ID | 20211214162050.660953-4-glider@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 09C09C433EF for <linux-mm@archiver.kernel.org>; Tue, 14 Dec 2021 16:23:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 71EF96B0078; Tue, 14 Dec 2021 11:22:14 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6A7636B007B; Tue, 14 Dec 2021 11:22:14 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 56EF36B007D; Tue, 14 Dec 2021 11:22:14 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0131.hostedemail.com [216.40.44.131]) by kanga.kvack.org (Postfix) with ESMTP id 483D06B0078 for <linux-mm@kvack.org>; Tue, 14 Dec 2021 11:22:14 -0500 (EST) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 07EA186E88 for <linux-mm@kvack.org>; Tue, 14 Dec 2021 16:22:04 +0000 (UTC) X-FDA: 78916916568.29.D899564 Received: from mail-lj1-f202.google.com (mail-lj1-f202.google.com [209.85.208.202]) by imf08.hostedemail.com (Postfix) with ESMTP id 795C216000F for <linux-mm@kvack.org>; Tue, 14 Dec 2021 16:22:00 +0000 (UTC) Received: by mail-lj1-f202.google.com with SMTP id r20-20020a2eb894000000b0021a4e932846so5658859ljp.6 for <linux-mm@kvack.org>; Tue, 14 Dec 2021 08:22:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=T+mYYL6aSbEG/4iKq3fuhN/0C7rIH3abijCddrO3Btg=; b=DCe7tBgES2hvR4caFxy5bljYM1IT44WZzYzikcnqZUOJYlBBpJqB6nRuLLyzsaMupI +zXKLFJ7f3UI79Rmtw28+xRXo8HNv+qUnzkeyIO7L+5D3boqrr2FNBogjt5YON2BTV1u AFx1rnPzU6vEU1A6/jgSC9hZLl05kZuxP3s0cd1WgWE7jYEl1d8Mvo0h6VTze1GPd9qP u0gcVOi9sYfqx+0A/Hd2f3NIBmpk1jfJD9n/izeZtsvQEeb0tr4plLmMtbjfmWKKRwmf pnlj7ZnCniw0y7nFqrzGkFg44r4tZcbmetehf9NjhTG7/aFMSy/ubcrZ5v5wlj0BqfdP ahZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=T+mYYL6aSbEG/4iKq3fuhN/0C7rIH3abijCddrO3Btg=; b=3+94S7kf3kmnEoBj+egmeTl0zLXrCf0UwUWTnNMa4cdm98a93IYFJRDPMyuqKjuwMV eWdMrVNd1DzFOxjYpST3RVmXT+78Re8bp2cPHm+V371k+ayzo5+Ewtv8Z9pj7+NRf+FL YYnfyTJDmsvNz6LGILkGjaM2Z9zd3ZZlu1ApOhEDQ4f9iZXq2SBHJZAACrKJxwMfhWAK ikzl7yes51CRm0a79FkXg1hoFAbTe1nJXc4+t5cmjrJ6y1zX/7846T/rCe8Bs0CWAO4w 2cDX/LSfd4h32IadoDk4izjQnqqCaijNyMScG7XS1fF27QesEvgvvQY0ppqLqXNVdxFJ /sDg== X-Gm-Message-State: AOAM532wU9Rq4W+keSiXErqEQh6mQRyQQIuy1OD6VMtuzfItCaT7XG/Y Z5ybhpy06puwCgqj0mKUSuHA6+4QNcc= X-Google-Smtp-Source: ABdhPJzSecVDmOS9zjdfpZRUjT0HViIDEGkgFckmlsJrOrsrpGbbAJowPx7hwdmUVKVKoxwpUINCdecE840= X-Received: from glider.muc.corp.google.com ([2a00:79e0:15:13:357e:2b9d:5b13:a652]) (user=glider job=sendgmr) by 2002:ac2:44c5:: with SMTP id d5mr5598346lfm.275.1639498921745; Tue, 14 Dec 2021 08:22:01 -0800 (PST) Date: Tue, 14 Dec 2021 17:20:10 +0100 In-Reply-To: <20211214162050.660953-1-glider@google.com> Message-Id: <20211214162050.660953-4-glider@google.com> Mime-Version: 1.0 References: <20211214162050.660953-1-glider@google.com> X-Mailer: git-send-email 2.34.1.173.g76aa8bc2d0-goog Subject: [PATCH 03/43] kasan: common: adapt to the new prototype of __stack_depot_save() From: Alexander Potapenko <glider@google.com> To: glider@google.com Cc: Alexander Viro <viro@zeniv.linux.org.uk>, Andrew Morton <akpm@linux-foundation.org>, Andrey Konovalov <andreyknvl@google.com>, Andy Lutomirski <luto@kernel.org>, Ard Biesheuvel <ard.biesheuvel@linaro.org>, Arnd Bergmann <arnd@arndb.de>, Borislav Petkov <bp@alien8.de>, Christoph Hellwig <hch@lst.de>, Christoph Lameter <cl@linux.com>, David Rientjes <rientjes@google.com>, Dmitry Vyukov <dvyukov@google.com>, Eric Dumazet <edumazet@google.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Herbert Xu <herbert@gondor.apana.org.au>, Ilya Leoshkevich <iii@linux.ibm.com>, Ingo Molnar <mingo@redhat.com>, Jens Axboe <axboe@kernel.dk>, Joonsoo Kim <iamjoonsoo.kim@lge.com>, Kees Cook <keescook@chromium.org>, Marco Elver <elver@google.com>, Matthew Wilcox <willy@infradead.org>, "Michael S. Tsirkin" <mst@redhat.com>, Pekka Enberg <penberg@kernel.org>, Peter Zijlstra <peterz@infradead.org>, Petr Mladek <pmladek@suse.com>, Steven Rostedt <rostedt@goodmis.org>, Thomas Gleixner <tglx@linutronix.de>, Vasily Gorbik <gor@linux.ibm.com>, Vegard Nossum <vegard.nossum@oracle.com>, Vlastimil Babka <vbabka@suse.cz>, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 795C216000F X-Stat-Signature: cdzdrh87mfx3aoiwrro6zfia5uaqby15 Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=DCe7tBgE; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf08.hostedemail.com: domain of 3qcS4YQYKCCoMROJKXMUUMRK.IUSROTad-SSQbGIQ.UXM@flex--glider.bounces.google.com designates 209.85.208.202 as permitted sender) smtp.mailfrom=3qcS4YQYKCCoMROJKXMUUMRK.IUSROTad-SSQbGIQ.UXM@flex--glider.bounces.google.com X-Rspamd-Server: rspam11 X-HE-Tag: 1639498920-110664 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 |
Add KernelMemorySanitizer infrastructure
|
expand
|
diff --git a/mm/kasan/common.c b/mm/kasan/common.c index 8428da2aaf173..6c690ca0ee41a 100644 --- a/mm/kasan/common.c +++ b/mm/kasan/common.c @@ -37,7 +37,7 @@ depot_stack_handle_t kasan_save_stack(gfp_t flags, bool can_alloc) nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 0); nr_entries = filter_irq_stacks(entries, nr_entries); - return __stack_depot_save(entries, nr_entries, flags, can_alloc); + return __stack_depot_save(entries, nr_entries, 0, flags, can_alloc); } void kasan_set_track(struct kasan_track *track, gfp_t flags)
Pass extra_bits=0, as KASAN does not intend to store additional information in the stack handle. No functional change. Signed-off-by: Alexander Potapenko <glider@google.com> --- Link: https://linux-review.googlesource.com/id/I932d8f4f11a41b7483e0d57078744cc94697607a --- mm/kasan/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)