Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (58m)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 10:28:53 UTC Now

2021-10-05 05:56:49 UTC MAIN commitmail json YAML

indent: clean up code for appending to buffers

Use *e++ for appending and e[-1] for testing the previously appended
character, like in other places in the code.

No functional change.

(rillig)

2021-10-05 05:39:14 UTC MAIN commitmail json YAML

indent: merge duplicate code for reading from input buffer

No functional change.

(rillig)

2021-10-05 04:17:58 UTC MAIN commitmail json YAML

Drop unicast packets that are not for us
when lagg(4) is not in promisc

(yamaguchi)

2021-10-05 04:09:49 UTC MAIN commitmail json YAML

Replace the list for vlan interfaces with the counter

The list had been used in vlan_ifdetach(), but it is no longer in
use as a linked list by introducing ether_ifdetach hook.

(yamaguchi)

2021-10-05 01:23:39 UTC MAIN commitmail json YAML

Update agcre to version 20211001

20211001
========

+ move to a single source file, which can just be included as a single file
(the library method can still be used for this as well - sometimes, it's just easier to
drop in a single file to other projects)

+ add AGCRE_EMBED_CTAGS as a primary regular expresion type (same as basic regexps,
but where a '*' occurs as a non-column 0 element of the pattern, it is assumed
to be a standard character, as produced by ctags(1) output; basic regular expressions
only accept '*' as a standard character as the first element of the expression).
Yay.

+ make the version string in the program a real string, so it can be found using strings(1)

+ add an agcre_rev_regexec(3) function, which searches the text in an efficient, reverse
manner, a la strrchr(3) or memrchr(3) fashion.

+ add agcre_regnsub(3) and agcre_regasub(3) functions

+ bump the shared lib version to 1.0

+ cut version 20211001

(agc)

2021-10-04 21:02:40 UTC MAIN commitmail json YAML

2021-10-04 20:48:06 UTC MAIN commitmail json YAML

2021-10-04 20:25:20 UTC MAIN commitmail json YAML

2021-10-04 18:16:48 UTC MAIN commitmail json YAML

riscv: fix build with r/o src tree

add 'compile' to the SUBDIR list so that 'make obj' creates the
kernel compile base objdir so <bsd.kernobj.mk> sets KERNOBJDIR
correctly.

(mrg)

2021-10-04 15:43:41 UTC netbsd-9 commitmail json YAML

2021-10-04 15:42:40 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by tsutsui in ticket #1354):

external/mit/xf86-input-keyboard/dist/src/kbd.c: revision 1.8

Handle DEVICE_ABORT to restore the original keyboard state after crash.

No particular comment in PR xsrc/56415.

(martin)

2021-10-04 14:49:30 UTC netbsd-9 commitmail json YAML

2021-10-04 14:48:25 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by thorpej in ticket #1353):

sys/miscfs/fifofs/fifo_vnops.c: revision 1.90
tests/kernel/kqueue/write/t_fifo.c: revision 1.5

- Add a new EVFILT_WRITE test case for FIFOs that correctly validates
the writability thresholds.
- Fix a bug in fifo_kqfilter() exposed by the new test case; in the
EVFILT_WRITE case, we were attaching the wrong end of the socket
pair to the knote!
- In filt_fiforead(), use ">= so->so_rcv.sb_lowat" rather than "> 0"
for consistency with fifo_poll().  NFC.

(martin)

2021-10-04 14:40:25 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by thorpej in ticket #1352):

tests/kernel/kqueue/read/t_fifo.c: revision 1.5

New EVFILT_READ test case for FIFOs; validates readability threshold and
EV_EOF behavior.

(martin)

2021-10-04 14:35:20 UTC MAIN commitmail json YAML

2021-10-04 14:32:38 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by thorpej in ticket #1351):

sys/miscfs/fifofs/fifo_vnops.c: revision 1.88
sys/kern/uipc_syscalls.c: revision 1.201
tests/lib/libc/sys/t_poll.c: revision 1.6
tests/lib/libc/sys/t_poll.c: revision 1.7
tests/lib/libc/sys/t_poll.c: revision 1.8

- Strenghen the poll(2) fifo_inout test to ensure that once the reader
has read enough that exactly PIPE_BUF space is available that the FIFO
becomes writable again.
- When creating a FIFO, ensure that the receive low water mark is 1
(a FIFO must be readable when at least 1 byte is available); this
was already the case implicitly, but this makes it explicit.
- Similarly, set the send low water mark to PIPE_BUF to ensure that
the pipe is writable when at least PIPE_BUF bytes of space are available
in the send buffer.  Without this change, the strengthened test case
above does not pass (the default send low water mark is larger than
PIPE_BUF; see soreserve()).
- Make the same low water mark changes to the PIPE_SOCKETPAIR case.

In the fifo_hup1 test, also ensure that POLLHUP is de-asserted when a
new writer appears.

Add a fifo_inout test case that validates the expected POLLIN / POLLOUT
behavior for FIFOs:
- A FIFO is readable so long as at least 1 byte is available.
- A FIFO is writable so long as at least PIPE_BUF (obtained with _PC_PIPE_BUF)
  space is avaiable.
This will be cloned for a forthcoming kevent test case.

(martin)

2021-10-04 12:26:29 UTC MAIN commitmail json YAML

rasops_reconfig: Do not abort even if font stride is not supported by
rasops_make_box_chars_*() functions; Stop using ri_optfont instead.

XXX
Add rasops_make_box_chars_24().

(rin)

2021-10-04 09:39:18 UTC MAIN commitmail json YAML

2021-10-04 07:04:39 UTC MAIN commitmail json YAML

Sorry.. missed the debug module build in the previous commit.

(brad)

2021-10-04 06:50:35 UTC MAIN commitmail json YAML

Don't include bsd.own.mk here - none of the other etc.<foo>/Makefile.inc
files do.

