From: Ying Xue Subject: Re: [PATCH net] tipc: fix uninit-value in tipc_nl_compat_link_set Date: Tue, 8 Jan 2019 09:33:20 +0800 Message-ID: <95fdea5a-7948-064f-e666-23ddde454c5b@windriver.com> References: <1546860592-6039-1-git-send-email-ying.xue@windriver.com> <20190107.053854.859872152037681322.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, tipc-discussion@lists.sourceforge.net To: David Miller Return-path: In-Reply-To: <20190107.053854.859872152037681322.davem@davemloft.net> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tipc-discussion-bounces@lists.sourceforge.net List-Id: netdev.vger.kernel.org On 1/7/19 9:38 PM, David Miller wrote: > From: Ying Xue > Date: Mon, 7 Jan 2019 19:29:52 +0800 > >> This is because lc->name string is not validated before it's used. > > It looks like we have several situations like this, not just this one. > > For example, tipc_nl_compat_bearer_{enable,disable}() with b->name. > > Next, tipc_nl_compat_media_set() and tipc_nl_compat_bearer_set(). > > On input, tipc_nl_compat_link_stat_dump() blindly does a strcmp() > on one of these strings. > > In fact, this entire file is full of errors of this sort. > > Can you please address all of them, perhaps using a helper of > some kind to consolidate the logic? > Thank you for your good suggestions. I will solve them as soon as possible. Regards, Ying > Thank you. >