[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191213171559.74d73d6a@cakuba.netronome.com>
Date: Fri, 13 Dec 2019 17:15:59 -0800
From: Jakub Kicinski <jakub.kicinski@...ronome.com>
To: Hangbin Liu <liuhangbin@...il.com>
Cc: netdev@...r.kernel.org, Jiri Benc <jbenc@...hat.com>,
David Miller <davem@...emloft.net>
Subject: Re: [PATCH net] ipv6/addrconf: only check invalid header values
when NETLINK_F_STRICT_CHK is set
On Wed, 11 Dec 2019 22:20:16 +0800, Hangbin Liu wrote:
> In patch 4b1373de73a3 ("net: ipv6: addr: perform strict checks also for doit
> handlers") we add strict check for inet6_rtm_getaddr(). But we did the
> invalid header values check before checking if NETLINK_F_STRICT_CHK is
> set. This may break backwards compatibility if user already set the
> ifm->ifa_prefixlen, ifm->ifa_flags, ifm->ifa_scope in their netlink code.
>
> I didn't move the nlmsg_len check becuase I thought it's a valid check.
>
> Reported-by: Jianlin Shi <jishi@...hat.com>
> Fixes: 4b1373de73a3 ("net: ipv6: addr: perform strict checks also for doit handlers")
> Signed-off-by: Hangbin Liu <liuhangbin@...il.com>
Applied, and queued for stable, thanks!
Powered by blists - more mailing lists