Page MenuHomeFreeBSD
Feed Advanced Search

Nov 2 2022

asomers committed rG002c47badee5: [skip ci] Remove obsolete references in crypto_request(9) (authored by asomers).
[skip ci] Remove obsolete references in crypto_request(9)
Nov 2 2022, 5:10 PM
asomers closed D37239: [skip ci] Remove obsolete references in crypto_request(9).
Nov 2 2022, 5:10 PM
asomers added inline comments to D37239: [skip ci] Remove obsolete references in crypto_request(9).
Nov 2 2022, 5:08 PM
asomers requested review of D37239: [skip ci] Remove obsolete references in crypto_request(9).
Nov 2 2022, 4:46 PM

Oct 31 2022

asomers updated subscribers of D37210: Add test cases for ping with IP options in the response.

BTW, these tests are for the code change in D37195

Oct 31 2022, 4:33 PM
asomers changed the visibility for D37210: Add test cases for ping with IP options in the response.
Oct 31 2022, 4:32 PM
asomers changed the visibility for D37210: Add test cases for ping with IP options in the response.
Oct 31 2022, 4:32 PM
asomers added a comment to D37210: Add test cases for ping with IP options in the response.

I may also have a slight suspicion you applied your diff to a different ping.c base. After all, the idea was just to add test cases.

Yes I did. But I can't figure out how to make the ping.c changes go away from phabricator. Can we just pretend, for the sake of review, that they aren't there?

😂 that changes everything!
But in all seriousness, we may have hit a bug? in the opts case.

Oct 31 2022, 4:25 PM
asomers added a comment to D37210: Add test cases for ping with IP options in the response.

I may also have a slight suspicion you applied your diff to a different ping.c base. After all, the idea was just to add test cases.

Oct 31 2022, 1:51 PM
asomers committed rGfaea785d3053: fusefs: After successful F_GETLK, l_whence should be SEEK_SET (authored by asomers).
fusefs: After successful F_GETLK, l_whence should be SEEK_SET
Oct 31 2022, 1:51 AM
asomers committed rGab7955aec728: fusefs: during F_GETLK, don't change l_pid if no lock is found (authored by asomers).
fusefs: during F_GETLK, don't change l_pid if no lock is found
Oct 31 2022, 1:51 AM

Oct 30 2022

asomers updated the diff for D37210: Add test cases for ping with IP options in the response.
  • More specific output checking for inject_pip
Oct 30 2022, 8:37 PM
asomers updated the diff for D37210: Add test cases for ping with IP options in the response.
  • Match ping's stdout in the injection tests.
  • Python style
Oct 30 2022, 7:48 PM
asomers added inline comments to D37210: Add test cases for ping with IP options in the response.
Oct 30 2022, 7:43 PM
asomers updated the diff for D37210: Add test cases for ping with IP options in the response.
  • Add missing file
Oct 30 2022, 5:14 AM

Oct 29 2022

asomers accepted D37195: Remote stack corruption in ping (Embargoed).

This LGTM. Did you also test ping6 for similar bugs? Also, I turned your PoC into ATF tests. See https://reviews.freebsd.org/D37210 .

Oct 29 2022, 10:07 PM
asomers requested review of D37210: Add test cases for ping with IP options in the response.
Oct 29 2022, 10:07 PM

Oct 25 2022

asomers accepted D37076: Fix blksize selection in vn_generic_copy_file_range() for ZFS.

Ok, this LGTM if you fix the comment typo. And I think I like the reasoning here better than in the other PR.

Oct 25 2022, 2:57 PM

Oct 24 2022

asomers added inline comments to D37076: Fix blksize selection in vn_generic_copy_file_range() for ZFS.
Oct 24 2022, 10:47 PM

Oct 22 2022

asomers committed rG15b3e3bb7efc: ctld: if adding a target fails, retry it on the next reload (authored by asomers).
ctld: if adding a target fails, retry it on the next reload
Oct 22 2022, 12:31 AM
asomers closed D36974: ctld: if adding a target fails, retry it on the next reload.
Oct 22 2022, 12:30 AM

Oct 20 2022

asomers committed rG311f68079ff2: fusefs: After successful F_GETLK, l_whence should be SEEK_SET (authored by asomers).
fusefs: After successful F_GETLK, l_whence should be SEEK_SET
Oct 20 2022, 4:26 PM

Oct 19 2022

asomers updated the diff for D36974: ctld: if adding a target fails, retry it on the next reload.
  • Also delete newport if old port is a dummy