(skrll)

2021-10-03 23:19:26 UTC MAIN commitmail json YAML

disable GIC_SPLFUNCS until remaining issues are sorted out

(jmcneill)

2021-10-03 20:35:59 UTC MAIN commitmail json YAML

indent: fix lint warning about signed '>>'

Lint couldn't infer that indent's list of type names will practically
never contain more that 2 billion entries and that the result of '>>'
would be the same in all cases.

(rillig)

2021-10-03 19:09:59 UTC MAIN commitmail json YAML

indent: clean up load_profile

No functional change.

(rillig)

2021-10-03 18:53:37 UTC MAIN commitmail json YAML

indent: reduce duplicate code in load_profiles

No functional change.

(rillig)

2021-10-03 18:47:16 UTC MAIN commitmail json YAML

Fix typo when erroring out on unknown ELF machine type.

(fcambus)

2021-10-03 18:44:51 UTC MAIN commitmail json YAML

indent: rename functions

There was no good reason for using the different verbs 'scan' and 'set'
for two functions that essentially do the same.

No functional change.

(rillig)

2021-10-03 18:41:36 UTC MAIN commitmail json YAML

indent: fix content of profile_name

Previously, profile_name included the leading "-P", which was confusing.

(rillig)

2021-10-03 18:20:13 UTC MAIN commitmail json YAML

New sentence, new line. Fix Dd. Use more macros.

(wiz)

2021-10-03 17:27:02 UTC MAIN commitmail json YAML

A driver for the Sensirion SHT40/SHT41/SHT45 temperature and humidity
sensor.  An example of this chip is:

https://www.adafruit.com/product/4885

This is a lower cost chip that provides higher then usual precision
according to the data sheet.  This driver supports all of the published
functions that the chip has.

(brad)

2021-10-02 22:14:32 UTC MAIN commitmail json YAML

avoid set-but-unused-variable warnings.

(mrg)

2021-10-02 20:52:09 UTC MAIN commitmail json YAML

2021-10-02 20:45:35 UTC MAIN commitmail json YAML

2021-10-02 20:45:17 UTC MAIN commitmail json YAML

add intel 660p ssd, and expand the 760p description.

(mrg)

2021-10-02 20:41:47 UTC MAIN commitmail json YAML

default RK3399 PCIe to 1.x.

sometime in mid-2019, rockchip disabled PCIe 2.x referrencing a
non-public errata in linux and the dts, both of which were changed
to default to only PCIe 1.x (in code, and in DT.)  see:

  https://lore.kernel.org/all/1481881357-1793-1-git-send-email-shawn.lin@rock-chips.com/

we haven't observed any specific problems, but we've also tested
far fewer cards than linux.  there are other issues such as what
happens for a PCI abort depending on which CPU triggers it we do
not currently handle either.

tested on rockpro64 with nvme & ahcisata, and pinebook pro nvme.

still allows DT to set back to '2' if the user so desires.

(mrg)

2021-10-02 18:39:15 UTC MAIN commitmail json YAML

- Add a new EVFILT_WRITE test case for FIFOs that correctly validates
  the writability thresholds.
- Fix a bug in fifo_kqfilter() exposed by the new test case; in the
  EVFILT_WRITE case, we were attaching the wrong end of the socket
  pair to the knote!
- In filt_fiforead(), use ">= so->so_rcv.sb_lowat" rather than "> 0"
  for consistency with fifo_poll().  NFC.

(thorpej)

2021-10-02 18:21:05 UTC MAIN commitmail json YAML

New EVFILT_READ test case for FIFOs; validates readability threshold and
EV_EOF behavior.

(thorpej)

2021-10-02 17:37:21 UTC MAIN commitmail json YAML

2021-10-02 17:32:55 UTC MAIN commitmail json YAML

- Strenghen the poll(2) fifo_inout test to ensure that once the reader
  has read enough that exactly PIPE_BUF space is available that the FIFO
  becomes writable again.
- When creating a FIFO, ensure that the receive low water mark is 1
  (a FIFO must be readable when at least 1 byte is available); this
  was already the case implicitly, but this makes it explicit.
- Similarly, set the send low water mark to PIPE_BUF to ensure that
  the pipe is writable when at least PIPE_BUF bytes of space are available
  in the send buffer.  Without this change, the strengthened test case
  above does not pass (the default send low water mark is larger than
  PIPE_BUF; see soreserve()).
- Make the same low water mark changes to the PIPE_SOCKETPAIR case.

(thorpej)

2021-10-02 15:50:06 UTC MAIN commitmail json YAML

Add a fifo_inout test case that validates the expected POLLIN / POLLOUT
behavior for FIFOs:
- A FIFO is readable so long as at least 1 byte is available.
- A FIFO is writable so long as at least PIPE_BUF (obtained with _PC_PIPE_BUF)
  space is avaiable.

This will be cloned for a forthcoming kevent test case.

(thorpej)

2021-10-02 14:41:36 UTC MAIN commitmail json YAML

In the fifo_hup1 test, also ensure that POLLHUP is de-asserted when a
new writer appears.

(thorpej)

2021-10-02 14:28:05 UTC MAIN commitmail json YAML

2021-10-02 13:41:50 UTC MAIN commitmail json YAML

2021-10-02 11:08:51 UTC netbsd-9 commitmail json YAML

2021-10-02 11:07:56 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by thorpej in ticket #1350):

sys/kern/uipc_socket2.c: revision 1.140
tests/lib/libc/sys/t_poll.c: revision 1.5
sys/miscfs/fifofs/fifo_vnops.c: revision 1.87

- fifo_poll(): If the last writer has disappeared, detect this and return
  POLLHUP, per POSIX.
