Received: by 2002:a05:7208:c250:b0:86:f851:443 with SMTP id w16csp937864rbd; Thu, 13 Jun 2024 01:44:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNZ/1RT+TeVNyYEUn33YtdchV8EqA++cvrniB08jzrfKq5HIAWfa/3SbqQMdgb/DFoJppN0BhQ8hsX96HdxYefXVHRu6r8r6uXlPIh3A== X-Google-Smtp-Source: AGHT+IGFE5poHj0mvYF/J8JXnqAmQLQg+65iSFZElFQm2yF7/9bkM2uIVsKMk09A4urbqYwK9nv+ X-Received: by 2002:a05:6214:3da0:b0:6b0:80f3:887c with SMTP id 6a1803df08f44-6b191d47a0fmr46916936d6.20.1718268272339; Thu, 13 Jun 2024 01:44:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718268272; cv=pass; d=google.com; s=arc-20160816; b=FJeqXrplHvF9FIvkcAGtPP17x6soV0GwwW9eBs6zR5cOZov+wN7smaBffKcwpA6Afz Yzp5Imk9StIeId55FWQvgmAZejitmVT1TpKZ86IcGTSI+USQbpKRkzH86jjhC4+QSksW ociT1E5qO5EDdRXvhvX4ojxSbJlfH8OV/xkGehmRvK3uhY1bHXJwH4bz7QheHGP0fPC2 1B7G7TPT+whExX1RZE97VqnusS7HIpWugy2ZBfInNAvZRfbzmNmkLSZca8npM2quPUq4 qTMlTXua3YLQw75EOjJvhlaGOS85agWTlfkxNqrqVZYAmYsNDTMVTiOyeCzVROKPxrUh X9Xg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vWc82pHy204AzEDhPBKEPpo04KnSaVs2ShuVlzL9t+0=; fh=besyGd/6z4JAH8oyG4EhmIEPGojuJBME3jAcHet8ntY=; b=TmnSXFOveSXu/4JkxZmW7i96bqRhA4SDio/n/6HgX/2E6Dg/0oHRqbXnZEv3wAV/rq jUtPR50lpAAlTdKlIoY9vFVpardnygIpgR+Uov8t1O9co3gl9B7of1EV2tll4p/f40q9 bmMwKnIQOsu6/U5efeEx1CbGDEg1mpVjjxRvYX/9clhCOM9LshQWrP5Obo/0LKRmnvLu JnFdVFwj367MiCs4tLt7aocRFWQAerV+yRJnLWz33XtqOCvxDIYEpbcqZEbw+D9v5Juh bAUpsYcpme8BVofcXOufuYTPYJvknmpzK71VE06Jtj2tus6RWkM7SxF96DGlpO0H2PBs jn/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MV5pg5ma; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-212856-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5a15260si10065626d6.41.2024.06.13.01.44.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 01:44:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212856-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MV5pg5ma; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-212856-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AAEAB1C20959 for ; Thu, 13 Jun 2024 08:44:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83EE21411CC; Thu, 13 Jun 2024 08:41:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="MV5pg5ma" 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 5039513DB99 for ; Thu, 13 Jun 2024 08:41:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718268118; cv=none; b=XQArRT+uOkulizqIYMVYaHoi1rF/qfpbqMJNoUmKKkStL+O5YsVCuHwxPwEylWrpjO8KrajhNz7iq7m4kJpO99uu/HpSbsWq2yD7qR5K0QTXWnHhkI8CZbLhI+4xmtUYRva975r1TI1TPSnOtzlaPd034DycIBlnC8aGZAum/Uo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718268118; c=relaxed/simple; bh=90BPhjxVzkALdKOSEosBfGN4SwwLRfPVDP2EOAxkwVY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rdq4+kq7SAIRxzMRnGxBeg3x/ZqfyzwxJdlo4T/58QKGbyKK14kHUoi3qsLZxyJoqvjsLmHtE+YzxCqOUxmQlnJGy30VxaYvbnou/bFZYXN0vypdiYNQN0Zm9I8nUlvyeJ1F2vGqard2u2UU8iWAP+1xRnoo1qgut4PNAg/8Ysw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=MV5pg5ma; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718268116; 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=vWc82pHy204AzEDhPBKEPpo04KnSaVs2ShuVlzL9t+0=; b=MV5pg5maCruNKdMUNqjkbXIgt283mGhR/hHCxtVegjNYgzfopHnzMkLgAk9PNVmApY0ekS ckaOR3EQKEVTqtULo5LJe4Jokyy44ZXXaNor+uy0Fpo3fknNnQJKYMUySYe+lB25XYNkQB nqSl4Sx9G054cX50KusChqW7zgcxZhM= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-481-bY8pvBWrOYGbtQ7EkwnCKA-1; Thu, 13 Jun 2024 04:41:44 -0400 X-MC-Unique: bY8pvBWrOYGbtQ7EkwnCKA-1 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A5B8C19560AF; Thu, 13 Jun 2024 08:41:41 +0000 (UTC) Received: from localhost (unknown [10.72.112.37]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C3E6E3000219; Thu, 13 Jun 2024 08:41:39 +0000 (UTC) Date: Thu, 13 Jun 2024 16:41:34 +0800 From: Baoquan He To: Uladzislau Rezki Cc: Zhaoyang Huang , "zhaoyang.huang" , Andrew Morton , Christoph Hellwig , Lorenzo Stoakes , Thomas Gleixner , hailong liu , linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, steve.kang@unisoc.com Subject: Re: [Resend PATCHv4 1/1] mm: fix incorrect vbq reference in purge_fragmented_block Message-ID: References: <20240607023116.1720640-1-zhaoyang.huang@unisoc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 On 06/12/24 at 01:27pm, Uladzislau Rezki wrote: > On Wed, Jun 12, 2024 at 10:00:14AM +0800, Zhaoyang Huang wrote: > > On Wed, Jun 12, 2024 at 2:16 AM Uladzislau Rezki wrote: > > > > > > > > > > > Sorry to bother you again. Are there any other comments or new patch > > > > on this which block some test cases of ANDROID that only accept ACKed > > > > one on its tree. > > > > > > > I have just returned from vacation. Give me some time to review your > > > patch. Meanwhile, do you have a reproducer? So i would like to see how > > > i can trigger an issue that is in question. > > This bug arises from an system wide android test which has been > > reported by many vendors. Keep mount/unmount an erofs partition is > > supposed to be a simple reproducer. IMO, the logic defect is obvious > > enough to be found by code review. > > > Baoquan, any objection about this v4? > > Your proposal about inserting a new vmap-block based on it belongs > to, i.e. not per-this-cpu, should fix an issue. The problem is that > such way does __not__ pre-load a current CPU what is not good. With my understand, when we start handling to insert vb to vbq->xa and vbq->free, the vmap_area allocation has been done, it doesn't impact the CPU preloading when adding it into which CPU's vbq->free, does it? Not sure if I miss anything about the CPU preloading.