Chuck Lever
3ee6a2bc14
xprtrdma: Fix XDRBUF_SPARSE_PAGES support
...
commit 15261b9126cd5bb2ad8521da49d8f5c042d904c7 upstream.
Olga K. observed that rpcrdma_marsh_req() allocates sparse pages
only when it has determined that a Reply chunk is necessary. There
are plenty of cases where no Reply chunk is needed, but the
XDRBUF_SPARSE_PAGES flag is set. The result would be a crash in
rpcrdma_inline_fixup() when it tries to copy parts of the received
Reply into a missing page.
To avoid crashing, handle sparse page allocation up front.
Until XATTR support was added, this issue did not appear often
because the only SPARSE_PAGES consumer always expected a reply large
enough to always require a Reply chunk.
Reported-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-30 11:51:38 +01:00
..
6lowpan
9p
net: 9p: initialize sun_server.sun_path to have addr's value only when addr is valid
2020-11-05 11:43:20 +01:00
802
8021q
appletalk
atm
atm: fix a memory leak of vcc->user_back
2020-10-01 13:17:58 +02:00
ax25
batman-adv
batman-adv: set .owner to THIS_MODULE
2020-12-02 08:49:50 +01:00
bluetooth
Bluetooth: Fix null pointer dereference in hci_event_packet()
2020-12-30 11:51:05 +01:00
bpf
bpfilter
bridge
bridge: Fix a deadlock when enabling multicast snooping
2020-12-21 13:27:04 +01:00
caif
can
can: af_can: can_rx_unregister(): remove WARN() statement from list operation sanity check
2020-12-11 13:23:32 +01:00
ceph
libceph: clear con->out_msg on Policy::stateful_server faults
2020-11-05 11:43:34 +01:00
core
lwt: Disable BH too in run_lwt_bpf()
2020-12-30 11:51:30 +01:00
dcb
net: DCB: Validate DCB_ATTR_DCB_BUFFER argument
2020-09-26 18:03:12 +02:00
dccp
decnet
dns_resolver
dsa
dsa: Allow forwarding of redirected IGMP traffic
2020-09-23 12:40:33 +02:00
ethernet
hsr
ieee802154
ife
ipv4
netfilter: x_tables: Switch synchronization to RCU
2020-12-30 11:50:54 +01:00
ipv6
netfilter: x_tables: Switch synchronization to RCU
2020-12-30 11:50:54 +01:00
iucv
net/af_iucv: set correct sk_protocol for child sockets
2020-12-08 10:40:23 +01:00
kcm
key
af_key: pfkey_dump needs parameter validation
2020-09-26 18:03:10 +02:00
l2tp
l3mdev
lapb
llc
net: silence data-races on sk_backlog.tail
2020-10-01 13:17:15 +02:00
mac80211
mac80211: don't set set TDLS STA bandwidth wider than possible
2020-12-30 11:51:25 +01:00
mac802154
mac802154: tx: fix use-after-free
2020-10-01 13:18:17 +02:00
mpls
ncsi
net/ncsi: Fix netlink registration
2020-11-24 13:29:00 +01:00
netfilter
netfilter: nft_ct: Remove confirmation check for NFT_CT_ID
2020-12-30 11:50:55 +01:00
netlabel
netlabel: fix an uninitialized warning in netlbl_unlabel_staticlist()
2020-11-24 13:28:57 +01:00
netlink
netrom
nfc
nfc: Ensure presence of NFC_ATTR_FIRMWARE_NAME attribute in nfc_genl_fw_download()
2020-10-29 09:57:26 +01:00
nsh
openvswitch
net: openvswitch: ensure LSE is pullable before reading it
2020-12-08 10:40:27 +01:00
packet
phonet
psample
qrtr
net: qrtr: check skb_put_padto() return value
2020-09-26 18:03:15 +02:00
rds
rfkill
rfkill: Fix use-after-free in rfkill_resume()
2020-11-24 13:29:05 +01:00
rose
rose: Fix Null pointer dereference in rose_send_frame()
2020-12-08 10:40:23 +01:00
rxrpc
rxrpc: Fix server keyring leak
2020-10-14 10:33:05 +02:00
sched
net/sched: act_mpls: ensure LSE is pullable before reading it
2020-12-08 10:40:27 +01:00
sctp
sctp: change to hold/put transport for proto_unreach_timer
2020-11-24 13:28:59 +01:00
smc
net/smc: fix direct access to ib_gid_addr->ndev in smc_ib_determine_gid()
2020-11-24 13:28:58 +01:00
strparser
sunrpc
xprtrdma: Fix XDRBUF_SPARSE_PAGES support
2020-12-30 11:51:38 +01:00
switchdev
tipc
tipc: fix a deadlock when flushing scheduled work
2020-12-11 13:23:32 +01:00
tls
net/tls: Protect from calling tls_dev_del for TLS RX twice
2020-12-08 10:40:23 +01:00
unix
skbuff: fix a data race in skb_queue_len()
2020-10-01 13:17:31 +02:00
vmw_vsock
vsock: use ns_capable_noaudit() on socket create
2020-11-10 12:37:30 +01:00
wimax
wireless
cfg80211: initialize rekey_data
2020-12-30 11:51:29 +01:00
x25
net/x25: prevent a couple of overflows
2020-12-08 10:40:26 +01:00
xdp
xsk: Replace datagram_poll by sock_poll_wait
2020-12-30 11:50:53 +01:00
xfrm
net: xfrm: fix a race condition during allocing spi
2020-11-18 19:20:17 +01:00
compat.c
Kconfig
Makefile
socket.c
sysctl_net.c