Received: from canpmsgout04.his.huawei.com (canpmsgout04.his.huawei.com [113.46.200.219]) (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 E93C7368D7C for ; Fri, 21 Aug 2026 03:10:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=113.46.200.219 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787281849; cv=none; b=HDPDl7bJEKN+qvwOFSnxM1aPpj+LYa019HT5ncDKOzuKSPyPaRba7WyuUe3uN22faIbfQ3y36tGnM1Ixu1H8/4o9cSESxrJQ2kFKlmgKQmY5WKbQBw17Kw1GQqjSqPd+ki6b6ufScNU4wE09DTMm37kWsT9aIc5uLcO2lm/AUzA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787281849; c=relaxed/simple; bh=BX/xj/+c4XZzTwLeTy8tqXcqlIdOP2aWeIwzh7ntkbs=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=WtVEONjQnLAfua0aUDKJkWXvCz/qDGykSmm/Dg0tXtaknb1n2tzLaSvwEbGOwAi5N2CMMWb8FsIFDwovcdJZur5vB4G7jYhPzh78/XwwM4yewuwzsnc2lJfzpcdfQ2vgP2EupyLCqI0RZpqag/YqA39PTd7de36PU36VyrcYsQA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=oAEBqRaX; arc=none smtp.client-ip=113.46.200.219 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="oAEBqRaX" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=8yDcFR+JRwUAhHUbxEslRG4ozUpYc7mICckRXd+YGaE=; b=oAEBqRaXGTzh2urxagPrdacna/rgkvtCBxJ37E5f1pOYSkxOwjdt0kkdW402ehzjeXxN72N7w xuU3oiQ004ruk0ljZF/C3Yjgr/VKit1fCoHBvhggTGCTa+rUNkzGo5M8WQH6X9oC0gDZ0I+MKOb SLxaxIUD+emKPHnNvrcLmA4= Received: from mail.maildlp.com (unknown [172.19.162.144]) by canpmsgout04.his.huawei.com (SkyGuard) with ESMTPS id 4hR4m33YB0z1prLg; Fri, 21 Aug 2026 10:59:47 +0800 (CST) Received: from kwepemo200010.china.huawei.com (unknown [7.202.195.178]) by mail.maildlp.com (Postfix) with ESMTPS id D3EC24056D; Fri, 21 Aug 2026 11:10:31 +0800 (CST) Received: from huawei.com (10.44.142.85) by kwepemo200010.china.huawei.com (7.202.195.178) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45; Fri, 21 Aug 2026 11:10:31 +0800 From: Qi Xi To: Andrew Morton , Vlastimil Babka CC: Suren Baghdasaryan , Michal Hocko , Brendan Jackman , Johannes Weiner , Zi Yan , , , , , Subject: [PATCH v2 0/2] mm/page_isolation: fix UBSAN shift-out-of-bounds in isolate_single_pageblock Date: Fri, 21 Aug 2026 10:54:59 +0800 Message-ID: <20260821025501.2752563-1-xiqi2@huawei.com> X-Mailer: git-send-email 2.33.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: kwepems200002.china.huawei.com (7.221.188.68) To kwepemo200010.china.huawei.com (7.202.195.178) Patch 1 fixes a UBSAN shift-out-of-bounds warning in the PageBuddy branch of isolate_single_pageblock() triggered by concurrent buddy allocation. Patch 2 addresses the same class of issue in the PageCompound branch, where racy compound_order() and compound_head() reads could lead to out-of-range shifts or incorrect page skipping. Changes since v1: - Patch 1: drop VM_WARN_ON_ONCE, bail out with -EBUSY instead - Patch 2: new patch addressing PageCompound branch race Qi Xi (2): mm/page_isolation: fix UBSAN shift-out-of-bounds warning mm/page_isolation: guard compound_order() against racing mm/page_isolation.c | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) -- 2.33.0