From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 5B2B3280335 for ; Tue, 13 Jan 2026 22:41:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768344065; cv=none; b=tvh96oY1eqyDOUJemT36rGSRsQVTryr9h12lZ06m6m0dd+NnT4lUUXJu+1VAjm4M97ZYL+aoSQChOlQg4TkY9Dcf2flpMh43Fm1mRuD3/H5t5lDfuO3yF8CPVka+GqUJs/fVn4GtyrpHCYkNXK9bScRfhXNQ7A2sNvKP3PWPusM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768344065; c=relaxed/simple; bh=6UO7RtOmPTz6IQwg8pbgCpoAZeNmofgqWMXaxtGQj1c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=BkdcgzV/lRzfDlq+fIbersoBWEUlb1VVPCfGGWvzSO+alIMssnvTX1BOlV1lv7cS4R6mwyWuE4X7HT9osOevS2EIvOGtN+Wlb270BxiIvDH8rd/wEb/ekG31UOA1EbSneHMlPszZK0M07n2Ts9uX5yB/dpcPeJk89WIwlqaV8G8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=OlihZ6ZL; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="OlihZ6ZL" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1768344063; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=qykxqAbNrQoKnh3wHNIvgCs7cUxVfs/Z+IQXcKZ2nJo=; b=OlihZ6ZLBb18AlvEWxBNfYj4emKhEJvmts8LTAxNHKVei/bP1P46fN45iyT3oExmjRtf1A 8cKJrzz1Z30fkOiskiY8MCkjWok0YuQ1ZdH7Irtga6hZmorBpC7UGJ0eUP2/6v0QMsug+G rlIm+dlhZz2Xj2gOK87ASATicSVMceA= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-228--IVogaX4NS6MTJHiQBq_XA-1; Tue, 13 Jan 2026 17:41:02 -0500 X-MC-Unique: -IVogaX4NS6MTJHiQBq_XA-1 X-Mimecast-MFC-AGG-ID: -IVogaX4NS6MTJHiQBq_XA_1768344061 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CFE1418005B4; Tue, 13 Jan 2026 22:41:00 +0000 (UTC) Received: from fweimer-oldenburg.csb.redhat.com (unknown [10.44.32.17]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 404B330001A8; Tue, 13 Jan 2026 22:40:58 +0000 (UTC) From: Florian Weimer To: linux-fsdevel@vger.kernel.org Cc: linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, Al Viro , David Howells , DJ Delorie Subject: O_CLOEXEC use for OPEN_TREE_CLOEXEC Date: Tue, 13 Jan 2026 23:40:55 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 In , we have this: #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */ This causes a few pain points for us to on the glibc side when we mirror this into becuse O_CLOEXEC is defined in , which is one of the headers that's completely incompatible with the UAPI headers. The reason why this is painful is because O_CLOEXEC has at least three different values across architectures: 0x80000, 0x200000, 0x400000 Even for the UAPI this isn't ideal because it effectively burns three open_tree flags, unless the flags are made architecture-specific, too. Thanks, Florian