FreeBSD/src 4be27e6 — sys/ofed/drivers/infiniband/core uverbs.h ib_rdma_core.c

ibcore: Avoid quadratic uverbs ID allocation

FreeBSD's LinuxKPI xa_alloc() starts at index zero for each allocation.
The per-file uverbs XArray holds protection domains, completion queues,
queue pairs, and memory regions. As the number of live objects grows,
each new handle probes all occupied lower IDs, making large connection
setups increasingly expensive.

Keep the optimization in the OFED uverbs caller: track the next candidate
ID in ib_uverbs_file, reserve under the XArray lock, and advance the
cursor on success. On a collision, search forward and wrap through the
32-bit handle space. Existing lookup, commit, erase, and destruction
paths are unchanged. Freed lower IDs are reused after wraparound.

Signed-off-by: Lewandowski, Rafal <rafal.lewandowski at intel.com>

Reviewed by:    bartosz.sobczak_intel.com, kib
MFC after:      2 weeks
Sponsored by:   Intel Corporation
Differential Revision:  https://reviews.freebsd.org/D60405
DeltaFile
+23-7sys/ofed/drivers/infiniband/core/ib_rdma_core.c
+1-0sys/ofed/drivers/infiniband/core/uverbs.h
+24-72 files

FreeBSD/src df2e0c2 — sys/netpfil/pf pf_norm.c

pf: fix sctp normalisation cleanup

If we fail to allocate the dst scrub structure we should free the src
one too, but we passed src rather than src->scrub.

Reported by:    llm-postcr
MFC after:      1 week
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit e53632189f09d7b5c6664fef51cbe4429e4b3243)
DeltaFile
+1-1sys/netpfil/pf/pf_norm.c
+1-11 files

FreeBSD/src 6a53b88 — tests/sys/netpfil/pf snmp.sh

pf tests: test pfTablesTblCount in snmp_pf

This works fine on main, but not on stable/15 so add a test.

PR:     300818
MFC after:      3 days
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 5131335c7d48eaec427aa9ed27862ca56e3e95bc)
DeltaFile
+13-0tests/sys/netpfil/pf/snmp.sh
+13-01 files

FreeBSD/src d2e23af — sys/netpfil/ipfw ip_dummynet.c, tests/sys/netpfil/common Makefile dummynet_config_test.c

dummynet: validate object length before fixed-size copies in do_config()

do_config() checks that each command's o.len fits in the remaining
buffer, but the DN_LINK, DN_PROFILE, DN_SCH and DN_FS cases then copy a
fixed sizeof(struct) out of the command, which can be larger than o.len.
A command with o.len == sizeof(struct dn_id) reads past the end of the
sockopt buffer (DN_PROFILE copies about 4 KB).

Reject a command whose o.len is shorter than the structure it carries.
Add a test.

Reviewed by:    kp
MFC after:      1 week
Sponsored by:   Advanced Micro Devices, Inc.
Signed-off-by:  Osvaldo Janeri Filho <ojanerif at amd.com>
Differential Revision:  https://reviews.freebsd.org/D61440

(cherry picked from commit 42d358453d056e70bd112c63247e89c1ecf575d5)
DeltaFile
+119-0tests/sys/netpfil/common/dummynet_config_test.c
+16-0sys/netpfil/ipfw/ip_dummynet.c
+2-0tests/sys/netpfil/common/Makefile
+137-03 files

FreeBSD/src 29ab1cc — sys/netpfil/pf pf_norm.c

pf: fix sctp normalisation cleanup

If we fail to allocate the dst scrub structure we should free the src
one too, but we passed src rather than src->scrub.

Reported by:    llm-postcr
MFC after:      1 week
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit e53632189f09d7b5c6664fef51cbe4429e4b3243)
DeltaFile
+1-1sys/netpfil/pf/pf_norm.c
+1-11 files

