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: <20191004234519.GF13974@mellanox.com>
Date:   Fri, 4 Oct 2019 23:45:24 +0000
From:   Jason Gunthorpe <jgg@...lanox.com>
To:     Jeff Kirsher <jeffrey.t.kirsher@...el.com>
CC:     Leon Romanovsky <leon@...nel.org>,
        "dledford@...hat.com" <dledford@...hat.com>,
        "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
        Mustafa Ismail <mustafa.ismail@...el.com>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "linux-rdma@...r.kernel.org" <linux-rdma@...r.kernel.org>,
        Shiraz Saleem <shiraz.saleem@...el.com>
Subject: Re: [RFC 04/20] RDMA/irdma: Add driver framework definitions

On Fri, Oct 04, 2019 at 01:12:22PM -0700, Jeff Kirsher wrote:

> > > +	if (ldev->version.major != I40E_CLIENT_VERSION_MAJOR ||
> > > +	    ldev->version.minor != I40E_CLIENT_VERSION_MINOR) {
> > > +		pr_err("version mismatch:\n");
> > > +		pr_err("expected major ver %d, caller specified major
> > > ver %d\n",
> > > +		       I40E_CLIENT_VERSION_MAJOR, ldev->version.major);
> > > +		pr_err("expected minor ver %d, caller specified minor
> > > ver %d\n",
> > > +		       I40E_CLIENT_VERSION_MINOR, ldev->version.minor);
> > > +		return -EINVAL;
> > > +	}
> > 
> > This is can't be in upstream code, we don't support out-of-tree
> > modules,
> > everything else will have proper versions.
> 
> Who is the "we" in this context?

Upstream sensibility - if we start doing stuff like this then we will
end up doing it everwhere.

> you support out-of-tree drivers, they do exist and this code would
> ensure that if a "out-of-tree" driver is loaded, the driver will do a
> sanity check to ensure the RDMA driver will work.

I don't see how this is any different from any of the other myriad of
problems out of tree modules face. 

Someone providing out of tree modules has to provide enough parts of
their driver so that it only consumes the stable ABI from the distro
kernel.

Pretty normal stuff really.

Jason

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