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]
Date:   Tue, 13 Jun 2023 16:47:10 +0100
From:   Mark Brown <broonie@...nel.org>
To:     Ricard Wanderlof <ricardw@...s.com>
Cc:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Waqar Hameed <waqar.hameed@...s.com>, kernel@...s.com,
        linux-kernel@...r.kernel.org,
        "Rafael J. Wysocki" <rafael@...nel.org>
Subject: Re: [PATCH v2] regmap: Add debugfs file for forcing field writes

On Tue, Jun 13, 2023 at 05:15:10PM +0200, Ricard Wanderlof wrote:

> I can understand that enabling a write-always behavior results in a 
> different behavior on the associated bus (e.g. I2C), but in the end it 
> shouldn't affect the functionality of the peripheral device any more than 
> rearranging driver code to perform regmap writes in a different order, 
> which might also lead to fewer or more bus writes.

> It seems I'm clearly in the wrong here, so there must be some scenario 
> I've missed. It just doesn't seem that dangerous; it's a debug 
> functionality after all.

There are devices where the act of writing to a register can have side
effects even if the values in the register are the same (for example
triggering some kind of recalibration based on the "new" value).  It's
rare, and it's probably more likely to be annoying or disruptive than
actually dangerous, but it is something drivers might be relying on.

Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