FreeBSD/src bd2eb45 — sys/netpfil/ipfw ip_dummynet.c, tests/sys/netpfil/common Makefile dummynet_config_test.c

dummynet: validate object length before fixed-size copies in do_config()

do_config() checks that each command's o.len fits in the remaining
buffer, but the DN_LINK, DN_PROFILE, DN_SCH and DN_FS cases then copy a
fixed sizeof(struct) out of the command, which can be larger than o.len.
A command with o.len == sizeof(struct dn_id) reads past the end of the
sockopt buffer (DN_PROFILE copies about 4 KB).

Reject a command whose o.len is shorter than the structure it carries.
Add a test.

Reviewed by:    kp
MFC after:      1 week
Sponsored by:   Advanced Micro Devices, Inc.
Signed-off-by:  Osvaldo Janeri Filho <ojanerif at amd.com>
Differential Revision:  https://reviews.freebsd.org/D61440

(cherry picked from commit 42d358453d056e70bd112c63247e89c1ecf575d5)
DeltaFile
+119-0tests/sys/netpfil/common/dummynet_config_test.c
+16-0sys/netpfil/ipfw/ip_dummynet.c
+2-0tests/sys/netpfil/common/Makefile
+137-03 files

FreeBSD/src 8377625 — sys/netpfil/pf pf_lb.c, tests/sys/netpfil/pf Makefile nat46.sh

pf: fix nat46 ICMP handling

When porting from OpenBSD I typo'd the variable where we store the ICMP
type, in the nat46 direction. The nat64 direction was correct. Fix this
so ICMP translation works for nat46.

Add a test case for this, as well as basic TCP and UDP cases because
nat46 was entirely untested.

PR:             300461
MFC after:      1 week
Submitted by:   Charles Marshall <charles at wozi.com> (pf patch)
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 5165da26f31f576328d99d5ac736bdfd1aa04fe8)
DeltaFile
+190-0tests/sys/netpfil/pf/nat46.sh
+2-2sys/netpfil/pf/pf_lb.c
+1-0tests/sys/netpfil/pf/Makefile
+193-23 files

FreeBSD/src 2a2918a — tests/sys/netpfil/pf snmp.sh

pf tests: test pfTablesTblCount in snmp_pf

This works fine on main, but not on stable/15 so add a test.

PR:     300818
MFC after:      3 days
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit 5131335c7d48eaec427aa9ed27862ca56e3e95bc)
DeltaFile
+13-0tests/sys/netpfil/pf/snmp.sh
+13-01 files

FreeBSD/src 6c0f5b2 — sys/netpfil/pf pf_table.c, tests/sys/netpfil/pf/ioctl validation.c

pf: improve anchor string validation

Ensure that these are not overly long.
Add a test case.

Reported by:    Kevin Day <kevin at your.org>
MFC after:      1 week
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit a396a0218cc59cff48547fdf97d9e1a8c306f090)
DeltaFile
+33-0tests/sys/netpfil/pf/ioctl/validation.c
+3-2sys/netpfil/pf/pf_table.c
+36-22 files

FreeBSD/src 659562f — sys/netpfil/pf pf.c, tests/sys/netpfil/pf pfsync.sh

pf: Free the stack key when attaching it collides

pf_state_key_attach() attaches the wire key first and then the stack
key, setting sks to NULL before the second pass.  When the stack key
collides with an existing state, the error path removes the wire key
again but then frees sks, which is NULL by then: the stack key leaks.

pfsync hits this.  A peer that gets a plain state in a bulk update
before a redirected state whose stack key is the plain state's key
fails to import the redirected state, leaks its stack key, and leaks
another one with every later update of that state.

Free sk, the key of the pass that collided (skw on the wire pass), and
add a test.

Reviewed by:            kp
Fixes:                  371bd29d4b22 ("pf: fix potential state key leak")
MFC after:              1 week
Sponsored by:           Rubicon Communications, LLC ("Netgate")

    [3 lines not shown]
