From patchwork Tue Mar 29 12:39:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Potapenko X-Patchwork-Id: 12794753 Return-Path: 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 CDD9AC433EF for ; Tue, 29 Mar 2022 12:40:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4CF358D0008; Tue, 29 Mar 2022 08:40:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4A4D28D0007; Tue, 29 Mar 2022 08:40:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 36C708D0008; Tue, 29 Mar 2022 08:40:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id 27AB28D0007 for ; Tue, 29 Mar 2022 08:40:38 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay12.hostedemail.com (Postfix) with ESMTP id EE7CC120E34 for ; Tue, 29 Mar 2022 12:40:37 +0000 (UTC) X-FDA: 79297382514.01.7F9124B Received: from mail-ed1-f73.google.com (mail-ed1-f73.google.com [209.85.208.73]) by imf24.hostedemail.com (Postfix) with ESMTP id 4911A180002 for ; Tue, 29 Mar 2022 12:40:37 +0000 (UTC) Received: by mail-ed1-f73.google.com with SMTP id q25-20020a50aa99000000b004192a64d410so10947056edc.16 for ; Tue, 29 Mar 2022 05:40:37 -0700 (PDT) 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=hetjka8F+4smAU2DbrfLtuY9Keg4VAYWsS2h7SzTHpM=; b=cHcpM//qa8SvJJrjPOG9wtT4Hj5D6kD8ib68SB0Mqb0q0PO5BtYL9X9Qere7Y8XjxC bOM2jC9VPziu2bY4mbcytTILLbSgpj6V9GVCh6WxioXetMKQTjrwkM8t/un72VJ5Mtgo iN8edkLwGflJ0otqfb1a7ajaVSPA/j+RPaBGepgVwwsEbS3i0p4LMpfh/BW0+mkCnvMU Dy9dZon78osDnNaQChTznTJymR927G4ea5V6szrz6kTy1ZvwLWbYPa/cpH3vDDIjeqkx FCLP31BQXYYVkPw5/Wg74buUelJiPy1QB+ObNDqL4zRzTdeyCzo8GYIkh1l7+0BmBJHW d2Qg== 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=hetjka8F+4smAU2DbrfLtuY9Keg4VAYWsS2h7SzTHpM=; b=38S7PrpP0KlF1xzapncRUYHLQWaB+Ye/BSZ5OQVTRGRgxe6E5i3wTMgeMZURNeKbal Ph4Iy9GT1v15I1BQ+VacDkX5+oUI+r8gswjdVfK+k3DTFLpnfN/rupTPPFGdTiMIVOzr HdRniDtz2P1lOQqDAuCZUq745r/aX2ZwrQ1qJD0z+xBVEL5G/nyBO9+ZCcRZJkhnNGId kneptO1IRpmvqqR0GUIC8Tf7rGROEL0C+9PfqftXej0Ki5m/LxcKPREafNMlgfvKCvCX 8K9OTzIj+mG1Z9EYcrwgTudaUBFHpAM3Xns9iZ4/oEi3Q5B/QNZwr2YaLS6qz+T+Dxhx fNTQ== X-Gm-Message-State: AOAM532+LawDj6jws3vOR8sLuRb5dr5XkRQ740etnXbuldcwkTNXYJcl daxSJtd3Iphyc7e1uDPTBccutvp4jMI= X-Google-Smtp-Source: ABdhPJyG5Cqqhqcj/H0YOQo5c9+FB/qfdcBot+5TAfkkvUFt0c3NMnQ9bJxFD4PL2W5gYj33TH1h8vNqlJU= X-Received: from glider.muc.corp.google.com ([2a00:79e0:15:13:36eb:759:798f:98c3]) (user=glider job=sendgmr) by 2002:aa7:c3d6:0:b0:419:2370:4856 with SMTP id l22-20020aa7c3d6000000b0041923704856mr4374152edr.180.1648557635703; Tue, 29 Mar 2022 05:40:35 -0700 (PDT) Date: Tue, 29 Mar 2022 14:39:32 +0200 In-Reply-To: <20220329124017.737571-1-glider@google.com> Message-Id: <20220329124017.737571-4-glider@google.com> Mime-Version: 1.0 References: <20220329124017.737571-1-glider@google.com> X-Mailer: git-send-email 2.35.1.1021.g381101b075-goog Subject: [PATCH v2 03/48] kasan: common: adapt to the new prototype of __stack_depot_save() From: Alexander Potapenko To: glider@google.com Cc: Alexander Viro , Andrew Morton , Andrey Konovalov , Andy Lutomirski , Arnd Bergmann , Borislav Petkov , Christoph Hellwig , Christoph Lameter , David Rientjes , Dmitry Vyukov , Eric Dumazet , Greg Kroah-Hartman , Herbert Xu , Ilya Leoshkevich , Ingo Molnar , Jens Axboe , Joonsoo Kim , Kees Cook , Marco Elver , Mark Rutland , Matthew Wilcox , "Michael S. Tsirkin" , Pekka Enberg , Peter Zijlstra , Petr Mladek , Steven Rostedt , Thomas Gleixner , Vasily Gorbik , Vegard Nossum , Vlastimil Babka , linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b="cHcpM//q"; spf=pass (imf24.hostedemail.com: domain of 3Q_5CYgYKCGQINKFGTIQQING.EQONKPWZ-OOMXCEM.QTI@flex--glider.bounces.google.com designates 209.85.208.73 as permitted sender) smtp.mailfrom=3Q_5CYgYKCGQINKFGTIQQING.EQONKPWZ-OOMXCEM.QTI@flex--glider.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com X-Rspam-User: X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 4911A180002 X-Stat-Signature: pkkhc8fwbf64aag8qrpy4cbpbhk5zd4d X-HE-Tag: 1648557637-301797 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: 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 --- Link: https://linux-review.googlesource.com/id/I932d8f4f11a41b7483e0d57078744cc94697607a --- mm/kasan/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/kasan/common.c b/mm/kasan/common.c index 92196562687b6..1182388ed3e0e 100644 --- a/mm/kasan/common.c +++ b/mm/kasan/common.c @@ -36,7 +36,7 @@ depot_stack_handle_t kasan_save_stack(gfp_t flags, bool can_alloc) unsigned int nr_entries; nr_entries = stack_trace_save(entries, ARRAY_SIZE(entries), 0); - 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)