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: <alpine.DEB.2.21.2402100118350.2376@angie.orcam.me.uk>
Date: Sat, 10 Feb 2024 01:50:19 +0000 (GMT)
From: "Maciej W. Rozycki" <macro@...am.me.uk>
To: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
cc: Bjorn Helgaas <bhelgaas@...gle.com>, linux-pci@...r.kernel.org, 
    LKML <linux-kernel@...r.kernel.org>, 
    Mika Westerberg <mika.westerberg@...ux.intel.com>
Subject: Re: [PATCH 1/1] PCI: Cleanup link activation wait logic

On Fri, 2 Feb 2024, Ilpo Järvinen wrote:

> >  You change the logic here in that the second conditional isn't run if the 
> > first has not.  This is wrong, unclamping is not supposed to rely on LBMS. 
> > It is supposed to be always run and any failure has to be reported too, as 
> > a retraining error.  I'll send an update according to what I have outlined 
> > before then, with some testing done first.
> 
> Oh I see now, I'm sorry, I didn't read all the way to the last paragraph 
> of the commit message because the earlier one in the commit message hinted 
> the restriction is removed afterwards so I thought it was only linked to 
> the first part of the quirk.

 No worries.  I have submitted the changes now: 
<https://lore.kernel.org/r/alpine.DEB.2.21.2402092125070.2376@angie.orcam.me.uk/>.

 Unfortunately due to a sudden hardware failure I wasn't able to do any
non-trivial verification, as explained in the cover letter.  I'll try to 
get back to it as soon as reasonably possible, hopefully next month.

> >  I think it has to be a separate change, as a fix to what I can see is an 
> > issue with a three-way-merge done with commit 1abb47390350 ("Merge branch 
> > 'pci/enumeration'"); surely a bool result wasn't supposed to be assigned 
> > to an int variable carrying an error code.
> > 
> >  Either or both changes may have to be backported independently.
> 
> But can it be? Won't the intermediate state cause more breakage? (although 
> that obviously can only hit some very unfortunate bisecter so perhaps not 
> a big deal because one would need many holes to align, the biggest being 
> the link has to fail training which is rare to begin with).

 I decided to do it differently after all, still with two changes.  There 
doesn't have to be any intermediate state, and returning failure where no 
retraining has been done is no different from the case where a failure was 
caused by the lack of hardware features required, such as link active 
reporting, so if callers work without this update, then so they will with 
it in place (i.e. no regression).

  Maciej

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