kernel_optimize_test/net
Dag Moxnes bf1867db9b net/rds: Whitelist rdma_cookie and rx_tstamp for usercopy
Add the RDMA cookie and RX timestamp to the usercopy whitelist.

After the introduction of hardened usercopy whitelisting
(https://lwn.net/Articles/727322/), a warning is displayed when the
RDMA cookie or RX timestamp is copied to userspace:

kernel: WARNING: CPU: 3 PID: 5750 at
mm/usercopy.c:81 usercopy_warn+0x8e/0xa6
[...]
kernel: Call Trace:
kernel: __check_heap_object+0xb8/0x11b
kernel: __check_object_size+0xe3/0x1bc
kernel: put_cmsg+0x95/0x115
kernel: rds_recvmsg+0x43d/0x620 [rds]
kernel: sock_recvmsg+0x43/0x4a
kernel: ___sys_recvmsg+0xda/0x1e6
kernel: ? __handle_mm_fault+0xcae/0xf79
kernel: __sys_recvmsg+0x51/0x8a
kernel: SyS_recvmsg+0x12/0x1c
kernel: do_syscall_64+0x79/0x1ae

When the whitelisting feature was introduced, the memory for the RDMA
cookie and RX timestamp in RDS was not added to the whitelist, causing
the warning above.

Signed-off-by: Dag Moxnes <dag.moxnes@oracle.com>
Tested-by: Jenny <jenny.x.xu@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-08-23 14:55:52 -07:00
..
6lowpan
9p
802
8021q
appletalk
atm
ax25
batman-adv
bluetooth
bpf
bpfilter
bridge
caif
can
ceph
core
dcb
dccp
decnet
dns_resolver
dsa net: dsa: enable and disable all ports 2019-08-20 12:33:49 -07:00
ethernet
hsr
ieee802154
ife
ipv4 nexthops: remove redundant assignment to variable err 2019-08-22 12:14:05 -07:00
ipv6 net: ipv6: fix listify ip6_rcv_finish in case of forwarding 2019-08-23 14:42:14 -07:00
iucv
kcm
key
l2tp
l3mdev
lapb
llc
mac80211 mac80211: minstrel_ht: improve rate probing for devices with static fallback 2019-08-21 11:10:13 +02:00
mac802154
mpls
ncsi net/ncsi: update response packet length for GCPS/GNS/GNPTS commands 2019-08-22 19:28:04 -07:00
netfilter
netlabel
netlink
netrom
nfc
nsh
openvswitch
packet
phonet
psample
qrtr
rds net/rds: Whitelist rdma_cookie and rx_tstamp for usercopy 2019-08-23 14:55:52 -07:00
rfkill
rose
rxrpc
sched
sctp sctp: remove net sctp.x_enable working as a global switch 2019-08-19 18:27:29 -07:00
smc
strparser
sunrpc
switchdev
tipc
tls
unix
vmw_vsock
wimax
wireless nl80211: Add support for EDMG channels 2019-08-21 11:07:35 +02:00
x25
xdp
xfrm
compat.c
Kconfig
Makefile
socket.c
sysctl_net.c