Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jun 2020 03:09:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        emulation@FreeBSD.org
Subject:   [Bug 240874] Linuxolator: unimplemented linux syscalls: memfd_create, inotify_init{,1}
Message-ID:  <bug-240874-4077-UnwWaCkhao@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-240874-4077@https.bugs.freebsd.org/bugzilla/>
References:  <bug-240874-4077@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240874

--- Comment #2 from commit-hook@freebsd.org ---
A commit references this bug:

Author: kevans
Date: Mon Jun 29 03:09:16 UTC 2020
New revision: 362769
URL: https://svnweb.freebsd.org/changeset/base/362769

Log:
  linuxolator: implement memfd_create syscall

  This effectively mirrors our libc implementation, but with minor fudging =
--
  name needs to be copied in from userspace, so we just copy it straight in=
to
  stack-allocated memfd_name into the correct position rather than allocati=
ng
  memory that needs to be cleaned up.

  The sealing-related fcntl(2) commands, F_GET_SEALS and F_ADD_SEALS, have
  also been implemented now that we support them.

  Note that this implementation is still not quite at feature parity w.r.t.
  the actual Linux version; some caveats, from my foggy memory:

  - Need to implement SHM_GROW_ON_WRITE, default for memfd (in progress)
  - LTP wants the memfd name exposed to fdescfs
  - Linux allows open() of an fdescfs fd with O_TRUNC to truncate after dup.
    (?)

  Interested parties can install and run LTP from ports (devel/linux-ltp) to
  confirm any fixes.

  PR:           240874
  Reviewed by:  kib, trasz
  Differential Revision:        https://reviews.freebsd.org/D21845

Changes:
  head/sys/amd64/linux/linux_dummy.c
  head/sys/amd64/linux32/linux32_dummy.c
  head/sys/arm64/linux/linux_dummy.c
  head/sys/compat/linux/linux.c
  head/sys/compat/linux/linux.h
  head/sys/compat/linux/linux_file.c
  head/sys/compat/linux/linux_file.h
  head/sys/i386/linux/linux_dummy.c

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240874-4077-UnwWaCkhao>