lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 9 May 2017 15:48:00 +0300
From:   Yotam Gigi <yotamg@...lanox.com>
To:     Tobias Klauser <tklauser@...tanz.ch>
CC:     <davem@...emloft.net>, <zhangshengju@...s.chinamobile.com>,
        <roopa@...ulusnetworks.com>, <sd@...asysnail.net>,
        <bblanco@...mgrid.com>, <minipli@...glemail.com>,
        <nogahf@...lanox.com>, <moshe@...lanox.com>,
        <rshearma@...cade.com>, <daniel@...earbox.net>,
        <netdev@...r.kernel.org>, David Ahern <dsa@...ulusnetworks.com>
Subject: Re: [PATCH net] rtnetlink: Fix the IFLA_PHYS_PORT_NAME TLV to include
 terminating NULL

On 05/09/2017 03:31 PM, Tobias Klauser wrote:
> On 2017-05-09 at 14:12:02 +0200, Yotam Gigi <yotamg@...lanox.com> wrote:
>> The IFLA_PHYS_PORT_NAME rtnetlink TLV length does not include the
>> terminating NULL character, which is different from other string typed
>> TLVs. Due to the fact that libnl checks for the terminating NULL in every
>> string typed attribute, it crashes on every RTM_GETLINK response on
>> drivers that implement ndo_get_phys_port_name.
>>
>> Make the fill_phys_port_name function include the terminating NULL in the
>> TLV size by using the nla_put_string helper function.
>>
>> Fixes: db24a9044ee1 ("net: add support for phys_port_name")
>> Signed-off-by: Yotam Gigi <yotamg@...lanox.com>
>> Cc: David Ahern <dsa@...ulusnetworks.com>
>> Reviewed-by: Ido Schimmel <idosch@...lanox.com>
>> Acked-by: Jiri Pirko <jiri@...lanox.com>
>> ---
>> Please consider this for stable too. Thanks!
> This is already fixed in commit 77ef033b687c ("rtnetlink: NUL-terminate
> IFLA_PHYS_PORT_NAME string").


You are right. I forgot to rebase my net tree :)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