DeltaFile
+141-0tests/sys/netpfil/pf/pfsync.sh
+5-6sys/netpfil/pf/pf.c
+146-62 files

FreeBSD/src ca687fb — sys/netpfil/pf pf_table.c, tests/sys/netpfil/pf/ioctl validation.c

pf: improve anchor string validation

Ensure that these are not overly long.
Add a test case.

Reported by:    Kevin Day <kevin at your.org>
MFC after:      1 week
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit a396a0218cc59cff48547fdf97d9e1a8c306f090)
DeltaFile
+33-0tests/sys/netpfil/pf/ioctl/validation.c
+3-2sys/netpfil/pf/pf_table.c
+36-22 files

FreeBSD/src 020754f — sys/netpfil/pf pf.c, tests/sys/netpfil/pf pfsync.sh

pf: Free the stack key when attaching it collides

pf_state_key_attach() attaches the wire key first and then the stack
key, setting sks to NULL before the second pass.  When the stack key
collides with an existing state, the error path removes the wire key
again but then frees sks, which is NULL by then: the stack key leaks.

pfsync hits this.  A peer that gets a plain state in a bulk update
before a redirected state whose stack key is the plain state's key
fails to import the redirected state, leaks its stack key, and leaks
another one with every later update of that state.

Free sk, the key of the pass that collided (skw on the wire pass), and
add a test.

Reviewed by:            kp
Fixes:                  371bd29d4b22 ("pf: fix potential state key leak")
MFC after:              1 week
Sponsored by:           Rubicon Communications, LLC ("Netgate")

    [3 lines not shown]
DeltaFile
+141-0tests/sys/netpfil/pf/pfsync.sh
+5-6sys/netpfil/pf/pf.c
+146-62 files

FreeBSD/src 748b510 — libexec/rc network.subr, libexec/rc/rc.d rtsold netif

IPv6: rc boot time improvements

If IPv6 is enabled we call rtsol on that interface so waiting in
rtsold is counterproductive; if one was to just use rtsold -F then
they are on their own for having the addresses usable during the
remaining startup time.

Rather than sleeping dad_count + 1 seconds we are now checking for
any tentative addresses on the interface and only then sleep
dad_count up-to 2 times.  This should save us at least a dad_count
with the seconds with Optimistic DAD enabled (default) but there
are too many assumptions invovled anyway.
(RETRANS_TIMER in the kernel being 1000ms being one).

The reason why we need to sleep more than dad_count (1s default)
seems to be that first DAD for the link-local address clears and
only then solicited (or other global) addresses are handled.

Co-authored-by: Pouria Mousavizadeh Tehrani <pouria at FreeBSD.org>

    [3 lines not shown]
DeltaFile
+46-0libexec/rc/network.subr
+6-4libexec/rc/rc.d/netif
+0-7libexec/rc/rc.d/rtsold
+52-113 files

FreeBSD/src da0d8fe — sys/amd64/vmm/intel vmx.c

amd64/vmm: Do not fall back to the VMCS for vmxctx registers

vmx_setreg() first calls vmxctx_setreg() and, if that fails, handles the
register as a VMCS field.  This relies on vmxctx_setreg() failing only
for registers that are not kept in the vCPU context.  Were it to reject
a value for one of its own registers, the error would be dropped and
the request passed on to vmcs_setreg(), which would fail it only
because the register has no VMCS field.

Check whether the register is kept in the vCPU context instead, and if
so return the result of vmxctx_setreg() directly.  This lets
vmxctx_setreg() validate values and have its error returned as is.  Do
the same in vmx_getreg(), so that the two functions read alike.

No functional change intended.

Reviewed by:    markj
Approved by:    markj
Sponsored by:   Alchemilla Ventures Private Limited
Differential Revision:  https://reviews.freebsd.org/D61954
DeltaFile
+4-4sys/amd64/vmm/intel/vmx.c
+4-41 files

FreeBSD/src 3a5512d — sys/amd64/vmm/intel vmx.c

