Page MenuHomeFreeBSD

rlibby (Ryan Libby)
User

Projects

User Details

User Since
Nov 12 2015, 8:14 PM (546 w, 16 h)

Recent Activity

Wed, Apr 15

rlibby added a comment to D56401: sys/time: rework saturation ifdef to avoid direct arch ref.

I don't feel strongly about it, beyond wanting the gcc build to work. If @kib and @imp you guys don't agree on the direction here, my inclination is just to leave it as it is after 00dccc3164c6dff38350a1baeeea7238acf2efc3 and move on.

Wed, Apr 15, 5:32 PM
rlibby added a comment to D56401: sys/time: rework saturation ifdef to avoid direct arch ref.

What do you think of this? https://github.com/rlibby/freebsd/commit/73605b3a9268d5ea7ad52650ba9ba7c808842dc5

Wed, Apr 15, 5:05 PM
rlibby committed rG0c09c6527b16: tests/fusefs: appease gcc -Wcast-qual (authored by rlibby).
tests/fusefs: appease gcc -Wcast-qual
Wed, Apr 15, 4:35 PM
rlibby closed D56370: tests/fusefs: appease gcc -Wcast-qual.
Wed, Apr 15, 4:35 PM
rlibby added a comment to D56401: sys/time: rework saturation ifdef to avoid direct arch ref.
In D56401#1291397, @kib wrote:

Of course it must use the same __SIZEOF_<uppercase type name> as the type used for time_t.

Wed, Apr 15, 4:22 PM
rlibby added a comment to D56370: tests/fusefs: appease gcc -Wcast-qual.
-       ASSERT_EQ(0, pthread_create(&th0, NULL, setattr_th, (void*)FULLSRC))
+       ASSERT_EQ(0, pthread_create(&th0, NULL, setattr_th, (void*)&FULLSRC))
                << strerror(errno);
Wed, Apr 15, 3:43 PM
rlibby added a comment to D56401: sys/time: rework saturation ifdef to avoid direct arch ref.
In D56401#1291100, @kib wrote:

Did you considered using SIZEOF_LONG and SIZEOF_INT instead of 8/4?

Wed, Apr 15, 3:36 PM
rlibby added a reviewer for D56370: tests/fusefs: appease gcc -Wcast-qual: kib.
Wed, Apr 15, 9:30 AM
rlibby updated the test plan for D56401: sys/time: rework saturation ifdef to avoid direct arch ref.
Wed, Apr 15, 9:27 AM
rlibby requested review of D56401: sys/time: rework saturation ifdef to avoid direct arch ref.
Wed, Apr 15, 9:25 AM
rlibby committed rG00dccc3164c6: sys/time: appease gcc -Wtype-limits (authored by rlibby).
sys/time: appease gcc -Wtype-limits
Wed, Apr 15, 8:35 AM
rlibby closed D56369: sys/time: appease gcc -Wtype-limits.
Wed, Apr 15, 8:35 AM

Tue, Apr 14

rlibby added inline comments to D56369: sys/time: appease gcc -Wtype-limits.
Tue, Apr 14, 7:35 AM

Mon, Apr 13

rlibby updated the summary of D56369: sys/time: appease gcc -Wtype-limits.
Mon, Apr 13, 8:10 PM
rlibby updated the diff for D56369: sys/time: appease gcc -Wtype-limits.

Second try: just ifdef it out for i386.

