diff options
author | Kevin Brodsky | 2023-04-13 12:47:03 +0100 |
---|---|---|
committer | David S. Miller | 2023-04-14 11:09:27 +0100 |
commit | c39ef2130491b2382f2c81774c825527d4bdf4e2 (patch) | |
tree | c092292a7e77f51f4bf7ccc9fe7a10e4346f4b5b /block/bfq-iosched.c | |
parent | eaaa4e92397981c65dae7b9a38425b8fa984d674 (diff) |
net: Ensure ->msg_control_user is used for user buffers
Since commit 1f466e1f15cf ("net: cleanly handle kernel vs user
buffers for ->msg_control"), pointers to user buffers should be
stored in struct msghdr::msg_control_user, instead of the
msg_control field. Most users of msg_control have already been
converted (where user buffers are involved), but not all of them.
This patch attempts to address the remaining cases. An exception is
made for null checks, as it should be safe to use msg_control
unconditionally for that purpose.
Cc: Christoph Hellwig <hch@lst.de>
Cc: Eric Dumazet <edumazet@google.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block/bfq-iosched.c')
0 files changed, 0 insertions, 0 deletions