RDS: null pointer dereference in rds_atomic_free_op
Mohamed Ghannam authored
commit 7d11f77f

 upstream.

set rm->atomic.op_active to 0 when rds_pin_pages() fails
or the user supplied address is invalid,
this prevents a NULL pointer usage in rds_atomic_free_op()
Signed-off-by: default avatarMohamed Ghannam <simo.ghannam@gmail.com>
Acked-by: default avatarSantosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
57e49cc5
Name Last commit Last update
..
802 net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modules
8021q 8021q: fix a potential memory leak
9p net/9p: Switch to wait_event_killable()
appletalk appletalk: Fix socket referencing in skb
atm net: rework recvmsg handler msg_name and msg_namelen logic
ax25 Revert "ax25: add link layer header validation function"
batman-adv batman-adv: Fix use-after-free/double-free of tt_req_node
bluetooth Bluetooth: bnep: bnep_add_connection() should verify that it's dealing with l2cap socket
bridge net: bridge: fix old ioctl unlocked net device walk
caif unix/caif: sk_socket can disappear when state is unlocked
can can: Fix kernel panic at security_sock_rcv_skb
ceph libceph: NULL deref on crush_decode() error path
core net: enable interface alias removal via rtnl
dcb dcbnl: fix various netlink info leaks
dccp dccp: CVE-2017-8824: use-after-free in DCCP code
decnet decnet: Do not build routes to devices without decnet private data.
dns_resolver dns_resolver: Null-terminate the right string
dsa net: Fix files explicitly needing to include module.h
econet af_econet: Use current logging styles and neatening
ethernet net: don't clear IFF_XMIT_DST_RELEASE in ether_setup
ieee802154 6lowpan: Uncompression of traffic class field was incorrect
ipv4 tcp: fix tcp_mtu_probe() vs highest_sack
ipv6 ipv6: fix typo in fib6_net_exit()
ipx ipx: call ipxitf_put() in ioctl error path
irda irda: Fix lockdep annotations in hashbin_delete().
iucv
key
l2tp
lapb
llc
mac80211
netfilter
netlabel
netlink
netrom
nfc
packet
phonet
rds
rfkill
rose
rxrpc
sched
sctp
sunrpc
tipc
unix
wanrouter
wimax
wireless
x25
xfrm
Kconfig
Makefile
compat.c
nonet.c
socket.c
sysctl_net.c