amd64/vmm: Restore vmxctx registers through vmxctx_setreg()

vmx_vcpu_snapshot() copies the guest registers kept in the vCPU context
straight between the context and the snapshot buffer, while
VM_SET_REGISTER stores them through vmxctx_setreg().  A check added to
vmxctx_setreg() would thus not apply to values restored from a
snapshot.

Add vmxctx_snapshot_reg(), modelled on vmcs_snapshot_reg(), and use it
for every register in the vCPU context, so that both paths store values
the same way.  The snapshot format does not change.

No functional change intended.

Reviewed by:    markj
Approved by:    markj
Sponsored by:   Alchemilla Ventures Private Limited
Differential Revision:  https://reviews.freebsd.org/D61953
DeltaFile
+45-25sys/amd64/vmm/intel/vmx.c
+45-251 files

FreeBSD/src 586e826 — sys/amd64/vmm/intel vmx.c

amd64/vmm: Reject reserved DR6 bits supplied by userspace

On Intel hosts the guest's DR6 is kept in the vCPU context and loaded
into the host's register before guest entry.  VM_SET_REGISTER and the
snapshot restore path store any value there.  Loading a value with any
of bits 63:32 set raises #GP, which panics the host.

Fail with EINVAL instead.

Reviewed by:    markj
Approved by:    markj
Fixes:          65eefbe42218 (Save and restore guest debug registers.)
MFC after:      1 week
Sponsored by:   Alchemilla Ventures Private Limited
Differential Revision:  https://reviews.freebsd.org/D61732
DeltaFile
+11-1sys/amd64/vmm/intel/vmx.c
+11-11 files

FreeBSD/src f9da547 — lib/libvmmapi vmmapi.h vmmapi.c

libvmmapi: Compare mapping lengths in vm_mmap_memseg()

vm_mmap_memseg() returns success without mapping anything when a
mapping with the same segment, offset, protection and flags already
starts at the requested address, but it does not compare the length.
A longer request then reports success for pages it did not map, and a
shorter one for a mapping that vm_munmap_memseg() cannot remove with
the same range.  No caller in the tree makes such a request.

Fail with EEXIST when the length differs, as for the other attributes,
and document that behavior.  Read the existing mapping into its own
structure rather than over the arguments.

Reviewed by:    markj
Approved by:    markj
Fixes:          9b1aa8d622e8 (Restructure memory allocation in bhyve to support "devmem".)
Sponsored by:   Alchemilla Ventures Private Limited
Differential Revision:  https://reviews.freebsd.org/D61530
DeltaFile
+10-6lib/libvmmapi/vmmapi.c
+3-1lib/libvmmapi/vmmapi.h
+13-72 files

FreeBSD/src 50a3713 — usr.sbin/bhyve/amd64 inout.c

bhyve: Preserve string I/O registers on faults before progress

When a string I/O instruction faults on its first transfer, the emulator
injects the exception but still writes the masked index and count back
to the guest.  With a 32-bit address size in 64-bit mode this clears
the upper halves of RSI or RDI and of RCX, although no transfer
completed and the processor reports such a fault with the registers
unchanged.

Return before updating the registers whenever no transfer completed,
whether an error, a guest fault or an injected exception stopped the
first one.  Exception injection has already restarted the instruction.
A repeated instruction with a zero count is handled as before.

Reviewed by:    markj
Approved by:    markj
Sponsored by:   Alchemilla Ventures Private Limited
Differential Revision:  https://reviews.freebsd.org/D61499
DeltaFile
+9-0usr.sbin/bhyve/amd64/inout.c
+9-01 files

FreeBSD/src dbb4487 — sys/amd64/vmm vmm_ioport.c, usr.sbin/bhyve/amd64 inout.c

bhyve: Preserve upper RAX bits for byte and word input

