From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796011262; b=FKJaLKi4kvQD6Z5oD7K0eI1MH9wap8d+0z1KmF5F7pbdIQfR2wBq4bxeP3D4kfELk6RU 9DTHoGqlJ8evr3tEqtihq9fNc0AR5ROrXKPxbggJqLnYtYw33wIjw0AB/6Yh81jVC/QVg Uf64C4EKlnUf6ZXpGazYEVhDF97FQW7eehSg+3gjlEVULjylN1NOsZcTVhozQ+wj6CAJ/ kzrcVU4QhhpsQc4JomjoJ547w8VIjvtpKn9AfUT30xwpwoPGRrov2mpF/PhhHcthbFRv8 5emWHy0UE1aEk5msjOh7irqRMw7ck+UQ/QRobsSV9GMtqDfi9cDgOooBBuFrglbfXwg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796011262; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=lxbfrT2NxSBJZQH3Gzwc0a2HKgY6tDGCx4zRSLpsnTM=; b=hU4t3rIDysuh0qPlTIow0UQS68nj02Mi/XRp/WqsIUzgQwNqmL3CwBsYvUJBiuxC8+k7 EGohQTODxTToGTfzHKsVBGRzQ0TiMK47K6ECFV65pvKlHmoj//Xc1l4pLSACV0NREdeUx 5VQVpGTE54qFwMyqXP6dJKRrrW8EJ/4PC5zxHZdU5MYswfdqtnaXvG21C2/v+NR9OJCNi 0pyFVfCIVNgnXQ4qmaAPyFJBGuDsaDfoT3T+yq00MKuorOSoHWC5nM+8cSeF1nxepZYHL P6DRrxUBkfZ+3D1ukNO32U/uZmHaaY17ZAibfx7k/nGzz3BVNCdVTnBC6sNczFR+EZw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=octane.security; spf=pass smtp.mailfrom=octane.security; dkim=pass header.d=octane.security header.i=@octane.security header.a=rsa-sha256 header.s=google header.b=kC1yvEFM; arc=none smtp.remote-ip=209.85.214.182 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 51DCD606A325 for ; Mon, 30 Nov 2026 04:01:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 51DCD606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=octane.security Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=octane.security Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=octane.security header.i=@octane.security header.a=rsa-sha256 header.s=google header.b=kC1yvEFM Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2f0464dd6b6so59943385ad.1 for ; Sun, 29 Nov 2026 20:01:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=octane.security; s=google; t=1796011261; x=1796616061; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=lxbfrT2NxSBJZQH3Gzwc0a2HKgY6tDGCx4zRSLpsnTM=; b=kC1yvEFMMUpU36zxuTd7y2APVLtzUDUnAN7NZ07ZnsLnRogBunwoWev0VHcFz5GChW xteZBBjWPrg961ENWQYfveDfh5Ki7WtaDZ3bv4+j/4FYepoGMmdCwq5xsxLrPhy3h37e RRZ2n6ZPVaCLMiJ1ZLBGQRyzm+908YtCKr/BmOW6bSB7WAdWWQ6p4QhPb2Ppze3YjI1n aoWLgzhmOyLYFyyroOH8DmTTisqPl4pg4CAnG8MoIwIqE+qKJccCZwPCadRwCIJrXmue 7lOaXR+G4l8aTvzafHqwPTRWda6qgv72++J+Fs/mgYqhzy1XLRcdhwzMEOx92qYf/dHc Tzmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796011261; x=1796616061; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=lxbfrT2NxSBJZQH3Gzwc0a2HKgY6tDGCx4zRSLpsnTM=; b=FxcCDovLnCdDub8X3JOosPUF5Ni/T8cd1Swnwty8EYdNdmhwUXjDLZxPBVDMBooQNI 7rSnluXGpdLiI2Jze10zd2iDf7voCaSLsSKrpTOlyThPrU6WFbVdf8s30BHaJ8h+TmNm O++tDJzPR8WTIE0I2ako25GRMDExAQNlgZDParuBHJk8iorh2x38aM3OTFOtWURLvPjG 9TGfAnkFmrOZ8rcsBVmyeHWVtfE6krt79HMWSB3Jl/6fVnBa+9DlzM9uU7NTlGSUbfMm AbwJzZzCgpT/QJwOT/yDwdhWifj/FBdPNrKOudLRyyQdD3E+QwUFTsBt1j+5pHwELJhP O2+A== X-Gm-Message-State: APuU4Z9H6jMF3v/eckqv+gFGxkeUm3o9l8Td2X1j6VSYaDbEsukVZVfM 54fyi7mGuJMKJ/VBPNpBil16sIa2E0czgE2+73U700d7eYUO8+9X7JAwBP6BKmkBhbefmXrTh1O BvTMc X-Gm-Gg: AZFdTZcVffA7cLvnZb/nmaHlh8xmAsl4Q4EiukdTeoUaoPKlWfno6Vfuhx3Ml0By6YA s5QCnZ3/K6WU1qXHAZRSQg/h/1BZrG+6HBzsWVpgevR4Lf5I2kXpX4U1/8kHbeQnbM3r6lFxTLU h1TXQ6XsYthZ0jCAP31N6BFlI5WS9ntk7uBAqlKrMz2/Dic7rNvTuPNsjmOAUK1S+rC+YQFD1Pl Z8m6QMoznuA9zaAjHYypulxlYCZREpvbZCnEpfNQmAzOmcNpr5GRF597XF1zUvCfq2UifUXw5+T p4wHOkw8ebRKlDyoGWvvk2T7H1nLdKiXTc94JAokjwVhFc+q8WveVSy/cwJomi7WNf5xY0s7G1L Zdi5hNwAwIAaIDZIeaOQc1CcwuE85+csgCcBY8TkiZbyq+PK9Hjx3QHAU8syfGIiROH4d7NcChI zD+EkkWbewxh6gTb6OV0bWqVrPY/gis0UUcOcnZPkEGIQWpLnCrLo8qfEycBQhdoyREUIx9zEUp YBQj/cvgWit6GVexc2hrsfzU1ffpM4JicCWFwkYSsx1u7kzPBtINaWvXcNwscM6xFBaw7a193Gs RJ2shCIkemQvBK6LF6QEFn4a6jLBcOw8JDfl2WOyr1vDX4DmM9Db5lnrJmCVDA4Sa7UKqfCBSVS AvrhoBs73k4pFlrszEz8VRGWasaRRnrj9CIpIVuNriFscu4IK X-Received: by 2002:a17:903:3910:b0:2f1:2d37:6e93 with SMTP id d9443c01a7336-2f12d376fd6mr58977225ad.45.1796011261185; Sun, 29 Nov 2026 20:01:01 -0800 (PST) Received: from localhost.localdomain ([103.47.169.47]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f0b8a43768sm99763615ad.31.2026.11.29.20.00.58 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 29 Nov 2026 20:01:00 -0800 (PST) From: Shubham Antil To: netdev@vger.kernel.org Cc: Simon Horman , gio@octane.security, David Heidelberg , oe-linux-nfc@lists.linux.dev, Shubham Antil Subject: [PATCH net v9 0/2] nfc: nci: uart: split driver selection fixes Date: Mon, 30 Nov 2026 09:30:43 +0530 Message-ID: <20261130040045.41928-1-shubham@octane.security> X-Mailer: git-send-email 2.54.0 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The v8 series combined several independent NFC fixes. This submission contains only the NCI UART driver-selection fixes and splits the registry lifetime change from the per-line-discipline selection change. The first patch protects the transport registry and pins a transport module before copying its template. The second patch serializes the existing allocate, open, and publish sequence with a sleepable mutex and keeps failed selections retryable. The issues were found during an AI-assisted source audit using OpenAI Codex, gpt-5.6-sol. Patch development and test planning used the same assistant. Each mail patch was applied independently to the base below on the Linux test host. The affected NFC objects built after every patch with W=1 and sparse. No physical Marvell controller was available. Changes since v8: - send the driver-selection fixes as an independent patch set - separate registry lifetime protection from selection serialization - retain late publication and use a small selection mutex - add the requested AI-assistance trailer Shubham Antil (2): nfc: nci: uart: protect the driver registry nfc: nci: uart: serialize driver selection net/nfc/nci/uart.c | 61 +++++++++++++++++++++++++++++++--------------- 1 file changed, 41 insertions(+), 20 deletions(-) base-commit: 30c71476d842b094651bd7712f6c8ee8716147d0 -- 2.54.0