linux_dsm_epyc7002/drivers/infiniband/hw
Feng Tang ec4fe4bcc5 i40iw: Avoid panic when handling the inetdev event
There is a panic reported that on a system with x722 ethernet, when doing
the operations like:

	# ip link add br0 type bridge
	# ip link set eno1 master br0
	# systemctl restart systemd-networkd

The system will panic "BUG: unable to handle kernel null pointer
dereference at 0000000000000034", with call chain:

	i40iw_inetaddr_event
	notifier_call_chain
	blocking_notifier_call_chain
	notifier_call_chain
	__inet_del_ifa
	inet_rtm_deladdr
	rtnetlink_rcv_msg
	netlink_rcv_skb
	rtnetlink_rcv
	netlink_unicast
	netlink_sendmsg
	sock_sendmsg
	__sys_sendto

It is caused by "local_ipaddr = ntohl(in->ifa_list->ifa_address)", while
the in->ifa_list is NULL.

So add a check for the "in->ifa_list == NULL" case, and skip the ARP
operation accordingly.

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-03-17 21:40:40 -03:00
..
bnxt_re 5.1 Merge Window Pull Request 2019-03-09 15:53:03 -08:00
cxgb3 RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
cxgb4 5.1 Merge Window Pull Request 2019-03-09 15:53:03 -08:00
hfi1 5.1 Merge Window Pull Request 2019-03-09 15:53:03 -08:00
hns RDMA/hns: Use GFP_ATOMIC in hns_roce_v2_modify_qp 2019-03-04 16:41:30 -04:00
i40iw i40iw: Avoid panic when handling the inetdev event 2019-03-17 21:40:40 -03:00
mlx4 IB/mlx4: Fix race condition between catas error reset and aliasguid flows 2019-03-17 21:40:39 -03:00
mlx5 IB/mlx5: Fix mapping of link-mode to IB width and speed 2019-03-17 21:40:39 -03:00
mthca RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
nes RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
ocrdma RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
qedr RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
qib drivers/IB,qib: Fix pinned/locked limit check in qib_get_user_pages() 2019-02-20 14:42:41 -07:00
usnic RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
vmw_pvrdma RDMA: Handle ucontext allocations by IB/core 2019-02-22 14:11:37 -07:00
Makefile