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] [day] [month] [year] [list]
Date:   Wed, 3 Feb 2021 10:55:10 +0800
From:   Chris Mi <cmi@...dia.com>
To:     Jakub Kicinski <kuba@...nel.org>, Saeed Mahameed <saeed@...nel.org>
CC:     <netdev@...r.kernel.org>, <jiri@...dia.com>,
        kernel test robot <lkp@...el.com>,
        Ido Schimmel <idosch@...sch.org>
Subject: Re: [PATCH net-next v6] net: psample: Introduce stubs to remove NIC
 driver dependency

Hi Jakub,

On 2/3/2021 5:24 AM, Jakub Kicinski wrote:
> On Mon, 01 Feb 2021 23:31:15 -0800 Saeed Mahameed wrote:
>> On Mon, 2021-02-01 at 17:14 -0800, Jakub Kicinski wrote:
>>> On Mon,  1 Feb 2021 10:04:12 +0800 Chris Mi wrote:
>>>> In order to send sampled packets to userspace, NIC driver calls
>>>> psample api directly. But it creates a hard dependency on module
>>>> psample. Introduce psample_ops to remove the hard dependency.
>>>> It is initialized when psample module is loaded and set to NULL
>>>> when the module is unloaded.
>>>>
>>>> Reported-by: kernel test robot <lkp@...el.com>
>>>> Signed-off-by: Chris Mi <cmi@...dia.com>
>>>> Reviewed-by: Jiri Pirko <jiri@...dia.com>
>>> The necessity of making this change is not obvious (you can fix the
>>> distro scripts instead), you did not include a clarification in the
>>> commit message even though two people asked you why it's needed and
>>> on top of that you keep sending code which doesn't build.
>>>
>>> Please consider this change rejected and do not send a v7.
>> Jakub, it is not only about installation dependencies, the issue is
>> more critical than this,
>>
>> We had some other issues with similar dependency problem where
>> mlx5_core had hard dependency with netfilter, firewalld when disabled,
>> removes netfilter and all its dependencies including mlx5, this is a no
>> go for our users.
>>
>> Again, having a hard dependency between a hardware driver and a
>> peripheral module in the kernel is a bad design.
> That is not the point.
>
> The technical problem is minor, and it's a problem for _your_ driver.
> Yet, it appears to be my responsibility to make sure the patch even
> compiles.
>
> I believe there should be a limit to the ignorance a community
> volunteer is expected to put up with when dealing with patches
> from and for the benefit of a commercial vendor.
>
> This is up for discussion, if you disagree let's talk it out. I'm
> not particularly patient (to put it mildly), but I don't understand
> how v5 could have built, and yet v6 gets posted with the same exact
> problem :/
>
> So from my perspective it seems like the right step to push back.
> If you, Tariq, Jiri, Ido or any other seasoned kernel contributor
> reposts this after making sure it's up to snuff themselves I will
> most certainly take a look / apply.
Just now I tested v5 using sparse. I did hit some errors for psample. 
The reason I
didn't hit it is because I only build the psample module. But I forget I 
changed
the kernel. So I should build the whole kernel.

I'm really sorry that I waste you a lot of time for this bad quality 
patch. You know
usually Saeed submits most of the patches on behalf of us. So I'm not 
very familiar
with rules here.

So how about I submit v7 based on v4. I know you are very busy, if it is 
not ok,
I'll wait for Saeed's further information about next step.

Thanks,
Chris

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