Mon, Apr 13, 8:09 PM
rlibby updated the test plan for D56369: sys/time: appease gcc -Wtype-limits.
Mon, Apr 13, 6:53 PM
rlibby added inline comments to D56369: sys/time: appease gcc -Wtype-limits.
Mon, Apr 13, 6:50 PM
rlibby added inline comments to D56369: sys/time: appease gcc -Wtype-limits.
Mon, Apr 13, 4:10 PM
rlibby added inline comments to D56369: sys/time: appease gcc -Wtype-limits.
Mon, Apr 13, 3:07 PM
rlibby added a reviewer for D56370: tests/fusefs: appease gcc -Wcast-qual: asomers.
Mon, Apr 13, 2:03 AM
rlibby requested review of D56370: tests/fusefs: appease gcc -Wcast-qual.
Mon, Apr 13, 2:02 AM
rlibby added reviewers for D56369: sys/time: appease gcc -Wtype-limits: imp, markj, jfree.
Mon, Apr 13, 1:39 AM
rlibby requested review of D56369: sys/time: appease gcc -Wtype-limits.
Mon, Apr 13, 1:35 AM
rlibby committed rG8085c5a5c1e5: nvme_ctrlr_linux_passthru_cmd: correct size of upages_small array (authored by rlibby).
nvme_ctrlr_linux_passthru_cmd: correct size of upages_small array
Mon, Apr 13, 12:21 AM
rlibby closed D56368: nvme_ctrlr_linux_passthru_cmd: correct size of upages_small array.
Mon, Apr 13, 12:21 AM

Sun, Apr 12

rlibby added a reviewer for D56368: nvme_ctrlr_linux_passthru_cmd: correct size of upages_small array: imp.
Sun, Apr 12, 8:28 PM
rlibby requested review of D56368: nvme_ctrlr_linux_passthru_cmd: correct size of upages_small array.
Sun, Apr 12, 8:15 PM

Oct 28 2025

rlibby committed rG4c1b0c70f40a: fsck_ffs: garbage collect calcsb (authored by rlibby).
fsck_ffs: garbage collect calcsb
Oct 28 2025, 9:50 AM
rlibby committed rGcd6b58e50cda: ffs_truncate: correct INVARIANTS panic debug output (authored by rlibby).
ffs_truncate: correct INVARIANTS panic debug output
Oct 28 2025, 9:50 AM
rlibby committed rGba753f180082: acpidump: quiet gcc -Wstrict-aliasing (authored by rlibby).
acpidump: quiet gcc -Wstrict-aliasing
Oct 28 2025, 9:50 AM
rlibby committed rGefb1583237fb: acpidump: quiet GCC -Wmaybe-uninitialized (authored by rlibby).
acpidump: quiet GCC -Wmaybe-uninitialized
Oct 28 2025, 9:50 AM
rlibby committed rGf699d8aa02a6: bitstring_test: fix bit_nclear/bit_nset tests for last iteration (authored by rlibby).
bitstring_test: fix bit_nclear/bit_nset tests for last iteration
Oct 28 2025, 9:50 AM
rlibby committed rGa2ce3bd0df22: ddb show lockedvnods: avoid trap for ufs vnode under construction (authored by rlibby).
ddb show lockedvnods: avoid trap for ufs vnode under construction
Oct 28 2025, 9:50 AM
rlibby committed rG0c1e50e59b00: ddb show allchains: avoid traps and show pointers for lockmgr and sx (authored by rlibby).
ddb show allchains: avoid traps and show pointers for lockmgr and sx
Oct 28 2025, 9:50 AM

Oct 20 2025

rlibby accepted D53224: quot: Make nusers unsigned.

Thanks for the follow up.

Oct 20 2025, 7:21 PM

Oct 17 2025

rlibby committed rG5bd3ce4ef629: achiem: quiet gcc -Warray-bounds (authored by rlibby).
achiem: quiet gcc -Warray-bounds
Oct 17 2025, 10:59 PM
rlibby committed rGbf427a09b617: libalias: quiet gcc -Wcalloc-transposed-args (authored by rlibby).
libalias: quiet gcc -Wcalloc-transposed-args
Oct 17 2025, 10:59 PM
rlibby closed D53152: achiem: quiet gcc -Warray-bounds.
Oct 17 2025, 10:58 PM
rlibby closed D53151: libalias: quiet gcc -Wcalloc-transposed-args.
Oct 17 2025, 10:58 PM
rlibby added a comment to D53152: achiem: quiet gcc -Warray-bounds.
In D53152#1214504, @mav wrote:

I think there should be 1, not 2.

