From mboxrd@z Thu Jan 1 00:00:00 1970 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 06C31C46467 for ; Mon, 16 Jan 2023 15:06:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F1F726B0071; Mon, 16 Jan 2023 10:06:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id ECF716B0073; Mon, 16 Jan 2023 10:06:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DC90B6B0071; Mon, 16 Jan 2023 10:06:00 -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 CDD0B6B0071 for ; Mon, 16 Jan 2023 10:06:00 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 9431EC0532 for ; Mon, 16 Jan 2023 15:06:00 +0000 (UTC) X-FDA: 80360987280.07.B7CB3D0 Received: from mail.astralinux.ru (mail.astralinux.ru [217.74.38.119]) by imf09.hostedemail.com (Postfix) with ESMTP id 38230140026 for ; Mon, 16 Jan 2023 15:05:56 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf09.hostedemail.com: domain of eesina@astralinux.ru designates 217.74.38.119 as permitted sender) smtp.mailfrom=eesina@astralinux.ru ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673881557; 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:in-reply-to:references:references; bh=fJ7xQ1NWii3xg114aUR4iGq6kLBqXTeINl8Q2qcpqME=; b=toygFmpRIAvYOCwWUCHYR0GObYEs2WEOW5FInw4aJ+a3/50O7DG7NVydHTupGWCBkOTHIK AdJWH/gL5hPKftfhfW02XTgq+x7VP1GBW1bVbDyKoDTegpV4DO+7Z76/iw5dmmqH/bj/sw 3zy/VWKcQ9LkDjQ2oEOvDFeeZ74CtRQ= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf09.hostedemail.com: domain of eesina@astralinux.ru designates 217.74.38.119 as permitted sender) smtp.mailfrom=eesina@astralinux.ru ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673881557; a=rsa-sha256; cv=none; b=m8tVzcWggFw0VOy0kswmSH0m8HBtavzfjCLIPvyaqewxz4YnShTk/R6fWpkJ4jQ24FEFHz bDYXziXLTN8DBIfoCXg/5GRpwzhQ8EwuFePsmPOCoxYcZqfL/OjVJ/RaGkKwfn8FSKwPWp MyaEycA8BkwCcgSu48yorJ0CZehQWLs= Received: from localhost (localhost [127.0.0.1]) by mail.astralinux.ru (Postfix) with ESMTP id F1D9B1863E02; Mon, 16 Jan 2023 18:05:54 +0300 (MSK) Received: from mail.astralinux.ru ([127.0.0.1]) by localhost (rbta-msk-vsrv-mail01.astralinux.ru [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id l0-9HvllBM7q; Mon, 16 Jan 2023 18:05:54 +0300 (MSK) Received: from localhost (localhost [127.0.0.1]) by mail.astralinux.ru (Postfix) with ESMTP id A2B1B1863E01; Mon, 16 Jan 2023 18:05:54 +0300 (MSK) X-Virus-Scanned: amavisd-new at astralinux.ru Received: from mail.astralinux.ru ([127.0.0.1]) by localhost (rbta-msk-vsrv-mail01.astralinux.ru [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id lh5b8-Mavo3o; Mon, 16 Jan 2023 18:05:54 +0300 (MSK) Received: from rbta-msk-vsrv-mail01.astralinux.ru (localhost [127.0.0.1]) by mail.astralinux.ru (Postfix) with ESMTP id 54A881863DFB; Mon, 16 Jan 2023 18:05:54 +0300 (MSK) Date: Mon, 16 Jan 2023 18:05:54 +0300 (MSK) From: =?utf-8?B?0JXQutCw0YLQtdGA0LjQvdCwINCV0YHQuNC90LA=?= To: David Hildenbrand , Mike Kravetz Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Message-ID: <1924103442.374180262.1673881554248.JavaMail.zimbra@astralinux.ru> In-Reply-To: <6f5ac7ee-0af3-a466-cf7f-b17270bc1391@redhat.com> References: <20230116100520.71277-1-eesina@astralinux.ru> <6f5ac7ee-0af3-a466-cf7f-b17270bc1391@redhat.com> Subject: Re: [PATCH mm] mm: hugetlb: Add checks for NULL for vma returned from find_vma. find_vma may return NULL, that's why its return value is usually checked for NULL. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_b4dbfb30-d9ad-4146-ac07-253b818f9868" X-Originating-IP: [10.177.177.35] X-Mailer: Zimbra 9.0.0_GA_4258 (ZimbraXWebClient - yandexbrowser22 (Linux)/9.0.0_GA_4258) Thread-Topic: hugetlb: Add checks for NULL for vma returned from find_vma. find_vma may return NULL, that's why its return value is usually checked for NULL. Thread-Index: C8NzRIyr3/H6lczSN/Hp5XROHIYwig== X-Rspamd-Queue-Id: 38230140026 X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: rsweagupia11koa6xfxti34gqqkzjh68 X-HE-Tag: 1673881556-27248 X-HE-Meta: U2FsdGVkX18aDuPg66sdJ+kFM2WJ6asBwTsLUYgwEEQgM8rFMJScaZ3k/LLO/VAlU/gZr/CF37dy4l8YqjxgpCB3au3oTmlMlINY/FT6bU9DKXkcG1oCDYHzA1vbRwA1aWt98HrrasJp1RRfW7XIFu0ENCAtx4wMM1Cno6NXE1v058WAhBDwlP1ajf4HcdBJQ0xCyvKWC+a1pUYm/CxmW/1yj930g3F2Q5PPQZE91mD2X/2uBw6TfSPlivLvU/oc0prcXWVa+odgjidwrO1qNMUKJS+KOxuvAdcHgHSru/r0TeU55ep4mTsDi2GOHpNd2Z9Bn6FvJMieaT/RkNQSHIGsdtzRk7vMGRwLMMLiWzb5frz3H0xNIOgD97hI+Y48XVaKTRwQERfjL2OAfCoidkvHpl7+BL+7L6C02abdgC3p0kK1kOtJBg2CG3cKJKEAjxGjd5wtqqkD+BLe68n1B+L7t7Mlbq1jJTNQBsSextu/cXpkJ96TYNjQQEALdaN4FhqHq/PvEvZBARI7VkERx/7u5SvYtcW0an4PVL6dZAnkq+OZBZbyjCS/zW+ybZuwmHa/tQeOLqgMTb3AF0N+UT5GHwrf+Rnqhfdb+w3thYhxj72xJEqjHeAGiBuRBLF00A7OTWFrJFpOkud1vvsGzjwPN5u/cpVQE7adPkb933MBS9mUgN2Gl/3WzaDU4NtdLcZ/yw7qwXEei8eIgM0Gg5LUbdmxdftnkqAEe8UD1Rz76P5N8tE1SC75N53mpDeP3MNO7OpvJah07aCv8lhFL6bIIbKWCD7ShU0quZM8fa6Ejr6lOrozEAflxD9BiSVvfZAKinM2VhxYONgiPgN1Xo52gJjOreFxgJzxVNMNaro38XV7D1NLVXhn2wuCDnYU+PN4U3nvcNC1M+Q2U25ONApK22o7yJfOuxIIXWgkoQ0zj5c+hrVPDRbMoZTjUqWfXQ2pZ/UetOi0HaPuqIh xI71voKF S3Oie X-Bogosity: Ham, tests=bogofilter, spamicity=0.172636, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: --=_b4dbfb30-d9ad-4146-ac07-253b818f9868 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =20 =20 -----Original Message----- From: David To: Esina ; Mike Cc: Andrew ; linux-mm ; linu= x-kernel ; lvc-project Date: Monday, 16 January 2023 4:24 PM MSK Subject: Re: [PATCH mm] mm: hugetlb: Add checks for NULL for vma returned f= rom find_vma. find_vma may return NULL, that's why its return value is usua= lly checked for NULL. On 16.01.23 11:05, Esina Ekaterina wrote:=20 > Found by Astra Linux on behalf of Linux Verification Center=20 > (linuxtesting.org) with SVACE.=20 Please trim the subject and move details to the description.=20 What are the symptoms? How exactly does this BUG manifest? What is this=20 patch fixing?=20 --=20 Thanks,=20 David / dhildenb =C2=A0 =20 --=_b4dbfb30-d9ad-4146-ac07-253b818f9868 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

From: David= <david@redhat.com>
To: Esina <eesina@astralin= ux.ru>; Mike <mike.kravetz@oracle.com>
Cc: And= rew <akpm@linux-foundation.org>; linux-mm <linux-mm@kvack.org>;= linux-kernel <linux-kernel@vger.kernel.org>; lvc-project <lvc-pro= ject@linuxtesting.org>
Date: Monday, 16 January 2023= 4:24 PM MSK
Subject: Re: [PATCH mm] mm: hugetlb: Add c= hecks for NULL for vma returned from find_vma. find_vma may return NULL, th= at's why its return value is usually checked for NULL.

On 16.01.23 1= 1:05, Esina Ekaterina wrote:
> Found by Astra Linux on behalf of Lin= ux Verification Center
> (linuxtesting.org) with SVACE.

Plea= se trim the subject and move details to the description.

What are t= he symptoms? How exactly does this BUG manifest? What is this
patch fix= ing?


--
Thanks,

David / dhildenb
 
--=_b4dbfb30-d9ad-4146-ac07-253b818f9868--