Commit Graph

275614 Commits

Author SHA1 Message Date
kamil b8ac715762 Fix LLVM sanitizers build after removal of netsmb
Cherry-pick upstream commit:

From 695ca346eb0c724fb79c6f166cfecd736eae6608 Mon Sep 17 00:00:00 2001
From: Kamil Rytarowski <n54@gmx.com>
Date: Sun, 5 Apr 2020 00:54:55 +0200
Subject: [PATCH] [compiler-rt] Fix build on NetBSD 9.99.52+

Add a fallback definition of the netsmb device driver that
was removed.
2020-04-04 23:17:34 +00:00
jdolecek ffdabc7e1f stop xfer timeouts during recovery, all xfers will be requeued anyway
this avoids race with the timeout routine when processing the xfers
for requeueing

should fix PR kern/54790 by Izumi Tsutsui
2020-04-04 22:30:02 +00:00
mlelstv e264b2bd0f one more netsmb reference. 2020-04-04 22:08:33 +00:00
jdolecek 2f9d652e0f fix deadlock in wdcwait() when xfer timeout happens while the atabus
thread sleeps in wdcwait() - check current lwp rather than relying
on global ATACH_TH_RUN channel flag

should fix the hang part of the problem reported in
http://mail-index.netbsd.org/netbsd-users/2020/03/12/msg024249.html

thanks to Paul Ripke for providing extensive debugging info
2020-04-04 21:36:15 +00:00
dholland 7ec84f335a Move the note about sys_errlist[] users to COMPATIBILITY, and strengthen it. 2020-04-04 21:29:54 +00:00
dholland 903a8c167f Add missing ERRORS section. 2020-04-04 21:26:44 +00:00
fox a4861c96ec lib/libusbhid: Fix possible left shift changes signedness bit.
This bug was reported by UBSan runs.

lib/libusbhid/parse.c:246:20

Can result in left shift changes signedness bit as a side effect positive number
can go negative, cast it to unsigned for the operation and silence the issue.

Reviewed by: kamil@
2020-04-04 21:26:16 +00:00
fox f76ca3088f lib/libusbhid: Fix possible left shift changes signedness bit.
This bug was reported by UBSan runs.

lib/libusbhid/usage.c:247:27
lib/libusbhid/usage.c:244:28
lib/libusbhid/usage.c:235:13

Can result in left shift changes signedness bit as a side effect positive number
can go negative, cast it to unsigned for the operation and silence the issue.

Reviewed by: kamil@
2020-04-04 21:23:04 +00:00
fox ef659d5053 lib/libusbhid: Fix possible left shift changes signedness bit.
This bug was reported by UBSan runs.

lib/libusbhid/data.c:58:25
lib/libusbhid/data.c:91:7
lib/libusbhid/data.c:92:7

Can result in left shift changes signedness bit as a side effect positive number
can go negative, cast it to unsigned for the operation and silence the issue.

Reviewed by: kamil@
2020-04-04 21:21:35 +00:00
dholland 4aee32ddde Minor clarification. And a typo. Bump date. 2020-04-04 21:20:39 +00:00
ad c70743cce9 Mark uvm_map_entry_cache with PR_LARGECACHE. 2020-04-04 21:17:02 +00:00
kamil 068c592bb4 Add new example kernel module: current_time
Submitted by Apurva Nandan.
2020-04-04 21:15:04 +00:00
christos 42413888fc silence lint. 2020-04-04 21:13:20 +00:00
christos 9dd097b5c2 Always include the sampling member so that the struct size is consistent. 2020-04-04 21:00:03 +00:00
ad 3b26322cff vrelel(): clear VV_MAPPED with the vnode still locked. 2020-04-04 20:54:42 +00:00
ad e1c1e00642 Regen. 2020-04-04 20:52:18 +00:00
ad c90f9c8c81 Merge the remaining changes from the ad-namecache branch, affecting namei()
and getcwd():

- push vnode locking back as far as possible.
- do most lookups directly in the namecache, avoiding vnode locks & refs.
- don't block new refs to vnodes across VOP_INACTIVE().
- get shared locks for VOP_LOOKUP() if the file system supports it.
- correct lock types for VOP_ACCESS() / VOP_GETATTR() in a few places.

Possible future enhancements:

