[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <95fdea5a-7948-064f-e666-23ddde454c5b@windriver.com>
Date: Tue, 8 Jan 2019 09:33:20 +0800
From: Ying Xue <ying.xue@...driver.com>
To: David Miller <davem@...emloft.net>
CC: <netdev@...r.kernel.org>, <jon.maloy@...csson.com>,
<tipc-discussion@...ts.sourceforge.net>,
<syzkaller-bugs@...glegroups.com>
Subject: Re: [PATCH net] tipc: fix uninit-value in tipc_nl_compat_link_set
On 1/7/19 9:38 PM, David Miller wrote:
> From: Ying Xue <ying.xue@...driver.com>
> 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.
>
Powered by blists - more mailing lists