History log of /netbsd-src/sys/rump/librump/rumpkern/rumpcopy.c (Results 1 – 25 of 25)
Revision Date Author Comments
# 8747f415 01-Jul-2020 riastradh <riastradh@NetBSD.org>

copystr is now in libkern; don't redefine it in rumpcopy.c.

Should fix build breakage from the copystr changes.


# 17a313dd 05-Apr-2020 kamil <kamil@NetBSD.org>

Return early on 0-sized transfers (usually to/from NULL-objects)

This logic is already present in subr_copy.c:copyin_vmspace() and
rumpcopy.c:copyinstr().

This avoids memcpy() calls for NULL object

Return early on 0-sized transfers (usually to/from NULL-objects)

This logic is already present in subr_copy.c:copyin_vmspace() and
rumpcopy.c:copyinstr().

This avoids memcpy() calls for NULL objects that is Undefined Behavior,
allowed in the kernel space (-fno-delete-null-pointer-checks), but not
in userland.

Reported by UBSan.

show more ...


# 91bfaeb6 06-Apr-2019 thorpej <thorpej@NetBSD.org>

Overhaul the API used to fetch and store individual memory cells in
userspace. The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufe

Overhaul the API used to fetch and store individual memory cells in
userspace. The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms. The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.

Welcome to NetBSD 8.99.37.

show more ...


# 19ea7434 25-May-2016 christos <christos@NetBSD.org>

Introduce security.pax.mprotect.ptrace sysctl which can be used to bypass
mprotect settings so that debuggers can write to the text segment of traced
processes so that they can insert breakpoints. Tu

Introduce security.pax.mprotect.ptrace sysctl which can be used to bypass
mprotect settings so that debuggers can write to the text segment of traced
processes so that they can insert breakpoints. Turned off by default.
Ok: chuq (for now)

show more ...


# 6bb51422 26-Jan-2016 pooka <pooka@NetBSD.org>

Put the kernelside rump kernel headers into <rump-sys> instead of
sprinkling them around the faction directories. Avoids having
to add a CPPFLAGS (or several) to pretty much every component
Makefile

Put the kernelside rump kernel headers into <rump-sys> instead of
sprinkling them around the faction directories. Avoids having
to add a CPPFLAGS (or several) to pretty much every component
Makefile.

Leave compat headers around in the old locations.

The commit changes some autogenerated files, but I'll fix the
generators shortly and regen.

show more ...


# 6195daad 18-Apr-2015 pooka <pooka@NetBSD.org>

Give remote clients struct pmap storage. Although the pmap is unused,
that way we can sure that the pmap macro framework doesn't access all
the wrong places.


# 787cba47 03-Jan-2015 pooka <pooka@NetBSD.org>

Put all sysproxy routines to their own C module, sysproxy.c


# c74676d0 26-Jul-2013 njoly <njoly@NetBSD.org>

Make copyinstr/copyoutstr return EFAULT for special NULL "user"
address.
Ok pooka@.


# 61583090 18-Jan-2011 haad <haad@NetBSD.org>

Add support for compiling ZFS and Solaris modules as RUMP libraries. Add
some locking and rumpcopy primitives and refactor module building Makefiles
to work with both RUMP and kernel modules. This is

Add support for compiling ZFS and Solaris modules as RUMP libraries. Add
some locking and rumpcopy primitives and refactor module building Makefiles
to work with both RUMP and kernel modules. This is first part of adding
support for regular test of zfs on NetBSD to hunt some bugs and make it
stable.

Ok by pooka@.

show more ...


# a4d5652a 13-Jan-2011 pooka <pooka@NetBSD.org>

Introduce RUMP_LOCALPROC_P() macro and use it.


# 574a31f2 09-Jan-2011 pooka <pooka@NetBSD.org>

Shortcircuit remote 0-len copyin/out already in the kernel.


# 35e989d6 09-Jan-2011 pooka <pooka@NetBSD.org>

accept '\0' as a valid string


# 6b71288c 25-Nov-2010 pooka <pooka@NetBSD.org>

*facepalm*, adjust remote copyinstr to work in cases where the end
of the max copyin extends to an unmapped page.

Noticed, as usual, by tests.


# 03969dba 22-Nov-2010 pooka <pooka@NetBSD.org>

the usual wuninit stuff


# 9be03442 22-Nov-2010 pooka <pooka@NetBSD.org>

Support physio for remote processes.
==> add support for remote vmspace vmapbuf/vunmapbuf
==> add proper support for copyin/out_vmspace
==> add support for remote vmspace uvm_io
==> add s

Support physio for remote processes.
==> add support for remote vmspace vmapbuf/vunmapbuf
==> add proper support for copyin/out_vmspace
==> add support for remote vmspace uvm_io
==> add support for non-curproc rumpuser_sp_copyin/out
==> store remote context in vm_map->pmap instead of
pthread_specificdata

In short, makes read/write of most (all?) block devices work from
a remote rump client via rump syscalls.

show more ...


# 3e9c0c4f 17-Nov-2010 pooka <pooka@NetBSD.org>

cleanup some old garbage


# b9b99119 09-Nov-2010 pooka <pooka@NetBSD.org>

Fix off-by-one in the rpc path of copyinstr()


# 8fcead89 09-Nov-2010 pooka <pooka@NetBSD.org>

fix copystr/copyinstr/copyoutstr to return ENAMETOOLONG where appropriate


# 082af2fa 29-Oct-2010 pooka <pooka@NetBSD.org>

minor knf


# b1842c22 27-Oct-2010 pooka <pooka@NetBSD.org>

Start rework of system call proxying over socket ("sysproxy").
This incarnation is written in the user namespace as opposed to
the previous one which was done in kernel namespace. Also, rump
does al

Start rework of system call proxying over socket ("sysproxy").
This incarnation is written in the user namespace as opposed to
the previous one which was done in kernel namespace. Also, rump
does all the handshaking now instead of excepting an application
to come up with the user namespace socket.

There's still a lot to do, including making code "a bit" more
robust, actually running different clients in a different process
inside the kernel and splitting the client side library from librump.
I'm committing this now so that I don't lose it, plus it generally
works as long as you don't use it in unexcepted ways: i've tested
ifconfig(8), route(8), envstat(8) and sysctl(8).

show more ...


# 5397c7b6 18-Jul-2010 pooka <pooka@NetBSD.org>

Ignore errors when copyin/out len == 0.


# 70d05149 12-Jul-2010 pooka <pooka@NetBSD.org>

Implement poor man's (or woman's) fault handler (or handlim).

from Stan (or Loretta)


# eacf4402 10-Jun-2010 pooka <pooka@NetBSD.org>

Use kern_proc.c instead of a collection of stubs. But what we
really wanted from this commit was the support for proc_specificdata.

TODO: make creating a new process actually use kern_proc and
mayb

Use kern_proc.c instead of a collection of stubs. But what we
really wanted from this commit was the support for proc_specificdata.

TODO: make creating a new process actually use kern_proc and
maybe even add an interface which starts a process with
"any pid you don't like"

show more ...


# 8ec96b27 04-Nov-2009 pooka <pooka@NetBSD.org>

trim trailing whitespace


# 080522e1 04-Nov-2009 pooka <pooka@NetBSD.org>

move copy-related routines to their own module