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: <5dd462dc.1c69fb81.b84c3.e950@mx.google.com>
Date:   Tue, 19 Nov 2019 13:47:07 -0800
From:   Stephen Boyd <swboyd@...omium.org>
To:     eberman@...eaurora.org
Cc:     agross@...nel.org, bjorn.andersson@...aro.org,
        saiprakash.ranjan@...eaurora.org, tsoni@...eaurora.org,
        sidgup@...eaurora.org, psodagud@...eaurora.org,
        linux-arm-msm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 01/18] firmware: qcom_scm: Rename macros and structures

Quoting eberman@...eaurora.org (2019-11-15 17:19:13)
> On 2019-11-15 15:27, Stephen Boyd wrote:
> > ... to here I don't understand why any of it needs to change. It looks
> > like a bunch of churn and it conflates qcom SCM calls with SMCCC which
> > is not desirable. Those two concepts are different.
> 
> I can see the confusion. The goal with this patch is to make it more 
> clear which
> macros and structures are for SCM interface from those which deal with 
> the
> implementation of how an SCM call is implemented with the smc 
> instruction. It's
> not presently clear that struct qcom_scm_response (for instance) is only
> relevant in the context of legacy convention.
> 
> I choose the name "legacy" since only older firmwares use it and having
> "scm_buffer_get_command_buffer" seems even more confusing to me! "SMCCC" 
> was
> chosen for lack of a better name.
> 
> Additionally, the concern with having qcom_scm_ prefix on these 
> functions
> (especially legacy_get_*_buffer()) is you get long function names which 
> didn't
> seem desirable. If the long names are preferable, I can update series 
> with the
> longer form of the names.
> 

This is the hardest problem in computer science. Figuring out a name.
;-)

Maybe call it scm_buffer_*? Because it _is_ scm communication with
shared buffers? The newer calling convention passes arguments in
registers, but the original calling convention passed a buffer around
from non-secure to secure world and then back again and had a embryonic
register based calling convention. That buffer passing still sort of
happens with the new style but it isn't done unless the register count
is larger than 5 or so and the return buffer isn't unbounded in size
like it was done. It also sort of follows the ARM SMC Calling Convection
spec now.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