- fifo_close(): Use the new fifo_socantrcvmore(), which is like the
  garden-variety socantrcvmore(), except it specifies POLL_HUP rather
  than POLL_IN (so the correct code for SIGIO is sent).
- sowakeup(): Allow POLL_HUP as a code (notifies poll'ers with POLLHUP).
- Add test cases for correct POLLHUP behavior with FIFOs.

Fixes PR kern/56429.

(martin)

2021-10-02 11:02:46 UTC netbsd-9 commitmail json YAML

Apply patch, requested by manu in ticket #1349:

external/gpl3/gcc/dist/libgomp/oacc-init.c (apply patch)

Fix a pthread_key leak in libgomp. Cherry picked from -current where
it was solved by the GCC 8.4 import.

(martin)

2021-10-02 11:01:53 UTC MAIN commitmail json YAML

We are now (partial) at tzdata2021c.  This involves no changes other than
here (this), as we had not adopted the changes to tzdata in 2021b that were
reverted in 2021c, and the other changes are all to tzcode (and not
very important to us, either 2021b or 2021c tzcode changes).

(kre)

2021-10-02 07:35:41 UTC MAIN commitmail json YAML

Fix a deadlock where one thread writes to a pipe, has more data
and no space in the pipe and waits on "pipe_wcv" while the reader
is closing the pipe and waits on "pipe_draincv".

Swap the test for "PIPE_EOF" and the "cv_wait_sig()" in "pipe_write()".

PR bin/56422 "zgrep -l sometimes hangs"

(hannken)

2021-10-02 04:28:54 UTC MAIN commitmail json YAML

Handle DEVICE_ABORT to restore the original keyboard state after crash.

No particular comment in PR xsrc/56415.

(tsutsui)

2021-10-02 02:07:42 UTC MAIN commitmail json YAML

- fifo_poll(): If the last writer has disappeared, detect this and return
  POLLHUP, per POSIX.
- fifo_close(): Use the new fifo_socantrcvmore(), which is like the
  garden-variety socantrcvmore(), except it specifies POLL_HUP rather
  than POLL_IN (so the correct code for SIGIO is sent).
- sowakeup(): Allow POLL_HUP as a code (notifies poll'ers with POLLHUP).
- Add test cases for correct POLLHUP behavior with FIFOs.

Fixes PR kern/56429.

(thorpej)

2021-10-01 22:42:28 UTC MAIN commitmail json YAML

tzdata partial update to 2021b

(kre)

2021-10-01 22:35:07 UTC MAIN commitmail json YAML

Cherry pick the important changes from tzdata2031b:

Samoa (Pacific/Apia) has cancelled summer time this year
(change effective last Sunday).
Jordan (Asia/Amman) has moved the start of summer time from
the last Thu/Fri in March to the last Thu/Fri in Feb
to begin next year (2022).

Some more of the non-controversial (and less important, mostly some
corrections to historical data) changes may follow soon.

(kre)

2021-10-01 21:14:06 UTC MAIN commitmail json YAML

use quirk bit for devices that need sc_alwayson instead of adding yet another
if (uha->uiaa->uiaa_vendor == USB_VENDOR_..., remove entries now covered
by UQ_ALWAYS_ON

(macallan)

2021-10-01 21:09:50 UTC MAIN commitmail json YAML

add a quirk for devices that need ums::sc_alwayson

(macallan)

2021-10-01 21:03:51 UTC MAIN commitmail json YAML

2021-10-01 21:01:34 UTC MAIN commitmail json YAML

add PixArt Raspberry Pi Mouse

(macallan)

2021-10-01 20:13:38 UTC MAIN commitmail json YAML

remove parameter names from decls.

(christos)

2021-10-01 18:18:32 UTC MAIN commitmail json YAML

t_simplehook requires RUMP

(martin)

2021-10-01 17:20:32 UTC MAIN commitmail json YAML

Make this compilable as tool with MKCROSSGDB=yes

(martin)

2021-10-01 17:13:44 UTC MAIN commitmail json YAML

PR/56424: Clay Mayers: recvfrom() is not a cancelation point as documented
in pthread_setcanceltype.3

(christos)

2021-10-01 10:38:03 UTC MAIN commitmail json YAML

riscv: Include kernel and bootloader in releasedir.

This change adds a kern-GENERIC set and distributes an INSTALL kernel
along with bootriscv64.efi as part of a standard release build.

(jmcneill)

2021-10-01 07:14:37 UTC MAIN commitmail json YAML

xf86-input-ws: fix building on xorg-server.old (vax, etc)

not entirely sure that the ABI version check is spot on, but the
relevant changes were made in 2011 so hopefully we only have to
support one old xinput API here.

(nia)

2021-10-01 06:08:43 UTC MAIN commitmail json YAML

2021-10-01 06:07:12 UTC MAIN commitmail json YAML

Comment out hpcarm/spl.S, which was superseded by arm32/spl.S.

No functional changes; We had two source files for spl.o, but correct
file was chosen by config(1).

(rin)

2021-09-30 22:45:34 UTC MAIN commitmail json YAML

2021-09-30 22:16:57 UTC MAIN commitmail json YAML

make the test program  print the current version when invoked with -V

(agc)

2021-09-30 22:11:59 UTC MAIN commitmail json YAML

Update the date for this man page

Also add the explanation for the string parameters to gap_exec_string()

(agc)

2021-09-30 22:01:04 UTC MAIN commitmail json YAML

Update buffer gap routines to the latest API and functionality - 20210930.

The API has been consolidated around 4 functions:

1. gap_new() - returns a new (opaque) buffer gap structure
2. gap_dispose() - dispose of a previously allocated buffer gap structure
3. gap_exec() - perform operations on the buffer gap which expect an
  integer return value
4. gap_exec_string() - perform operations on the buffer gap which return a byte
  array (typically return buffer contents, or the buffer name)

All of the "verbs" are described in the libgap.3 manual page, found in the
dist directory. The main.c test program, again found in the dist directory,
gives 7 worked examples of how to use the functionality to achieve desired ends,
and there are 7 test input files, along with expected results, which are
provided as a regression test suite - accessible using "make t" from the top
level directory.

The buffer gap routines use a copy of the embedded agcre regexp library to
provide bounded (non-exponential time) results for regexp searching forwards
and backwards - for more information, see the agcre directory at the same level
as this code, or the source code in dist/agcre-embed.[ch].

Also move to a more usual reachover infrastructure

(agc)

2021-09-30 21:48:12 UTC MAIN commitmail json YAML

2021-09-30 21:38:43 UTC MAIN commitmail json YAML

indent: untangle want_blank_before_lparen

No functional change.

(rillig)

2021-09-30 21:33:55 UTC MAIN commitmail json YAML

indent: extract want_blank_before_lparen

No functional change.

(rillig)

2021-09-30 21:19:16 UTC MAIN commitmail json YAML

Ensure TCR_EPD0 is set on entry to pmap_activate and ensure it is set as
early as possible for APs.

(skrll)

2021-09-30 20:58:26 UTC MAIN commitmail json YAML

indent: add space between ',' and '[' in C99 initializations

(rillig)

2021-09-30 20:02:55 UTC MAIN commitmail json YAML

2021-09-30 19:12:04 UTC MAIN commitmail json YAML

gnu-efi: Import version 3.0.14.

(jmcneill)

2021-09-30 19:11:22 UTC MAIN commitmail json YAML

gnu-efi: updated to 3.0.14

(jmcneill)

2021-09-30 19:09:10 UTC MAIN commitmail json YAML

2021-09-30 19:02:48 UTC MAIN commitmail json YAML

2021-09-30 18:33:28 UTC MAIN commitmail json YAML

Make tlb_asid_t unsigned int as pmap_tlb.c expects tlb_asid_t to be able to
hold ASID_MAX + 1.

(skrll)

2021-09-30 15:54:55 UTC MAIN commitmail json YAML

Print CPUID_PBE (Pending Break Enable) with "PBE".

(msaitoh)

2021-09-30 12:35:55 UTC MAIN commitmail json YAML

kqueue(2) file descriptors are not inherited across fork(2). A
process that that calls getaddrinfo(3) will end up cacheing the
kqueue(2) file descriptor in its res_state structure. If that
process fork(2)s and calls getaddrinfo(3) again might end up closing
that cached file descriptor which can end up pointing to a different
file object than the kqueue(2) original one. To fix this, associate
the kqueue(2) file descriptor with the process id that created it,
and don't close(2) it if it is being closed from a different process.
An alternative fix would be to attach the resolver to a fork(2) hook
to cleanup the res_state, but handling it internally in the resolver
is less intrusive. This was discovered by Dima Veselov when using
the FreeRADIUS package.

(christos)

2021-09-30 10:19:52 UTC MAIN commitmail json YAML

2021-09-30 07:49:09 UTC MAIN commitmail json YAML

More catching up with spl changes.

(skrll)

2021-09-30 07:15:02 UTC MAIN commitmail json YAML

Some platforms need sys/cpu.h for curlwp so #include it

(skrll)

2021-09-30 07:14:10 UTC MAIN commitmail json YAML

2021-09-30 04:36:25 UTC MAIN commitmail json YAML

Bump the version for struct ifnet and ethercom changes

Welcome to 9.99.90

(yamaguchi)

2021-09-30 04:29:17 UTC MAIN commitmail json YAML

2021-09-30 04:23:30 UTC MAIN commitmail json YAML

Make a link-layer address of lagg(4) configurable by ifconfig(8)

lagg(4) uses a configured link-layer (MAC) address instead
of a random MAC address generated on creating.
The configured MAC address is copied to all child interface
and used for a system id of LACP.

(yamaguchi)

2021-09-30 04:20:14 UTC MAIN commitmail json YAML

Fix to acquire LAGG_LOCK without psref
to remove possibility of deadlock

the deadlock maybe happened between lagg_ifdetach()
and lagg_delport()

1. lagg_ifdetach calls psref_target_acquire()
2. lagg_delport calls LAGG_LOCK()
3. lagg_ifdetach calls LAGG_LOCK()
  - wait for lagg_delport
4. lagg_delport calls psref_target_destroy()
  - wait for lagg_ifdetach

(yamaguchi)

2021-09-30 04:13:42 UTC MAIN commitmail json YAML

2021-09-30 04:06:50 UTC MAIN commitmail json YAML

Remove vlan_ifdetach() from ixgbe_detach()

The removed function is called in ether_ifdetach().
And ether_ifdetach is changed to be called before a device
is stopped, because vlan_ifdetach called from ether_ifdetach
configures VLAN settings.

(yamaguchi)

2021-09-30 04:02:27 UTC MAIN commitmail json YAML

Remove vlan_ifdetach() from ixv_detach()

The removed function is called in ether_ifdetach().

(yamaguchi)

2021-09-30 03:57:48 UTC MAIN commitmail json YAML

2021-09-30 03:54:04 UTC MAIN commitmail json YAML

Provide a hook point called when ether_ifdetach is called

(yamaguchi)

2021-09-30 03:51:05 UTC MAIN commitmail json YAML

net: obsolete ifnet::if_link_state_chenged
that was used for updating link-state of vlan I/F

The obsoleted function is replaced with
ifnet::if_linkstate_hooks

(yamaguchi)

2021-09-30 03:47:28 UTC MAIN commitmail json YAML

vlan: Register the callback to update link-state of vlan I/F
to link-state change hook

The callback is registered in every vlan I/F even if the parent
interface is the same. Therefore it is not needed to search the
vlan I/F by the parent interface unlike the previous callback.

(yamaguchi)

2021-09-30 03:43:25 UTC MAIN commitmail json YAML

carp: Register carp_carpdev_state to link-state change hook

(yamaguchi)

2021-09-30 03:39:39 UTC MAIN commitmail json YAML

2021-09-30 03:35:55 UTC MAIN commitmail json YAML

2021-09-30 03:23:48 UTC MAIN commitmail json YAML

Provide a hook point called at change of link state

(yamaguchi)

2021-09-30 03:15:25 UTC MAIN commitmail json YAML

Replace ifnet::if_agriprivate with ifnet::if_lagg

agr(4) and lagg(4) can not be used on the same interface so that
if_agrprivate and if_lagg are not used at the same time.
For resolve this wasteful, if_lagg is used in not only lagg(4)
but also agr(4).

After this modification, if_lagg has 3 states:
1. if_lagg == NULL
  - Both agr(4) and lagg(4) are not running on the interface
2. if_lagg != NULL && ifp->if_type != IFT_IEEE8023ADLAG
  - agr(4) is running on the I/F
3. if_lagg != NULL && ifp->if_type == IFT_IEEE8023ADLAG
  - lagg(4) is running on the I/F

(yamaguchi)

2021-09-30 02:00:20 UTC MAIN commitmail json YAML

2021-09-30 01:26:08 UTC MAIN commitmail json YAML

2021-09-30 01:20:53 UTC MAIN commitmail json YAML

Make the info returned by kqueue_stat() a little less barren.

(thorpej)

2021-09-30 01:12:06 UTC MAIN commitmail json YAML

In knote(), don't call kn->kn_fop->f_event() directly; use filter_event()
to get the correct KERNEL_LOCK handling for the filter attached to that
specific note.

(thorpej)

2021-09-29 15:17:01 UTC MAIN commitmail json YAML

Confirm to the NOTE_SUBMIT protocol.  With this, btn_read_filtops is MPSAFE.

(thorpej)

2021-09-29 13:15:46 UTC MAIN commitmail json YAML

The kq filterops that interact with sockets are MPSAFE.

(thorpej)

2021-09-29 13:14:39 UTC MAIN commitmail json YAML

ttyread_filtops, ttywrite_filtops, ptcread_filtops, and ptcwrite_filtops
are MPSAFE.

(thorpej)

2021-09-29 02:47:22 UTC MAIN commitmail json YAML

- Change selremove_knote() from returning void to bool, and return
  true if the last knote was removed and there are no more knotes
  on the selinfo.
- Use this new return value in filt_sordetach(), filt_sowdetach(),
  filt_fifordetach(), and filt_fifowdetach() to know when to clear
  SB_KOTE without having to know select/kqueue implementation details.

(thorpej)

2021-09-28 15:35:44 UTC MAIN commitmail json YAML

Make sure the robust futex head is zeroed out, since this LWP
will live on with a different program image.  (Thanks ryo@ for
pointing out my mistake.)

(thorpej)

2021-09-28 15:05:42 UTC MAIN commitmail json YAML

futex_release_all_lwp(): No need to pass the "tid" argument separately; that
is a vestige of an older version of the code.  Also, move a KASSERT() that
both futex_release_all_lwp() call sites had inside of futex_release_all_lwp()
itself.

(thorpej)

2021-09-28 14:52:22 UTC MAIN commitmail json YAML

In the exec path, multi-LWP programs dispose of their robust futexes
by calling exit_lwps(), except for the last LWP.  So, dispose of that
LWP's robust futexes right before calling lwp_ctl_exit().

Fixes a "WARNING: ... : unmapped robust futex list head" message when
running bash under Linux emulation on aarch64.

Root caused and patch proposed by ryo@.  I have tweaked it slightly,
just to add a comment and a KASSERT().

(thorpej)

2021-09-28 11:38:07 UTC MAIN commitmail json YAML

efiboot: Add efigop.c

(jmcneill)

2021-09-28 11:37:45 UTC MAIN commitmail json YAML

efiboot: Add support for changing the video mode.

Add a new "gop" command that can query the list of available video modes.
With a mode number as argument (eg. "gop 16"), the new display mode will
be selected.

The "version" command prints the current display mode.

(jmcneill)

2021-09-28 07:20:55 UTC MAIN commitmail json YAML

Switch to xf86-input-ws for mouse by default, to allow more advanced
input devices to Just Work.

(nia)

2021-09-28 06:57:48 UTC MAIN commitmail json YAML

tests/indent: demonstrate missing space before designated initializer

Seen in usr.bin/indent/lexi.c, num_lex_row.

(rillig)

2021-09-28 06:45:09 UTC MAIN commitmail json YAML

Remove duplicate tm_isdst.  Fixes PR misc/56419 for HEAD.

(kim)

2021-09-28 06:20:09 UTC MAIN commitmail json YAML

wsconsctl: allow the new "precision scrolling" variables to be configured

(nia)

2021-09-28 06:17:15 UTC MAIN commitmail json YAML

xf86-input-ws: implement support for WSCONS_EVENT_(H|V)SCROLL.

adapted from the OpenBSD code.

(nia)

2021-09-28 06:16:13 UTC MAIN commitmail json YAML

synaptics: use the new WSCONS_EVENT_(H|V)SCROLL event types
to implement two-finger scrolling. remove non-functional code for
detecting reported finger width.

(nia)

2021-09-28 06:14:28 UTC MAIN commitmail json YAML

wsmouse: add support for "precision scrolling" events and (GET|SET)PARAMS

WSCONS_EVENT_HSCROLL and WSCONS_EVENT_VSCROLL are two new wscons event
types that allow scrolling with a higher precision ("smoothness") than an
emulated scroll wheel, and are useful for touch input drivers.

WSMOUSEIO_GETPARAMS and WSMOUSEIO_SETPARAMS are two new ioctls that allow
the speed and direction of precision scrolling to be configured.

both features were originally implemented in OpenBSD.

(nia)

2021-09-27 20:09:55 UTC MAIN commitmail json YAML

indent: let indent format the comments after previous refactoring

Before this refactoring, I had skipped this section of the code from
formatting since the 'default:' branch was enclosed in a block of its
own, and that block would have been indented one more level to the
right. Extracting that code into a separate function got rid of the
extra braces.

No functional change.

(rillig)

2021-09-27 20:00:41 UTC MAIN commitmail json YAML

indent: split search_brace into smaller functions

No functional change.

(rillig)

2021-09-27 19:02:44 UTC MAIN commitmail json YAML

tests/indent: document that label indentation is not configurable

For at least the past 27 years, labels have been indented 2 levels to
the left of the corresponding statement. See label_offset and
compute_label_indent (or compute_label_target in FreeBSD).

(rillig)

2021-09-27 18:21:47 UTC MAIN commitmail json YAML

indent: use binary instead of linear search when adding types

No functional change.

(rillig)

2021-09-27 17:51:15 UTC MAIN commitmail json YAML

remove unused code.
The syscall for 32bit uses aarch32_syscall.c, so there is no need to make syscall.c support it.

(ryo)

2021-09-27 17:40:39 UTC MAIN commitmail json YAML

2021-09-27 17:37:59 UTC MAIN commitmail json YAML

In order to prevent uninitialized values from being reflected in the registers after syscall, rval[] must be initialized.

(ryo)

2021-09-27 17:33:07 UTC MAIN commitmail json YAML

indent: extract is_typename from lexi

No functional change.

(rillig)

2021-09-27 17:05:58 UTC MAIN commitmail json YAML

Improve variable sized TLB's output.

- Fix a bug that STLB is printed as DTLB.
- If a TLB is variable sized, print the max size instead of error message.
  XXX This is temporary solution.

(msaitoh)

2021-09-27 17:04:12 UTC MAIN commitmail json YAML

2021-09-27 17:03:13 UTC MAIN commitmail json YAML

Merge conflicts between OpenSSH 8.7 and 8.8

(christos)

2021-09-27 16:56:35 UTC MAIN commitmail json YAML

indent: rename rwcode to keyword_kind, various cleanup

No idea what the 'rw' in 'rwcode' meant, it had been imported that way
28 years ago. Since rwcode specifies the kind of a keyword, the prefix
'kw_' makes sense.

No functional change.

(rillig)

2021-09-27 16:52:15 UTC MAIN commitmail json YAML

2021-09-27 16:47:15 UTC MAIN commitmail json YAML

Fix a bug that some TLB related lines were not printed.

(msaitoh)

2021-09-27 16:22:58 UTC MAIN commitmail json YAML

Add ':' for readability.

(msaitoh)

2021-09-27 11:13:12 UTC MAIN commitmail json YAML

openssh 8.8 is out

(wiz)

2021-09-27 11:05:50 UTC MAIN commitmail json YAML

OpenSSH: Restore ChallengeResponseAuthentication as an alias

OpenSSH 8.7 has deprecated ChallengeResponseAuthentication, but not removed
it. It is now an alias for KbdInteractiveAuthentication (as are the prior
aliases of ChallengeResponseAuthentication).

I think this chunk was accidentally dropped in the OpenSSH 8.7 merge.

(kim)

2021-09-27 09:54:52 UTC MAIN commitmail json YAML

No longer need to call arm_pmu_init on all CPUs.

(jmcneill)

2021-09-27 07:13:30 UTC MAIN commitmail json YAML

Use unsigned to avoid undefined behavior in pppasyncstart().

Reported-by: syzbot+7c8c7977e2756ac13f0a@syzkaller.appspotmail.com

(msaitoh)

2021-09-27 00:51:10 UTC MAIN commitmail json YAML

Tweak filt_piperead() and filt_pipewrite() so that:
- There is only a single return from the function (and thus a single
  place where the pipe lock must be released).
- kn->kn_data is referenced only inside the lock perimeter.

(thorpej)

2021-09-27 00:40:49 UTC MAIN commitmail json YAML

Consistently reference kn->kn_data only within the lock perimeter in
the filtops f_event() callback.

(thorpej)

2021-09-26 23:37:40 UTC MAIN commitmail json YAML

In kqueue_kqfilter(), return EINVAL instead of 1 if something other than
EVFILT_READ was requested.

(thorpej)

2021-09-26 23:34:46 UTC MAIN commitmail json YAML

- Rename kqueue_misc_lock -> kqueue_timer_lock, since EVFILT_TIMER is
  now its only user.  Also initialize it as IPL_SOFTCLOCK; there is no
  practical difference in how it operates (it is still an adaptive lock),
  but this serves as a visual reminder that we are interlocking against
  a callout.
- Add some comments that describe why we don't need to hold kqueue_timer_lock
  when detaching an EVFILT_TIMER due to guarantees made by callout_halt().
- Mark timer_filtops as MPSAFE.

(thorpej)

2021-09-26 21:32:59 UTC MAIN commitmail json YAML

indent: fix documentation of opt.case_indent

See io.c, compute_label_indent.

(rillig)

2021-09-26 21:31:57 UTC MAIN commitmail json YAML

indent: fix definition of -cli in manual page

See io.c, compute_label_indent.

(rillig)

2021-09-26 21:29:39 UTC MAIN commitmail json YAML

Fix the locking around EVFILT_FS.  Previously, the code would walk the
fs_klist and take the kqueue_misc_lock inside the event callback.
However, that list can be modified by the attach and detach callbacks,
which could result in the walker stepping right off a cliff.

Instead, we give the fs_klist it's own lock, and hold it while we
call knote(), using the NOTE_SUBMIT protocol.  Also, fs_filtops
into vfs_syscalls.c so all of the locking logic is contained in one
file (there is precedence with sig_filtops).  fs_filtops is now marked
MPSAFE.

(thorpej)

2021-09-26 21:23:31 UTC MAIN commitmail json YAML

indent: unexport global variables

The variable match_state was write-only and was thus removed.

No functional change.

(rillig)

2021-09-26 21:05:48 UTC MAIN commitmail json YAML

indent: unexport keyword table, clean up

No functional change.

(rillig)

2021-09-26 20:55:15 UTC MAIN commitmail json YAML

2021-09-26 20:48:10 UTC MAIN commitmail json YAML

indent: force all option variables to be in struct options

No functional change.

(rillig)

2021-09-26 20:43:44 UTC MAIN commitmail json YAML

indent: reduce memory usage of the options table

Almost all boolean options are negatable, so model this directly instead
of saving each option twice. This saves memory, is faster and more
directly models reality.

No functional change.

(rillig)

2021-09-26 20:21:47 UTC MAIN commitmail json YAML

indent: list options in the same order as in the manual page

No functional change.

(rillig)

2021-09-26 20:15:04 UTC MAIN commitmail json YAML

Use the yield instruction as SPINLOCK_BACKOFF_HOOK for aarch64.

(jmcneill)

2021-09-26 20:14:07 UTC MAIN commitmail json YAML

Enable checksum offload features by default.

(jmcneill)

2021-09-26 20:12:38 UTC MAIN commitmail json YAML

indent: reduce code for listing the options

After this change, the few options that do not follow the standard
scheme become more visible. They are '-bl', '-br' and '-ta'.

No functional change.

(rillig)

2021-09-26 19:57:23 UTC MAIN commitmail json YAML

indent: negate and rename option.leave_comma

The old name did not mirror the description in the manual page, and it
was the only option that is negated. Inverting it allows the options
table to be compressed.

(rillig)

2021-09-26 19:37:11 UTC MAIN commitmail json YAML

indent: let indent format its own code -- in supervised mode

After running indent on the code, I manually selected each change that
now looks better than before. The remaining changes are left for later.
All in all, indent did a pretty good job, except for syntactic additions
from after 1990, but that was to be expected. Examples for such
additions are GCC's __attribute__ and C99 designated initializers.

Indent has only few knobs to tune the indentation. The knob for the
continuation indentation applies to function declarations as well as to
expressions. The knob for indentation of local variable declarations
applies to struct members as well, even if these are members of a
top-level struct.

Several code comments crossed the right margin in column 78. Several
other code comments were correctly broken though. The cause for this
difference was not obvious.

No functional change.

(rillig)

2021-09-26 19:02:35 UTC MAIN commitmail json YAML

indent: add .indent.pro that almost matches the source code

One might expect that the code of indent is properly indented according
to its own capabilities, but that's not the case, there are many
deviations.

This indentation profile comes close to the existing code. Maybe someday
indent's own source code can be formatted using this profile, but before
attempting that, its remaining bugs have to be fixed.

Development of indent has essentially stopped somewhere around 1990, as
demonstrated by the wrong formatting of '...' that has only been fixed a
few minutes ago. The '...' is an invention of C90. Indent's parser still
considers '...' as consisting of the 3 tokens period-period-period, but
that's OK since the effect is the same.

Another feature that had been missing for a long time were C99 comments
that span from '//' to the next newline. Before March 2021, these were
parsed as a binary operator, which produced lots of funny side effects.

Since indent's code makes use of several C99 features, as soon as it can
properly indent its own code, the worst of these bugs will have been
fixed.

(rillig)

2021-09-26 18:52:16 UTC MAIN commitmail json YAML

indent: fix missing space between comma and ellipsis

According to lint's C grammar, in standard C an ellipsis only occurs
after a comma. There are GCC extensions that allow an ellipsis as the
only function parameter, as well as in 'case a ... b', but these are
rare.

(rillig)

2021-09-26 18:42:46 UTC MAIN commitmail json YAML

tests/indent: demonstrate missing space before ellipsis

(rillig)

2021-09-26 18:13:58 UTC MAIN commitmail json YAML

Mark kqread_filtops, user_filtops, and seltrue_filtops as MPSAFE.

(thorpej)

2021-09-26 17:34:19 UTC MAIN commitmail json YAML

sig_filtops is MPSAFE.

(thorpej)

2021-09-26 16:36:19 UTC MAIN commitmail json YAML

2021-09-26 16:24:21 UTC MAIN commitmail json YAML

- Call selnotify() with sysmon_power_event_queue_mtx held, passing the
  correct hints.  Adjust filt_sysmon_power_read() accordingly (assert
  that the mutex is held iff NOTE_SUBMIT).
- Mark sysmon_power_read_filtops as MPSAFE.
- Use seltrue_filtops rather than rolling our own with filt_seltrue.

(thorpej)

2021-09-26 15:58:33 UTC MAIN commitmail json YAML

Use seltrue_filtops rather than rolling our own with filt_seltrue.

(thorpej)

2021-09-26 15:52:41 UTC MAIN commitmail json YAML

2021-09-26 15:48:54 UTC MAIN commitmail json YAML

The pipe kq filter ops are MPSAFE.

(thorpej)

2021-09-26 15:11:33 UTC MAIN commitmail json YAML

logread_filtops is MPSAFE.

(thorpej)

2021-09-26 15:10:51 UTC MAIN commitmail json YAML

entropy_read_filtops is MPSAFE.

(thorpej)

2021-09-26 15:08:29 UTC MAIN commitmail json YAML

- Use seltrue_filtops rather than rolling our own with filt_seltrue.
- Remove sc_wr_sel completely; nothing actually uses it.

(thorpej)

2021-09-26 15:07:17 UTC MAIN commitmail json YAML

Use seltrue_filtops rather than rolling our own with filt_seltrue.

(thorpej)

2021-09-26 15:01:55 UTC MAIN commitmail json YAML

We are not mapping registers prefetchable so no need for explicit bs
barriers.

(jmcneill)

2021-09-26 14:57:19 UTC MAIN commitmail json YAML

Use seltrue_filtops rather than rolling our own with filt_seltrue.

(thorpej)

2021-09-26 14:56:36 UTC MAIN commitmail json YAML

- Use seltrue_filtops rather than rolling our own with filt_seltrue.
- Remove sc_wsel completely; nothing actually uses it.

(thorpej)

2021-09-26 14:52:37 UTC MAIN commitmail json YAML

tests/lint: explain difference between i386 and sparc for 259

Seen in usr.bin/make/cond.c 1.278 from 2021-09-21, line 800, the call to
is_token, where unsigned char gets converted to unsigned int or unsigned
long, depending on the platform.

(rillig)

2021-09-26 14:36:48 UTC MAIN commitmail json YAML

Use seltrue_filtops rather than rolling our own with filt_seltrue.

(thorpej)

2021-09-26 14:32:02 UTC MAIN commitmail json YAML

Use seltrue_filtops rather than rolling our own with filt_seltrue.

(thorpej)

2021-09-26 14:28:22 UTC MAIN commitmail json YAML

2021-09-26 13:45:54 UTC MAIN commitmail json YAML

make flag unsigned to match prototype of the function used

(christos)

2021-09-26 13:45:37 UTC MAIN commitmail json YAML

- Completion should not add a quote at the end of the line to match an
  already quoted quote. (Piotr Stefaniak)
- fix lint unconst warnings for strchr

(christos)

2021-09-26 13:43:30 UTC MAIN commitmail json YAML

2021-09-26 13:38:50 UTC MAIN commitmail json YAML

If an SGI or PPI is established after interrupts are enabled, make sure
we unblock the source on _all_ CPUs and not just the CPU that is
establishing the interrupt.

(jmcneill)

2021-09-26 13:37:36 UTC MAIN commitmail json YAML

Make sure setup happens on all CPUs.

(jmcneill)

2021-09-26 11:22:29 UTC MAIN commitmail json YAML

Update remarks on Linux-flavored procfs.

(nia)

2021-09-26 10:53:20 UTC MAIN commitmail json YAML

If key generation happens with not enough entropy in the system, add
a warning to motd pointing at entropy(7) and give instructions how to
re-generate the (weak) keys after fixing up entropy.

Add a "keyregen" command, which forces regeneration of all host keys
to simplify the replacement of weak keys.

(martin)

2021-09-26 09:58:13 UTC MAIN commitmail json YAML

2021-09-26 08:04:35 UTC MAIN commitmail json YAML

'\n' is not required in KASSERTMSG either.

(skrll)

2021-09-26 08:02:48 UTC MAIN commitmail json YAML

"\n" is not required in KERNHIST

(skrll)

2021-09-26 03:42:54 UTC MAIN commitmail json YAML

eventfd and timerfd have MPSAFE kq filterops.

(thorpej)

2021-09-26 03:23:06 UTC MAIN commitmail json YAML

make: fix lint warning on i386

cond.c(800): warning: argument #3 is converted from 'unsigned char' to
    'unsigned int' due to prototype [259]

(rillig)

2021-09-26 03:18:00 UTC MAIN commitmail json YAML

tests/lint: add tests for platform characteristics

Running lint in usr.bin/make on i386 fails due to this warning:

cond.c(800): warning: argument #3 is converted from 'unsigned char' to
    'unsigned int' due to prototype [259]

This warning only occurred on i386 but not on sparc or x86_64. Try to
reproduce the test situation in platform_int.

The platform code in t_integration.sh was not strict enough, it didn't
check for multiple conditions, such as in msg_132_ilp32. That test was
only supposed to run on ILP32 platforms where size_t is unsigned int. It
also ran on sparc, even though size_t is long there.

(rillig)

2021-09-26 03:12:50 UTC MAIN commitmail json YAML

- Define a new filterops flag FILTEROP_MPSAFE, which states that the
  kqueue filter does not require the KERNEL_LOCK to be held.
- Add wrappers around the calls into the filterops that take care of
  the locking requirements.

No functional change, since no filterops yet define FILTEROP_MPSAFE.

(thorpej)

2021-09-26 01:28:43 UTC MAIN commitmail json YAML

lint: fix Bison warnings

cgram.y:998.11-35: warning: type clash on default action: <y_sym> != <>
    [-Wother]

No functional change.

(rillig)

2021-09-26 01:16:11 UTC MAIN commitmail json YAML

Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.

This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.

NetBSD 9.99.89

(thorpej)

2021-09-26 00:57:28 UTC MAIN commitmail json YAML

indent: handle special options separately

Handling the special options separately removes the need for several
macro definitions. It saves a bit of memory since without the option
'--version', the option names are shorter.

No functional change.

(rillig)

2021-09-25 23:38:45 UTC MAIN commitmail json YAML

indent: reduce abstraction layer for defining boolean options

When initializing a boolean option, the most natural values are true and
false. Replace the previous values ON and OFF with them.

No functional change.

(rillig)

2021-09-25 22:57:05 UTC MAIN commitmail json YAML

2021-09-25 22:54:32 UTC MAIN commitmail json YAML

indent: convert found_err to bool

That variable had slipped through the migration since it consequently
used int for the declaration, the definition and all assignments.

No functional change.

(rillig)

2021-09-25 22:24:35 UTC MAIN commitmail json YAML

indent: use strlen instead of own implementation

The two loops looks similar but differ in a crucial detail that makes up
for a '+ 1'.

No functional change.

(rillig)

2021-09-25 22:16:58 UTC MAIN commitmail json YAML

indent: clean up argument handling

No functional change.

(rillig)