Re: Zenbleed

From: Shawn Webb <shawn.webb_at_hardenedbsd.org>
Date: Thu, 27 Jul 2023 22:00:41 UTC
On Thu, Jul 27, 2023 at 04:46:22PM -0400, mike tancsa wrote:
> On 7/27/2023 4:42 PM, Jung-uk Kim wrote:
> > Can you please the attached patch?  Sorry about the trouble.
> > 
> thank you for all the help! Looks good on RELENG_12 now
> 
> % gmake
> nasm  -O0 -felf64 -o zenleak.o zenleak.asm
> cc -O0 -ggdb3 -march=znver2   -c -o pattern.o pattern.c
> cc -O0 -ggdb3 -march=znver2   -c -o workqueue.o workqueue.c
> cc -O0 -ggdb3 -march=znver2   -c -o util.o util.c
> cc -O0 -ggdb3 -march=znver2  -pthread -Wl,-z,noexecstack zenbleed.c
> zenleak.o pattern.o workqueue.o util.o   -o zenbleed
> 
> % ./zenbleed -v3
> *** EMBARGOED SECURITY ISSUE --  DO NOT DISTRIBUTE! ***
> ZenBleed Testcase -- taviso@google.com
> 
> NOTE: Try -h to see configuration options
> 
> Spawning 32 Threads...
> Thread 0x800686500 running on CPU 0Thread 0x800687400 running on CPU 3
> 
> Thread 0x800687900 running on CPU 4
> Thread 0x800687e00 running on CPU 5
> Thread 0x800688800 running on CPU 7
> Thread 0x800689200 running on CPU 9
> Thread 0x800688300 running on CPU 6
> Thread 0x800686a00 running on CPU 1
> Thread 0x800688d00 running on CPU 8
> Thread 0x800689700 running on CPU 10
> Thread 0x800689c00 running on CPU 11
> Thread 0x80068a100 running on CPU 12
> Thread 0x80068a600 running on CPU 13
> Thread 0x800774000 running on CPU 15
> Thread 0x800774500 running on CPU 16
> Thread 0x800774a00 running on CPU 17
> Thread 0x800774f00 running on CPU 18
> Thread 0x800775400 running on CPU 19
> Thread 0x800775900 running on CPU 20
> Thread 0x800775e00 running on CPU 21
> Thread 0x800776300 running on CPU 22
> Thread 0x800776800 running on CPU 23
> Thread 0x800776d00 running on CPU 24
> Thread 0x800777200 running on CPU 25
> Thread 0x800777700 running on CPU 26
> Thread 0x800777c00 running on CPU 27
> Thread 0x800778100 running on CPU 28
> Thread 0x800778600 running on CPU 29
> Thread 0x800778b00 running on CPU 30
> Thread 0x803253000 running on CPU 31
> Thread 0x80068ab00 running on CPU 14
> Thread 0x800686f00 running on CPU 2
> 
> 
> CPU: AMD EPYC 7302P 16-Core Processor                (3000.06-MHz K8-class
> CPU)

I've reverted the old work in favor of Jung-uk Kim's patch in my
feature branch (shawn.webb/bsd/main).

My next commit will be to remove gmake as a dependency (in favor of
in-base BSD Make).

Perhaps I'll submit a ports entry when I feel the codebase is ready.

Thanks,

-- 
Shawn Webb
Cofounder / Security Engineer
HardenedBSD

https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc