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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <24d0482c-f23f-83b1-e79e-fb84694d0a54@gmail.com>
Date:   Wed, 20 Nov 2019 09:41:01 -0700
From:   David Ahern <dsahern@...il.com>
To:     Dan Carpenter <dan.carpenter@...cle.com>,
        "David S. Miller" <davem@...emloft.net>
Cc:     Jiri Pirko <jiri@...lanox.com>, Ido Schimmel <idosch@...lanox.com>,
        Petr Machata <petrm@...lanox.com>,
        Jakub Kicinski <jakub.kicinski@...ronome.com>,
        Nikolay Aleksandrov <nikolay@...ulusnetworks.com>,
        Parav Pandit <parav@...lanox.com>,
        Roopa Prabhu <roopa@...ulusnetworks.com>,
        Johannes Berg <johannes.berg@...el.com>,
        Michal Kubecek <mkubecek@...e.cz>, netdev@...r.kernel.org,
        linux-rdma@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH net] net: rtnetlink: prevent underflows in do_setvfinfo()

On 11/20/19 5:34 AM, Dan Carpenter wrote:
> I reported this bug to the linux-rdma mailing list in April and this
> patch wasn't considered very elegant.  I can see how that's true.  The
> developer offered to write a fix which would update all the drivers to
> use u32 throughout.  I reminded him in September that this bug still
> needs to be fixed.

Since the uapi (ifla_vf_mac, ifla_vf_vlan, ...) all have u32, I agree
with that comment -- it seems like the ndo functions should be changed
from 'int vf' to 'u32 vf'.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