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]
Message-ID: <c552d202-4c1e-a561-aac6-1f4a257faff9@pengutronix.de>
Date:   Tue, 5 Sep 2023 08:03:42 +0200
From:   Ahmad Fatoum <a.fatoum@...gutronix.de>
To:     Greg KH <gregkh@...uxfoundation.org>, Pavel Machek <pavel@...x.de>
Cc:     Sasha Levin <sashal@...nel.org>, linux-kernel@...r.kernel.org,
        stable@...r.kernel.org, Daniel Lezcano <daniel.lezcano@...aro.org>,
        "Rafael J . Wysocki" <rafael.j.wysocki@...el.com>,
        rafael@...nel.org, linux-pm@...r.kernel.org
Subject: Re: [PATCH AUTOSEL 6.4 18/54] thermal: core: constify params in
 thermal_zone_device_register

On 22.08.23 13:31, Greg KH wrote:
> On Tue, Aug 22, 2023 at 12:43:08PM +0200, Pavel Machek wrote:
>> Hi!
>>
>>> [ Upstream commit 80ddce5f2dbd0e83eadc9f9d373439180d599fe5 ]
>>>
>>> Since commit 3d439b1a2ad3 ("thermal/core: Alloc-copy-free the thermal zone
>>> parameters structure"), thermal_zone_device_register() allocates a copy
>>> of the tzp argument and callers need not explicitly manage its lifetime.
>>>
>>> This means the function no longer cares about the parameter being
>>> mutable, so constify it.
>>>
>>> No functional change.
>>
>> Not a bugfix, should not be in stable.
>>
>> 3d439b1a2ad3 ("thermal/core: Alloc-copy-free the thermal zone
>> parameters structure") is not in 6.1, so this is not correct patch for
>> 6.1.

[Sidenote: this is AUTOSEL for 6.4, where the patch is applicable, unlike 6.1]


>> Why was this selected for AUTOSEL? Can you make sure patches marked
>> "No functional change." are not selected in future?
> 
> No, because sometimes they are needed in later patches.  And marking
> things const is good :)

The patch used to have a Fixes: trailer[1], but Rafael disagreed that it
constitutes a fix. In future, I'll insist on keeping the Fixes: tag to
prevent such issues. But maybe AUTOSEL could also take lines like "Since
commit $(some commit hash not existing in the stable kernel)" into consideration.

[1]: https://lore.kernel.org/all/20230708112720.2897484-1-a.fatoum@pengutronix.de/

Cheers,
Ahmad


> 
> thanks,
> 
> greg k-h
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