Commit Graph

295205 Commits

Author SHA1 Message Date
yamaguchi ba9dc8b030 Fix missing freeing resource related to protocol
pointed out by k-goda@IIJ
2022-03-31 01:49:02 +00:00
yamaguchi 0ecde75fe0 Switch ifp->if_output along with configuring ifp->if_lagg
lagg_port_output stored to ifp->if_output uses ifp->if_lagg.
Therefore, ifp->if_output switches to lagg_port_output after
ifp->if_lagg is configured, and restores in reverse order.

This missing order is pointed out by k-goda@IIJ
2022-03-31 01:46:25 +00:00
yamaguchi 32d0c3943a Added missing NULL check
pointed out by k-goda@IIJ
2022-03-31 01:43:48 +00:00
yamaguchi 3dc652ee8c lagg(4): commonize the error handling 2022-03-31 01:42:40 +00:00
yamaguchi 00a1ef6055 Added missing kmem_free
pointed out by k-goda@IIJ
2022-03-31 01:40:34 +00:00
yamaguchi 2ed90b6100 lagg(4): fix typo
pointed out by k-goda@IIJ
2022-03-31 01:39:09 +00:00
yamaguchi 5ed34580b8 Added a kernel option to run LACP on a half duplex interface 2022-03-31 01:36:47 +00:00
macallan 4dc91cbc63 get machine_ledaddr from PDC if we find one
now USELEDS works on my c360
2022-03-30 22:34:48 +00:00
riastradh fb698d2260 kern: Assert softint does not net acquire kernel locks.
This redoes previous change where I mistakenly used the CPU's biglock
count, which is not necessarily stable -- the softint lwp may sleep
on a mutex, and the lwp it interrupted may start up again and release
the kernel lock, so by the time the softint lwp wakes up again and
the softint function returns, the CPU may not be holding any kernel
locks.  But the softint lwp should never hold kernel locks except
when it's in a (usually, non-MPSAFE) softint function.

Same with callout.
2022-03-30 17:02:02 +00:00
christos 42c92eb5a7 remove zfs from the exception list; it now works like the other fs's. 2022-03-30 16:35:28 +00:00
christos 41fac1e5ad Add link our policy. 2022-03-30 16:34:27 +00:00
riastradh 0fa3d1b3d8 Revert "kern: Sprinkle biglock-slippage assertions."
Got the diagnostic information I needed from this, and it's holding
up releng tests of everything else, so let's back this out until I
need more diagnostics or track down the original source of the
problem.
2022-03-30 14:54:29 +00:00
christos 42f8118f95 update copyright. 2022-03-30 14:24:50 +00:00
christos 9d538b3985 skip userlevel filesystems that have their own rules (they depend on the
system setting of the sysctl on NetBSD) and zfs because it implements its
own rules for hardlinks to files (does its own permission checks).
2022-03-30 13:43:42 +00:00
christos 89513510bb Fix locking in udf_link(). XXX: udf_symlink is prolly similarly broken. 2022-03-30 13:23:59 +00:00
christos e352897092 fix unlock on error. 2022-03-30 12:45:58 +00:00
christos ef2dbbad7b restructure so we abort/unlock properly on failure. 2022-03-30 10:52:59 +00:00
riastradh e93349be5d kern: Sprinkle biglock-slippage assertions.
We seem to have a poltergeist that occasionally messes with the
biglock depth, but it's very hard to reproduce and only manifests as
some other CPU spinning out on the kernel lock which is no good for
diagnostics.
2022-03-30 10:34:14 +00:00
hannken 8324126929 _rtld_map_object(): no need to mmap an empty bss segment. 2022-03-30 08:26:45 +00:00
knakahara be531ae433 vmxnet3_stop_rendezvous() requires workqueue_wait() to wait workqueue not scheduled yet. 2022-03-30 02:45:14 +00:00
pgoyette a02f62015b These modules need to depend on iic, not just on i2cexec. (They will
still recursively get i2cexec since the iic depends on it.)

