Catalin Marinas
d720d8cec5
net: compat: Ignore MSG_CMSG_COMPAT in compat_sys_{send, recv}msg
...
With commit a7526eb5d0 (net: Unbreak compat_sys_{send,recv}msg), the
MSG_CMSG_COMPAT flag is blocked at the compat syscall entry points,
changing the kernel compat behaviour from the one before the commit it
was trying to fix (1be374a051 , net: Block MSG_CMSG_COMPAT in
send(m)msg and recv(m)msg).
On 32-bit kernels (!CONFIG_COMPAT), MSG_CMSG_COMPAT is 0 and the native
32-bit sys_sendmsg() allows flag 0x80000000 to be set (it is ignored by
the kernel). However, on a 64-bit kernel, the compat ABI is different
with commit a7526eb5d0 .
This patch changes the compat_sys_{send,recv}msg behaviour to the one
prior to commit 1be374a051 .
The problem was found running 32-bit LTP (sendmsg01) binary on an arm64
kernel. Arguably, LTP should not pass 0xffffffff as flags to sendmsg()
but the general rule is not to break user ABI (even when the user
behaviour is not entirely sane).
Fixes: a7526eb5d0 (net: Unbreak compat_sys_{send,recv}msg)
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-02-23 17:22:05 -05:00
..
6lowpan
9p
802
8021q
vlan: advertise link netns via netlink
2015-01-23 17:51:15 -08:00
appletalk
atm
ax25
batman-adv
bluetooth
Bluetooth: Fix potential NULL dereference
2015-02-03 09:02:12 +01:00
bridge
bridge: netfilter: Move sysctl-specific error code inside #ifdef
2015-02-12 08:44:46 -08:00
caif
caif: fix a signedness bug in cfpkt_iterate()
2015-02-20 17:35:14 -05:00
can
netlink: make nlmsg_end() and genlmsg_end() void
2015-01-18 01:03:45 -05:00
ceph
mm: gup: use get_user_pages_unlocked
2015-02-11 17:06:05 -08:00
core
net: pktgen: disable xmit_clone on virtual devices
2015-02-22 22:43:20 -05:00
dcb
dccp
decnet
decnet: Fix obvious o/0 typo
2015-02-23 15:28:50 -05:00
dns_resolver
dsa
net: dsa: Set valid phy interface type
2015-02-17 10:37:39 -08:00
ethernet
hsr
ieee802154
netlink: make nlmsg_end() and genlmsg_end() void
2015-01-18 01:03:45 -05:00
ipv4
tcp: fix tcp_should_expand_sndbuf() to use tcp_packets_in_flight()
2015-02-22 23:07:11 -05:00
ipv6
ipv6: fix ipv6_cow_metrics for non DST_HOST case
2015-02-14 20:26:16 -08:00
ipx
irda
irda: replace current->state by set_current_state()
2015-02-23 17:21:11 -05:00
iucv
key
l2tp
netlink: make nlmsg_end() and genlmsg_end() void
2015-01-18 01:03:45 -05:00
lapb
llc
net: llc: use correct size for sysctl timeout entries
2015-01-25 00:23:21 -08:00
mac80211
Last round of updates for net-next:
2015-02-04 14:57:45 -08:00
mac802154
mpls
net: mark some potential candidates __read_mostly
2015-01-30 17:58:39 -08:00
netfilter
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
2015-02-20 17:36:20 -05:00
netlabel
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
2015-02-11 20:25:11 -08:00
netlink
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2015-02-05 14:33:28 -08:00
netrom
nfc
NFC: nci: Move NFCEE discovery logic
2015-02-04 09:15:18 +01:00
openvswitch
openvswitch: Fix net exit.
2015-02-20 15:32:08 -05:00
packet
af_packet: allow packets defragmentation not only for hash fanout type
2015-02-21 23:00:18 -05:00
phonet
phonet netlink: allow multiple messages per skb in route dump
2015-01-19 16:20:17 -05:00
rds
rds: rds_cong_queue_updates needs to defer the congestion update transmission
2015-02-11 14:35:44 -08:00
rfkill
Last round of updates for net-next:
2015-02-04 14:57:45 -08:00
rose
rxrpc
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2015-02-04 20:46:55 -08:00
sched
ematch: Fix auto-loading of ematch modules.
2015-02-20 15:30:56 -05:00
sctp
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2015-02-05 14:33:28 -08:00
sunrpc
Merge branch 'for-3.20' of git://linux-nfs.org/~bfields/linux
2015-02-12 10:39:41 -08:00
switchdev
swdevice: add new apis to set and del bridge port attributes
2015-02-01 23:16:34 -08:00
tipc
tipc: remove tipc_snprintf
2015-02-09 13:20:49 -08:00
unix
net: remove sock_iocb
2015-01-28 23:15:07 -08:00
vmw_vsock
vmci: propagate msghdr all way down to __qp_memcpy_to_queue()
2015-02-04 01:34:14 -05:00
wimax
wireless
Last round of updates for net-next:
2015-02-04 14:57:45 -08:00
x25
xfrm
netlink: make nlmsg_end() and genlmsg_end() void
2015-01-18 01:03:45 -05:00
compat.c
net: compat: Ignore MSG_CMSG_COMPAT in compat_sys_{send, recv}msg
2015-02-23 17:22:05 -05:00
Kconfig
Makefile
socket.c
net: switch sockets to ->read_iter/->write_iter
2015-02-04 01:34:15 -05:00
sysctl_net.c