- make the lookups lockless.
- support dotdot lookups by being lockless and inferring absence of chroot.
- maybe make it work for layered file systems.
- avoid vnode references at the root & cwd.
2020-04-04 20:49:30 +00:00
christos d361eb2a3d Switch x86 to the new binutils. 2020-04-04 20:47:56 +00:00
christos 1ddbc14e50 Regen everyone! 2020-04-04 20:45:42 +00:00
thorpej 7f4d3fb1f5 Man page for _lwp_gettid(2).
(Not yet installed, pending adding the libc stub.)
2020-04-04 20:31:11 +00:00
thorpej 4626c667bc Regen for _lwp_gettid(2). 2020-04-04 20:27:27 +00:00
ad 53a0f3bd01 preempt_needed(), preempt_point(): simplify the definition of these and
key on ci_want_resched in the interests of interactive response.
2020-04-04 20:21:53 +00:00
thorpej 851998c374 NetBSD 9.99.53 -- struct lwp changed. 2020-04-04 20:21:26 +00:00
thorpej 98a9cebbb6 Add support for lazily generating a "global thread ID" for a LWP. This
identifier uniquely identifies an LWP across the entire system, and will
be used in future improvements in user-space synchronization primitives.

(Test disabled and libc stub not included intentionally so as to avoid
multiple libc version bumps.)
2020-04-04 20:20:12 +00:00
ad dac58e129b - sched_idle(): if a migration took place, rather than going idle briefly
to avoid stealing back the LWP, remember the target CPU and avoid it.

- sched_preempted(): only choose a totally idle CPU; in the interests of
  overall throughput it's better to make use of SMT / slow CPUs.
2020-04-04 20:17:58 +00:00
christos d8e96a2d4f Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules.  This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.
2020-04-04 19:50:53 +00:00
is f6bfb0c4d8 Multilink fragment protocol type. 2020-04-04 19:46:01 +00:00
christos 8809b7dc13 fix netsmb, libgnuctf 2020-04-04 19:26:51 +00:00
kamil 52363f3637 Avoid copying zero-sized objects (from the NULL address)
Detected with UBSan
2020-04-04 19:24:51 +00:00
jdolecek 9cd2b890e6 remove also files.netsmb from here 2020-04-04 19:02:53 +00:00
christos 1aa528a00a smb is no more. 2020-04-04 17:57:16 +00:00
christos c260c42c09 remove smbfs 2020-04-04 17:56:22 +00:00
christos 70d892721f Adjust for field rename. 2020-04-04 17:25:39 +00:00
christos 4bf07a2182 more smb removal. 2020-04-04 17:20:16 +00:00
is 5dd3aa2241 Multilink PPP: sanity check of option values, storage of remote MRRU. 2020-04-04 17:12:33 +00:00
christos 82bbf8637f We don't have smbfs anymore. 2020-04-04 17:05:06 +00:00
christos ec53555ab5 gnuctf is only binutils=234 2020-04-04 17:00:05 +00:00
ad 9f344847ca Make makelists() a little bit faster. 2020-04-04 16:40:50 +00:00
jdolecek 2b7b5c0573 smbfs is no more 2020-04-04 16:25:17 +00:00
christos a874618c5e const for psignal 2020-04-04 16:14:11 +00:00
jdolecek 9f48300a54 note SMBFS and nsmb removal 2020-04-04 16:07:40 +00:00
jdolecek 68e97caa11 mark nsmb major obsolete 2020-04-04 16:06:10 +00:00
christos 1a8140ac32 fix libgnuctf 2020-04-04 16:05:39 +00:00
jdolecek 30f38bbb3f remove nsmb(4) 2020-04-04 16:04:36 +00:00
christos 1e0e781857 fix sets for new binutils 2020-04-04 16:04:01 +00:00
jdolecek f5deac875d remove some leftover nsmb(4) references from kernel configs 2020-04-04 15:56:25 +00:00
christos f8f567bba7 gssapi needs crypto 2020-04-04 15:45:45 +00:00
jdolecek 1e03bcd0cf remove SMBFS and nsmb(4) - kernel part
it's unmaintained and supports only obsolete SMB1
2020-04-04 15:43:21 +00:00
jdolecek b28734a61b remove SMBFS and nsmb/netsmb - userland part 2020-04-04 15:39:13 +00:00
jdolecek fea2af3136 remove mount_smbfs(8)/nsmb(4) references 2020-04-04 15:32:42 +00:00