Re: [PATCH net] fix a braino in cmsghdr_from_user_compat_to_kern()

2020-07-27 Thread David Miller
From: Al Viro Date: Mon, 27 Jul 2020 19:22:20 +0100 > commit 547ce4cfb34c ("switch cmsghdr_from_user_compat_to_kern() to > copy_from_user()") missed one of the places where ucmlen should've been > replaced with cmsg.cmsg_len, now that we are fetching the entire struct > rather than doing it

[PATCH net] fix a braino in cmsghdr_from_user_compat_to_kern()

2020-07-27 Thread Al Viro
commit 547ce4cfb34c ("switch cmsghdr_from_user_compat_to_kern() to copy_from_user()") missed one of the places where ucmlen should've been replaced with cmsg.cmsg_len, now that we are fetching the entire struct rather than doing it field-by-field. As the result, compat sendmsg() wi