Oct 17 2025, 4:16 PM
rlibby updated the test plan for D53152: achiem: quiet gcc -Warray-bounds.
Oct 17 2025, 7:06 AM
rlibby updated the test plan for D53151: libalias: quiet gcc -Wcalloc-transposed-args.
Oct 17 2025, 7:05 AM
rlibby requested review of D53152: achiem: quiet gcc -Warray-bounds.
Oct 17 2025, 7:00 AM
rlibby requested review of D53151: libalias: quiet gcc -Wcalloc-transposed-args.
Oct 17 2025, 7:00 AM
rlibby committed rGc2fa94ad0868: stand/i386: quiet gcc -Warray-bounds (authored by rlibby).
stand/i386: quiet gcc -Warray-bounds
Oct 17 2025, 6:51 AM
rlibby closed D53036: stand/i386: quiet gcc -Warray-bounds.
Oct 17 2025, 6:51 AM

Oct 16 2025

rlibby added a comment to D53036: stand/i386: quiet gcc -Warray-bounds.

Great, thanks. I'll push as is.

Oct 16 2025, 3:40 PM

Oct 15 2025

rlibby added a comment to D53036: stand/i386: quiet gcc -Warray-bounds.

So, I realized that --param min-pagesize was introduced in gcc 11.3 and this will cause an error for older gcc. @imp is it still gcc 9 that's the minimum? I can either wrap this with something like

.if ${COMPILER_TYPE} == "gcc" and ${COMPILER_VERSION} >= 110300
CFLAGS.gcc+= --param min-pagesize=1024
.endif

or just drop this as not worth the ugliness.

Oct 15 2025, 5:26 PM
rlibby committed rGb679303544b3: fsck_ffs: garbage collect calcsb (authored by rlibby).
fsck_ffs: garbage collect calcsb
Oct 15 2025, 7:26 AM
rlibby committed rGc44d2663a790: rb tree: remove strict aliasing violations (authored by rlibby).
rb tree: remove strict aliasing violations
Oct 15 2025, 7:26 AM
rlibby committed rGa0ea4c04b526: ffs_truncate: correct INVARIANTS panic debug output (authored by rlibby).
ffs_truncate: correct INVARIANTS panic debug output
Oct 15 2025, 7:25 AM
rlibby committed rG68501a93076a: mv88e151x: fix potential attach and autonegotiation issues (authored by rlibby).
mv88e151x: fix potential attach and autonegotiation issues
Oct 15 2025, 7:25 AM
rlibby closed D52939: rb tree: remove strict aliasing violations.
Oct 15 2025, 7:25 AM
rlibby closed D53038: fsck_ffs: garbage collect calcsb.
Oct 15 2025, 7:25 AM
rlibby closed D53037: ffs_truncate: correct INVARIANTS panic debug output.
Oct 15 2025, 7:25 AM
rlibby closed D45919: mv88e151x: fix potential attach and autonegotiation issues.
Oct 15 2025, 7:25 AM

Oct 14 2025

rlibby updated the diff for D45919: mv88e151x: fix potential attach and autonegotiation issues.

kp feedback: just initialize the copies to 0

Oct 14 2025, 6:56 PM
rlibby added a comment to D53047: rb tree: change INSERT_COLOR to avoid always-true test.

I'll defer to you and kib as maintainers whether this is a good direction. Personally I do like the flattening of the structure that results from moving line 561/563 and following out of the loop, but I'm less sure about the initial loop unrolling. FWIW my preference for the warning would still be to just NULL initialize child.

Oct 14 2025, 6:39 PM

Oct 10 2025

rlibby updated the test plan for D53036: stand/i386: quiet gcc -Warray-bounds.
Oct 10 2025, 11:47 PM
rlibby updated the test plan for D53038: fsck_ffs: garbage collect calcsb.
Oct 10 2025, 11:39 PM
rlibby updated the test plan for D53037: ffs_truncate: correct INVARIANTS panic debug output.
Oct 10 2025, 11:38 PM
rlibby requested review of D53038: fsck_ffs: garbage collect calcsb.
Oct 10 2025, 11:35 PM
rlibby requested review of D53037: ffs_truncate: correct INVARIANTS panic debug output.
Oct 10 2025, 11:34 PM
rlibby requested review of D53036: stand/i386: quiet gcc -Warray-bounds.
Oct 10 2025, 11:34 PM
rlibby added inline comments to D45919: mv88e151x: fix potential attach and autonegotiation issues.
Oct 10 2025, 5:06 PM
rlibby added a comment to D52940: rb tree: quiet gcc -Wmaybe-uninitialized.

