From patchwork Thu Jan 11 12:11:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzislau Rezki X-Patchwork-Id: 13517338 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 074D9C47077 for ; Thu, 11 Jan 2024 12:12:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7829A6B00A2; Thu, 11 Jan 2024 07:12:03 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6E48E6B00A3; Thu, 11 Jan 2024 07:12:03 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 584986B00A4; Thu, 11 Jan 2024 07:12:03 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 425EA6B00A2 for ; Thu, 11 Jan 2024 07:12:03 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 0F3561A0C2B for ; Thu, 11 Jan 2024 12:12:03 +0000 (UTC) X-FDA: 81666916926.11.2A70C06 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by imf11.hostedemail.com (Postfix) with ESMTP id 9177840027 for ; Thu, 11 Jan 2024 12:11:08 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=nTIT9Kb7; spf=pass (imf11.hostedemail.com: domain of urezki@gmail.com designates 209.85.167.48 as permitted sender) smtp.mailfrom=urezki@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1704975068; a=rsa-sha256; cv=none; b=aomgV9DcoTiYFx0pZi9071SVSpWTFlQf+I0AAIPs+gm7JinOiFKkBXQrstOYK2tOSlrzoK vj8WVMuEnZTYWIKGPAqtiUdgfYDcNqUcs40QKcGkl+4gHC+ebSske/RHBX5LfaftWjJcz3 5ZzggRYn9ErU1pzDyPnn+RusDM5m3vs= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=nTIT9Kb7; spf=pass (imf11.hostedemail.com: domain of urezki@gmail.com designates 209.85.167.48 as permitted sender) smtp.mailfrom=urezki@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=1704975068; 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=WC0zU9bk+mOGuDDseHGwErXQyyS357utHMq886vihEw=; b=Z/Ty23+ZFzJ7M5BZZxypJrgMSnFqC8kgvGUzts5nA+kG7NiXrWwcldmjctI04LcjNZVBLr 2cnoXAksUgWH09aJZQu7DgPFYlp/3ieCuyYRGbRRW4KiPBrcmQCdQKbNlZ5NdHY2ySjcPo LoAwwu0y/rQMrOY7dGWD/opEpu3qUxU= Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-50e80d14404so5453545e87.1 for ; Thu, 11 Jan 2024 04:11:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704975067; x=1705579867; 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=WC0zU9bk+mOGuDDseHGwErXQyyS357utHMq886vihEw=; b=nTIT9Kb7qqkwmZgfxuKx8p8NwZ/emz8s3vyPqszSlw1+mq2qm383lcaOYdDi/8x1+n HbK5U0zjbeCiyYwbdnhQGAMBNJYaGhEOIKmqEOmQOJbDL1Omd/hohXkLia1GBakzoPma yHKEc1PZ7Xp3/TMwAgFRfQTC9SKZwe9AYy9fddKEw1fu0OJXqn8FKH6VLE3ItXOxwJ1N Faga46Si0VSRmJHqgyNm6mV0PLfv/Sx0Kzxf+QFeO7gjO4Tkti1OvgfB/USlCuwroQP7 AWjqQ/z5kJ/K3w6nts8LTSHExiY+56WVjtl0zn5eQKVkDjDY8nrgZij/OTvBOw85Oys/ l/ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704975067; x=1705579867; 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=WC0zU9bk+mOGuDDseHGwErXQyyS357utHMq886vihEw=; b=oaT6EhD4w82rawc0nrbWELwgzKSgLV+dsQCLEAUR4x6fqVAsqYn9wofF2ZJYLIhCvx QnUZ2Hz2KNTo3NqucRSnt5IH0UphPhhfwmSRbN5BGruZi8YqXmrE3kE/IAIuYR8diZFn PLK7BEL5m0zWwcsBBjeniaeRYg3ZOImJnwE5kE2FckPd6oByldEM7o6p73fXnJqbJf8n 3R20hpnS4yRKIhXXD4e0nl6EVCsqpiRlriKPG2DTSVz6h4IEJgd3PdlbWzy8A/5EYAiu j+JiNMbx9iW6kkxc1mQg2hAACFvUKYD0RfB/1zP0Y40HWxj1xwE3SWGvwNSkdyaln32f mmxA== X-Gm-Message-State: AOJu0YyGfCU6OQWXkgwAD+nJa/vrs9HQJwwmA0LvjtKKYlytT343kwSv ZNjOoRw4CCSEM0k5QKWUrqrrUGXs2UQ= X-Google-Smtp-Source: AGHT+IGD7tMllt2J4AfLMkdE+aYeu00/Ci0X9HYfVAb+VjUhkfypq9v/gSEPE5Z/UMINE/m/8DxUQA== X-Received: by 2002:a05:6512:238b:b0:50e:4b1f:5ddb with SMTP id c11-20020a056512238b00b0050e4b1f5ddbmr494462lfv.16.1704975066532; Thu, 11 Jan 2024 04:11:06 -0800 (PST) Received: from pc638.lan (host-185-121-47-193.sydskane.nu. [185.121.47.193]) by smtp.gmail.com with ESMTPSA id w5-20020a19c505000000b0050ed63b0e4csm173854lfe.32.2024.01.11.04.11.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 04:11:06 -0800 (PST) From: "Uladzislau Rezki (Sony)" To: linux-mm@kvack.org, Andrew Morton Cc: LKML , Baoquan He , Lorenzo Stoakes , Christoph Hellwig , Matthew Wilcox , "Liam R . Howlett" , Dave Chinner , Uladzislau Rezki , Oleksiy Avramchenko , kernel test robot Subject: [PATCH 1/1] Fix a wrong value passed to __find_vmap_area() Date: Thu, 11 Jan 2024 13:11:04 +0100 Message-Id: <20240111121104.180993-1-urezki@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 9177840027 X-Stat-Signature: nuhixbqikxz9jwr7dj6qyhpdahez3quj X-Rspam-User: X-HE-Tag: 1704975068-990542 X-HE-Meta: U2FsdGVkX19vynBGucd7TPnpfZq5NUGuyyGHjZp0Tt4zKZgW9DrQKIKmXUnBoC4AD/tWKpu7RnshRNIREgeEz++ygHedy1YeQuAIxXmlsQ5EP+EoVrpIa3+seuB+OhEhw4CGppP/V0cZa7fr/3W9Jh+6ofT+Bb3CNUGDJGcHUkddBXsSr9PUkX6K5lGHaEfMHJg/bZiMyYO6shJuLpAPQshKEyfp0mzEixSsb3JdG41ngw7uztJ4he+MdI0t1x5KL36+to8gMT3urB1DlLLJES/dreAiIExMoDn7DhqTECxa/2moVtpaa47Sz/tfshfOTLxHPVD9heL19qv6YSomGq7faAgCxYCaAwkzAbEQ6LL+UpdMRrTC+DHdxgZnBza4UVaurSF0ssHJqtgLPR+Gz/DxGJ85I0IaDsj+6txZJg6XkcrK5SfXJg8v4fRvJaCFKKBvftwiIjbTSA+1YVfMmPT/AXLBO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n3cUvXBPhjP3XuxZvxzNwugMziiT 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: List-Subscribe: List-Unsubscribe: There was a type in the vmalloc_dump_obj() function. Instead of passing a real address which is "objp" an "addr" was used what is wrong and not initialized. Reported-by: kernel test robot Fixes: e88b85b81d5 ("mm: vmalloc: offload free_vmap_area_lock lock") Closes: https://lore.kernel.org/oe-kbuild-all/202401111810.TKPIXLCs-lkp@intel.com/ Signed-off-by: Uladzislau Rezki (Sony) Reported-by: kernel test robot Signed-off-by: Uladzislau Rezki (Sony) Reviewed-by: Lorenzo Stoakes --- mm/vmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index e30dabf68263..43a6608e1397 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -4688,7 +4688,7 @@ bool vmalloc_dump_obj(void *object) vn = addr_to_node((unsigned long)objp); if (spin_trylock(&vn->busy.lock)) { - va = __find_vmap_area(addr, &vn->busy.root); + va = __find_vmap_area((unsigned long)objp, &vn->busy.root); if (va && va->vm) { addr = (unsigned long)va->vm->addr;