]> git.itanic.dy.fi Git - linux-stable/commit
net: clear msg_get_inq in __get_compat_msghdr()
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Wed, 14 Sep 2022 09:51:54 +0000 (18:51 +0900)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 15:23:20 +0000 (08:23 -0700)
commitd547c1b717fc5a1e062307e1efdf81590ba9f6c1
tree65d6d01a042f32f6196b519b384fcf8b903d43b0
parent68fe503c2b8065791c98979790a7b91e198d3006
net: clear msg_get_inq in __get_compat_msghdr()

syzbot is still complaining uninit-value in tcp_recvmsg(), for
commit 1228b34c8d0ecf6d ("net: clear msg_get_inq in __sys_recvfrom() and
__copy_msghdr_from_user()") missed that __get_compat_msghdr() is called
instead of copy_msghdr_from_user() when MSG_CMSG_COMPAT is specified.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Fixes: 1228b34c8d0ecf6d ("net: clear msg_get_inq in __sys_recvfrom() and __copy_msghdr_from_user()")
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/d06d0f7f-696c-83b4-b2d5-70b5f2730a37@I-love.SAKURA.ne.jp
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/compat.c