It seems to me that a sufficiently smart compiler could use this to figure out that child would not be used uninitialized.

--- a/sys/sys/tree.h
+++ b/sys/sys/tree.h
@@ -540,6 +540,11 @@ name##_RB_INSERT_COLOR(struct name *head,                          \
        struct type *child, *child_up, *gpar;                           \
        __uintptr_t elmdir, sibdir;                                     \
                                                                        \
+       gpar = _RB_UP(parent, field);                                   \
+       if ((_RB_BITS(gpar) & _RB_LR) == _RB_LR) {                      \
+               __unreachable();                                        \
+               return (NULL);                                          \
+       }                                                               \
        do {                                                            \
                /* the rank of the tree rooted at elm grew */           \
                gpar = _RB_UP(parent, field);                           \
Oct 10 2025, 8:40 AM

Oct 9 2025

rlibby committed rGe474fdfde604: acpidump: quiet gcc -Wstrict-aliasing (authored by rlibby).
acpidump: quiet gcc -Wstrict-aliasing
Oct 9 2025, 8:09 PM
rlibby closed D52941: acpidump: quiet gcc -Wstrict-aliasing.
Oct 9 2025, 8:09 PM
rlibby added inline comments to D52939: rb tree: remove strict aliasing violations.
Oct 9 2025, 1:18 AM
rlibby updated the diff for D52939: rb tree: remove strict aliasing violations.

dougm feedback: _UPMOD_ macros don't improve clarity

Oct 9 2025, 12:46 AM
rlibby added a comment to D52940: rb tree: quiet gcc -Wmaybe-uninitialized.

@dougm, do you have a preference here? I'm happy to follow a suggestion or have you take it over.

Oct 9 2025, 12:33 AM

Oct 8 2025

rlibby updated the diff for D52939: rb tree: remove strict aliasing violations.

whitespace fixup

Oct 8 2025, 7:36 AM
rlibby updated the diff for D52939: rb tree: remove strict aliasing violations.

kib feedback: macro names could be more clear about modifying the
argument. I went with "MOD" instead of "SET".

Oct 8 2025, 7:27 AM
rlibby updated the diff for D52940: rb tree: quiet gcc -Wmaybe-uninitialized.

kib feedback

Oct 8 2025, 5:59 AM

Oct 7 2025

rlibby added a reviewer for D45919: mv88e151x: fix potential attach and autonegotiation issues: kp.
Oct 7 2025, 6:05 PM
rlibby retitled D52941: acpidump: quiet gcc -Wstrict-aliasing from acpidump: quiet GCC -Wstrict-aliasing to acpidump: quiet gcc -Wstrict-aliasing.
Oct 7 2025, 6:04 PM
rlibby updated the test plan for D52940: rb tree: quiet gcc -Wmaybe-uninitialized.
Oct 7 2025, 6:04 PM
rlibby updated the test plan for D52939: rb tree: remove strict aliasing violations.
Oct 7 2025, 6:04 PM

Oct 6 2025

rlibby added a comment to D52939: rb tree: remove strict aliasing violations.

There are other options for how to spell the internal macros. I'm open to something else that might be more clear. Something in particular I considered is just providing

#define _RB_OP_RVAL(elm, op, dir)	((__typeof(elm))		\
					((__uintptr_t)(elm) op (dir)))
#define	_RB_OP(elm, op, dir)	((elm) = _RB_OP_RVAL((elm), op, (dir)))
#define	_RB_OPUP(elm, field, op, dir)	_RB_OP(_RB_UP((elm), field), op, (dir))

and not _RB_{OR,XOR,ORUP,XORUP} and then having the rb code look like e.g.

			_RB_OPUP(parent, field, ^, elmdir);

