[DragonFlyBSD - Bug #2404] (Closed) cp from dir mounted with mount_psshfs fails on mmap -1 errno 22 Invalid argument

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Wed Jun 19 22:46:59 PDT 2019


Issue #2404 has been updated by herrgard.

Description updated
Status changed from New to Closed

Puffs removed with commit ee3ebee6341d385ab1e8f63b026efd8eeb72a25f so closing this.

----------------------------------------
Bug #2404: cp from dir mounted with mount_psshfs fails on mmap -1 errno 22 Invalid argument
http://bugs.dragonflybsd.org/issues/2404#change-13731

* Author: herrgard
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
3.1-DEVELOPMENT DragonFly v3.1.0.1295.ga09657-DEVELOPMENT #74: Tue Aug 14 10:54:12 CEST 2012 x86_64

zoidberg# kldload puffs && mount foo at ip:dir /path/fryssh
zoidberg# ktrace cp fryssh/src/ii/README tmp/
cp: fryssh/src/ii/README: Invalid argument

zoidberg# kdump
71696 ktrace   RET   ktrace 0
71696 ktrace   CALL  execve(0x7ffffffff170,0x7ffffffff740,0x7ffffffff760)
71696 ktrace   NAMI  "/sbin/cp"
71696 ktrace   RET   execve -1 errno 2 No such file or directory
71696 ktrace   CALL  execve(0x7ffffffff170,0x7ffffffff740,0x7ffffffff760)
71696 ktrace   NAMI  "/bin/cp"
71696 cp       RET   execve 0
71696 cp       CALL  break(0x668078)
71696 cp       RET   break 0
71696 cp       CALL  set_tls_area(0,0x7ffffffff950,0x10)
71696 cp       RET   set_tls_area 0
71696 cp       CALL  set_tls_area(0,0x7ffffffff990,0x10)
71696 cp       RET   set_tls_area 0
71696 cp       CALL  issetugid
71696 cp       RET   issetugid 0
71696 cp       CALL  sigaction(SIG29,0x7ffffffff7a0,0x7ffffffff780)
71696 cp       RET   sigaction 0
71696 cp       CALL  stat(0x62a090,0x7ffffffff8f0)
71696 cp       NAMI  "tmp"
71696 cp       RET   stat 0
71696 cp       CALL  umask(S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IWGRP|S_IXGRP|S_IROTH|S_IWOTH|S_IXOTH)
71696 cp       RET   umask 18/0x12
71696 cp       CALL  umask(S_IWGRP|S_IWOTH)
71696 cp       RET   umask 511/0x1ff
71696 cp       CALL  mmap(0x4000000000,0x8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_SIZEALIGN,0xffffffff,0,0)
71696 cp       RET   mmap 0
71696 cp       CALL  mmap(0x8000000000,0x10000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_SIZEALIGN,0xffffffff,0,0)
71696 cp       RET   mmap 0
71696 cp       CALL  mmap(0x4000000000,0x8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_SIZEALIGN,0xffffffff,0,0)
71696 cp       RET   mmap 32768/0x8000
71696 cp       CALL  mmap(0x4000000000,0x8000,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON|MAP_SIZEALIGN,0xffffffff,0,0)
71696 cp       RET   mmap 65536/0x10000
71696 cp       CALL  stat(0x4000010390,0x4000010310)
71696 cp       NAMI  "fryssh/src/ii/README"
71696 cp       RET   stat 0
71696 cp       CALL  stat(0x62a090,0x7ffffffff7f0)
71696 cp       NAMI  "tmp/README"
71696 cp       RET   stat 0
71696 cp       CALL  open(0x8000000280,O_RDONLY,<unused>0)
71696 cp       NAMI  "fryssh/src/ii/README"
71696 cp       RET   open 3
71696 cp       CALL  open(0x62a090,O_WRONLY|O_TRUNC,<unused>0)
71696 cp       NAMI  "tmp/README"
71696 cp       RET   open 4
71696 cp       CALL  mmap(0,0x791,PROT_READ,MAP_SHARED,0x3,0,0)
71696 cp       RET   mmap -1 errno 22 Invalid argument
71696 cp       CALL  write(0x2,0x7fffffffef70,0x4)
71696 cp       GIO   fd 2 wrote 4 bytes
       "cp: "
71696 cp       RET   write 4
71696 cp       CALL  write(0x2,0x7ffffffff050,0x14)
71696 cp       GIO   fd 2 wrote 20 bytes
       "fryssh/src/ii/README"
71696 cp       RET   write 20/0x14
71696 cp       CALL  write(0x2,0x422290,0x2)
71696 cp       GIO   fd 2 wrote 2 bytes
       ": "
71696 cp       RET   write 2
71696 cp       CALL  write(0x2,0x7fffffffef70,0x11)
71696 cp       GIO   fd 2 wrote 17 bytes
       "Invalid argument
       "
71696 cp       RET   write 17/0x11
71696 cp       CALL  close(0x3)
71696 cp       RET   close 0
71696 cp       CALL  close(0x4)
71696 cp       RET   close 0
71696 cp       CALL  exit(0x1)



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list