In D55203#1305963, @rmacklem wrote:Could you please take another look at this?
kib@ seems to think this is preferred to just
enabling it for all NICs.I understand that it is only a "hint", since
routing can change at any time.
However, for an NFS server, routing is
unlikely to change without a NFS server
restart.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Mon, May 18
Mon, May 18
Fri, May 15
Fri, May 15
Wed, May 13
Wed, May 13
zlei added inline comments to D56954: rtnetlink: Check for allocation failure in nlattr_get_multipath().
Tue, May 12
Tue, May 12
In D56942#1304350, @markj wrote:In D56942#1304346, @zlei wrote:Actually there are other sc members ( and other places sc->sc_count invoved ) not synchronized properly, I think on architectures with weak memory order they are easier to spot. Found that while I was working on PR 289017 .
Could you be more specific? I'm sure there are other problems, but this one is easy to trigger in practice.
zlei added inline comments to D56954: rtnetlink: Check for allocation failure in nlattr_get_multipath().
In D56944#1304407, @markj wrote:In D56944#1304393, @zlei wrote:Sorry, I don't quite follow what you're asking for?
Mon, May 11
Mon, May 11
Oops ! My stupid mistake.
Actually there are other sc members ( and other places sc->sc_count invoved ) not synchronized properly, I think on architectures with weak memory order they are easier to spot. Found that while I was working on PR 289017 .
Sun, May 10
Sun, May 10
zlei committed rGa08d321948ef: tests/carp: kill routed(8) before destroying interfaces (authored by glebius).
tests/carp: kill routed(8) before destroying interfaces
zlei committed rG1f8eae9a7a45: tests/carp: make a 0.2 second pause before configuring second jail (authored by glebius).
tests/carp: make a 0.2 second pause before configuring second jail
zlei committed rG19552d9749dd: tests/carp: make sleep interval in the wait loop smaller (authored by glebius).
tests/carp: make sleep interval in the wait loop smaller
tests/carp: Rework unicast_v4
Hi @oliver , I was about to MFC one fix to tests/sys/netinet/carp.sh and found this. Is stable/15 not affected by this issue ?
Sat, May 9
Sat, May 9
zlei committed rGad2fff6d6a4d: tests/carp: make a 0.2 second pause before configuring second jail (authored by glebius).
tests/carp: make a 0.2 second pause before configuring second jail
zlei committed rG89096d660ea8: tests/carp: kill routed(8) before destroying interfaces (authored by glebius).
tests/carp: kill routed(8) before destroying interfaces
zlei committed rG332485a47372: tests/carp: make sleep interval in the wait loop smaller (authored by glebius).
tests/carp: make sleep interval in the wait loop smaller
tests/carp: Rework unicast_v4
Hi @oliver , I was about to MFC one fix to tests/sys/netinet/carp.sh and found this. Is stable/15 not affected by this issue ?
Thu, May 7
Thu, May 7
Wed, May 6
Wed, May 6
Tue, May 5
Tue, May 5
Spent some time reading the RFC. I'm not sure how useful the Optimistic DAD feature will be. Normal DAD can finish within seconds, is not that enough ?
Mon, May 4
Mon, May 4
zlei committed rG77b8bc06cf73: ifnet: if_detach(): Fix races with vmove operations (authored by zlei).
ifnet: if_detach(): Fix races with vmove operations
zlei committed rG33da0a256bfc: tests/netgraph: Add a test for races between if_detach() and vnet_if_return() (authored by zlei).
tests/netgraph: Add a test for races between if_detach() and vnet_if_return()
zlei committed rG320805add13d: tests/net/if_clone_test: Add a test for races between if_detach() and… (authored by zlei).
tests/net/if_clone_test: Add a test for races between if_detach() and…
zlei committed rG9598f7277a1b: if_clone: Make ifnet_detach_sxlock opaque to consumers (authored by zlei).
if_clone: Make ifnet_detach_sxlock opaque to consumers
zlei committed rG328598079b56: ifnet: Move SIOCSIFVNET from ifhwioctl() to ifioctl() (authored by zlei).
ifnet: Move SIOCSIFVNET from ifhwioctl() to ifioctl()
zlei committed rGe7063f1d8b5d: ifnet: vnet_if_return(): Avoid unnecessary recursive acquisition of… (authored by zlei).
ifnet: vnet_if_return(): Avoid unnecessary recursive acquisition of…
ifnet: Add some sanity checks
ifnet: Fix races in if_vmove_reclaim()
ifnet: Remove unreachable code
Indeed the net stack lacks proper ioctl locks. I found that while diagnosing PR 292993 and some attaching / detaching issues. Also some drivers have comments about that. I think normally users do not generate concurrent ioctls, so the issue is merely noticed. For parallel tests that is easy to spot.
Sun, May 3
Sun, May 3
In D56761#1300243, @glebius wrote:Thanks for working on this, Zhenlei!
IMHO, adding atf_check to purely configuration lines is not really important. In "a near bright future", I hope, we will be able to delete the configuration lines from the test bodies completely and declare test jails in some declarative manner instead of scripting.
tests/carp: Rework unicast_v4
Sat, May 2
Sat, May 2
In D49158#1121383, @dave_freedave.net wrote:I vastly under appreciated that folks rely upon the ng_eiface not moving with the struct ifnet. Probably because I've been using them in jails for over a decade and only recently noticed myself.
I encountered that situation because I was exploring the ordering of ng_eiface creation, move to jail, and rename. The idea being I could have the same interface names in jails if I waited until after the move to rename them and therefore use the same config for dhcpcd. I was then surprised at what happened when an interface was renamed in a jail and then the jail was shut down. I then went off with the wrong assumption that it was missed, moving ng_eiface to the new vnet.
It requires little effort on a single testcase. Let's keep moving.
- Added atf_check to config / setup steps.
- Minor style fix, if ... ; then
- Shortened the jail names to ${j}[one|two|three] to reduce the line width, and focus only on the different part of the jail name, should improve readability a bit.
- Prefer ifconfig -j , route -j , sysctl -j over jexec ifconfig / route / sysctl.
Fri, May 1
Fri, May 1
Removed redundant -s exit:0 to make the code easier to read.
Thu, Apr 30
Thu, Apr 30
zlei committed rG5c4021ca0abe: ifnet: if_detach(): Fix races with vmove operations (authored by zlei).
ifnet: if_detach(): Fix races with vmove operations
zlei committed rG3a4c4d61ac2c: tests/netgraph: Add a test for races between if_detach() and vnet_if_return() (authored by zlei).
tests/netgraph: Add a test for races between if_detach() and vnet_if_return()
zlei committed rG696d1590697e: tests/net/if_clone_test: Add a test for races between if_detach() and… (authored by zlei).
tests/net/if_clone_test: Add a test for races between if_detach() and…
zlei committed rGc624e04a0bd0: if_clone: Make ifnet_detach_sxlock opaque to consumers (authored by zlei).
if_clone: Make ifnet_detach_sxlock opaque to consumers
zlei committed rG477c3ba36731: ifnet: Move SIOCSIFVNET from ifhwioctl() to ifioctl() (authored by zlei).
ifnet: Move SIOCSIFVNET from ifhwioctl() to ifioctl()
zlei committed rGccfc2d91304e: ifnet: vnet_if_return(): Avoid unnecessary recursive acquisition of… (authored by zlei).
ifnet: vnet_if_return(): Avoid unnecessary recursive acquisition of…
ifnet: Add some sanity checks
ifnet: Fix races in if_vmove_reclaim()
ifnet: Remove unreachable code
zlei committed rG6403ef5d2708: /bin/ps: Fix display of negative nice values on ARMv7/aarch64 (authored by jamie_catflap.org).
/bin/ps: Fix display of negative nice values on ARMv7/aarch64
zlei committed rGdcf54a11a0ef: geom_part: Restore the human readable format of size (authored by zlei).
geom_part: Restore the human readable format of size
zlei committed rGe7eef56c6982: /bin/ps: Fix display of negative nice values on ARMv7/aarch64 (authored by jamie_catflap.org).
/bin/ps: Fix display of negative nice values on ARMv7/aarch64
zlei committed rGd2bf940ec144: geom_part: Restore the human readable format of size (authored by zlei).
geom_part: Restore the human readable format of size
zlei committed rGd11419ed37a6: iflib: Add a missing CURVNET_RESTORE() in the error path (authored by Peter Ganzhorn <peter.ganzhorn@gmail.com>).
iflib: Add a missing CURVNET_RESTORE() in the error path
Wed, Apr 29
Wed, Apr 29
In D56691#1298953, @sarah.walker2_arm.com wrote:In D56691#1298952, @zlei wrote:How can alignment lead locking issues ? Not an expert on this, just out of curious.
The standard behaviour for busdma_bounce implementations is that bus_dmamap with alignment > 1 is marked as COULD_BOUNCE. Among other things this can cause a bounce zone to be allocated at bus_dmamap creation time. This causes further allocations without M_NOWAIT which triggers the locking issue.
In D56614#1298893, @zlei wrote:It appears some tests, for example tests/sys/mac/ipacl has side effect. The mac_ipacl module affects some tests running vnet jails when security.mac.ipacl.ipv4 is turned on.
Probably extra efforts is needed ( run tests those have side effects at last order and sequentially, or disable them temporally ) before change the default of kyua parallelism parameter.
How can alignment lead locking issues ? Not an expert on this, just out of curious.
It appears some tests, for example tests/sys/mac/ipacl has side effect. The mac_ipacl module affects some tests running vnet jails when security.mac.ipacl.ipv4 is turned on.
Tue, Apr 28
Tue, Apr 28
Looks good to me.
Mon, Apr 27
Mon, Apr 27
zlei added inline comments to D56609: tests: Add a test for races between between if_detach() and vnet_if_return().
zlei committed rG0988abd52352: tests/netgraph: Add a test for races between if_detach() and vnet_if_return() (authored by zlei).
tests/netgraph: Add a test for races between if_detach() and vnet_if_return()
tests: Temporarily skip two testcases
zlei committed rGf4be16983dea: tests/net/if_clone_test: Add a test for races between if_detach() and… (authored by zlei).
tests/net/if_clone_test: Add a test for races between if_detach() and…
Sun, Apr 26
Sun, Apr 26
Tested with init_path=/bin/init set in the boot loader, the change to sh(1) looks good to me.
Tested with dynamically linked init(8). The change to init(8) looks good to me.
Sat, Apr 25
Sat, Apr 25
zlei committed rGba7f47d47dc1: ifnet: if_detach(): Fix races with vmove operations (authored by zlei).
ifnet: if_detach(): Fix races with vmove operations
zlei added a comment to D54752: ifconfig: Use strlcpy() instead of strncpy() for interface name copy.
In D54752#1296854, @des wrote:The commit message says “no functional change intended” but there is one: strncpy() zero-fills the unused portion of the buffer, strlcpy() does not, so this leaves ifr partly uninitialized. It probably doesn't matter in this direction, but I don't see this addressed anywhere in the review.
Fri, Apr 24
Fri, Apr 24
I'd suggest to add links to the discussing about defer calculating the checksum. I believe I saw that before, but I can not find it now.
Looks good to me.
zlei added a reviewer for D54992: kern: better hierarchical jail semantics for ALLOW_UNPRIV_PARENT_TAMPER: olce.
zlei added a comment to D54992: kern: better hierarchical jail semantics for ALLOW_UNPRIV_PARENT_TAMPER.
Not familiar with the ucred part, but the concept looks good to me. I'm adding @olce ( I think he is familiar with ucred) for this.
Thu, Apr 23
Thu, Apr 23
zlei added inline comments to D56609: tests: Add a test for races between between if_detach() and vnet_if_return().
zlei requested review of D56609: tests: Add a test for races between between if_detach() and vnet_if_return().
zlei added inline comments to D56606: tests/net/if_clone_test: Add a test for races between if_detach() and if_vmove_reclaim().
Wed, Apr 22
Wed, Apr 22
zlei committed rG588bb16e7bb8: jail: fix crash with startup commands on a jail without name (authored by glebius).
jail: fix crash with startup commands on a jail without name
I was writing tests and found
In D45913#1292483, @mjg wrote:
Mon, Apr 20
Mon, Apr 20
@js Thanks for the quick view !
zlei committed rG0d16792c6e98: geom_part: Restore the human readable format of size (authored by zlei).
geom_part: Restore the human readable format of size
zlei committed rGf49f61f19463: iflib: Add a missing CURVNET_RESTORE() in the error path (authored by Peter Ganzhorn <peter.ganzhorn@gmail.com>).
iflib: Add a missing CURVNET_RESTORE() in the error path
Apr 19 2026
Apr 19 2026