[Bug 243155] Linuxulator: broken fadvise64 for 32-bit applications on amd64

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 7 10:15:04 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243155

            Bug ID: 243155
           Summary: Linuxulator: broken fadvise64 for 32-bit applications
                    on amd64
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: iwtcex at gmail.com

% cat fadvice_bug.c
#define _GNU_SOURCE

#include <fcntl.h>

int main() {
  posix_fadvise(1, 2, 3, 4);
  return 0;
}
% /compat/linux/bin/gcc -m64 fadvice_bug.c -o fadvice_bug64
% truss ./fadvice_bug64
...
linux_fadvise64(0x1,0x2,0x3,0x4)        ERR#-19 'Operation not supported by
device' # ok
...
% /compat/linux/bin/gcc -m32 fadvice_bug.c -o fadvice_bug32
% truss ./fadvice_bug32
...
linux_fadvise64(0x1,0x2,0x0,0x3)        ERR#-19 'Operation not supported by
device' # hmm
...

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list