Message ID | 20230217200731.285514-1-isaacmanjarres@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 72D6CC636D6 for <linux-mm@archiver.kernel.org>; Fri, 17 Feb 2023 20:07:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BFD556B0075; Fri, 17 Feb 2023 15:07:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BACD66B0078; Fri, 17 Feb 2023 15:07:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A74586B007B; Fri, 17 Feb 2023 15:07:44 -0500 (EST) 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 983866B0075 for <linux-mm@kvack.org>; Fri, 17 Feb 2023 15:07:44 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 5F9998031B for <linux-mm@kvack.org>; Fri, 17 Feb 2023 20:07:44 +0000 (UTC) X-FDA: 80477869248.04.A477CA2 Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) by imf20.hostedemail.com (Postfix) with ESMTP id B88D81C001F for <linux-mm@kvack.org>; Fri, 17 Feb 2023 20:07:41 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=Rq55dr4I; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf20.hostedemail.com: domain of 3jN7vYw4KCC8TdLLNXLYULccPdRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--isaacmanjarres.bounces.google.com designates 209.85.219.202 as permitted sender) smtp.mailfrom=3jN7vYw4KCC8TdLLNXLYULccPdRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--isaacmanjarres.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1676664461; 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-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=U1nM6W22xHjS3Bc4zx0z84OyKRX34ntnrDpqWA7KxXE=; b=3XrzC2hbwRDCPKByQK6WkKyasYwxu+0mYrjeSG5iTmuEqAjsO3i9z4Jqg7AXxVqFJj3+cW SILtyWzV0hkc3RG5OFwsx/vOx+NqPXxdyGtEqRY17EMTV0hv6TRCUASUZfzY714qRtJ7KK poqdPEIcOnqTBjO8/1tzGWLhnvP8TII= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=Rq55dr4I; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf20.hostedemail.com: domain of 3jN7vYw4KCC8TdLLNXLYULccPdRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--isaacmanjarres.bounces.google.com designates 209.85.219.202 as permitted sender) smtp.mailfrom=3jN7vYw4KCC8TdLLNXLYULccPdRZZRWP.NZXWTYfi-XXVgLNV.ZcR@flex--isaacmanjarres.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676664461; a=rsa-sha256; cv=none; b=2MwJxbmWOomRaGwyyRvWXwp2MROVJiBxYJg1qSSMS04cJzgV60/cNK9xL2syT8NU7t+UoB YAw9iyqklTLZZ0m1cv8kY0kgUe7OmHUD6ZySpmvZMZPUm9U5QcuXoz7m3vPbfbVABd7vsh JC+vTobQ+YYHqzegZTiJ2mHTyknVOiM= Received: by mail-yb1-f202.google.com with SMTP id 188-20020a2503c5000000b008e1de4c1e7dso1711266ybd.17 for <linux-mm@kvack.org>; Fri, 17 Feb 2023 12:07:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=U1nM6W22xHjS3Bc4zx0z84OyKRX34ntnrDpqWA7KxXE=; b=Rq55dr4IlqUaOCip4zZ6Bfk+GkgFZxk6avpazKoRSLojShtX34gYkNdC8/5SbhTzhE 4MZAJbUgib1m72WWVl4DX98FY0VipeLo3JbjLgwWqrnyMvf9E8/cpyyb+UHevXrKil5B OFSI6s5GRiEmESPGK5Mym34edcC6jcPzHNGj9fKb3z0Q7JKQU9Rk8bq9XGX0asjVIqMa 3Y/ftanfYZzyuJsazVqATYvrwQPpNp1pqC4h5bnBaoOIGcluscjTPWhlqmghiYk7hTCP 5m0zMNIOVvgn5s9wb7XSLLz9wIs2SItRvq6ibRdib84zXFWqaukJHmJ0yNIZQNG6iYPd AAuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=U1nM6W22xHjS3Bc4zx0z84OyKRX34ntnrDpqWA7KxXE=; b=Nel8BzSYY4VgUSiM00t6QFExc8xOWmRxPSrK3lBeI1e7CD1IOG9A38FlX/56TPFeyG 37nZQLf/BSf/JLMEfgvhynRCILhA4ZRZtH4+KI4l12IpDPDFkCLk4vYaPhRqoHEm8+nI j2d5XMcESTJOsJN0ugVrexqHOZQvS9hEFCnjVE8ZE+5JYtMtgh1PQQm0x+xyW4Zy/CYk bYNH4k0cXALqKa1RskZ6Sd+pczUHVFr7c6Fdi6EZp02KCYyeuNci/SEVGR+LTUQzyroO CEz37V9ch/fPO/20Oq39w5nn78dUg7WeVLTRTVQTf6xCbIJXLDmc4yYZNBju5Pn9x1aP qEUQ== X-Gm-Message-State: AO0yUKWzXniRkxvYEneQb5PA61qciA8DQ+IjrwcuWhL8aLHZsKn2wRXm Mrp3fo2kuYDlxe2OoViDQYmV9QgOP10HnjbBliDGiA== X-Google-Smtp-Source: AK7set+IwRI9hRSSzsNSYknwwsteTFcswm8J6ufEohRY3jA3I/YoGe5TdkvTwxTX1AFimUbEPQLZIEhxMkSJ9cDiYtvt1Q== X-Received: from isaacmanjarres.irv.corp.google.com ([2620:15c:2d:3:723d:63ac:5b97:6d54]) (user=isaacmanjarres job=sendgmr) by 2002:a5b:d45:0:b0:8f2:9e6:47a4 with SMTP id f5-20020a5b0d45000000b008f209e647a4mr264475ybr.7.1676664460718; Fri, 17 Feb 2023 12:07:40 -0800 (PST) Date: Fri, 17 Feb 2023 12:07:30 -0800 Mime-Version: 1.0 X-Mailer: git-send-email 2.39.2.637.g21b0678d19-goog Message-ID: <20230217200731.285514-1-isaacmanjarres@google.com> Subject: [PATCH 5.15] of: reserved_mem: Have kmemleak ignore dynamically allocated reserved mem From: "Isaac J. Manjarres" <isaacmanjarres@google.com> To: Rob Herring <robh+dt@kernel.org>, Frank Rowand <frowand.list@gmail.com>, Andrew Morton <akpm@linux-foundation.org>, "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk>, Nick Kossifidis <mick@ics.forth.gr>, Mike Rapoport <rppt@kernel.org> Cc: Catalin Marinas <catalin.marinas@arm.com>, Saravana Kannan <saravanak@google.com>, linux-mm@kvack.org, "Isaac J. Manjarres" <isaacmanjarres@google.com>, "Kirill A . Shutemov" <kirill.shtuemov@linux.intel.com>, "Rafael J . Wysocki" <rafael.j.wysocki@intel.com>, Rob Herring <robh@kernel.org>, stable@vger.kernel.org, kernel-team@android.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: B88D81C001F X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: pgzufqskxgpgsgwe8f4upodz3dyxhwqo X-HE-Tag: 1676664461-923963 X-HE-Meta: U2FsdGVkX1+3Xgj0yEsLR2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kS7OsOqLQ0yUiySkhvQEDfltk9ztIDK7LOCt9kvZSuYS7Ctf9WNoBX5w9av1xxHxUSt9aJNUtNKphQyRciIVVd9tyxqaPZv/MzYxqsLHWgqgbMP8Wchl/Ek/j+J9kUyPAONC72bGwIYI8VmMQK23Af5/NurFV1vck/CPqGwut5XxRC01zMAbJWq9ITHcuexSR38oosN83bbXaO+Ka+4xq3ozzzSlhVjM3x/outuWWO6GoLb4pWPBD+Smk2wk000WyL/HREyGE/UTz/v3xLD0alQ5LnTniYBDwykVTxsx/jMunZ0qBJhpuRql398p9dHqlapj6pLUIeJ1m5ad+aVALL0OdFdyPucRlTSYZC0xZB/43Skh9oK4Xm48XAR0gDE6wglNAEYArZ6QO+JK1uDskaTC26Xg9YwL1PlV8dUpmedNL+kzYpRel/LqG3uJptCtvXhM+vf570utwoUH4KRCJeexUOGi0nmfefayNz5pvOpYEq12R7yyH+YwoDVTdE1Ev63ltci3LWMjWuZw1gDDkp9n88ldbxXLvwwrkrTRr4QOTu7dOljmo7d8run/KA4lE/GsvBpSu5lHLLd6AnI2nyg0kdY5msEceC9Do0FhwFgNlXLQBHTahma2yuJdI7aoU+c0boLf1AiquQ8VZJi4hwIMxMqLmanGUzWxiFyZhTx/Zux8U8cia0ICFfoAdjjE6OzZDsjCY9yTxMRZhyO881kCL4BI4qiXZdmrDlCN5RqKqX0erpr7JNflfCOUoDwzF1uEGxMVVcOgf6yrEJN9K+Lo3ShO5PPyVtrRJZ3EEHbqE6jDth7FSiMBUoazX5sHIvCQ5tsZXiuKvzhs+d/8Yabl5JAebHLknphN /7VYlO0T x3NbO0HQFzTV3QCI115bRwB17PH2Z7Mk 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 |
[5.15] of: reserved_mem: Have kmemleak ignore dynamically allocated reserved mem
|
expand
|
On Fri, Feb 17, 2023 at 12:07:30PM -0800, Isaac J. Manjarres wrote: > commit ce4d9a1ea35ac5429e822c4106cb2859d5c71f3e upstream. > > Patch series "Fix kmemleak crashes when scanning CMA regions", v2. Now queued up, thanks. greg k-h
diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c index 9da8835ba5a5..9e949ddcb146 100644 --- a/drivers/of/of_reserved_mem.c +++ b/drivers/of/of_reserved_mem.c @@ -47,9 +47,10 @@ static int __init early_init_dt_alloc_reserved_memory_arch(phys_addr_t size, err = memblock_mark_nomap(base, size); if (err) memblock_free(base, size); - kmemleak_ignore_phys(base); } + kmemleak_ignore_phys(base); + return err; }