Giter VIP home page Giter VIP logo

Comments (5)

HxJi avatar HxJi commented on August 16, 2024 1

Thanks for the reply @pjattke. I am using pre-skylake architectures and I will try to replace clflushopt with cflush and lfence. Will update the status later. And thanks @heechul for your insightful finding.

from blacksmith.

pjattke avatar pjattke commented on August 16, 2024

Hi @HxJi,

It is hard to debug your issue without any further details. Could you please provide us with some more system details (e.g., CPU [cat /proc/cpuinfo], OS [uname -a], DIMM data [sudo dmidecode -t memory]).

We could imagine that it has something to do with the code jitting we do for the frequency-based patterns. However, our implementation also includes TRRespass-like n-sided patterns for which we don't use code jitting. Hence, could you please try to use n_sided_hammer from the TraditionalHammerer so we can narrow down the issue. For this, you will need to uncomment line 57 in Blacksmith.cpp and comment out line 59. Lastly, you need to set the default value of do_fuzzing to false in line 174 of Blacksmith.cpp. After that, you can recompile and test whether n-sided patterns work. If so, it indicates that code jitting might be a problem.

Regards,
Patrick

from blacksmith.

heechul avatar heechul commented on August 16, 2024

It seems that the following instruction in include/Utilities/AsmPrimitives.hpp causes the problem on pre-skylake architectures (mine was haswell-e + ddr4).

asm volatile("clflushopt (%0)\n"::"r"(p)

from blacksmith.

pjattke avatar pjattke commented on August 16, 2024

Thanks, @heechul, for investigating this further. Indeed, it looks like pre-Skylake systems don't support clflushopt. I guess you could just replace it by clflush and then do lfence for serialization. It might be a bit slower as it's not optimized for parallel execution unlike clflushopt but I would assume that it still will work.

from blacksmith.

MrObvious avatar MrObvious commented on August 16, 2024

Can confirm, changing AsmPrimitives.hpp fixed it.

[[gnu::unused]] static inline attribute((always_inline)) void clflushopt(volatile void *p) {
#ifdef DDR3
asm volatile("clflush (%0)\n" ::"r"(p)
: "memory");
#else
asm volatile("clflush (%0)\n"::"r"(p)
: "memory");

Just started a few minutes ago and it still is running. nothing in stdout yet, but I will wait to see if I encounter the issue.

from blacksmith.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.