From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.30.118 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796286834; b=FGzq0vRAMPnkpmPutjONxrCB5RTKovp27GyQg3bGoytbSMro3XPb6TamGXUkfQ3Rz2d6 s3HGazdrUYfokPfAzL/Wx44LnshdNfGqzF7tjwZvG/GEVMSg7FyHHkHr3VZ8iV5ej4FXo 6KWi9+SLUhWI9q61nXfAy7sLkWjkjMi1H2e2YZQ7ICuXktLsfiAH+RlrCRrwJyCHURPma /J/7FXsQIru2h6Di/FYOU9ZBTJLhLK178t+oUQMEMRxp+98N0D/ctSQjkK4X1TXLpZiQd hGX5mWmkphwuFSTLsewtSb4gXY1fHGmRborx3YMxZ97o4q5GlqIOQ0z5qnha5bq0ywg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796286834; h=DMARC-Filter:DKIM-Signature:X-Alimail-AntiSpam:Received:From:To:Cc: Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=vjpakzZvK8E1j7TZJX00grhmBTlgnq2+1VCvoltA9mk=; b=y1MXCFz5mgWm7WdPUC72lLFbYcq0JuqU0PZAXSpuP0n/lHXdQj/yltoyxVPU0Re2yBUd 4EW8YdyOOQIXoguVPuQwJkscQR1MglLaaHZnBsp5TQPXAjaLm4L047JnSbW0TE+zXRKRJ CrrLf0UDWHH6BGvwHccENL6h1DcF3lNjEWI5g+eCoONR/uMrJw/Izr7PSfjqrQfKNhfmU 3x7EA2JaQkVGwjxNkfXJcc/gTQ4eX/XSgDu/lt/PSG2R9e+AtSwjKA9JR+aMq7mPow8WI kiNhZDDqNsoJp1FmDUbLT5UiqXQJFrRKHgQz1K7lqci44u/kWNxDk3/jZ49+asbN0Ew== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=jY099VfR; arc=none smtp.remote-ip=115.124.30.118 Received: from out30-118.freemail.mail.aliyun.com (out30-118.freemail.mail.aliyun.com [115.124.30.118]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B52E7606A322; Thu, 3 Dec 2026 08:33:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B52E7606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.a=rsa-sha256 header.s=default header.b=jY099VfR DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1796286824; h=From:To:Subject:Date:Message-ID:MIME-Version; bh=vjpakzZvK8E1j7TZJX00grhmBTlgnq2+1VCvoltA9mk=; b=jY099VfR9KbKyuLaSCIPIWzuyv6W7wpXVc4FZEfhlESm34P8tnYN5m1SjHB2Fv4ETL8RUS6NcytIKF2ScX2We9JfY+VybC1NqO+XQLaQ0q7Jfz27E4b2Z+NsoQKC0I3w9wqUNYxSgfMBR/HzrBztVT+0g4cCcuRSYMj3shn4hg8= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037033178;MF=jiangtianfeng@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0XGDVop2_1796286813; Received: from h68d07384.sqa.eu95.tbsite.net(mailfrom:jiangtianfeng@linux.alibaba.com fp:SMTPD_---0XGDVop2_1796286813 cluster:ay36) by smtp.aliyun-inc.com; Thu, 03 Dec 2026 16:33:43 +0800 From: Jiangtian Feng To: jassisinghbrar@gmail.com Cc: thierry.reding@kernel.org, jonathanh@nvidia.com, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, Jiangtian Feng Subject: [PATCH 0/2] mailbox: tegra-hsp: Reject duplicate mailbox clients Date: Thu, 3 Dec 2026 16:33:28 +0800 Message-ID: <20261203083330.3300442-1-jiangtianfeng@linux.alibaba.com> X-Mailer: git-send-email 2.47.3 X-Mailing-List: linux-tegra@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 These two small patches prevent a repeated mailbox request from changing the state of an active client. The doorbell patch rejects a duplicate request while chan->cl is live. Using the client pointer rather than the channel pointer alone preserves retries after a failed startup while keeping exclusive ownership during normal use. The shared mailbox patch rejects an occupied channel before changing mb->ops or mb->producer, preserving the original client's direction, width and interrupt mask. The failed-startup channel-slot lifetime issue is pre-existing and is intentionally outside this small series. Validation: - Independent static review found no High/Medium issues. - W=1 tegra-hsp.o builds after each patch. - Complete ARM64 Image build; size 44,833,280 bytes, SHA-256 f972a099b2da6e801c41d25558c3803af604bdbb1113adfdeda931b6e94e0d28. - Fixes tags were verified against full repository history. - Final patches have no checkpatch warnings; only the submitter's DCO sign-off is pending. NOT_RUN: - Repeated client, BPMP, startup failure/rebind and IRQ runtime testing. - NOIRQ suspend/resume and hardware fault injection. Jiangtian Feng (2): mailbox: tegra-hsp: Reject duplicate doorbell clients mailbox: tegra-hsp: Reject duplicate shared mailbox clients drivers/mailbox/tegra-hsp.c | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.47.3