Hardcoded KERNEL_O_LARGEFILE does not work on ARM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fatrace |
Fix Released
|
Undecided
|
Unassigned | ||
fatrace (Debian) |
Fix Released
|
Unknown
|
Bug Description
Running fatrace on aarch64 (armv8) results in following error:
Cannot initialize fanotify: Invalid argument
Looking at strace output, can see error coming from fanotify_init syscall:
fanotify_
Which in the code is used as:
fan_fd = fanotify_init (0, KERNEL_
So there is a discrepancy in how strace interprets passed flags value (as "O_RDONLY|
Replacing fanotify_init line in code with e.g. "fanotify_init(0, 0)" fixes the problem, again pointing at hardcoded KERNEL_O_LARGEFILE value to be the cause of error.
Maybe it can just be wrapped into #ifndef macros, and be defined (presumably for old x86 kernels) only when needed that way?
Also found same issue described here with regards to mips architecture:
https:/
Changed in fatrace: | |
status: | New → Fix Committed |
Changed in fatrace (Debian): | |
status: | Unknown → New |
Changed in fatrace (Debian): | |
status: | New → Fix Released |
Fixed in https:/ /launchpad. net/fatrace/ trunk/0. 14