Oct 19 2022, 8:43 PM
asomers added inline comments to D36974: ctld: if adding a target fails, retry it on the next reload.
Oct 19 2022, 8:20 PM
asomers committed rG57d42454e143: fusefs: better debugging for FUSE_RENAME in the tests (authored by asomers).
fusefs: better debugging for FUSE_RENAME in the tests
Oct 19 2022, 3:22 AM
asomers committed rG4dd575e7d54d: fusefs: update atime on reads when using cached attributes (authored by asomers).
fusefs: update atime on reads when using cached attributes
Oct 19 2022, 3:20 AM
asomers committed rG91a60385457a: Add missing change from c76461e064b675c8edd3b1d9bb917905a885a860 (authored by asomers).
Add missing change from c76461e064b675c8edd3b1d9bb917905a885a860
Oct 19 2022, 3:08 AM
asomers committed rGc76461e064b6: Fix a vnode locking bug in fuse_vnop_advlock. (authored by asomers).
Fix a vnode locking bug in fuse_vnop_advlock.
Oct 19 2022, 3:05 AM
asomers committed rG274f5099706f: fusefs: during F_GETLK, don't change l_pid if no lock is found (authored by asomers).
fusefs: during F_GETLK, don't change l_pid if no lock is found
Oct 19 2022, 2:42 AM
asomers committed rGf6e5319550f6: fusefs: fix VOP_ADVLOCK with SEEK_END (authored by asomers).
fusefs: fix VOP_ADVLOCK with SEEK_END
Oct 19 2022, 1:13 AM
asomers closed D37040: fusefs: fix VOP_ADVLOCK with SEEK_END.
Oct 19 2022, 1:12 AM
asomers added inline comments to D36974: ctld: if adding a target fails, retry it on the next reload.
Oct 19 2022, 1:11 AM

Oct 18 2022

asomers requested review of D37040: fusefs: fix VOP_ADVLOCK with SEEK_END.
Oct 18 2022, 11:21 PM
asomers updated the diff for D37030: Validate time when setting RTC.
  • Respond to @imp's comments
Oct 18 2022, 9:38 PM
asomers added inline comments to D37030: Validate time when setting RTC.
Oct 18 2022, 9:35 PM
asomers added inline comments to D37030: Validate time when setting RTC.
Oct 18 2022, 3:33 PM
asomers updated the diff for D37030: Validate time when setting RTC.
  • Fix an assertion spotted by Corvin Köhne
Oct 18 2022, 1:30 PM
asomers added inline comments to D37030: Validate time when setting RTC.
Oct 18 2022, 1:28 PM
asomers requested review of D37030: Validate time when setting RTC.
Oct 18 2022, 3:01 AM

Oct 17 2022

asomers closed D37014: fusefs: After successful F_GETLK, l_whence should be SEEK_SET.
Oct 17 2022, 1:11 PM
asomers committed rG3c3b906b5423: fusefs: After successful F_GETLK, l_whence should be SEEK_SET (authored by asomers).
fusefs: After successful F_GETLK, l_whence should be SEEK_SET
Oct 17 2022, 1:11 PM
asomers requested review of D37014: fusefs: After successful F_GETLK, l_whence should be SEEK_SET.
Oct 17 2022, 3:59 AM

Oct 12 2022

asomers requested review of D36974: ctld: if adding a target fails, retry it on the next reload.
Oct 12 2022, 10:51 PM
asomers committed rG0733dd8a9353: copy_file_range: truncate write if it would exceed RLIMIT_FSIZE (authored by asomers).
copy_file_range: truncate write if it would exceed RLIMIT_FSIZE
Oct 12 2022, 4:50 AM
asomers committed rG0f0a0bdff052: fusefs: truncate write if it would exceed RLIMIT_FSIZE (authored by asomers).
fusefs: truncate write if it would exceed RLIMIT_FSIZE
Oct 12 2022, 4:50 AM
asomers committed rGb9f82f035af4: fusefs: respect RLIMIT_FSIZE during truncate (authored by asomers).
fusefs: respect RLIMIT_FSIZE during truncate
Oct 12 2022, 4:50 AM

Oct 11 2022

asomers committed R11:fe4dc1fd7105: net/nss-pam-ldapd: use closefrom in nslcd (authored by asomers).
net/nss-pam-ldapd: use closefrom in nslcd
Oct 11 2022, 6:49 PM

Oct 7 2022

