#
✕ nick:marcan
#asahi · 2021-02-24 12:25
marcanor not... hm
#asahi · 2021-02-24 12:21
marcanah right, PAN getting in my way when I mark stuff EL0 accessible
#asahi · 2021-02-24 12:14
marcan(and my exception recovery code recovers from the bad writes anyway)
#asahi · 2021-02-24 12:14
marcan(code does run)
#asahi · 2021-02-24 12:14
marcanheh, my el0 thunk code worked on the first try other than getting data aborts on everything (bad page attributes making everything RO at EL0 probably)
#asahi · 2021-02-24 11:40
marcanlet me figure out plain old EL0 first :)
#asahi · 2021-02-24 11:38
marcanright
#asahi · 2021-02-24 11:38
marcan*heh
#asahi · 2021-02-24 11:38
marcanhwh
#asahi · 2021-02-24 11:36
marcandoes that work properly with E2H forced to 1?
#asahi · 2021-02-24 11:35
marcanE2H is forced to 1
#asahi · 2021-02-24 11:35
marcanLinux runs in EL2
#asahi · 2021-02-24 11:34
marcanyes, inside VMs
#asahi · 2021-02-24 11:32
marcanfor now I just want to make sure EL0 is sane for bare-metal linux
#asahi · 2021-02-24 11:32
marcanso I'll punt it to then
#asahi · 2021-02-24 11:32
marcanbut that goes with the HV stuff I want to do later anyway
#asahi · 2021-02-24 11:32
marcanthere is no EL1 on bare metal :)
#asahi · 2021-02-24 11:30
marcanwriting some horrible el0 thunk for m1n1 now
#asahi · 2021-02-24 11:30
marcannever_released: yeah, but also no reason to make it not trap :)
#asahi · 2021-02-24 11:12
marcan(from EL0)
#asahi · 2021-02-24 11:12
marcanso at least it's not haha panic broken
#asahi · 2021-02-24 11:12
marcanok, mrs from AFPCR traps in docker on macos
#asahi · 2021-02-24 10:57
marcanyeah
#asahi · 2021-02-24 10:55
marcan:-)
#asahi · 2021-02-24 10:55
marcanmaz: if this affects linux guests under macos, can we file a CVE and do nothing and let *Apple* send the kernel a patch fixing it?
#asahi · 2021-02-24 10:54
marcanstill investigating, I'll let you know what I find
#asahi · 2021-02-24 10:54
marcanyup.
#asahi · 2021-02-24 10:25
marcanwe already know large ranges that are unrelated (HID, PMCs, etc)
#asahi · 2021-02-24 10:25
marcanand then we can automate searches against everything else
#asahi · 2021-02-24 10:25
marcanprobably about time I try toggling all bits in all sysregs and build a blocklist of things that break the world
#asahi · 2021-02-24 10:25
marcanit can be guessed
#asahi · 2021-02-24 10:24
marcanif you know the bits I can also just try brute-force; I have a list of all sysregs anyway
#asahi · 2021-02-24 10:24
marcando you have the encoding?
#asahi · 2021-02-24 10:23
marcanbut I don't know what sysreg bits enable it yet
#asahi · 2021-02-24 10:23
marcanyeah, I've been using that instruction
#asahi · 2021-02-24 10:22
marcanor unless the host turns it on and then VMs inherit that I guess
#asahi · 2021-02-24 10:22
marcanhow? I haven't even figured out how to turn it on yet, unless it works in EL0 and not EL2
#asahi · 2021-02-24 10:21
marcanI guess I should spin up a VM
#asahi · 2021-02-24 10:21
marcanthat's a good point, and if they didn't do anything about this AFPCR in linux VMs then this is a CVE in macOS VMs - and one they might not be able to fix
#asahi · 2021-02-24 10:20
marcanand importantly there is no legal risk in doing so :p
#asahi · 2021-02-24 10:20
marcanbut they are worth starting with
#asahi · 2021-02-24 10:20
marcanI know
#asahi · 2021-02-24 10:20
marcanI'm looking through the 11.1 binary blob object files right now, since those are fair game because APSL
#asahi · 2021-02-24 10:19
marcanI know
#asahi · 2021-02-24 10:19
marcando you know the encoding for that one? I've seen the name but not the encoding
#asahi · 2021-02-24 10:19
marcanI know there's a bit for that
#asahi · 2021-02-24 10:18
marcannope
#asahi · 2021-02-24 10:16
marcanmy real question is: is there a way to make it trap on userspace access, and is that the default from iBoot
#asahi · 2021-02-24 10:16
marcanalso there could be another bit to enable userspace access
#asahi · 2021-02-24 10:16
marcan(e.g. rosetta would use that mode)

plus ›