From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) (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 AAFE0171B1 for ; Sun, 23 Aug 2026 12:51:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787489519; cv=none; b=TmtDtDwNqCI85raR5n6GiOpADrRmjF6w11pG3pazFgpoa2IDUBoBe3dd1bUwlHCexzXzXVQdC4fj2lnI8isEtSB2nRaFYxhRmRQQ2cJVOL9F0ROq8tluZhNqCKfR5Ka2ZNZvn0hzqB0m0IZrPySZR24kDhMRXPr2zzhtNwERQNQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787489519; c=relaxed/simple; bh=FTRqOkygcn3J/oKizNJnzSGlJOFzS6x0HhrPm4JyFkc=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=i93zWdS1Uz26eR78RF4U3ChqPk4K8grozyKOLBuh1+5OMtGtnCf1aSzJujdPX5tlDMWHNg3+FcsZ6ADeJFW4DNOiEPr6dH8szVooTNUENPkDpQV4g4B6rXKQzOZvfVqs4UVeUxhMgUzOm78dvl4x/TyRqqrHlYAyEp9SmrpM858= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--morbo.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=hHxIeWL4; arc=none smtp.client-ip=209.85.215.199 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--morbo.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="hHxIeWL4" Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-cbb20f82a0eso1802615a12.0 for ; Sun, 23 Aug 2026 05:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1787489518; x=1788094318; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=dnbwvJStKdIKNybLdNQczrDRmP/eeSxzgiHPZVOYyWk=; b=hHxIeWL4uHcslcgNf4kvlhF3CClYhfYAp5S6jXuM/4bn5OAvFzz6P88x1rG7RA1luS VFsVeO0L8ZC2zXePdk60nv7DOnE2e6Ocheh+PePEgSo0aNAyGIHmcqLfr3LBhPZQnBIv LE9KbwFegKFHzTjJCmga7faL5Blw6ZsSd1CIPakeW47fg9kmPmwQ9kiK27NRHUDtTLmX Zw2OZSvmMEXyfaST5Y/mJOaVQ37PFDA75GBQFEREHvYrsX/GgS+srulRkXtoja/7g3aX tUFPHyXnTBMOAa3hc2Z6rSWB8pL0gRxMOAVcIY/aGHmJbHt62tO0iZlZW3kJVkWzX4IN hwng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787489518; x=1788094318; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=dnbwvJStKdIKNybLdNQczrDRmP/eeSxzgiHPZVOYyWk=; b=hdOGLUzSPTy4MYTtIYimfnX3Uvo83bAzgeh+VvDBoYAW1+zrtcE6SSWDM+1KU8d+xa TTYo1c1pjDCbmYnuvuZgjsP1FGk/y8zqppL6ldwnZrZ5rgLvRcaQkl3RIkZTRTJKAnfL Cpe3pmuaRUZzKFoU+mYzuOB0v8bOCuepX91zTxDW+SDrPzl+E/7aOFG4EWS2TT0hMwjJ fe0h8v2HOqjedq74TWb7XqIsLa8wK2qHP+iYSHRhYNlco1NA/nBNOqHaoqToEwyr/Dfz 8SiWU4dsmZSG2REQ5NUmaBOKdO1tNDwpomUiFZaf7aT8N4GnIEqV9sHgjZVCblE6RB/9 um1w== X-Gm-Message-State: AFuF++kst+LKYX7LLtimqipDSz9qXrQGdXFMHX05WhJS/10gTTzGjSJY zx+IyArVGKFNUwYSzTXwdpGnfmVmHkEQhyk7+H1K9f4mPyVyH7+qx+MK0VCuMFjgpfw7IJA1wSP /BKCD6pudo9YYpunfudlwHy38Zev/oTq3SouB41/Iy+w4T94/aK2Bi5v0vMk4tLdo8z+g604yB1 l26gH1EaTAA8kfeMecprNs02qDWaKmBmkppVuY6g== X-Received: from pgbdm4.prod.google.com ([2002:a05:6a02:d84:b0:c79:39f0:12f2]) (user=morbo job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a21:9d48:b0:3cc:fe21:bf6c with SMTP id adf61e73a8af0-3cd3009d046mr39158347637.11.1787489517662; Sun, 23 Aug 2026 05:51:57 -0700 (PDT) Date: Sun, 23 Aug 2026 12:51:46 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.55.0.860.g4b6b3295ed-goog Message-ID: <20260823125155.1136740-1-morbo@google.com> Subject: [PATCH 0/2] Add __counted_by_ptr attribute to struct uid_gid_map From: Bill Wendling To: linux-kernel@vger.kernel.org Cc: Bill Wendling Content-Type: text/plain; charset="UTF-8" Bill Wendling (2): userns: Add __counted_by_ptr attribute to struct uid_gid_map userns: Add KUnit test suite for uid_gid_map include/linux/user_namespace.h | 4 +- init/Kconfig | 10 ++++ kernel/.kunitconfig | 3 ++ kernel/user_namespace.c | 12 +++-- kernel/user_namespace_kunit.c | 87 ++++++++++++++++++++++++++++++++++ 5 files changed, 110 insertions(+), 6 deletions(-) create mode 100644 kernel/.kunitconfig create mode 100644 kernel/user_namespace_kunit.c -- 2.55.0.860.g4b6b3295ed-goog