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:   Thu, 5 Aug 2021 11:55:28 -0700
From:   Jakub Kicinski <kuba@...nel.org>
To:     Jonathan Lemon <jonathan.lemon@...il.com>
Cc:     davem@...emloft.net, richardcochran@...il.com, kernel-team@...com,
        netdev@...r.kernel.org
Subject: Re: [PATCH net-next v4] ptp: ocp: Expose various resources on the
 timecard.

On Thu, 5 Aug 2021 10:26:23 -0700 Jonathan Lemon wrote:
> > > We're not talking to the flash yet.  We're writing a new image, but don't
> > > know the image version, since it's not accessible from the FPGA blob.  So
> > > since we're don't know what the stored image is until we reboot, I've set
> > > it to 'pending' here - aka "pending reboot".  Could also be "unknown".  
> > 
> > Having the driver remember that the device was flashed is not a solid
> > indication that the image is actually different. It may be that user
> > flashed the same version, driver may get reloaded and lose the
> > indication.. Let's not make a precedent for (ab) use of the version
> > field to indicate reset required.  
> 
> I'd like to have some way to remind/tell the user that a reset is required.
> 
> Right now, I can only get the running version from the FPGA register, so
> after flashing, there's no way for me to know what's on the flash (or if 
> the flash write failed).  Setting "pending" or "reboot" works for most
> cases - but obviously fails if the driver is reloaded. 
> 
> But most users won't do rmmod/insmod, just a reboot.

I appreciate the problem of knowing if FW activation is required exists
but the way devlink API is intending to solve it is by displaying the
actual versions. Version entries are for carrying versions, not
arbitrary information.

If we assume driver does not get re-initialized / kernel kexeced etc.
we can assume other things, like for example that nothing will mess
with the filesystem. Ergo the flashing process can create a file in 
a well known location on the FS to indicate that reset is pending..

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