Re: [PATCH] io_uring/tctx: set ->io_uring before publishing the tctx node

Jens Axboe <[email protected]>
Newsgroups org.kernel.vger.io-uring
Message-ID <177964610881.307699.9664695678589599397.b4-ty@b4>
On Sun, 24 May 2026 20:08:53 +0900, Lim HyeonJun wrote:
> io_register_iowq_max_workers() walks ctx->tctx_list under ctx->tctx_lock
> and dereferences each node's task->io_uring without a NULL check:
> 
> 	list_for_each_entry(node, &ctx->tctx_list, ctx_node) {
> 		tctx = node->task->io_uring;
> 		if (WARN_ON_ONCE(!tctx->io_wq))
> 			continue;
> 		...
> 	}
> 
> [...]

Applied, thanks!

[1/1] io_uring/tctx: set ->io_uring before publishing the tctx node
      commit: a88c02915d9c6160cfc7ab1b26ed64b2993e2b94

Best regards,
-- 
Jens Axboe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.