Scalar IN merges the input into a 32-bit EAX temporary and writes that
value to RAX.  This clears bits 63:32 for byte and word inputs, which
must preserve the bits outside AL or AX.

Use vie_update_register() to update the accumulator at the operand
width.  This preserves the remaining bits for byte and word inputs and
retains zero-extension for dword inputs.

Reviewed by:    markj
Approved by:    markj
Sponsored by:   Alchemilla Ventures Private Limited
Differential Revision:  https://reviews.freebsd.org/D61498
DeltaFile
+2-4usr.sbin/bhyve/amd64/inout.c
+2-4sys/amd64/vmm/vmm_ioport.c
+4-82 files

FreeBSD/src f18c1ca — sys/net/route fib_algo.c

route/fib_algo: Fix nexthop reference leak on FLM_BATCH

handle_rtable_change_cb() references the new nexthop before calling
the algorithm.  If the algorithm asks to batch the change by
returning FLM_BATCH, queue_rtable_change() references the same
nexthop again for the queued entry, while apply_rtable_changes()
only unreferences the old nexthop of each entry.

Reference new nhop once in handle_rtable_change_cb(), before
deciding whether the change is queued or passed to the algorithm,
and do not reference it again in fill_change_entry().  This also
leaves the queue reallocation as the only way for
queue_rtable_change() to fail.

Currently, dxr is the only algorithm returning FLM_BATCH.

Fixes:          6b8ef0d428c9 ("Add batched update support for the fib algo.")
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D61577

    [2 lines not shown]
DeltaFile
+21-21sys/net/route/fib_algo.c
+21-211 files

FreeBSD/src 7982875 — sys/net/route nhgrp_ctl.c, sys/netlink/route nexthop.c

rtnetlink: Use default weight for unset weights in NHA_GROUP

newnhg() copied the weights of a nhgrp as is and a group
whose members all have a zero weight, which is what
userland sends when it leaves the weight unset, made
calc_min_mpath_slots_fast() divide by zero.

Therefore replace weight of zero with RT_DEFAULT_WEIGHT.

While here, return early from calc_min_mpath_slots_fast()
if all weights are zero.

MFC after:      3 days
Fixes:          7e5bf68495cc ("netlink: add netlink support")

(cherry picked from commit 1db6e2c6c3554efe5acdcc20bc7aa889e1efe372)
DeltaFile
+1-1sys/netlink/route/nexthop.c
+1-1sys/net/route/nhgrp_ctl.c
+2-22 files

FreeBSD/src 1d3b5b2 — sys/net/route fib_algo.c

route/fib_algo: Fix nexthop reference leak on FLM_BATCH

handle_rtable_change_cb() references the new nexthop before calling
the algorithm.  If the algorithm asks to batch the change by
returning FLM_BATCH, queue_rtable_change() references the same
nexthop again for the queued entry, while apply_rtable_changes()
only unreferences the old nexthop of each entry.

Reference new nhop once in handle_rtable_change_cb(), before
deciding whether the change is queued or passed to the algorithm,
and do not reference it again in fill_change_entry().  This also
leaves the queue reallocation as the only way for
queue_rtable_change() to fail.

Currently, dxr is the only algorithm returning FLM_BATCH.

Fixes:          6b8ef0d428c9 ("Add batched update support for the fib algo.")
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D61577

    [2 lines not shown]
DeltaFile
+23-23sys/net/route/fib_algo.c
+23-231 files

FreeBSD/src 3e6cc85 — sys/net/route nhgrp_ctl.c, sys/netlink/route nexthop.c

rtnetlink: Use default weight for unset weights in NHA_GROUP

newnhg() copied the weights of a nhgrp as is and a group
whose members all have a zero weight, which is what
userland sends when it leaves the weight unset, made
calc_min_mpath_slots_fast() divide by zero.

Therefore replace weight of zero with RT_DEFAULT_WEIGHT.

While here, return early from calc_min_mpath_slots_fast()
if all weights are zero.

