Vegard Nossum
d2fbdf76b8
tipc: fix NULL pointer dereference in shutdown()
tipc_msg_create() can return a NULL skb and if so, we shouldn't try to
call tipc_node_xmit_skb() on it.
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 3 PID: 30298 Comm: trinity-c0 Not tainted 4.7.0-rc7+ #19
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Ubuntu-1.8.2-1ubuntu1 04/01/2014
task: ffff8800baf09980 ti: ffff8800595b8000 task.ti: ffff8800595b8000
RIP: 0010:[<ffffffff830bb46b>] [<ffffffff830bb46b>] tipc_node_xmit_skb+0x6b/0x140
RSP: 0018:ffff8800595bfce8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 000000003023b0e0
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: ffffffff83d12580
RBP: ffff8800595bfd78 R08: ffffed000b2b7f32 R09: 0000000000000000
R10: fffffbfff0759725 R11: 0000000000000000 R12: 1ffff1000b2b7f9f
R13: ffff8800595bfd58 R14: ffffffff83d12580 R15: dffffc0000000000
FS: 00007fcdde242700(0000) GS:ffff88011af80000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcddde1db10 CR3: 000000006874b000 CR4: 00000000000006e0
DR0: 00007fcdde248000 DR1: 00007fcddd73d000 DR2: 00007fcdde248000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000090602
Stack:
0000000000000018 0000000000000018 0000000041b58ab3 ffffffff83954208
ffffffff830bb400 ffff8800595bfd30 ffffffff8309d767 0000000000000018
0000000000000018 ffff8800595bfd78 ffffffff8309da1a 00000000810ee611
Call Trace:
[<ffffffff830c84a3>] tipc_shutdown+0x553/0x880
[<ffffffff825b4a3b>] SyS_shutdown+0x14b/0x170
[<ffffffff8100334c>] do_syscall_64+0x19c/0x410
[<ffffffff83295ca5>] entry_SYSCALL64_slow_path+0x25/0x25
Code: 90 00 b4 0b 83 c7 00 f1 f1 f1 f1 4c 8d 6d e0 c7 40 04 00 00 00 f4 c7 40 08 f3 f3 f3 f3 48 89 d8 48 c1 e8 03 c7 45 b4 00 00 00 00 <80> 3c 30 00 75 78 48 8d 7b 08 49 8d 75 c0 48 b8 00 00 00 00 00
RIP [<ffffffff830bb46b>] tipc_node_xmit_skb+0x6b/0x140
RSP <ffff8800595bfce8>
---[ end trace 57b0484e351e71f1 ]---
I feel like we should maybe return -ENOMEM or -ENOBUFS, but I'm not sure
userspace is equipped to handle that. Anyway, this is better than a GPF
and looks somewhat consistent with other tipc_msg_create() callers.
Signed-off-by: Vegard Nossum <[email protected]>
Acked-by: Ying Xue <[email protected]>
Acked-by: Jon Maloy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
|
2016-08-15 13:55:36 -07:00 |
| .. |
|
6lowpan
|
6lowpan: ndisc: set invalid unicast short addr to unspec
|
2016-07-08 13:23:12 +02:00 |
|
9p
|
|
|
|
802
|
|
|
|
8021q
|
net: remove type_check from dev_get_nest_level()
|
2016-08-13 15:15:54 -07:00 |
|
appletalk
|
|
|
|
atm
|
net: add dev arg to ndo_neigh_construct/destroy
|
2016-07-05 09:06:28 -07:00 |
|
ax25
|
AX.25: Close socket connection on session completion
|
2016-06-18 20:55:34 -07:00 |
|
batman-adv
|
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
|
2016-07-24 00:53:32 -04:00 |
|
bluetooth
|
Bluetooth: Add debugfs fields for hardware and firmware info
|
2016-07-18 09:33:28 +03:00 |
|
bridge
|
bridge: Fix problems around fdb entries pointing to the bridge device
|
2016-08-09 21:42:44 -07:00 |
|
caif
|
caif: Remove unneeded header file
|
2016-06-28 05:26:14 -04:00 |
|
can
|
can: only call can_stat_update with procfs
|
2016-06-23 11:23:49 +02:00 |
|
ceph
|
libceph: fsmap.user subscription support
|
2016-07-28 03:00:40 +02:00 |
|
core
|
net: remove type_check from dev_get_nest_level()
|
2016-08-13 15:15:54 -07:00 |
|
dcb
|
|
|
|
dccp
|
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
|
2016-07-29 17:38:46 -07:00 |
|
decnet
|
net: fix decnet rtnexthop parsing
|
2016-07-05 14:08:47 -07:00 |
|
dns_resolver
|
|
|
|
dsa
|
net: dsa: support switchdev ageing time attr
|
2016-07-19 19:42:01 -07:00 |
|
ethernet
|
|
|
|
hsr
|
|
|
|
ieee802154
|
ieee802154: 6lowpan: fix intra pan id check
|
2016-07-08 13:23:12 +02:00 |
|
ipv4
|
gre: set inner_protocol on xmit
|
2016-08-15 13:37:12 -07:00 |
|
ipv6
|
gre: set inner_protocol on xmit
|
2016-08-15 13:37:12 -07:00 |
|
ipx
|
|
|
|
irda
|
net/irda: handle iriap_register_lsap() allocation failure
|
2016-08-13 15:09:07 -07:00 |
|
iucv
|
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
|
2016-07-29 17:38:46 -07:00 |
|
kcm
|
kcm: remove redundant -ve error check and return path
|
2016-07-25 11:17:16 -07:00 |
|
key
|
|
|
|
l2tp
|
l2tp: Correctly return -EBADF from pppol2tp_getname.
|
2016-07-26 15:19:46 -07:00 |
|
l3mdev
|
net: vrf: Implement get_saddr for IPv6
|
2016-06-17 21:25:29 -07:00 |
|
lapb
|
|
|
|
llc
|
|
|
|
mac80211
|
mac80211: Add ieee80211_hw pointer to get_expected_throughput
|
2016-08-05 14:23:25 +02:00 |
|
mac802154
|
|
|
|
mpls
|
mpls: allow routes on ipip and sit devices
|
2016-07-09 17:45:56 -04:00 |
|
ncsi
|
net/ncsi: avoid maybe-uninitialized warning
|
2016-07-25 10:32:59 -07:00 |
|
netfilter
|
netfilter: nft_exthdr: Add size check on u8 nft_exthdr attributes
|
2016-08-10 13:10:13 +02:00 |
|
netlabel
|
netlabel: Implement CALIPSO config functions for SMACK.
|
2016-06-27 15:06:18 -04:00 |
|
netlink
|
net/netlink/af_netlink.h: Remove unused structure.
|
2016-06-09 22:26:24 -07:00 |
|
netrom
|
|
|
|
nfc
|
NFC: digital: Fix RTOX supervisor PDU handling
|
2016-07-11 02:02:03 +02:00 |
|
openvswitch
|
openvswitch: do not ignore netdev errors when creating tunnel vports
|
2016-08-10 23:13:23 -07:00 |
|
packet
|
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
|
2016-07-24 00:53:32 -04:00 |
|
phonet
|
|
|
|
qrtr
|
|
|
|
rds
|
RDS: TCP: Enable multipath RDS for TCP
|
2016-07-15 11:36:58 -07:00 |
|
rfkill
|
|
|
|
rose
|
rose: limit sk_filter trim to payload
|
2016-07-13 11:53:40 -07:00 |
|
rxrpc
|
rxrpc: Free packets discarded in data_ready
|
2016-08-09 17:13:56 +01:00 |
|
sched
|
net_sched: get rid of struct tcf_common
|
2016-07-25 21:49:20 -07:00 |
|
sctp
|
net/sctp: always initialise sctp_ht_iter::start_fail
|
2016-08-13 15:10:16 -07:00 |
|
sunrpc
|
NFS client updates for Linux 4.8
|
2016-07-30 16:33:25 -07:00 |
|
switchdev
|
net/switchdev: Export the same parent ID service function
|
2016-07-14 13:34:29 -07:00 |
|
tipc
|
tipc: fix NULL pointer dereference in shutdown()
|
2016-08-15 13:55:36 -07:00 |
|
unix
|
af_unix: charge buffers to kmemcg
|
2016-07-26 16:19:19 -07:00 |
|
vmw_vsock
|
vsock: make listener child lock ordering explicit
|
2016-06-27 10:44:46 -04:00 |
|
wimax
|
|
|
|
wireless
|
nl80211: correct checks for NL80211_MESHCONF_HT_OPMODE value
|
2016-08-05 14:14:54 +02:00 |
|
x25
|
|
|
|
xfrm
|
|
|
|
compat.c
|
packet: compat support for sock_fprog
|
2016-06-09 23:41:03 -07:00 |
|
Kconfig
|
net/ncsi: Resource management
|
2016-07-19 20:49:16 -07:00 |
|
Makefile
|
net/ncsi: Resource management
|
2016-07-19 20:49:16 -07:00 |
|
socket.c
|
|
|
|
sysctl_net.c
|
|
|