Message ID | 20241108222834.3625217-1-thehajime@gmail.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 92DCDD64098 for <linux-mm@archiver.kernel.org>; Fri, 8 Nov 2024 22:29:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 20F7D6B0085; Fri, 8 Nov 2024 17:29:18 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1BFE06B00D1; Fri, 8 Nov 2024 17:29:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 010C26B00D3; Fri, 8 Nov 2024 17:29:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id D45626B00D1 for <linux-mm@kvack.org>; Fri, 8 Nov 2024 17:29:17 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 765BA1C6D35 for <linux-mm@kvack.org>; Fri, 8 Nov 2024 22:29:17 +0000 (UTC) X-FDA: 82764368820.26.F2270C6 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by imf26.hostedemail.com (Postfix) with ESMTP id 5DA59140010 for <linux-mm@kvack.org>; Fri, 8 Nov 2024 22:28:47 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Q3G9t8u+; spf=pass (imf26.hostedemail.com: domain of thehajime@gmail.com designates 209.85.214.174 as permitted sender) smtp.mailfrom=thehajime@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731104904; 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:references:dkim-signature; bh=Tj0d84oBofIEIDvNao3ns8H2WxtU3MqpnpN3A73IJOw=; b=FrcnZtTzhpzD1V29gDp0moR8y9Z+s7JZwLIvfkkDqgkf5zseYMUJzC2y4epReIGGzrbklj pS0bQw80gMosdfAYD3WY5xVQiPaAbNBMJi9tjmgLTw7SODHq9GrDHhdPld4GLBGZ/OQ0ON 1tQ3xVciba4S3lToUbapDR9S6uRjYnw= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731104904; a=rsa-sha256; cv=none; b=gm2YwW+Gf7wiY601t7rnWrm/u1BCKw7ImInPOtVYhBeC3TqvEsXSbUnOslI31Zch4Vx1LN Xm8EWZ3L/gdvlvWZY43m5E0yERkT5vFr52FFP2LIIjVprdA+oGf6n6dGcfJs8XjNPnMGQo eNUeMhRC/wBur6fszwFelZygwOMkXLM= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Q3G9t8u+; spf=pass (imf26.hostedemail.com: domain of thehajime@gmail.com designates 209.85.214.174 as permitted sender) smtp.mailfrom=thehajime@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-20e576dbc42so29946755ad.0 for <linux-mm@kvack.org>; Fri, 08 Nov 2024 14:29:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731104954; x=1731709754; darn=kvack.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Tj0d84oBofIEIDvNao3ns8H2WxtU3MqpnpN3A73IJOw=; b=Q3G9t8u+7iEzTEXxOhUn7cjcUChzW/BhbfBBuJPey+i51sdF0edeb1MeDaiIBpY6ec qV4ghdQrL/W2NqaIfKEeaVwKAEiY0K3YcX4Xykzv/GZKflCR3G2RXX7iYhnbmXACZ5Nh oRTxxD7TASHFZAu4UIsRzQJ7F5wkF6kAkPbFdJzHbzpf6By7tYXpUC5oyXcidCylJKeS p665jDyM7g8shHRevSoiyuMSLqsKkx88QudHymGwK83MZXl2u8vp/PZF2XgTWCbjuI56 qxEpj3US5V9Iv4sf943pyuEPrU62PSjSJOX8jazRC/CrM6kr3fta/mMhNN8k7ZcUnJm3 rdoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731104954; x=1731709754; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Tj0d84oBofIEIDvNao3ns8H2WxtU3MqpnpN3A73IJOw=; b=GARJhOJPwzP7dwLe3MUDoBqhLsZ4QSW915w5T5KyKMBf1ZyKa5j9Ak1zXhJijb/SHF dc2NV1qo/CR6f9sQvkWedyxre1aC60NM06LEiYc3QnWqJxWT3IlzrDLzyUlqUp1ddlTZ WNw9T16eVxEF3nE2N3jxngi8Y8fWFTT3DwOlco6RdHdFaZI7IQlC8nLsqfwxBELFMYnf jogYikVEvbKhXQcZtezdm5d3dTQtzDBvtI02XK4tuuOtAaEkYYs5J6fMT8SRT5RROGE9 kzlINj33VhwZbjoHc9FdmSQoh7V5DRTFFw5Zv5BY3wTM9+/KT3D5zOGPO9PWxwFK88U1 DfVA== X-Forwarded-Encrypted: i=1; AJvYcCX8glu7KdaVY22XEf/TV4t+QJbg7yht5pLC6fZHXAyHy0jywm2FjfufZkHjuhMwRkhU9AQJ1LhKuA==@kvack.org X-Gm-Message-State: AOJu0Yyrk8r+hANFeqgHIvfvV/9sLQcY8i4XNL+ofbi31VzR45//Ihqo VWqRDpHZRRu4r0oW+aQYg6fC/pKubzUIlShGH3IZ1EUiSzINwklniPnPGw== X-Google-Smtp-Source: AGHT+IHCTwP1JxMlTUvRwhHQEwpeVarcG4hNXGPXy1QEQIYpnJQaRTnVT1DK4itvXZyHolX4IgMaIA== X-Received: by 2002:a17:903:190:b0:20e:5ab1:2c80 with SMTP id d9443c01a7336-211834e00c3mr57153205ad.7.1731104954233; Fri, 08 Nov 2024 14:29:14 -0800 (PST) Received: from ikb-h07-29-noble.in.iijlab.net ([202.214.97.5]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7f41f645847sm4073785a12.65.2024.11.08.14.29.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2024 14:29:13 -0800 (PST) Received: by ikb-h07-29-noble.in.iijlab.net (Postfix, from userid 1010) id AC579DB5131; Sat, 9 Nov 2024 07:29:06 +0900 (JST) From: Hajime Tazaki <thehajime@gmail.com> To: akpm@linux-foundation.org, linux-mm@kvack.org Cc: maple-tree@lists.infradead.org, Liam.Howlett@Oracle.com, Hajime Tazaki <thehajime@gmail.com>, stable@vger.kernel.org Subject: [PATCH] nommu: pass NULL argument to vma_iter_prealloc() Date: Sat, 9 Nov 2024 07:28:34 +0900 Message-ID: <20241108222834.3625217-1-thehajime@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: 49818hx83eytp6osjkd8qksttja74hj3 X-Rspam-User: X-Rspamd-Queue-Id: 5DA59140010 X-Rspamd-Server: rspam02 X-HE-Tag: 1731104927-540783 X-HE-Meta: U2FsdGVkX1+W4DgjWQd10iSr0P68YKISWtRep/N1jPFvYQ/ufmlKjwCItVowICUezWFjSgAz0rwcu0xzG9HHZ5KLn7JlYE79MkuMKkB8EZNZII6ni9Xt1bYRNFY+foxnmk0CR1eNTCh4euGAHef9KkUlXIlX3I1rAUgIBtHeeYP//YnqHh9GRvDOHa9+YnAA6QgREqe38uXy0Vb8H8EeiALbcMZ/Gtosv+N+KOtXgfTJUQhFSdftewQc2TYzw3vV6U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pQC4T2up0FELDE5+4icaZtdcifD9IIHWPNhk7/QHQq/fKgyX7Z+TCo/Z57USwubqPyuFWi0zFD/W+jc/uXKDyPdQZumvqqO0eQyL6PK1TUSDallvj85BgI0XOY7Q1ruDAEP8w== 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
nommu: pass NULL argument to vma_iter_prealloc()
|
expand
|
diff --git a/mm/nommu.c b/mm/nommu.c index 385b0c15add8..0c708f85408d 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -573,7 +573,7 @@ static int delete_vma_from_mm(struct vm_area_struct *vma) VMA_ITERATOR(vmi, vma->vm_mm, vma->vm_start); vma_iter_config(&vmi, vma->vm_start, vma->vm_end); - if (vma_iter_prealloc(&vmi, vma)) { + if (vma_iter_prealloc(&vmi, NULL)) { pr_warn("Allocation of vma tree for process %d failed\n", current->pid); return -ENOMEM;