Partial fix for kern/56772
2022-03-30 00:06:50 +00:00
christos fdd8676a97 get rid of old style `` command substitution in shell and use $() instead. 2022-03-29 22:48:04 +00:00
christos f1d8378e1e ignore EOPNOTSUPP errors for fs's that don't support hard links. 2022-03-29 22:30:07 +00:00
christos e1a9841650 isroot should be bool... 2022-03-29 22:29:29 +00:00
pgoyette 6acf5ca368 gpiopps module requires the gpio module to resolve several symbols 2022-03-29 22:10:42 +00:00
wiz 719b3437d7 zlib-1.2.12 out 2022-03-29 22:09:58 +00:00
martin ac81f0d6fb More space for the memory disk image is needed here too (follow the
last change in INSTALL)
2022-03-29 09:37:39 +00:00
riastradh f1443ed561 sequencer(4): Don't use mutex_spin_exit on an IPL_NONE lock. 2022-03-29 09:19:56 +00:00
riastradh ed88e54b26 cs4281(4): Fix lock ordering in suspend.
No idea if this code works -- obviously this path has never been
tested in the >decade it's been here!
2022-03-29 09:16:24 +00:00
riastradh 6e8010fdf1 emdtv(4): Fix issues in detach.
- Use config_detach_children, and do it up front, and handle failure
  (not relevant for yanking usb but relevant for drvctl which doesn't
  pass DETACH_FORCE).

- Fix teardown order: stop interrupts so we stop issuing new work,
  and _then_ wait for pending work to drain and destroy the
  workqueue.

- Omit needless empty  mutex_enter(lock); mutex_exit(lock)  dance
  which probably only appeared necessary because of the wrong
  teardown order.
2022-03-29 09:08:44 +00:00
riastradh 76c8c1e3a6 uhid(4): Make sure error is initialized in uhidkqfilter. 2022-03-29 06:59:19 +00:00
riastradh 8cf595f149 x68k/ite(4): Include <sys/device_impl.h> to abuse autoconf internals. 2022-03-29 06:56:51 +00:00
yamaguchi e6bd306b70 vioif(4): Added a comment about stopping packet processing 2022-03-29 01:57:51 +00:00
christos 70ac91e3e3 Add t_link 2022-03-28 20:52:17 +00:00
christos 3c5909fb2a Add a test for hardlink sysctl limiting. 2022-03-28 20:51:04 +00:00
christos 6bb39419ba include the extensions secmodel 2022-03-28 20:49:52 +00:00
christos f05e894101 no need to include suser; it gets autoloaded as a module. 2022-03-28 20:49:32 +00:00
rillig e50ed3e547 cgram: define a word as a sequence of letters, not non-whitespace
Pressing Tab or Shift+Tab now advances to the next letter that could be
substituted, it no longer stops at punctuation or digits.  Since only
letters are scrambled, these are most interesting to be edited.
2022-03-28 20:00:29 +00:00
riastradh ec72b92aae arm/cortex: Use container_of, not bespoke offsetof arithmetic. 2022-03-28 19:59:35 +00:00
riastradh f017eb2a03 arm/apple: Use container_of, not bespoke offsetof arithmetic.
Better type-safety this way.
2022-03-28 19:59:26 +00:00
rillig 9bb3568dde secmodel: fix grammar in description of hardlink_check_gid 2022-03-28 19:08:43 +00:00
wiz 748597633b Restore another historic RCS Id. 2022-03-28 13:07:14 +00:00
martin 003b3e95e9 Provide a bit more space for the ramdisk image (which recently did grow) 2022-03-28 12:48:44 +00:00
riastradh fd1c7fef4e sys/dev/ccd.c: Restore historic RCS id.
This got munged accidentally by `git cvsexportcommit -k' -- taking
that option out of my commitbomb script!
2022-03-28 12:48:35 +00:00
riastradh 723c0f7f35 uatp(4): Use usbd_get/set_report for Geyser 3/4 reset. 2022-03-28 12:45:04 +00:00
riastradh d648852e1b uatp(4): Fix detach logic.
Let wsmouse child decide whether it's in use or close if mandatory.
If config_detach_children succeeds, this must no longer be open and
we can commit to freeing everything.
2022-03-28 12:44:54 +00:00
riastradh 0c5cc32adb uhidev(9): Assert uhidev is open when writing.
(Maybe we could have uhidevs that are output-only, in which case a
driver could, in principle, want to issue writes without getting any
input report interrupts.  But we can cross that bridge when we come
to it.)
2022-03-28 12:44:45 +00:00
riastradh 96edebbe82 uhidev(9): Define UHIDEV_MAXREPID = 255.
Report ids are limited by the HID spec to a single byte.

- Clamp max report id in report descriptor to this.

- Prune dead refcnt-overflow error branches.  Assert instead.
2022-03-28 12:44:37 +00:00
riastradh 7b337ee289 uhidev(9): Omit needless sc_dying. 2022-03-28 12:44:28 +00:00
riastradh 0b6c2425fd uhidev(9): Make uhidev state opaque.
This makes the API simpler and clearer and gives us more latitude to
fix bugs in the state management without breaking the ABI.

XXX kernel ABI change to signature of uhidev_get_report_desc and
uhidev_open, and to struct uhidev_attach_arg, requires bump for
uhidev driver modules
2022-03-28 12:44:17 +00:00