From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.2]) (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 70149377A80; Sat, 26 Sep 2026 16:28:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.2 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790440085; cv=none; b=ZGOFtRWe5ITs5BRzJd4YUoxEvSj3UL8G0yFU5YdV/YYrfH+/Flf06Py/pIuu7xUOX0eFinpRdkl16GYnJ2r2Hy95DWGw4iLtm837IRC+ndeMiwIPuIxQcGoUTiRYiVkEkBLNpN19N7sthQRlYwEkZgIjXc4k9rbumag2tR9KoAY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790440085; c=relaxed/simple; bh=iuB8YLcggXyNHyPeJGIvjYRfXV94cxhdCpUeb/jrz1g=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=PbLagtWxpkNBhOJ+QrYEo5mLMtlUL4L9hYwe7hbm25kQwCwbtzYNTUxAAWC4GEgFCtbAmw/TFeSGtRT4++iKb26D2YV2fe/aVxWQLfs+zvJDl45u26+/L1Lo2wKhxstcVa4Af+LzNpAihvGaMMlF36hO0oRJ0wGCV0eIjq5asTI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=knXpC96T; arc=none smtp.client-ip=117.135.210.2 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="knXpC96T" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=SX 4HMIM1TzXt1rGZ0TSFJGAeochb7ps2U/JaupsWzEk=; b=knXpC96TSRqfwoKauG 5vRzTgd8746fp6cOjqKEgQgiJ4+hBW8hArrTDppVNJ6UsUHHwOHEfKagCZLFaInr hbNylVGVzqrTdCh6lDI7aGWWNn81/uUJT7vfvHPLszfXaXcwECl8rI0HmKTv295o xx38SzsVO8b89O7f56EjijuEg= Received: from pc.localdomain (unknown []) by gzga-smtp-mtada-g1-0 (Coremail) with SMTP id _____wD3v6EU8rdq1Ce5Aw--.54526S2; Sun, 27 Sep 2026 00:25:58 +0800 (CST) From: Jiale Yao To: Qiang Yu , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Willem de Bruijn , Jason Wang , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alex Williamson , Kevin Tian , Jason Gunthorpe , Ankit Agrawal , Leon Romanovsky , Farhan Ali , Matt Evans , Vivek Kasireddy , "Ritesh Harjani (IBM)" , Eric Anholt , Vasily Khoruzhick , Andreas Baierl , Marek Vasut , Heiko Stuebner , dri-devel@lists.freedesktop.org, lima@lists.freedesktop.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, kvm@vger.kernel.org Cc: Jiale Yao Subject: [PATCH 0/3] Drain module-owned RCU callbacks during teardown Date: Sun, 27 Sep 2026 00:25:49 +0800 Message-Id: <20260926162554.163197-1-yaojiale02@163.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:_____wD3v6EU8rdq1Ce5Aw--.54526S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7XF4rWrW7uFyfGw43Zr4DXFb_yoWDuFc_W3 sa9r9rGw1kG3WxKanFyF1xAFWvka45ur1rArWFkr9rKry8Wr45ZrZ8Kr98CF48trWYy3Zr Jrn8KF15Xw4v9jkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7VUUNeOJUUUUU== X-CM-SenderInfo: x1dryxhdohiji6rwjhhfrp/xtbCzRZKhGq38haJ5QAA3A VFIO PCI core, TUN, and Lima each enqueue an RCU callback implemented in module text. Their teardown paths can run after the callback producer has stopped but before a previously queued callback has completed. Unloading the module in that interval lets rcu_do_batch() invoke freed module text. For Lima, the same window also allows the callback's slab cache to be destroyed and its global pointer cleared before the callback frees the fence. Drain callbacks after their producers have stopped. The three changes are independent and each patch remains buildable on its own. The affected object files were built with CONFIG_TUN=m. The series was also checked with checkpatch.pl. Runtime reproduction was not performed. Jiale Yao (3): vfio/pci: Drain eventfd RCU callbacks on module exit tun: Drain eBPF RCU callbacks on module exit drm/lima: Drain fence callbacks before destroying slab drivers/gpu/drm/lima/lima_sched.c | 1 + drivers/net/tun.c | 1 + drivers/vfio/pci/vfio_pci_core.c | 1 + 3 files changed, 3 insertions(+) -- 2.34.1