instead of _RB_XORUP(parent, field, elmdir).

Oct 6 2025, 5:58 PM
rlibby requested review of D52941: acpidump: quiet gcc -Wstrict-aliasing.
Oct 6 2025, 5:47 PM
rlibby requested review of D52940: rb tree: quiet gcc -Wmaybe-uninitialized.
Oct 6 2025, 5:44 PM
rlibby requested review of D52939: rb tree: remove strict aliasing violations.
Oct 6 2025, 5:29 PM

Oct 3 2025

rlibby committed rGdaf4da4d0971: acpidump: quiet GCC -Wmaybe-uninitialized (authored by rlibby).
acpidump: quiet GCC -Wmaybe-uninitialized
Oct 3 2025, 10:57 PM
rlibby committed rGe7e958d83d85: ddb show allchains: avoid traps and show pointers for lockmgr and sx (authored by rlibby).
ddb show allchains: avoid traps and show pointers for lockmgr and sx
Oct 3 2025, 5:56 AM
rlibby closed D52794: ddb show allchains: avoid traps and show pointers for lockmgr and sx.
Oct 3 2025, 5:55 AM

Oct 2 2025

rlibby updated the test plan for D52794: ddb show allchains: avoid traps and show pointers for lockmgr and sx.
Oct 2 2025, 7:02 PM
rlibby created P673 D52794 test demo.
Oct 2 2025, 7:01 PM
rlibby committed rG54b24b9da8be: bitstring_test: fix bit_nclear/bit_nset tests for last iteration (authored by rlibby).
bitstring_test: fix bit_nclear/bit_nset tests for last iteration
Oct 2 2025, 4:43 PM
rlibby closed D45893: bitstring_test: fix bit_nclear/bit_nset tests for last iteration.
Oct 2 2025, 4:43 PM
rlibby updated the diff for D45893: bitstring_test: fix bit_nclear/bit_nset tests for last iteration.

asomers feedback: use ATF_REQUIRE_EQ family of tests.

Oct 2 2025, 6:00 AM

Oct 1 2025

rlibby added a comment to D45893: bitstring_test: fix bit_nclear/bit_nset tests for last iteration.

So is -1 being cast to true?

Oct 1 2025, 11:21 PM
rlibby added a comment to D45893: bitstring_test: fix bit_nclear/bit_nset tests for last iteration.

Apologies, trying to recall. IIRC...

Oct 1 2025, 10:37 PM
rlibby updated the test plan for D45893: bitstring_test: fix bit_nclear/bit_nset tests for last iteration.
Oct 1 2025, 9:41 PM
rlibby committed rG76157a63a0c6: ddb show lockedvnods: avoid trap for ufs vnode under construction (authored by rlibby).
ddb show lockedvnods: avoid trap for ufs vnode under construction
Oct 1 2025, 6:33 PM
rlibby closed D52795: ddb show lockedvnods: avoid trap for ufs vnode under construction.
Oct 1 2025, 6:33 PM

Sep 30 2025

rlibby updated the test plan for D52795: ddb show lockedvnods: avoid trap for ufs vnode under construction.
Sep 30 2025, 5:41 PM
rlibby updated the diff for D52795: ddb show lockedvnods: avoid trap for ufs vnode under construction.

mjg feedback: indicate when i_din2 is NULL

Sep 30 2025, 5:39 PM
rlibby added a comment to D52795: ddb show lockedvnods: avoid trap for ufs vnode under construction.

Alternately, we could fib and do

printf(", extsize=%d", ip->i_din2 != NULL ? ip->i_din2->di_extsize : 0);
Sep 30 2025, 5:24 PM
rlibby added a comment to D52795: ddb show lockedvnods: avoid trap for ufs vnode under construction.

Sure, I'm ambivalent, I just wanted to fix the trap. I'll prepare the patch.

Sep 30 2025, 5:16 PM
rlibby added a comment to D52795: ddb show lockedvnods: avoid trap for ufs vnode under construction.
In D52795#1206234, @mjg wrote:

maybe print that the pointer is NULL?

Sep 30 2025, 4:34 PM