From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 826C63DD873 for ; Wed, 8 Jul 2026 22:22:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783549341; cv=none; b=Ctkl9GYp7NPCSN/qbZxqBNTABXWawqRyGZ97v0ZJD9qWSJ4cAPOz7+284ore4+cOSCGKcQPGCjY1WzhQIVpjJYKiOEMazgdP/A587H99CW0ZJ5EfXUaQecV0Http8Cq36QXNetYF7MR7BgBWPX6QWsqHg9JqZQHM7VURgXYS8SU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783549341; c=relaxed/simple; bh=kB2vyd29/wFkOJxb5hRcwtTn9qeEKRW33ZRyUqco3QM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=evJgFsfuAA8CEZVrBNdf8HLKeBvevSudTu9tsl//ZYaW9Bpk2umOZhDYfAHHBmSPWVwdq3U4JwxN9q8erMXdL3gzofg8r10SIdkqHY3bEH/u3d+3ubbQrVaXWfqW0Cz9la2TLh4+QEztDc2liOTLEwUrf1QEEmMEs9z3ydq3p+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--ackerleytng.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=e6L2RIgo; arc=none smtp.client-ip=209.85.214.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--ackerleytng.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="e6L2RIgo" Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-2cceabd70f5so25820385ad.1 for ; Wed, 08 Jul 2026 15:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1783549339; x=1784154139; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=YfstwW5fdgPHEqzlTVyIef12ZG3uZSmm4XPE4cEuyck=; b=e6L2RIgoTh8mnqCkHnP0+ZK71peQgkP8YNh/WlR+ATBMGq6DZ8o96A9K2C2aL0IlnA Z/T7Qf/3GkJHArJA0iSatCqK2d4oOrHfqItHodozNjkcfcUICLwcGPxbc6oDzW8CMp8O FNEoaSWBw00ePuwW9EGxvXmY3DVx2xnoPSYH9nE2w9hIKeafSVvE+zUaCPRxQkJBjTDI aqzY/k/auYgCxoTbbtbsXz4K2qhtqSiyruVlZ7I2LSZXAolfFDdi+6Od5as39CciPQfy Z85lym3TePLfE+Qj5oqmibLHLw1rdfSrqxqK87xS88J+4X4/7gbvMfA52O8JBKJliwzm Ny0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783549339; x=1784154139; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=YfstwW5fdgPHEqzlTVyIef12ZG3uZSmm4XPE4cEuyck=; b=T3KJQtcpQ4u6uRSK/K+gScU4ROAeMqhg8+BFsl/+YzDobXQKHiW1RU6tjs7HPDg9bn pa7eBmthtQvOahxx2JlDlDCy23QS0SYPKeu3WEX1S+HCRijipbTz74mHognNAH7aVUvE sKOYw3BHC5/mSXZnOaNdrRxW7nvVQ7L0tpT82/0P4vA18GuVx4TIqLGS2Gvxyz7J8JX3 cALRV/lherYimaYMSd09ougbF0OA8YmsSjxFvoJt7Z1JU8TbVLeAJE5yzvlD5t+FHDj/ EX1Q8PKHyfTdV9OAnG2HEQNA8NCKTZNH4UuOmt2mTq7AxKcMGmw7i/SClv/3pFq6g4Sb 3OwA== X-Forwarded-Encrypted: i=1; AHgh+RpWgPchc5z9njj5k6dEUFsBQvSUa19CZqqcppcqpYKSKFcYrwQCifUGAeTho02qLuQpOtDE5txbb6z9y3Y=@vger.kernel.org X-Gm-Message-State: AOJu0YyKDoCnKtYTq8EeQMTagNqFH5YbT+5WSLGMciaVIwmBY3PgCsMn eEPFdWnomfvlPSJR1wdkYsvYhy9RqfQRHUt3bJSgc3S6vzJANaDZxZw0F7lUCQ6N1ipliRbnha4 SOeiJHl8Lqb3J+CTURH3pM+Qj2Q== X-Received: from plbkm4.prod.google.com ([2002:a17:903:27c4:b0:2cc:e88e:4245]) (user=ackerleytng job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:2306:b0:2ca:ca48:c380 with SMTP id d9443c01a7336-2ccea3a7a6cmr42757595ad.47.1783549338708; Wed, 08 Jul 2026 15:22:18 -0700 (PDT) Date: Wed, 8 Jul 2026 15:22:10 -0700 In-Reply-To: <20260708-hugetlb-alloc-failure-fixes-v2-0-c7f27cbb462b@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260708-hugetlb-alloc-failure-fixes-v2-0-c7f27cbb462b@google.com> X-Mailer: git-send-email 2.55.0.795.g602f6c329a-goog Message-ID: Subject: [POC PATCH 0/3] Reproducers for hugetlb allocation failure issues From: Ackerley Tng To: devnull+ackerleytng.google.com@kernel.org Cc: ackerleytng@google.com, akpm@linux-foundation.org, david@kernel.org, erdemaktas@google.com, fvdl@google.com, joshua.hahnjy@gmail.com, jthoughton@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mawupeng1@huawei.com, muchun.song@linux.dev, nphamcs@gmail.com, osalvador@suse.de, peterx@redhat.com, rientjes@google.com, shakeel.butt@linux.dev, stable@vger.kernel.org, vannapurve@google.com Content-Type: text/plain; charset="UTF-8" Please see separate patches for details! Ackerley Tng (3): Reproducer for false restoration on shared HugeTLB mappings Reproducer for subpool usage leak Reproducer for allocation failure due to cgroup v2 memory limits cgroup_v2_allocation_failure.c | 160 +++++++++++++++++++++++++++++++++ subpool_leak_max_size.sh | 71 +++++++++++++++ subpool_shared_leak.c | 29 ++++++ subpool_shared_leak.sh | 86 ++++++++++++++++++ 4 files changed, 346 insertions(+) create mode 100644 cgroup_v2_allocation_failure.c create mode 100755 subpool_leak_max_size.sh create mode 100644 subpool_shared_leak.c create mode 100755 subpool_shared_leak.sh -- 2.55.0.795.g602f6c329a-goog