Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp474574pxy; Wed, 5 May 2021 06:47:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySko6Ayd2hEQ8LvWWQWE6bS7SgeOsDq4Yum707YGoueomS3aHE0SIE+JGCv5Ic/CzSHGBX X-Received: by 2002:aa7:8a56:0:b029:27d:957f:5993 with SMTP id n22-20020aa78a560000b029027d957f5993mr28239879pfa.27.1620222467079; Wed, 05 May 2021 06:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620222467; cv=none; d=google.com; s=arc-20160816; b=WTZahHEqsIILLZvXLAMImjSH7/ydBE7APz4rDIEVwzAV3tWfhPRqiku1hPijXES6gv FD3RfMAghaFBfrxNxmJB4lCtFZEE0d7KCB1Lub0y2fB1mMLQDSX7Vf06dsHaCl6mL7mx pSSXuiHROoRfozIYeT2RUTmI9jriqbJY+Nf+EWvGSQVNj5rbqG5xLuheecAv6k0bd6J4 l5xkqBZHIiAjyRU71up1PfsTIpYmTjV0XuSTnb/rh+6SUVFDP19r8Wh1Y8My6HgNwmxF 8XgFWLHPa70Q0r1JUZP4IFN8jVn98QHdoleKvnUHkpew+ywGo2QioLJ3uelb5o5Q8UGC Ptpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Zmxur1kgzuevsre8s/5Lx5vP8+P1yeG3cdZsfEJFfbI=; b=D97KlSB5ib/jG6MoTm7Xx/oo65VWcWk/iw5ct1UQKzt4kzCAnODXiitcSbQRR4uaYQ UDoNCw3aq2i1SB4T80a9BL18N1PFmgcfzCvZrtcX3W1r4y6P02PRvjMP6bTmdCR3TzPQ EzGFTpGg1goqqvk+Jk3vGGYEqsKcqLqFxLdWHCOKGPwOmllsbVk3PY34AKVgMavewsun jv0ZYKsPYxnZPQJJKf5a0EWJv7UNw6f3Bt3Rol1QMl3gZjlGyhSMKHEHAYUyMzNlvezG AnqmUhalHeJ9BxJfVvC+7t4Wng2gYiY7BYRrh0qfYOnYSzE1eMfjtdV2pBj+4WhnADbB 1BXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=e9SF9Kiz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o36si2895191pgl.169.2021.05.05.06.47.32; Wed, 05 May 2021 06:47:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=e9SF9Kiz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232847AbhEENqs (ORCPT + 99 others); Wed, 5 May 2021 09:46:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:39340 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231783AbhEENqr (ORCPT ); Wed, 5 May 2021 09:46:47 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1620222350; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Zmxur1kgzuevsre8s/5Lx5vP8+P1yeG3cdZsfEJFfbI=; b=e9SF9KizJ6skQ3SZqBMxV9jRhsS9xJskcYraE7q5zDy20XZbIx9mgQGPLYTnnz6IkdnBFE mbwJODkGnxRAELnkaaE6ybeyPhOe/alOTs9q6Hv5usMLRcwnF3mSOyJPWwavA6eL2vXm3P syN4KPLO/yREBYmukxjyUUZFSWkQ8hY= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 3B76EADB3; Wed, 5 May 2021 13:45:50 +0000 (UTC) Date: Wed, 5 May 2021 15:45:47 +0200 From: Michal Hocko To: David Hildenbrand Cc: Andrew Morton , linux-kernel@vger.kernel.org, "Michael S. Tsirkin" , Jason Wang , Alexey Dobriyan , Mike Rapoport , "Matthew Wilcox (Oracle)" , Oscar Salvador , Roman Gushchin , Alex Shi , Steven Price , Mike Kravetz , Aili Yao , Jiri Bohac , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Naoya Horiguchi , linux-hyperv@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v1 3/7] mm: rename and move page_is_poisoned() Message-ID: References: <20210429122519.15183-1-david@redhat.com> <20210429122519.15183-4-david@redhat.com> <0710d8d5-2608-aeed-10c7-50a272604d97@redhat.com> <57ac524c-b49a-99ec-c1e4-ef5027bfb61b@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57ac524c-b49a-99ec-c1e4-ef5027bfb61b@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 05-05-21 15:39:08, David Hildenbrand wrote: > > > Long story short, this should be good enough for the cases we actually can > > > handle? What am I missing? > > > > I am not sure I follow. My point is that I fail to see any added value > > of the check as it doesn't prevent the race (it fundamentally cannot as > > the page can be poisoned at any time) but the failure path doesn't > > put_page which is incorrect even for hwpoison pages. > > Oh, I think you are right. If we have a page and return NULL we would leak a > reference. > > Actually, we discussed in that thread handling this entirely differently, > which resulted in a v7 [1]; however Andrew moved forward with this > (outdated?) patch, maybe that was just a mistake? > > Yes, I agree we should revert that patch for now. OK, Let me send the revert to Andrew. -- Michal Hocko SUSE Labs