MFC after:      3 days
Fixes:          7e5bf68495cc ("netlink: add netlink support")

(cherry picked from commit 1db6e2c6c3554efe5acdcc20bc7aa889e1efe372)
DeltaFile
+1-1sys/netlink/route/nexthop.c
+1-1sys/net/route/nhgrp_ctl.c
+2-22 files

FreeBSD/src 9798193 — sys/net/route route_ctl.c

routing: Fix nhop double free in rib_copy_route()

add_route_flags() consumes the nexthop reference on every
failure path, so nhop_free() in rib_copy_route() releases it for
the second time.

This is reachable when growing net.fibs while two existing fibs
hold the same pinned prefix.

MFC after:      3 days
Fixes:  40503b792f7e ("routing: populate fibs with interface...")

(cherry picked from commit efa14ab698fe5c3a1586aec006f98e3781f4af78)
DeltaFile
+0-1sys/net/route/route_ctl.c
+0-11 files

FreeBSD/src a972d26 — sys/arm/broadcom/bcm2835 bcm2835_mbox.c bcm2835_mbox_prop.h

bcm2835_fbd: Use the pixel order to choose the 32 bpp palette

Recent Raspberry Pi firmware acts on the pixel order requested through
the mailbox, which older firmware ignored.  The order that ends up in
the framebuffer is the requested one combined with framebuffer_swap in
config.txt: when they are the same the red component is in bits 0-7 of
a 32 bpp pixel, when they differ it is in bits 16-23.  framebuffer_swap
defaults to on and the firmware reports it as bcm2708_fb.fbswap=1 in
the bootargs.

U-Boot always requests RGB, so with the default config.txt the pixels
have red in bits 0-7.  The driver however always configured vt(4) with
red in bits 16-23 for 32 bpp, so red and blue were swapped on the
console.

The firmware does not report the resulting order, only the requested
one, so read the pixel order with GET_PIXEL_ORDER and combine it with
fbswap.  If the pixel order cannot be read the previous behavior is
kept.  The 24 bpp case is unchanged.

    [6 lines not shown]
DeltaFile
+33-11sys/arm/broadcom/bcm2835/bcm2835_fbd.c
+30-0sys/arm/broadcom/bcm2835/bcm2835_mbox_prop.h
+20-0sys/arm/broadcom/bcm2835/bcm2835_mbox.c
+83-113 files

FreeBSD/src 05f2f41 — sys/arm64/arm64 trap.c pmap.c

arm64: Reject user-mode faults on kernel addresses

On a CPU without FEAT_E0PD, a user-mode store to a mapped kernel
address takes a permission fault, which data_abort() passes to
pmap_fault() with the process's pmap.  pmap_pte() then finds the user
mapping whose address has the same low-order bits.  If that mapping is
writable, pmap_fault() marks it dirty, although nothing wrote it, and
returns KERN_SUCCESS.  The store is retried and faults again, so the
thread spins instead of receiving SIGSEGV.  Access flag faults, which
loads also take, have the same flaw when a kernel mapping lacks
ATTR_AF.

Like amd64's trap_pfault(), send SIGSEGV for a user-mode fault in the
kernel address space without calling pmap_fault() or vm_fault_trap().

Also, in pmap_fault(), assert that a kernel address comes with the
kernel pmap and a user address with a user pmap.

Found by:       Claude Code (Opus 5.5)

    [3 lines not shown]
DeltaFile
+10-0sys/arm64/arm64/pmap.c
+8-0sys/arm64/arm64/trap.c
+18-02 files

FreeBSD/src f7c709b — contrib/lutok/api-docs/html menu.js a00919.html, contrib/lutok/api-docs/html/search search.js

contrib/lutok: upgrade to 0.7.0

This is a large cleanup release which has a number of changes that
should be largely transparent to end-users of lutok.

Please see NEWS for more details, as well as the vendor import commit.

