#
051f0471 |
| 28-May-2022 |
andvar <andvar@NetBSD.org> |
s/grabing/grabbing/ in comments.
|
#
1155847c |
| 09-Apr-2022 |
riastradh <riastradh@NetBSD.org> |
unix(4): Convert membar_exit to membar_release.
Use atomic_load_consume or atomic_load_relaxed where necessary.
Comment on why unlocked nonatomic access is valid where it is done.
|
#
09fbf839 |
| 08-Aug-2021 |
nia <nia@NetBSD.org> |
introduce a SOL_LOCAL for unix-domain socket level socket options as an alias of the current 0 used for these options, as in FreeBSD.
reviewed by many.
|
#
f818f881 |
| 06-Nov-2020 |
christos <christos@NetBSD.org> |
PR/55777: Ruslan Nikolaev: Move the unp_sysctl_create to uipc_usrreq.c to facilitate splitting rump modules and does not require a dummy function.
|
#
0ffbbc40 |
| 26-Aug-2020 |
christos <christos@NetBSD.org> |
add socket info for user and group for unix sockets in fstat.
|
#
3b848121 |
| 21-Apr-2020 |
ad <ad@NetBSD.org> |
Revert the changes made in February to make cwdinfo use mostly lockless, which relied on taking extra vnode refs.
Having benchmarked various experimental changes over the past few months it seems th
Revert the changes made in February to make cwdinfo use mostly lockless, which relied on taking extra vnode refs.
Having benchmarked various experimental changes over the past few months it seems that it's better to avoid vnode refs as much as possible. cwdi_lock as a RW lock already did that to some extent for getcwd() and will permit the same for namei() too.
show more ...
|
#
d5f7bd9a |
| 23-Feb-2020 |
ad <ad@NetBSD.org> |
Merge from ad-namecache:
- Have a stab at clustering the members of vnode_t and vnode_impl_t in a more cache-conscious way. With that done, go back to adjusting v_usecount with atomics and keep
Merge from ad-namecache:
- Have a stab at clustering the members of vnode_t and vnode_impl_t in a more cache-conscious way. With that done, go back to adjusting v_usecount with atomics and keep vi_lock directly in vnode_impl_t (saves KVA).
- Allow VOP_LOCK(LK_NONE) for the benefit of VFS_VGET() and VFS_ROOT(). Make sure LK_UPGRADE always comes with LK_NOWAIT.
- Make cwdinfo use mostly lockless.
show more ...
|
#
1d820f87 |
| 01-Feb-2020 |
riastradh <riastradh@NetBSD.org> |
Load struct fdfile::ff_file with atomic_load_consume.
Exceptions: when we're only testing whether it's there, not about to dereference it.
Note: We do not use atomic_store_release to set it because
Load struct fdfile::ff_file with atomic_load_consume.
Exceptions: when we're only testing whether it's there, not about to dereference it.
Note: We do not use atomic_store_release to set it because the preceding mutex_exit should be enough.
(That said, it's not clear the mutex_enter/exit is needed unless refcnt > 0 already, in which case maybe it would be a win to switch from the membar implied by mutex_enter to the membar implied by atomic_store_release -- which I would generally expect to be much cheaper. And a little clearer without a long comment.)
show more ...
|
#
fcee5fe3 |
| 01-Feb-2020 |
riastradh <riastradh@NetBSD.org> |
Load struct filedesc::fd_dt with atomic_load_consume.
Exceptions: when fd_refcnt <= 1, or when holding fd_lock.
While here:
- Restore KASSERT(mutex_owned(&fdp->fd_lock)) in fd_unused. => This is
Load struct filedesc::fd_dt with atomic_load_consume.
Exceptions: when fd_refcnt <= 1, or when holding fd_lock.
While here:
- Restore KASSERT(mutex_owned(&fdp->fd_lock)) in fd_unused. => This is used only in fd_close and fd_abort, where it holds. - Move bounds check assertion in fd_putfile to where it matters. - Store fd_dt with atomic_store_release. - Move load of fd_dt under lock in knote_fdclose. - Omit membar_consumer in fdesc_readdir. => atomic_load_consume serves the same purpose now. => Was needed only on alpha anyway.
show more ...
|
#
ded41dcc |
| 29-Jul-2019 |
maxv <maxv@NetBSD.org> |
Fix info leak: the padding after the header causes uninitialized heap memory to be copied to userland in sys_recvmsg().
|
#
9e7379f5 |
| 03-Jun-2019 |
msaitoh <msaitoh@NetBSD.org> |
Fix typo in comment (s/seperate/separate/).
|
#
1a480a4c |
| 01-Mar-2019 |
pgoyette <pgoyette@NetBSD.org> |
Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly discussed on irc.
NFCI intended.
Ride the earlier kernel bump - it;s getting crowded.
|
#
30d0dc6f |
| 20-Feb-2019 |
pgoyette <pgoyette@NetBSD.org> |
compat70_ocreds_valid is not a pointer to a boolean, it is the boolean itself which controls whether or not we recognize the OCRED options.
Should fix the panic identified in PR kern/53991 (awaiting
compat70_ocreds_valid is not a pointer to a boolean, it is the boolean itself which controls whether or not we recognize the OCRED options.
Should fix the panic identified in PR kern/53991 (awaiting confirmation from submitter).
show more ...
|
#
80166972 |
| 04-Feb-2019 |
mrg <mrg@NetBSD.org> |
add or adjust fallthru comments.
|
#
314d436d |
| 29-Jan-2019 |
pgoyette <pgoyette@NetBSD.org> |
Normalize all the compat hooks' names to the form
<subsystem>_<function>_<version>_hook
NFCI
XXX Note that although this introduces a change in the kernel-to- XXX module interface, we are NOT bum
Normalize all the compat hooks' names to the form
<subsystem>_<function>_<version>_hook
NFCI
XXX Note that although this introduces a change in the kernel-to- XXX module interface, we are NOT bumping the kernel version number. XXX We will bump the version number once the interface stabilizes.
show more ...
|
#
cc17ee2e |
| 27-Jan-2019 |
pgoyette <pgoyette@NetBSD.org> |
Merge the [pgoyette-compat] branch
|
#
b688c0b3 |
| 08-Nov-2018 |
roy <roy@NetBSD.org> |
Don't call soroverflow when we return the error to the sender.
Thanks to thorpej@ for a sanity check.
|
#
bac96d5e |
| 11-May-2018 |
roy <roy@NetBSD.org> |
Increase the default size of some receive buffers from 8k to 16k. This mitigates recent reports of socket overflow errors and fixes PR bin/53247.
|
#
e2a4d806 |
| 05-May-2018 |
christos <christos@NetBSD.org> |
bump PIPSIZ from 4 to 8K like FreeBSD and provide the same sysctls
|
#
04a9a4fd |
| 19-Mar-2018 |
roy <roy@NetBSD.org> |
socket: report receive buffer overflows
Add soroverflow() which increments the overflow counter, sets so_error to ENOBUFS and wakes the receive socket up. Replace all code that manually increments t
socket: report receive buffer overflows
Add soroverflow() which increments the overflow counter, sets so_error to ENOBUFS and wakes the receive socket up. Replace all code that manually increments this counter with soroverflow(). Add soroverflow() to raw_input().
This allows userland to detect route(4) overflows so it can re-sync with the current state.
show more ...
|
#
ff7e961d |
| 17-Feb-2018 |
christos <christos@NetBSD.org> |
fix LOCAL_PEEREID to not return the same info for both sides... XXX: pullup-{7,8}
|
#
07c43289 |
| 02-Dec-2017 |
mrg <mrg@NetBSD.org> |
include opt_compat_netbsd.h, so that eg COMPAT_70 will be set.
|
#
e1951bff |
| 31-Oct-2016 |
maxv <maxv@NetBSD.org> |
Memory leak, found by Mootja. It is easily triggerable from userland.
|
#
4246d3ca |
| 06-Apr-2016 |
roy <roy@NetBSD.org> |
Add sc_pid to sockcred so that SOCK_DGRAM and LOCAL_CREDS socket option can learn the process id of the AF_LOCAL sender. Add compat glue for old structure.
|
#
c9ac6ace |
| 02-May-2015 |
rtr <rtr@NetBSD.org> |
make connect syscall use sockaddr_big and modify pr_{send,connect} nam parameter type from buf * to sockaddr *.
final commit for parameter type changes to protocol user requests
* bump kernel versi
make connect syscall use sockaddr_big and modify pr_{send,connect} nam parameter type from buf * to sockaddr *.
final commit for parameter type changes to protocol user requests
* bump kernel version to 7.99.15 for parameter type changes to pr_{send,connect}
show more ...
|