asomers accepted D36908: Split netinet shell tests into one per line..
Oct 7 2022, 10:13 PM
asomers closed D36905: fusefs: during F_GETLK, don't change l_pid if no lock is found.
Oct 7 2022, 3:10 PM
asomers committed rG46fcf947c6c8: fusefs: during F_GETLK, don't change l_pid if no lock is found (authored by asomers).
fusefs: during F_GETLK, don't change l_pid if no lock is found
Oct 7 2022, 3:10 PM
asomers requested review of D36905: fusefs: during F_GETLK, don't change l_pid if no lock is found.
Oct 7 2022, 2:56 PM

Sep 28 2022

asomers committed R11:dacca3015a05: sysutils/ztop: upgrade to 0.2.1 (authored by asomers).
sysutils/ztop: upgrade to 0.2.1
Sep 28 2022, 3:36 PM
asomers accepted D36720: tests/usr.bin/renice: Prevent running them in parallel.

Sadly, I think there's no way to set that property for an individual test case. I think it's ok to set it for the entire program, since these tests run pretty fast anyway.

Sep 28 2022, 3:32 PM

Sep 27 2022

asomers accepted D36743: sysctl_register_oid: fix duplicate oid after d3f96f661050.

Approved. And even though I probably won't MFC the original, please be sure to add an "MFC With" to your commit message, just in case.

Sep 27 2022, 5:08 PM
asomers added a comment to D36743: sysctl_register_oid: fix duplicate oid after d3f96f661050.

It looks like your version will result in more sequential oid numbers. But I don't see how the old version could create a duplicate. Could you please explain?

After your change, when the first oid_number tried is found to be in use, you usually increment the oid_number and use it, assuming that it is not also in use. Before your change, when the first oid-number tried is found to be in use, the code usually incremented the old number and iterated, to check whether that number was in use, and kept doing so until it found a number not in use. So, you have introduced a bug, which I am trying to address, by making sure that the oid_number is not in use.

Sep 27 2022, 4:41 PM
asomers accepted D36748: sysctl(3): Implement SYSCTL_FOREACH() to iterate all OIDs in a sysctl list..

If this makes external kernel modules easier, than go for it.

Sep 27 2022, 4:24 PM
asomers added a comment to D36743: sysctl_register_oid: fix duplicate oid after d3f96f661050.

It looks like your version will result in more sequential oid numbers. But I don't see how the old version could create a duplicate. Could you please explain?

Sep 27 2022, 4:20 PM
asomers committed rG6622e299ac73: Fix the build with SCHED_STATS after d3f96f661050 (authored by asomers).
Fix the build with SCHED_STATS after d3f96f661050
Sep 27 2022, 2:22 AM
asomers committed rGd3f96f661050: Fix O(n^2) behavior in sysctl (authored by asomers).
Fix O(n^2) behavior in sysctl
Sep 27 2022, 12:04 AM
asomers closed D36500: Fix O(n^2) behavior in sysctl.
Sep 27 2022, 12:04 AM

Sep 26 2022

asomers closed D36706: copy_file_range: truncate write if it would exceed RLIMIT_FSIZE.
Sep 26 2022, 9:23 PM
asomers committed rG52360ca32ff9: copy_file_range: truncate write if it would exceed RLIMIT_FSIZE (authored by asomers).
copy_file_range: truncate write if it would exceed RLIMIT_FSIZE
Sep 26 2022, 9:23 PM
asomers updated the diff for D36500: Fix O(n^2) behavior in sysctl.
  • Rename a function
Sep 26 2022, 9:17 PM
asomers added a comment to D36500: Fix O(n^2) behavior in sysctl.

@mjg are you ok with the current version of this review, using RB trees? I don't want to make the other changes because:

  • Using sorted arrays with dynamic reallocation would be a lot more work than the RB trees.
  • Adding a second tree to speed up name2oid would be possible, but it really doesn't depend on anything else in this change. It could be done independently.
  • AFAIK name2oid's current performance is good enough for current users. It doesn't blow up quadratically like sysctl_sysctl_next_action does.
Sep 26 2022, 8:58 PM
asomers updated the diff for D36706: copy_file_range: truncate write if it would exceed RLIMIT_FSIZE.
  • Add comments about vn_rlimit_fsizex_res
Sep 26 2022, 2:30 AM

Sep 25 2022

asomers added a comment to D36706: copy_file_range: truncate write if it would exceed RLIMIT_FSIZE.
In D36706#833361, @kib wrote:

Use of vn_rlimit_fsizex() requires finishing VOP with vn_rlimit_fsizex_res().

Sep 25 2022, 11:59 PM
asomers requested review of D36706: copy_file_range: truncate write if it would exceed RLIMIT_FSIZE.
Sep 25 2022, 11:17 PM
asomers committed rGbe280f60dd8e: fusefs: truncate write if it would exceed RLIMIT_FSIZE (authored by asomers).
fusefs: truncate write if it would exceed RLIMIT_FSIZE
Sep 25 2022, 9:05 PM
asomers closed D36703: fusefs: better handling of RLIMIT_FSIZE.
Sep 25 2022, 9:04 PM
asomers committed rG0a192b3abab1: fusefs: respect RLIMIT_FSIZE during truncate (authored by asomers).
fusefs: respect RLIMIT_FSIZE during truncate
Sep 25 2022, 9:04 PM
asomers requested review of D36703: fusefs: better handling of RLIMIT_FSIZE.
Sep 25 2022, 7:09 PM

Sep 18 2022

asomers accepted D36625: Improve POSIX compliance for RLIMIT_FSIZE.

Thanks for fixing this. As for what the correct behavior should be when the file doesn't yet exceed the limit but a write would cross that threshold, I'm agnostic. I think the old behavior of aborting the write entirely was fine. But the new behavior is fine too. I can fix truncate with fusefs after you merge this change.

Sep 18 2022, 8:42 PM

Sep 14 2022

asomers added inline comments to D36500: Fix O(n^2) behavior in sysctl.
Sep 14 2022, 8:14 PM
asomers accepted D36566: tests/sys/fs: remove mips workaround.
Sep 14 2022, 3:12 PM

Sep 13 2022

asomers added inline comments to D36500: Fix O(n^2) behavior in sysctl.
Sep 13 2022, 12:23 AM

Sep 12 2022

asomers added inline comments to D36500: Fix O(n^2) behavior in sysctl.
Sep 12 2022, 11:29 PM
asomers updated the diff for D36500: Fix O(n^2) behavior in sysctl.
  • Switch to rb trees instead of splay trees
  • Bump __FreeBSD_version due to the KPI change
Sep 12 2022, 9:00 PM
asomers added a comment to D36540: Pass stack size, limit, and (no)overcommit flag to image using auxv, to avoid syscalls on jemalloc and libthr startup..

This is outside of my areas of expertise. I'm afraid I won't be able to help with the review.

Sep 12 2022, 8:05 PM

Sep 9 2022

asomers added a comment to D36500: Fix O(n^2) behavior in sysctl.

I don't think arrays are a practical solution, because the key range is too large. oid_number can be as high as INT_MAX, so the arrays would have to be dynamically allocated, and they may have to resize on insertion.

It can't, I noted this is already clamped:

/*
 * The starting number for dynamically-assigned entries.  WARNING!
 * ALL static sysctl entries should have numbers LESS than this!
 */
#define CTL_AUTO_START  0x100

So worst case for static entries is not particularly bad. Resizing on insertion may still be sensible to do, but it wont affect lookups.

Sep 9 2022, 9:01 PM
asomers added a comment to D36500: Fix O(n^2) behavior in sysctl.

Hi, thank you for the review. I like the lock update.

Could it impact <sysutils/sysctlinfo-kmod>? After this kernel update, is it still possible to compile and to use the sysctlinfo-kmod port and its "clients"? (deskutils/sysctlview, sysutils/nsysctl, audio/mixertui, sysutils/sysctlbyname-improved-kmod,...)

(I ask because unfortunately now I'm in a busy period and cannot test and give this review the attention it deserves.)

Sep 9 2022, 8:58 PM
asomers updated the diff for D36500: Fix O(n^2) behavior in sysctl.
  • tweak cmp_splay_oid as suggested by @hselasky
Sep 9 2022, 8:55 PM
asomers added a comment to D36500: Fix O(n^2) behavior in sysctl.
In D36500#829077, @mjg wrote:

What's up with lock conversion to sx and exclusive-locking everywhere? If you really need to hold the lock the entire time, you can use rms locks instead. If read-locking for normal use can't be achieved, then I'm afraid this patch is a non-starter -- there is *tons* of parallel sysctl calls in fork+exec heavy workloads (most notably for malloc), so this would degrade performance. (EDIT: now that i wrote it, splay rebalances itself also on lookup, so that's a non-starter here)

Sep 9 2022, 8:32 PM

