Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp329524rdb; Fri, 5 Jan 2024 11:08:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLtToGe+JTVszrhfef6Gni38JSwOT+4modvuPm5x/+zyppoJdsXglrCpEHkiO9nsTbtREf X-Received: by 2002:a17:90a:4217:b0:28c:b83b:c66a with SMTP id o23-20020a17090a421700b0028cb83bc66amr2081243pjg.15.1704481727223; Fri, 05 Jan 2024 11:08:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704481727; cv=none; d=google.com; s=arc-20160816; b=oXdEGrnhiIiltPBM6D9TytI7dSpT3xsPRyP/5p3W7WAaxaWSFRAFu3B0DnIdRoTLMP Dk36g90JwShhI/TIFqsWlfOEqNM0+bMBxPttHwsDsrgMwMoxgGQv0/FeeCxKw9IG5JkC P10wmYZU+/yA3BOY2LPL4uBrjSsT4fjUDjxA1kYo73wJT8oMFNcjMDY2ZtsWctCZVqya ZtSLqBS2AUXbKfc87MhyVIquznvWPUa9emCm+jTKhEvLXH9pN5qkTUgXRS7gq38xCwQD ifKXuo4ZbenJIE2zZjCbqjDa8h71KMbvJJOCJ23ttP9cVo3m9Rr8+/wGbZlO7LuLZS2F h6pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id; bh=ApK9GFY7cWK+L0Iq2IC83BGA/zOcMSLR0YdUKXjXPck=; fh=hIAMMEK3L4tiN+24Pst+q7pZBhx8lEfELmuhF7c5xFg=; b=mK70c6GEG9Pv1mBjU7MVSdBcOTwjilgR+JIbttJls7ULv9ZwMmbX7b1H5BOACMFIBT lQmWsZmJ9oqCQpPuv/v/xKOMP0R11g2UmFx4P/8VzUcnSITaDngJBBFayU4c2cpSzX97 Kg7BfNSqVX9J2wpW2tvhC11plfq9n6lwW0acmgKLWUaiTOg/GxWQj9FNEuYIXY6hVxVe 5IlCJ8CQreKv2bTBNLVlVosTtzHapDbm9zIMTC28XevRjMx5OXT2I2xkeMSBkcaWbIQF +E77OKsetKRCvrp6+q9BPnHgyFqn/UlW6E4IUrjrAyOpW0wAUJBlRbamQE5uE/ydlTHL REjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-18287-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18287-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j19-20020a17090ae61300b0028c7f8b11a6si1252447pjy.26.2024.01.05.11.08.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 11:08:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18287-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-18287-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18287-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id ED591B21792 for ; Fri, 5 Jan 2024 19:08:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97CBF35EFD; Fri, 5 Jan 2024 19:08:34 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (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 85A3F35EF1; Fri, 5 Jan 2024 19:08:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=surriel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=shelob.surriel.com Received: from imladris.home.surriel.com ([10.0.13.28] helo=imladris.surriel.com) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rLpRC-0000a3-2o; Fri, 05 Jan 2024 14:00:58 -0500 Message-ID: Subject: Re: [PATCH 0/1] selftest/mm/hugetlb: SIGBUS on stolen page From: Rik van Riel To: Andrew Morton , Breno Leitao Cc: linux-mm@kvack.org, vegard.nossum@oracle.com, rppt@kernel.org, songmuchun@bytedance.com, shy828301@gmail.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 05 Jan 2024 14:00:58 -0500 In-Reply-To: <20240105084238.306269c3f3a63cb0fd130baa@linux-foundation.org> References: <20240105155419.1939484-1-leitao@debian.org> <20240105084238.306269c3f3a63cb0fd130baa@linux-foundation.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Sender: riel@surriel.com On Fri, 2024-01-05 at 08:42 -0800, Andrew Morton wrote: > On Fri,=C2=A0 5 Jan 2024 07:54:18 -0800 Breno Leitao > wrote: >=20 > > This test case triggers a race between madvise(MADV_DONTNEED) and > > mmap() in a single huge page, which got stolen (while reserved). > >=20 > > Once the only page is stolen, the memory previously mmaped (and > > madvise(MADV_DONTNEED) got a SIGBUS when accessed. > >=20 > > I am not adding this test to the un_vmtests.sh scripts, since this > > test > > fails at upstream. >=20 > Oh.=C2=A0 Is a fix for this in the pipeline?=C2=A0 If so, I assume that o= nce > the > fix is merged, we enable this test in run_vmtests? >=20 I've got some ideas on how to fix it, and hope to get a fix to you and Mike by next week. I'll ask Mike if I run into any unexpected complications. --=20 All Rights Reversed.