Re: [edk2] [PATCH] UefiCpuPkg/CpuMpPei: fix unsafe way to get stack pointer

2018-09-26 Thread Wang, Jian J
t: Re: [edk2] [PATCH] UefiCpuPkg/CpuMpPei: fix unsafe way to get stack > pointer > > On 09/26/18 04:18, Wang, Jian J wrote: > > Hi, > > > > Since the patch will introduce "#if defined(...)" macro in code, which > > violates > > edk2 coding style, it

Re: [edk2] [PATCH] UefiCpuPkg/CpuMpPei: fix unsafe way to get stack pointer

2018-09-26 Thread Laszlo Ersek
zlo Ersek [mailto:ler...@redhat.com] >> Sent: Wednesday, September 19, 2018 7:17 PM >> To: Justen, Jordan L ; Wang, Jian J >> ; edk2-devel@lists.01.org >> Cc: Wu, Hao A ; Bi, Dandan ; >> Dong, Eric ; Kinney, Michael D >> >> Subject: Re: [edk2] [PATCH] U

Re: [edk2] [PATCH] UefiCpuPkg/CpuMpPei: fix unsafe way to get stack pointer

2018-09-25 Thread Wang, Jian J
g, Eric ; Kinney, Michael D > > Subject: Re: [edk2] [PATCH] UefiCpuPkg/CpuMpPei: fix unsafe way to get stack > pointer > > On 09/18/18 20:02, Jordan Justen wrote: > > I guess the git config sendemail.from setting did not help your > > patches. ?? It still is coming through

Re: [edk2] [PATCH] UefiCpuPkg/CpuMpPei: fix unsafe way to get stack pointer

2018-09-19 Thread Laszlo Ersek
On 09/18/18 20:02, Jordan Justen wrote: > I guess the git config sendemail.from setting did not help your > patches. ?? It still is coming through with a From field of > . > > Regarding this patch, I suppose it is worth asking if &StackBase in > the old code could possibly be an address not on the

Re: [edk2] [PATCH] UefiCpuPkg/CpuMpPei: fix unsafe way to get stack pointer

2018-09-18 Thread Wu, Hao A
> -Original Message- > From: Wang, Jian J > Sent: Wednesday, September 19, 2018 9:13 AM > To: Justen, Jordan L; edk2-devel@lists.01.org > Cc: Wu, Hao A; Bi, Dandan; Laszlo Ersek; Dong, Eric; Kinney, Michael D > Subject: RE: [edk2] [PATCH] UefiCpuPkg/CpuMpPei: fix unsaf

Re: [edk2] [PATCH] UefiCpuPkg/CpuMpPei: fix unsafe way to get stack pointer

2018-09-18 Thread Wang, Jian J
devel@lists.01.org > Cc: Wu, Hao A ; Bi, Dandan ; > Laszlo Ersek ; Dong, Eric ; Kinney, > Michael D > Subject: Re: [edk2] [PATCH] UefiCpuPkg/CpuMpPei: fix unsafe way to get stack > pointer > > I guess the git config sendemail.from setting did not help your > patches. ?? It sti

Re: [edk2] [PATCH] UefiCpuPkg/CpuMpPei: fix unsafe way to get stack pointer

2018-09-18 Thread Wang, Jian J
I know the rule. But I saw it used in CpuDxe/CpuGdt.h and I thought it could have exceptions. Anyway, I agree keeping consistency is more important. Regards, Jian > -Original Message- > From: Laszlo Ersek [mailto:ler...@redhat.com] > Sent: Wednesday, September 19, 2018 12:42 AM > To: Wan

Re: [edk2] [PATCH] UefiCpuPkg/CpuMpPei: fix unsafe way to get stack pointer

2018-09-18 Thread Jordan Justen
I guess the git config sendemail.from setting did not help your patches. ?? It still is coming through with a From field of . Regarding this patch, I suppose it is worth asking if &StackBase in the old code could possibly be an address not on the stack. I don't think it is possible, and I'm guessi

Re: [edk2] [PATCH] UefiCpuPkg/CpuMpPei: fix unsafe way to get stack pointer

2018-09-18 Thread Laszlo Ersek
Adding Jordan, Ard, Liming, Mike; comment at the bottom: On 09/18/18 11:04, Jian J Wang wrote: > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1186 > > This patch uses SetJump() to get the stack pointer from esp/rsp > register to replace local variable way, which was marked by static > code

[edk2] [PATCH] UefiCpuPkg/CpuMpPei: fix unsafe way to get stack pointer

2018-09-18 Thread Jian J Wang
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1186 This patch uses SetJump() to get the stack pointer from esp/rsp register to replace local variable way, which was marked by static code checker as an unsafe way. Cc: Dandan Bi Cc: Hao A Wu Cc: Eric Dong Cc: Laszlo Ersek Contributed-unde