From: David Miller Subject: Re: [Patch net] tipc: compare remote and local protocols in tipc_udp_enable() Date: Fri, 14 Dec 2018 13:28:41 -0800 (PST) Message-ID: <20181214.132841.1255908718751546861.davem@davemloft.net> References: <20181210232330.4707-1-xiyou.wangcong@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, ying.xue@windriver.com, jon.maloy@ericsson.com To: xiyou.wangcong@gmail.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:34000 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730893AbeLNV2m (ORCPT ); Fri, 14 Dec 2018 16:28:42 -0500 In-Reply-To: <20181210232330.4707-1-xiyou.wangcong@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Cong Wang Date: Mon, 10 Dec 2018 15:23:30 -0800 > When TIPC_NLA_UDP_REMOTE is an IPv6 mcast address but > TIPC_NLA_UDP_LOCAL is an IPv4 address, a NULL-ptr deref is triggered > as the UDP tunnel sock is initialized to IPv4 or IPv6 sock merely > based on the protocol in local address. > > We should just error out when the remote address and local address > have different protocols. > > Reported-by: syzbot+eb4da3a20fad2e52555d@syzkaller.appspotmail.com > Cc: Ying Xue > Cc: Jon Maloy > Signed-off-by: Cong Wang Applied and queued up for -stable, thanks.