News for hackers. Stuff that matters.
Re:A cache invalidation bug in Linux memory management by kardos on Sunday September 30, 2018 @02:18PM (#18107458)
Exhaustive search is untenable for the 64-bit case. Any strategy here? Testing 2^40 bits might be tenable; any way to select which ones would have the best ROI?
Re:A cache invalidation bug in Linux memory management by reitzensteinm on Sunday September 30, 2018 @09:38PM (#18109432)
I'm not so sure that's true. You can rent a Skylake chip on Google Cloud that'll perform 1.6 trillion 64 bit operations per second for $0.96/hr preemptively. That's enough to run one instruction over a 64 bit address space exhaustively over 120 days, or for ~$2800.

Obviously that needs to be multiplied by the number of instructions a test needs to execute (and it has to be well written with AVX 512), but we're not talking nation state levels of resources here for simple cases, and that figure is only going to drop further with time.

Not to mention the potential for FPGA or ASIC implementations if the tests are important enough.

Re:A cache invalidation bug in Linux memory management by kardos on Sunday September 30, 2018 @11:24PM (#18109809)
Hmm that's surprisingly within reach. I bet you could crowd-source that kind of verification with BOINC.
Re:A cache invalidation bug in Linux memory management by pag on Sunday September 30, 2018 @07:50PM (#18109107)
Re:A cache invalidation bug in Linux memory management by mehrdadn on Sunday September 30, 2018 @04:43PM (#18108295)
It's hard to give a general strategy without knowing the problem structure, but I guess you could say one general strategy is to exploit the problem structure in a way that lets you test multiple values in one shot.
Re:A cache invalidation bug in Linux memory management by namibj on Sunday September 30, 2018 @05:46PM (#18108610)
Feed llvm bytecode through Z3 and hope you didn't implement something with cryptographic behaviour.
Re:A cache invalidation bug in Linux memory management by fao_ on Sunday September 30, 2018 @08:05PM (#18109171)
Could you give some advice or pointers on this?
Re:A cache invalidation bug in Linux memory management by namibj on Monday October 01, 2018 @06:09PM (#18117235)
This should get you going. Come back if you get stuck. https://twitter.com/whitequark/status/915211914443153409

Edit: sorry, I just don't have the time to get you the details.