Re:Detecting a PS2 Emulator: When 1*X does not equal X
by bobmcnamara on Saturday June 08, 2024 @01:56PM
(#40619224)
I once wrote something that would hard lock cortex-A8 but not the cortex-A9 we shipped on. To my knowledge, nobody tracked down why our app, once exfiltrated from our device, would crash slightly older phones.
[ Parent
| on HN ]
Re:Detecting a PS2 Emulator: When 1*X does not equal X
by pm215 on Saturday June 08, 2024 @02:07PM
(#40619283)
Were you exploiting an A8 erratum, or detecting "this is an A8" somehow and then making it barf in a less processor specific way?
Re:Detecting a PS2 Emulator: When 1*X does not equal X
by bobmcnamara on Sunday June 09, 2024 @12:58AM
(#40622155)
A8 erratum. This was ages ago, but if I recall you could place a thumb2 instruction straddling two pages, only one of which was loaded in the TLBs. If you got everything right, the A8 would hang without trapping.
Edit: it was errata #657417, long since scrubbed from arm.com
Re:Detecting a PS2 Emulator: When 1*X does not equal X
by pm215 on Sunday June 09, 2024 @04:03AM
(#40622774)
The A8 errata doc is at https://developer.arm.com/documentation/prdc008070/latest/ these days and does have a description of 657417 with enough detail to make writing a reproducer possible. Instructions crossing page boundaries are tricky beasts :-)
Re:Detecting a PS2 Emulator: When 1*X does not equal X
by bobmcnamara on Sunday June 09, 2024 @09:05AM
(#40624169)
Well look at that! I had searched Google and arm.com for that number. This was definitely it.
Re:Detecting a PS2 Emulator: When 1*X does not equal X
by AtlasBarfed on Saturday June 08, 2024 @03:14PM
(#40619609)
So they'll patch around it.
You're just making your software worthless in the long run for some value probably less than 5 years, or creating a fun problem for an emu hacker.
Most of the significant losses to piracy monetarily isn't emulation, it's the chippers/mods that bypass cloned media copy protection.
Which emulator authors have a lot more control over in bypassing
Re:Detecting a PS2 Emulator: When 1*X does not equal X
by pm215 on Saturday June 08, 2024 @03:42PM
(#40619769)
If it hardlocked an A8 but not an A9, chances are very high that an emulator would run it with no problem, because nobody deliberately tries to emulate the kind of CPU bug that lets an app hardlock the CPU. GP appears to have been interested in deterring people from running their code on non-authorised real hardware at the time, not targeting emulator users.
Re:Detecting a PS2 Emulator: When 1*X does not equal X
by bobmcnamara on Sunday June 09, 2024 @01:14AM
(#40622207)
Bingo! Didn't want someone running new product's app on old product's hardware. Company was new to building non-RTOS devices which were tightly hardware bound, wanted similar type restrictions.