From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E786233F37F; Mon, 20 Apr 2026 15:45:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776699917; cv=none; b=QQnDKkVTvfuG5lmb14UzIoEB+66ynpxTtS0YgEymcbUqGcSrZk+e3/I2b+CwuifHL1qShTJx6SJo+bnHSBJ3NwyHe5Ue+KsCSyYmcEFm7ueaHdVGor3TRlvOY0hFaLsVra3gpcyaJUnd4FSyALsjxK0HbTOCUJsUiPd9bulzweU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776699917; c=relaxed/simple; bh=15ENsi0cU0DU6ufJmM2JGY9vX25fRsHvB5zIMZcXXK8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tD+6yDeZ3iCI+21y8dQMdRZLvwYpzUI2TPhYxRgzioSVpJbtre2CyE3ZNIGNH4jb/JKUmdzve7GlgI9eqdi8aZFgMeMojNVCHEd7eltYBTTmqOLCuRsBCSfjjMDCmXQ73+wtGdl9tP1m6VRC4wDgKubwkJKj2K4L+QOBzJzfDcA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RSNAJSZP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RSNAJSZP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 448AFC19425; Mon, 20 Apr 2026 15:45:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776699916; bh=15ENsi0cU0DU6ufJmM2JGY9vX25fRsHvB5zIMZcXXK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RSNAJSZPEsuORIhy6Bi7CEoiIzzjZ8zIdRTAVIsUEMRE3/QyleabM+dPH1tYQ9IZx s6yQS3Xl030X/0lIpSfYwv+hky0jDlgWpVfUvRW/mQBUPjhu8pWHVklftR91tM3ckk YtqD0VnV+F01TbD18H+RYSI1qio7IJkZt1QMsnJY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Koichiro Den , Manivannan Sadhasivam , Frank Li Subject: [PATCH 7.0 48/76] PCI: endpoint: pci-epf-vntb: Stop cmd_handler work in epf_ntb_epc_cleanup Date: Mon, 20 Apr 2026 17:41:59 +0200 Message-ID: <20260420153912.574543601@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260420153910.810034134@linuxfoundation.org> References: <20260420153910.810034134@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Koichiro Den commit d799984233a50abd2667a7d17a9a710a3f10ebe2 upstream. Disable the delayed work before clearing BAR mappings and doorbells to avoid running the handler after resources have been torn down. Unable to handle kernel paging request at virtual address ffff800083f46004 [...] Internal error: Oops: 0000000096000007 [#1] SMP [...] Call trace: epf_ntb_cmd_handler+0x54/0x200 [pci_epf_vntb] (P) process_one_work+0x154/0x3b0 worker_thread+0x2c8/0x400 kthread+0x148/0x210 ret_from_fork+0x10/0x20 Fixes: e35f56bb0330 ("PCI: endpoint: Support NTB transfer between RC and EP") Signed-off-by: Koichiro Den Signed-off-by: Manivannan Sadhasivam Reviewed-by: Frank Li Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20260226084142.2226875-4-den@valinux.co.jp Signed-off-by: Greg Kroah-Hartman --- drivers/pci/endpoint/functions/pci-epf-vntb.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/pci/endpoint/functions/pci-epf-vntb.c +++ b/drivers/pci/endpoint/functions/pci-epf-vntb.c @@ -955,6 +955,7 @@ err_config_interrupt: */ static void epf_ntb_epc_cleanup(struct epf_ntb *ntb) { + disable_delayed_work_sync(&ntb->cmd_handler); epf_ntb_mw_bar_clear(ntb, ntb->num_mws); epf_ntb_db_bar_clear(ntb); epf_ntb_config_sspad_bar_clear(ntb);