[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190919064046.GC2187@nanopsycho>
Date: Thu, 19 Sep 2019 08:40:46 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: Cong Wang <xiyou.wangcong@...il.com>
Cc: netdev@...r.kernel.org,
syzbot+618aacd49e8c8b8486bd@...kaller.appspotmail.com,
David Ahern <dsahern@...il.com>,
Jamal Hadi Salim <jhs@...atatu.com>
Subject: Re: [Patch net] net_sched: add max len check for TCA_KIND
Thu, Sep 19, 2019 at 01:24:12AM CEST, xiyou.wangcong@...il.com wrote:
>The TCA_KIND attribute is of NLA_STRING which does not check
>the NUL char. KMSAN reported an uninit-value of TCA_KIND which
>is likely caused by the lack of NUL.
>
>Change it to NLA_NUL_STRING and add a max len too.
>
>Fixes: 8b4c3cdd9dd8 ("net: sched: Add policy validation for tc attributes")
>Reported-and-tested-by: syzbot+618aacd49e8c8b8486bd@...kaller.appspotmail.com
Acked-by: Jiri Pirko <jiri@...lanox.com>
Powered by blists - more mailing lists