* Re: [edk2-devel] [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency expression [not found] <17A26769C8DD363C.24485@groups.io> @ 2023-12-29 13:09 ` Li, Yi 0 siblings, 0 replies; 4+ messages in thread From: Li, Yi @ 2023-12-29 13:09 UTC (permalink / raw) To: devel@edk2.groups.io, Li, Yi1 Cc: Kinney, Michael D, Gao, Liming, Liu, Zhiguang, Xu, Wei6 Hello, any comments about this patch series? -----Original Message----- From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Li, Yi Sent: Wednesday, December 20, 2023 9:55 AM To: devel@edk2.groups.io Cc: Li, Yi1 <yi1.li@intel.com>; Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn>; Liu, Zhiguang <zhiguang.liu@intel.com>; Xu, Wei6 <wei6.xu@intel.com> Subject: [edk2-devel] [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency expression To avoid messy parsing of the Depex section of a Capsule, it would be a lot easier for everyone involved if we preceded the Capsule Depex Section with a length declaration. It provides simple bounds checking to avoid having to parse the op-codes, but in the case of a malformed depex being parsed, avoid other issues which can be messy. Syntax DECLARE_LENGTH <32-bit Length> Description Declares an 32-bit byte length of the entire dependency expression. Behaviors and Restrictions This opcode must be the first one in a dependency expression. REF: UEFI spec 2.10 Table 23.4 Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Cc: Wei6 Xu <wei6.xu@intel.com> Yi Li (2): MdePkg: Add DECLARE_LENGTH opcode of dependency expression FmpDevicePkg: Add DECLARE_LENGTH opcode of dependency expression .../FmpDependencyLib/FmpDependencyLib.c | 35 ++++++++ .../PrivateInclude/FmpLastAttemptStatus.h | 3 + .../EvaluateDependencyUnitTest.c | 84 ++++++++++++++++--- MdePkg/Include/Protocol/FirmwareManagement.h | 29 +++---- 4 files changed, 125 insertions(+), 26 deletions(-) -- 2.42.0.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112998): https://edk2.groups.io/g/devel/message/112998 Mute This Topic: https://groups.io/mt/103274336/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 4+ messages in thread
* [edk2-devel] [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency expression @ 2023-12-20 1:54 Li, Yi 2024-01-02 1:43 ` Xu, Wei6 0 siblings, 1 reply; 4+ messages in thread From: Li, Yi @ 2023-12-20 1:54 UTC (permalink / raw) To: devel; +Cc: Yi Li, Michael D Kinney, Liming Gao, Zhiguang Liu, Wei6 Xu To avoid messy parsing of the Depex section of a Capsule, it would be a lot easier for everyone involved if we preceded the Capsule Depex Section with a length declaration. It provides simple bounds checking to avoid having to parse the op-codes, but in the case of a malformed depex being parsed, avoid other issues which can be messy. Syntax DECLARE_LENGTH <32-bit Length> Description Declares an 32-bit byte length of the entire dependency expression. Behaviors and Restrictions This opcode must be the first one in a dependency expression. REF: UEFI spec 2.10 Table 23.4 Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Cc: Wei6 Xu <wei6.xu@intel.com> Yi Li (2): MdePkg: Add DECLARE_LENGTH opcode of dependency expression FmpDevicePkg: Add DECLARE_LENGTH opcode of dependency expression .../FmpDependencyLib/FmpDependencyLib.c | 35 ++++++++ .../PrivateInclude/FmpLastAttemptStatus.h | 3 + .../EvaluateDependencyUnitTest.c | 84 ++++++++++++++++--- MdePkg/Include/Protocol/FirmwareManagement.h | 29 +++---- 4 files changed, 125 insertions(+), 26 deletions(-) -- 2.42.0.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112737): https://edk2.groups.io/g/devel/message/112737 Mute This Topic: https://groups.io/mt/103274336/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency expression 2023-12-20 1:54 Li, Yi @ 2024-01-02 1:43 ` Xu, Wei6 2024-01-03 0:52 ` [edk2-devel] 回复: " gaoliming via groups.io 0 siblings, 1 reply; 4+ messages in thread From: Xu, Wei6 @ 2024-01-02 1:43 UTC (permalink / raw) To: Li, Yi1, devel@edk2.groups.io Cc: Kinney, Michael D, Gao, Liming, Liu, Zhiguang Reviewed-by: Wei6 Xu <wei6.xu@intel.com> -----Original Message----- From: Li, Yi1 <yi1.li@intel.com> Sent: Wednesday, December 20, 2023 9:55 AM To: devel@edk2.groups.io Cc: Li, Yi1 <yi1.li@intel.com>; Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn>; Liu, Zhiguang <zhiguang.liu@intel.com>; Xu, Wei6 <wei6.xu@intel.com> Subject: [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency expression To avoid messy parsing of the Depex section of a Capsule, it would be a lot easier for everyone involved if we preceded the Capsule Depex Section with a length declaration. It provides simple bounds checking to avoid having to parse the op-codes, but in the case of a malformed depex being parsed, avoid other issues which can be messy. Syntax DECLARE_LENGTH <32-bit Length> Description Declares an 32-bit byte length of the entire dependency expression. Behaviors and Restrictions This opcode must be the first one in a dependency expression. REF: UEFI spec 2.10 Table 23.4 Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Cc: Wei6 Xu <wei6.xu@intel.com> Yi Li (2): MdePkg: Add DECLARE_LENGTH opcode of dependency expression FmpDevicePkg: Add DECLARE_LENGTH opcode of dependency expression .../FmpDependencyLib/FmpDependencyLib.c | 35 ++++++++ .../PrivateInclude/FmpLastAttemptStatus.h | 3 + .../EvaluateDependencyUnitTest.c | 84 ++++++++++++++++--- MdePkg/Include/Protocol/FirmwareManagement.h | 29 +++---- 4 files changed, 125 insertions(+), 26 deletions(-) -- 2.42.0.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113016): https://edk2.groups.io/g/devel/message/113016 Mute This Topic: https://groups.io/mt/103274336/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 4+ messages in thread
* [edk2-devel] 回复: [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency expression 2024-01-02 1:43 ` Xu, Wei6 @ 2024-01-03 0:52 ` gaoliming via groups.io 2024-01-03 10:36 ` [edk2-devel] " Li, Yi 0 siblings, 1 reply; 4+ messages in thread From: gaoliming via groups.io @ 2024-01-03 0:52 UTC (permalink / raw) To: 'Xu, Wei6', 'Li, Yi1', devel Cc: 'Kinney, Michael D', 'Liu, Zhiguang' Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> for this patch set. > -----邮件原件----- > 发件人: Xu, Wei6 <wei6.xu@intel.com> > 发送时间: 2024年1月2日 9:43 > 收件人: Li, Yi1 <yi1.li@intel.com>; devel@edk2.groups.io > 抄送: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming > <gaoliming@byosoft.com.cn>; Liu, Zhiguang <zhiguang.liu@intel.com> > 主题: RE: [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency > expression > > Reviewed-by: Wei6 Xu <wei6.xu@intel.com> > > -----Original Message----- > From: Li, Yi1 <yi1.li@intel.com> > Sent: Wednesday, December 20, 2023 9:55 AM > To: devel@edk2.groups.io > Cc: Li, Yi1 <yi1.li@intel.com>; Kinney, Michael D > <michael.d.kinney@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn>; > Liu, Zhiguang <zhiguang.liu@intel.com>; Xu, Wei6 <wei6.xu@intel.com> > Subject: [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency > expression > > To avoid messy parsing of the Depex section of a Capsule, it would be a lot > easier for everyone involved if we preceded the Capsule Depex Section with a > length declaration. It provides simple bounds checking to avoid having to > parse the op-codes, but in the case of a malformed depex being parsed, avoid > other issues which can be messy. > > Syntax > DECLARE_LENGTH <32-bit Length> > Description > Declares an 32-bit byte length of the entire dependency expression. > Behaviors and Restrictions > This opcode must be the first one in a dependency expression. > > REF: UEFI spec 2.10 Table 23.4 > > Cc: Michael D Kinney <michael.d.kinney@intel.com> > Cc: Liming Gao <gaoliming@byosoft.com.cn> > Cc: Zhiguang Liu <zhiguang.liu@intel.com> > Cc: Wei6 Xu <wei6.xu@intel.com> > > Yi Li (2): > MdePkg: Add DECLARE_LENGTH opcode of dependency expression > FmpDevicePkg: Add DECLARE_LENGTH opcode of dependency expression > > .../FmpDependencyLib/FmpDependencyLib.c | 35 ++++++++ > .../PrivateInclude/FmpLastAttemptStatus.h | 3 + > .../EvaluateDependencyUnitTest.c | 84 > ++++++++++++++++--- > MdePkg/Include/Protocol/FirmwareManagement.h | 29 +++---- > 4 files changed, 125 insertions(+), 26 deletions(-) > > -- > 2.42.0.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113045): https://edk2.groups.io/g/devel/message/113045 Mute This Topic: https://groups.io/mt/103494041/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [edk2-devel] [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency expression 2024-01-03 0:52 ` [edk2-devel] 回复: " gaoliming via groups.io @ 2024-01-03 10:36 ` Li, Yi 0 siblings, 0 replies; 4+ messages in thread From: Li, Yi @ 2024-01-03 10:36 UTC (permalink / raw) To: Gao, Liming, Xu, Wei6, devel@edk2.groups.io Cc: Kinney, Michael D, Liu, Zhiguang Hi Liming, I created a PR and CI passed, could you help merge it? https://github.com/tianocore/edk2/pull/5210 Thanks, Yi -----Original Message----- From: gaoliming <gaoliming@byosoft.com.cn> Sent: Wednesday, January 3, 2024 8:52 AM To: Xu, Wei6 <wei6.xu@intel.com>; Li, Yi1 <yi1.li@intel.com>; devel@edk2.groups.io Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Liu, Zhiguang <zhiguang.liu@intel.com> Subject: 回复: [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency expression Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> for this patch set. > -----邮件原件----- > 发件人: Xu, Wei6 <wei6.xu@intel.com> > 发送时间: 2024年1月2日 9:43 > 收件人: Li, Yi1 <yi1.li@intel.com>; devel@edk2.groups.io > 抄送: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming > <gaoliming@byosoft.com.cn>; Liu, Zhiguang <zhiguang.liu@intel.com> > 主题: RE: [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency > expression > > Reviewed-by: Wei6 Xu <wei6.xu@intel.com> > > -----Original Message----- > From: Li, Yi1 <yi1.li@intel.com> > Sent: Wednesday, December 20, 2023 9:55 AM > To: devel@edk2.groups.io > Cc: Li, Yi1 <yi1.li@intel.com>; Kinney, Michael D > <michael.d.kinney@intel.com>; Gao, Liming <gaoliming@byosoft.com.cn>; > Liu, Zhiguang <zhiguang.liu@intel.com>; Xu, Wei6 <wei6.xu@intel.com> > Subject: [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency > expression > > To avoid messy parsing of the Depex section of a Capsule, it would be > a lot > easier for everyone involved if we preceded the Capsule Depex Section > with a > length declaration. It provides simple bounds checking to avoid having > to parse the op-codes, but in the case of a malformed depex being > parsed, avoid > other issues which can be messy. > > Syntax > DECLARE_LENGTH <32-bit Length> > Description > Declares an 32-bit byte length of the entire dependency expression. > Behaviors and Restrictions > This opcode must be the first one in a dependency expression. > > REF: UEFI spec 2.10 Table 23.4 > > Cc: Michael D Kinney <michael.d.kinney@intel.com> > Cc: Liming Gao <gaoliming@byosoft.com.cn> > Cc: Zhiguang Liu <zhiguang.liu@intel.com> > Cc: Wei6 Xu <wei6.xu@intel.com> > > Yi Li (2): > MdePkg: Add DECLARE_LENGTH opcode of dependency expression > FmpDevicePkg: Add DECLARE_LENGTH opcode of dependency expression > > .../FmpDependencyLib/FmpDependencyLib.c | 35 ++++++++ > .../PrivateInclude/FmpLastAttemptStatus.h | 3 + > .../EvaluateDependencyUnitTest.c | 84 > ++++++++++++++++--- > MdePkg/Include/Protocol/FirmwareManagement.h | 29 +++---- > 4 files changed, 125 insertions(+), 26 deletions(-) > > -- > 2.42.0.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113067): https://edk2.groups.io/g/devel/message/113067 Mute This Topic: https://groups.io/mt/103499595/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=- ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-03 10:36 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <17A26769C8DD363C.24485@groups.io> 2023-12-29 13:09 ` [edk2-devel] [PATCH V2 0/2] Add DECLARE_LENGTH opcode of dependency expression Li, Yi 2023-12-20 1:54 Li, Yi 2024-01-02 1:43 ` Xu, Wei6 2024-01-03 0:52 ` [edk2-devel] 回复: " gaoliming via groups.io 2024-01-03 10:36 ` [edk2-devel] " Li, Yi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox