Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61F6C1FB7 for ; Mon, 12 Jun 2023 08:52:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686559922; h=from:from: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YtD454umQTjuM+zhD06P7S/zUWAIA9FhEjJkQE48IGY=; b=iEfsFtSAYws+e5zpI0K5U36pA+yoHoAUwGqT23TFGercIPif/SnICewG0MuwBEp3wsG/4k NJH0QrxMPIKtZ9tgfBofwpfVRdqYxL/t85Ivq4NUc3Y+qYdRKRycwD/TUzH37L+eFG3q7l yV7mF1SwaZS/LyPA+GwP5i0PDWA7Dc8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-413-DA-5KvoAPQGbnsuGrZ220Q-1; Mon, 12 Jun 2023 04:51:51 -0400 X-MC-Unique: DA-5KvoAPQGbnsuGrZ220Q-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F09812A59568; Mon, 12 Jun 2023 08:51:50 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id B6A5D141511A; Mon, 12 Jun 2023 08:51:46 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <63868def-9a92-3b0f-4369-160a18b447ee@redhat.com> References: <63868def-9a92-3b0f-4369-160a18b447ee@redhat.com> <202306120931.a9606b88-oliver.sang@intel.com> To: David Hildenbrand Cc: dhowells@redhat.com, kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, Jens Axboe , Christoph Hellwig , Lorenzo Stoakes , Andrew Morton , Al Viro , Matthew Wilcox , Jan Kara , Jeff Layton , Jason Gunthorpe , Logan Gunthorpe , Hillf Danton , Christian Brauner , Linus Torvalds , Christoph Hellwig , linux-fsdevel@vger.kernel.org Subject: Re: [axboe-block:for-6.5/block] [block] 1ccf164ec8: WARNING:at_mm/gup.c:#try_get_folio Precedence: bulk X-Mailing-List: oe-lkp@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29271.1686559905.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Mon, 12 Jun 2023 09:51:45 +0100 Message-ID: <29272.1686559905@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 David Hildenbrand wrote: > > [ 121.992093][ T2220] WARNING: CPU: 6 PID: 2220 at mm/gup.c:76 try_get= _folio (mm/gup.c:76 (discriminator 1)) > = > I assume we have a refcount underflow (but could be an overflow?). Maybe= we > used unpin_user_page() on a page not pinned via pin_user_pages() ? Looking at the disassembly and the register dump, this would appear to be = the counter: > RAX: 00000000fffffc01 So my guess it's an underflow by 1 pin. David