]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
io_uring: fix incorrect io_kiocb reference in io_link_skb
authorYang Xiuwei <yangxiuwei@kylinos.cn>
Fri, 19 Sep 2025 09:03:52 +0000 (17:03 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 19 Sep 2025 12:00:57 +0000 (06:00 -0600)
commit2c139a47eff8de24e3350dadb4c9d5e3426db826
tree1a2c9905e97190bbf535a7afe6a11af7ba4c724f
parentdf8922afc37aa2111ca79a216653a629146763ad
io_uring: fix incorrect io_kiocb reference in io_link_skb

In io_link_skb function, there is a bug where prev_notif is incorrectly
assigned using 'nd' instead of 'prev_nd'. This causes the context
validation check to compare the current notification with itself instead
of comparing it with the previous notification.

Fix by using the correct prev_nd parameter when obtaining prev_notif.

Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Fixes: 6fe4220912d19 ("io_uring/notif: implement notification stacking")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/notif.c