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: <20221013020121.2874-1-kunyu@nfschina.com>
Date:   Thu, 13 Oct 2022 10:01:20 +0800
From:   Li kunyu <kunyu@...china.com>
To:     skhan@...uxfoundation.org
Cc:     kunyu@...china.com, linux-kernel@...r.kernel.org,
        linux-pm@...r.kernel.org, ray.huang@....com, shuah@...nel.org,
        trenn@...e.com
Subject: Re: [PATCH] power: cpupower: utils: Optimize print_online_cpus and print_offline_cpus function


I'm glad to get your reply. In previous tests, it was found that variable initialization and assignment use mov related instructions. Therefore, when I analyze the code and find that removing some variable initialization and assignment does not affect the function and security, I will try to remove variable initialization.

Find the malloc function and find that its return value is void * type, so it does not need to cast.

thanks,
kunyu

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