[Bug 289485] [linuxolator] Spitting out "Invalid argument" preventing "debootstrap" and "linux-brave" to work properly...

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 12 Sep 2025 10:39:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289485

            Bug ID: 289485
           Summary: [linuxolator] Spitting out "Invalid argument"
                    preventing "debootstrap" and "linux-brave" to work
                    properly...
           Product: Base System
           Version: 14.3-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: nbe@renzel.net

Hi,

under stable/14-n272370-b84156e7f136 the linuxolator spits out "Invalid
argument" during directory actions:
-------------------------------------- SNIP
--------------------------------------
root@asbach:/root/#chroot /compat/linux ls etc
ls: reading directory 'etc': Invalid argument
adjtime            csh.cshrc    filesystems  hosts      krb5.conf.d       mtab 
                pkcs11     redhat-release          sasl2       sysconfig       
   X11
aliases            csh.login    fonts        inputrc    krb5.conf.sample 
networks              pki        request-key.conf        shells     
system-release      xattr.conf
alsa               debuginfod   gcrypt       issue      ld.so.cache      
nsswitch.conf         pm         request-key.d           skel       
system-release-cpe  xdg
asound.conf        default      gnupg        issue.d    ld.so.conf       
nsswitch.conf.sample  popt.d     rocky-release           ssl         terminfo  
         yum.repos.d
bash_completion.d  dnf          GREP_COLORS  issue.net  ld.so.conf.d     
openldap              profile    rocky-release-upstream  statetab.d 
vdpau_wrapper.cfg
bashrc             environment  gss          keyutils   mke2fs.conf       opt  
                profile.d  rpc                     subgid      vulkan
crypto-policies    ethertypes   host.conf    krb5.conf  motd.d           
os-release            pulse      rwtab.d                 subuid      wgetrc
-------------------------------------- SNIP
--------------------------------------


Relevant TRUSS-part:
-------------------------------------- SNIP
--------------------------------------
linux_ioctl(0x1,0x5401,0x7fffffffba00)           = 0 (0x0)
linux_ioctl(0x1,0x5413,0x7fffffffbaf0)           = 0 (0x0)
linux_statx(0xffffff9c,0x7fffffffbe6b,0x800,0x2,0x7fffffffb650) = 0 (0x0)
linux_openat(0xffffff9c,0x104b5d0,0x90800,0x0)   = 3 (0x3)
linux_newfstat(3,0x7fffffffb6d0)                 = 0 (0x0)
linux_mmap2(0x0,0x21000,0x3,0x22,0xffffffff,0x0) = 34377928704 (0x801159000)
linux_getdents64(0x3,0x801159040,0x20000)        = 2432 (0x980)
linux_getdents64(0x3,0x801159040,0x20000)        ERR#-22 'Invalid argument'
-------------------------------------- SNIP
--------------------------------------


14.3-RELEASE-p2 works properly. Here the relevant TRUSS-part :
-------------------------------------- SNIP
--------------------------------------
linux_ioctl(0x1,0x5401,0x7fffffffb960)           = 0 (0x0)
linux_ioctl(0x1,0x5413,0x7fffffffba50)           = 0 (0x0)
linux_statx(0xffffff9c,0x7fffffffbdf3,0x800,0x2,0x7fffffffb5b0) = 0 (0x0)
linux_openat(0xffffff9c,0x10703d0,0x90800,0x0)   = 3 (0x3)
linux_newfstat(3,0x7fffffffb630)                 = 0 (0x0)
linux_brk(0x10b1000)                             = 17502208 (0x10b1000)
linux_getdents64(0x3,0x1070420,0x20000)          = 2432 (0x980)
linux_getdents64(0x3,0x1070420,0x20000)          = 0 (0x0)
-------------------------------------- SNIP
--------------------------------------

The "Invalid argument" prevents "debootstrap" and "linux-brave" from working
properly...


Thanks in advance and regards,
Nils

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