From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 2D42A155A5D for ; Wed, 28 Jan 2026 19:05:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769627129; cv=none; b=IA//ezCLf0YvA06Ih0wCXroqtkvhUg2Byl/9ESfOeJwWrr92fomIOjJKg1EPwRU6n2JW0cbP6RNu8T7rnRu2zgHx/u9HzK7L9OMGDu5pB9Diatd5s80dsie5rR2H4ermR5DZ0R+Ok5yoZgTQUrYtW3t7tCoc+EbolZtLHk0wJBY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769627129; c=relaxed/simple; bh=HHUFN5MQ+j9kptAJiCh2rv+ffNUWwtnq5vUMbxhX+vo=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=GkZ4AyrtD8rSGPugymDz2QQL/EpGAJ+aBaa6XvDEeGMG1urqt1SmB1GaRS+e3KDsscC7G6jjm6suDL10uMsTfV3IzGdxo3Lp+TpBMDe16brlNhp9yFlCL3CgFkfGqCCjFym9Y+JJ8U5Zzgt370YcMtugMBzy/fvCAqogf2WDyvw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mihalicyn.com; spf=pass smtp.mailfrom=mihalicyn.com; dkim=pass (1024-bit key) header.d=mihalicyn.com header.i=@mihalicyn.com header.b=eff8kwSl; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mihalicyn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mihalicyn.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mihalicyn.com header.i=@mihalicyn.com header.b="eff8kwSl" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-432d256c2e6so194096f8f.3 for ; Wed, 28 Jan 2026 11:05:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mihalicyn.com; s=mihalicyn; t=1769627126; x=1770231926; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=HHUFN5MQ+j9kptAJiCh2rv+ffNUWwtnq5vUMbxhX+vo=; b=eff8kwSlilBNPwGTkNZWXhMmbfXHkSGUcbO5tlSUqZGIrnVmeqQNLiv32f4qjNnXR9 T85y3iqSiAIgGxr8skqAiv3CdavmPHcsu1WULTRs78vpzJqH3rbrYqvj8EeFcNfUFNJe uNsTmIgRrDkXtzDXqJGAZhm4FfQR0amyC0+D0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769627126; x=1770231926; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HHUFN5MQ+j9kptAJiCh2rv+ffNUWwtnq5vUMbxhX+vo=; b=tUkw1nvvy2bE4s+5x8juekOtmhq8b9wrhpz/0BJVXImFYGzgDFgZN3qoR/BBzEhuBu DIPgGcckCglR52M20ZOU8CE1uI31qOGNImOHMmUH26K7XMOi2jOqsdJXwXx6ESQqS+JC /5L2sNT2nLqBuZqgDv94me0p7c6iVjAq8zCwCKQgk0B0GJD/KJ+F2TOnL9RDKIasMj5Y anhHlajm5a2SUILevyf2AkIEfJ4TI5NR5RU+Mhpqe2w/j+rAyEFHEle1IKOirfnovN6Z W2G2XwhpFNhdWbGEcmsYbUhWJj6HIWoaFuUe25Mr9WCws1ZnpFnDmNXwVYuQdPXb3ejh 3GcQ== X-Forwarded-Encrypted: i=1; AJvYcCVgmFGFJSv5GWs2DpVLBz/87EsjWx6m1bRWyFqEiGLKFz4u+4pwTF6D00CcSaP/m7cwGjbDabGuPNCTVhM=@vger.kernel.org X-Gm-Message-State: AOJu0YyoeWpe4Rd6YDUNyv/Vj4mYSmO+pbLpe/g/YEVNF9d3hk1sGC+O uN0m1Oq7YeqMFg47EgzL5cWicILIg+hmZjhwE8eV8RpgMsdLuDWItJkG+v50rPJcotc= X-Gm-Gg: AZuq6aISWySHPWRFwZm5EebirapYVg5JWAcn5fl3UVcYY9op0f+kLmFIfNc+fBCdes9 UbHy7qD+Rhb9FesSuymSKuWERcc2Q6U8+WeD/zMWGOsy40DgHxf0pBNFHeC6aUlO/ZZnvHR71qr 0CkilWAOt6l8Hf5dXw6xNsguwpFqozNFUuu9tb46RBvpJDaXAZqgt0TyQ4fWR0yQOS0o4BMF0PS OrBATTiBdSPshqhit7CcACjP90FS8DAUylwj6hHFSP7POEZy4tj18LqmgPLevG7xpRRtgbJxfKF B0Gr+3p0XXRkmB87mVkWu8lpUex6jAvqxWJnYJTX+kXVl10ecYoxojHniP7rGQF7TPDy6Gz7VTZ 07+9GXPDndkyrAE8ptCTU9pgNZFU6NHt7zDMXLfBG3eCfg1IRqohNOvFsEVxHzuTA1n3fwrCSn5 aXa7vu0V4K0rb5knz5PSHG6Fs18N+KBCc8xre8LPYrSlGGKr8uqFTx/hst6A16qrPMEyukRIJOC vDI/CAKcZpgwNmIuYUStOMED843S0m3o4QlOIp9ay/gVARigA== X-Received: by 2002:a05:6000:2c08:b0:431:32f:3140 with SMTP id ffacd0b85a97d-435dd02be47mr9465896f8f.12.1769627126523; Wed, 28 Jan 2026 11:05:26 -0800 (PST) Received: from ?IPv6:2003:cf:574b:cf00:f62e:8cab:c07c:593e? (p200300cf574bcf00f62e8cabc07c593e.dip0.t-ipconnect.de. [2003:cf:574b:cf00:f62e:8cab:c07c:593e]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435e10e46cesm8825497f8f.7.2026.01.28.11.05.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jan 2026 11:05:26 -0800 (PST) Message-ID: Subject: Re: [PATCH v3 4/7] seccomp: mark first listener in the tree From: Alexander Mikhalitsyn To: Aleksa Sarai , Alexander Mikhalitsyn Cc: kees@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Lutomirski , Will Drewry , Jonathan Corbet , Shuah Khan , Tycho Andersen , Andrei Vagin , Christian Brauner , =?ISO-8859-1?Q?St=E9phane?= Graber Date: Wed, 28 Jan 2026 20:05:25 +0100 In-Reply-To: <2026-01-21-hectic-wriggly-dips-flags-EE541h@cyphar.com> References: <20251211124614.161900-1-aleksandr.mikhalitsyn@canonical.com> <20251211124614.161900-5-aleksandr.mikhalitsyn@canonical.com> <2026-01-21-hectic-wriggly-dips-flags-EE541h@cyphar.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-0+deb13u1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Wed, 2026-01-21 at 13:22 +0100, Aleksa Sarai wrote: > On 2025-12-11, Alexander Mikhalitsyn > wrote: > > Let's note if listener was a first one installed in the seccomp > > filters tree. We will need this information to retain old > > quirk behavior (as before seccomp nesting introduced). > >=20 > > Also, rename has_duplicate_listener() to > > check_duplicate_listener(), > > cause now this function is not read-only, but also modifies a state > > of a new_child seccomp_filter. > >=20 > > No functional change intended at this point. >=20 > Ah sorry, I didn't notice the date of the mails -- this was sent > before > the LPC discussion! I'll wait for the v4 before reviewing further. Hi Aleksa, Yeah, I'm thinking about preparing a separate patches to address a quirky seccomp behavior we discussed during LPC and then resend this series. Kind regards, Alex