MFC after:      1 week
Merge commit 'a1e3c85b0684e1a1896fbf811a894a45e658ec83'
DeltaFile
+1,200-600contrib/lutok/api-docs/html/doxygen.css
+1,583-91contrib/lutok/api-docs/html/a00923.html
+103-1,566contrib/lutok/api-docs/html/a00919.html
+0-1,070contrib/lutok/m4/ac_cxx_compile_stdcxx.m4
+473-543contrib/lutok/api-docs/html/search/search.js
+535-82contrib/lutok/api-docs/html/menu.js
+3,894-3,952187 files not shown
+9,755-11,060193 files

FreeBSD/src a1e3c85 — . configure, api-docs/html a00919.html a00923.html

lutok: import lutok-0.7.0

This change adds lutok lutok-0.7.0 from [upstream][1].

The lutok-0.7.0 artifact was been verified by [SHA256 checksum][3].

This is a major cleanup release. A lot of credit goes to mchoo@ for all of the
hard work submitted in #13 🎉.

The API should not change in a noticeable way to consumers, e.g., a number of
"transparent" changes like const poisoning was done with methods, etc.
Iterative builds will require rebuilding lutok from scratch--which should
happen naturally, given how header dependencies [should] be treated with make.

More information about the release (from a high level) can be found in
the [release notes][4].

Updated via [`update_lutok.sh`][4] like: `update_lutok.sh 0.7.0 lutok-0.7.0`.


    [4 lines not shown]
DeltaFile
+4,733-2,987configure
+1,200-600api-docs/html/doxygen.css
+1,583-91api-docs/html/a00923.html
+103-1,566api-docs/html/a00919.html
+473-543api-docs/html/search/search.js
+601-159m4/libtool.m4
+8,693-5,946188 files not shown
+15,887-12,116194 files

FreeBSD/src e2cdda4 — sys/dev/rtwn if_rtwnvar.h if_rtwn.c, sys/dev/rtwn/pci rtwn_pci_attach.c

rtwn: move rtwn_get_qmap + write register to rtwn_set_qmap

Upcoming chipset support changes the definition of the register.
So instead of having the abstraction be "return the qmap to write
to the register", change it to "set the qmap however the chipset
wants it to be."

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D61928
Tested on: RTL8821AU (adrian)
DeltaFile
+18-0sys/dev/rtwn/rtl8192c/usb/r92cu_init.c
+0-15sys/dev/rtwn/usb/rtwn_usb_ep.c
+0-12sys/dev/rtwn/pci/rtwn_pci_attach.c
+10-0sys/dev/rtwn/rtl8192c/pci/r92ce_init.c
+3-4sys/dev/rtwn/if_rtwn.c
+3-3sys/dev/rtwn/if_rtwnvar.h
+34-3413 files not shown
+46-3619 files

FreeBSD/src 948598a — usr.sbin/syslogd syslogd.c, usr.sbin/syslogd/tests syslogd_test.sh

syslogd: Create one forwarding socket per address pair

For each address a forwarding destination resolves to,
make_forw_socket_array() creates a socket bound to the address of each
listening socket and connects it to the destination.  The same
<laddr, raddr> pair can come up more than once for one rule: the
resolver may return an address twice, e.g. when a host name appears on
several /etc/hosts lines for one IP, and several listening sockets may
be bound to one address.  connect() then fails with EADDRINUSE.
maybe_dup_forw_socket() only searches the rules parsed earlier, so the
casper process exits and syslogd dies with "Failed to xfer
configuration nvlist" on every start and reload.

Skip address pairs the rule already has a socket for.  A second socket
would add nothing, and with -A it would send each message twice.

Reported by:            Marcos Mendoza
Reviewed by:            markj
Fixes:                  ae4f708f0b38 ("syslogd: Ensure that forwarded...")

    [4 lines not shown]
DeltaFile
+60-0usr.sbin/syslogd/tests/syslogd_test.sh
+38-17usr.sbin/syslogd/syslogd.c
+98-172 files