-
Notifications
You must be signed in to change notification settings - Fork 268
Warn when plugin opens a file in /proc #3536
Copy link
Copy link
Labels
Priority: LowPrioritized below most other issuesPrioritized below most other issuesType: EnhancementNew functionality or improved designNew functionality or improved design
Description
I think it might be useful to log a warning if a plugin opens a file in /proc, since most files (all?) will not be intercepted by Shadow. These files have a high likelihood of leading to non-determinism, or at least won't be correct inside the simulation. For example /proc/sys/net/ipv4/tcp_rmem, /proc/meminfo, /proc/self ,/proc/uptime, etc.
There are two issues though:
- This might be too noisy. We might need to evaluate some common programs to make sure they don't access too many things in
/procand flood the logs. - The
open()syscall handler (and related syscall handlers) are in C. This means that we can't use things likelog_once_per_value_at_levelto limit the number of log messages.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Priority: LowPrioritized below most other issuesPrioritized below most other issuesType: EnhancementNew functionality or improved designNew functionality or improved design