Sep 8 2022

asomers requested review of D36500: Fix O(n^2) behavior in sysctl.
Sep 8 2022, 11:24 PM

Aug 28 2022

asomers accepted D36377: update the NFSv4.1/4.2 server's console message indicating that there is no session.
Aug 28 2022, 12:25 AM

Aug 22 2022

asomers added a comment to D36241: freebsd-update(8): add new command to 'check' for available updates only.

indeed the main difference is that check only fetches a bare minimum (and sanitized) tag, which tells us which version is available on FreeBSD's update servers.

check the TEST PLAN above

updatesready do not work in that way; it downloads like all binary files and at the end report back that one is able to run e.g.: freebsd-update install.

the so-called footprint and impact coming from the "client machines" against the update servers using this proposed check command is way smaller compared to running others like install - and, IMHO, that new check command can also be used in a way to verify for available upgrades as well (again, without really fetching all required files to perform such action).

Aug 22 2022, 3:43 PM

Aug 21 2022

asomers added a comment to D36241: freebsd-update(8): add new command to 'check' for available updates only.

I guess the main difference between check and updatesready is that the latter requires you to fetch the updates first, right? Is the workflow you envision a cron or periodic job that only runs freebsd-update check and informs the user if there are any updates, but makes them actually fetch those updates manually? For a user who eventually applies every update, will this new workflow result in less total load on the update servers, or about the same?

Aug 21 2022, 3:52 PM

Aug 20 2022

asomers committed rGbaa6a68cbe47: ip6(4): document IP_ORIGDSTADDR (authored by asomers).
ip6(4): document IP_ORIGDSTADDR
Aug 20 2022, 3:08 AM
asomers committed rG5f46ec779fe7: Add more aio tests (authored by asomers).
Add more aio tests
Aug 20 2022, 3:08 AM
asomers committed rGd58ced88d39f: prometheus_sysctl_exporter: ignore ENOENT for mibs specified on the CLI (authored by asomers).
prometheus_sysctl_exporter: ignore ENOENT for mibs specified on the CLI
Aug 20 2022, 3:02 AM
asomers committed rGe1d8b0f49a9e: ip6(4): document IP_ORIGDSTADDR (authored by asomers).
ip6(4): document IP_ORIGDSTADDR
Aug 20 2022, 3:00 AM
asomers committed rG5c155bab48c0: prometheus_sysctl_exporter: ignore ENOENT for mibs specified on the CLI (authored by asomers).
prometheus_sysctl_exporter: ignore ENOENT for mibs specified on the CLI
Aug 20 2022, 2:59 AM
asomers committed rG3c69525933e1: ses: don't panic if disk elements have really weird descriptors (authored by asomers).
ses: don't panic if disk elements have really weird descriptors
Aug 20 2022, 2:57 AM
asomers committed rG93891ed2f794: fusefs: make the mknod.cc tests a bit more general. (authored by asomers).
fusefs: make the mknod.cc tests a bit more general.
Aug 20 2022, 2:57 AM
asomers committed rGe04d75193865: fix integer overflow bugs in *stosbt (authored by asomers).
fix integer overflow bugs in *stosbt
Aug 20 2022, 2:27 AM
asomers committed rG20004b265add: fusefs: fix an undefined variable access (authored by asomers).
fusefs: fix an undefined variable access
Aug 20 2022, 1:20 AM
asomers committed rGe2182a594d84: fusefs: fix FUSE_CREATE with file handles and fuse protocol < 7.9 (authored by asomers).
fusefs: fix FUSE_CREATE with file handles and fuse protocol < 7.9
Aug 20 2022, 1:17 AM
asomers committed rGb524667411e9: prometheus_sysctl_exporter: fix metric aliasing (authored by asomers).
prometheus_sysctl_exporter: fix metric aliasing
Aug 20 2022, 1:12 AM
asomers committed rG3a5ccf21b2aa: fusefs: correctly handle servers that report too much data written (authored by asomers).
fusefs: correctly handle servers that report too much data written
Aug 20 2022, 1:01 AM
asomers committed rG73e02a370e52: fusefs: validate servers' error values (authored by asomers).
fusefs: validate servers' error values
Aug 20 2022, 12:55 AM
asomers committed rG4d5fb17274aa: fusefs: fix two bugs regarding VOP_RECLAIM of the root inode (authored by asomers).
fusefs: fix two bugs regarding VOP_RECLAIM of the root inode
Aug 20 2022, 12:49 AM