]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/uverbs: Add __GFP_NOWARN to ib_uverbs_unmarshall_recv() kmalloc
authorYi Liu <liuy22@mails.tsinghua.edu.cn>
Thu, 29 Jan 2026 09:49:00 +0000 (17:49 +0800)
committerLeon Romanovsky <leon@kernel.org>
Sun, 1 Feb 2026 12:39:14 +0000 (07:39 -0500)
commit58b604dfc7bb753f91bc0ccd3fa705e14e6edfb4
tree10a4ed79c724992ee7a3f1459d53c2c595751560
parent5ee62b4a91137557ee4b09d1604f1dfd0b4344a8
RDMA/uverbs: Add __GFP_NOWARN to ib_uverbs_unmarshall_recv() kmalloc

Since wqe_size in ib_uverbs_unmarshall_recv() is user-provided and already
validated, but can still be large, add __GFP_NOWARN to suppress memory
allocation warnings for large sizes, consistent with the similar fix in
ib_uverbs_post_send().

Fixes: 67cdb40ca444 ("[IB] uverbs: Implement more commands")
Signed-off-by: Yi Liu <liuy22@mails.tsinghua.edu.cn>
Link: https://patch.msgid.link/20260129094900.3517706-1-liuy22@mails.tsinghua.edu.cn
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/uverbs_cmd.c