Page MenuHomeFreeBSD

kevans (Kyle Evans)
User

Projects (8)

User Details

User Since
Oct 2 2015, 1:17 PM (469 w, 6 d)

Recent Activity

Yesterday

kevans committed rGe3953c036f9d: sys: Chase libmd version bump with a __FreeBSD_version bump (authored by kevans).
sys: Chase libmd version bump with a __FreeBSD_version bump
Wed, Oct 2, 7:56 PM
kevans committed rGc25e55bcf80b: include: ssp: hide gets_s behind __EXT1_VISIBLE (authored by kevans).
include: ssp: hide gets_s behind __EXT1_VISIBLE
Wed, Oct 2, 5:48 PM
kevans accepted D46873: libdiff: Implement diff coloring..

Whoops. LGTM.

Wed, Oct 2, 3:50 PM
kevans accepted D46872: locate.updatedb: Revert to using cat to copy the db..
Wed, Oct 2, 12:00 PM
kevans closed D34497: libmd, kern, stand: consolidate md5 implementations (NFC).
Wed, Oct 2, 5:12 AM

Mon, Sep 30

kevans added a comment to D46854: cross-build: fix missing <sys/md4.h> the proper way.

Results here: https://github.com/kevans91/freebsd/actions/runs/11114004259

Mon, Sep 30, 9:04 PM
kevans requested review of D46854: cross-build: fix missing <sys/md4.h> the proper way.
Mon, Sep 30, 9:03 PM
kevans committed rGc02bc0aa0b22: libmd: re-apply masking of _Transform names (authored by kevans).
libmd: re-apply masking of _Transform names
Mon, Sep 30, 8:00 PM
kevans committed rGc4564a47c1ad: ObsoleteFiles: fix the libmd.so version bump order (authored by kevans).
ObsoleteFiles: fix the libmd.so version bump order
Mon, Sep 30, 8:00 PM
kevans updated the diff for D46805: mk: add PLAIN_TESTS_PORCH support.

Simplify; this was previously going to go the route of atf-sh and inject the
shebang, but what we ended up with does not warrant a tmp file at all. We can
also take care of +x + move in one step.

Mon, Sep 30, 2:01 PM
kevans committed rGaad507854efd: Fix the cross-build after recent commits (authored by kevans).
Fix the cross-build after recent commits
Mon, Sep 30, 5:10 AM
kevans committed rG0ffebeb08ae5: libmd: quickly switch exported symbols to FBSD_1.8 before anyone notices (authored by kevans).
libmd: quickly switch exported symbols to FBSD_1.8 before anyone notices
Mon, Sep 30, 4:44 AM
kevans committed rGc2caf3b3313f: flua: lposix: add more useful functions for general purpose scripts (authored by kevans).
flua: lposix: add more useful functions for general purpose scripts
Mon, Sep 30, 3:54 AM
kevans closed D39083: flua: lposix: add more useful functions for general purpose scripts.
Mon, Sep 30, 3:53 AM
kevans added inline comments to D39083: flua: lposix: add more useful functions for general purpose scripts.
Mon, Sep 30, 3:47 AM
kevans committed rG442e0975ee4b: Consolidate md4 implementations written in C (authored by kevans).
Consolidate md4 implementations written in C
Mon, Sep 30, 3:37 AM
kevans committed rG81de655acd2e: libmd: stop exporting Transform() symbols (authored by kevans).
libmd: stop exporting Transform() symbols
Mon, Sep 30, 3:37 AM
kevans committed rG5190e6341ce5: libmd: stop exporting _version symbols (authored by kevans).
libmd: stop exporting _version symbols
Mon, Sep 30, 3:37 AM
kevans committed rGe0c51286dd6d: libmd: split tests out into the test infrastructure (authored by kevans).
libmd: split tests out into the test infrastructure
Mon, Sep 30, 3:37 AM
kevans committed rGfd3ced150708: libmd: export and document *Fd/*FdChunk interfaces (authored by kevans).
libmd: export and document *Fd/*FdChunk interfaces
Mon, Sep 30, 3:36 AM
kevans committed rG01112a1711f3: libmd: tests: raise WARNS to the default (authored by kevans).
libmd: tests: raise WARNS to the default
Mon, Sep 30, 3:36 AM
kevans committed rGe25527f75f73: libmd: symbol versioning (authored by kevans).
libmd: symbol versioning
Mon, Sep 30, 3:36 AM
kevans closed D34503: libmd: stop exporting Transform() symbols.
Mon, Sep 30, 3:36 AM
kevans closed D34500: libmd: split tests out into the test infrastructure.
Mon, Sep 30, 3:36 AM
kevans committed rGe7a629c851d7: libmd, kern, stand: consolidate md5 implementations (NFC) (authored by kevans).
libmd, kern, stand: consolidate md5 implementations (NFC)
Mon, Sep 30, 3:36 AM
kevans committed rGd61f4b481f48: libmd: stop exporting _block symbols (authored by kevans).
libmd: stop exporting _block symbols
Mon, Sep 30, 3:36 AM
kevans closed D34502: libmd: export and document *Fd/*FdChunk interfaces.
Mon, Sep 30, 3:36 AM
kevans closed D34501: libmd: tests: raise WARNS to the default.
Mon, Sep 30, 3:36 AM
kevans closed D34499: libmd: symbol versioning.
Mon, Sep 30, 3:36 AM
kevans closed D34498: libmd: stop exporting _block symbols.
Mon, Sep 30, 3:36 AM

Sun, Sep 29

kevans added a comment to D46806: tests: kern: add some porch(1)-based tty tests.

Could you please demo the test program (attach the kyua html report)?

Sun, Sep 29, 3:17 AM

Sat, Sep 28

kevans added a comment to D46805: mk: add PLAIN_TESTS_PORCH support.

It seems like this should be named "PORCH_TESTS" instead of "PLAIN_TESTS_PORCH" (that seems pretty wordy..).
Or maybe something LUA-prefixed?
PLAIN_TESTS is the variant of test which has a certain expected/documented behavior, whereas, _CXX, _C, _SH are the file types under test. Are all "PORCH" tests expected to exit on 0 if successful and exit non-zero if failed?

Sat, Sep 28, 3:45 AM

Fri, Sep 27

kevans requested review of D46806: tests: kern: add some porch(1)-based tty tests.
Fri, Sep 27, 5:11 AM
kevans requested review of D46805: mk: add PLAIN_TESTS_PORCH support.
Fri, Sep 27, 5:11 AM
kevans committed R11:548701f13608: sysutils/orch: update to 0.4 (authored by kevans).
sysutils/orch: update to 0.4
Fri, Sep 27, 4:40 AM
kevans accepted D46799: Build BSD diff3 if GNU diff3 is disabled..
Fri, Sep 27, 12:31 AM

Wed, Sep 25

kevans committed rG4f4860c9b07c: regex: mixed sets are misidentified as singletons (authored by sommerfeld_hamachi.org).
regex: mixed sets are misidentified as singletons
Wed, Sep 25, 8:44 PM
kevans committed rGd96ce6d00070: regex: mixed sets are misidentified as singletons (authored by sommerfeld_hamachi.org).
regex: mixed sets are misidentified as singletons
Wed, Sep 25, 8:44 PM

Tue, Sep 24

kevans added inline comments to D46771: loader: Use printc instead of print to fit in 24,80.
Tue, Sep 24, 3:08 PM

Mon, Sep 23

kevans added a comment to D46748: libbe: Move libbe_handle definition to be.h.

Can you explain more on why you think you want this? The entire point was to hide the interface and avoid it becoming part of the ABI we need to care about.

To be able to compile anything using be.h (except from bectl).

FWIW, take this simple code:

otis@jb131:~/work/libbe % cat m.c
#include <be.h>

int main(int argc, char *argv[])
{
        libbe_handle_t *lbh;

        lbh = libbe_init(NULL);
        libbe_close(lbh);
        return 0;
}

and use:

cc -o x x.c -lbe

then the result is:

otis@jb131:~/work/libbe % cc -o m m.c -lbe
In file included from m.c:1:
In file included from /usr/include/be.h:31:
In file included from /usr/include/libnvpair.h:29:
/usr/include/sys/nvpair.h:160:15: error: unknown type name 'uint_t'; did you mean 'uint8_t'?
  160 | _SYS_NVPAIR_H uint_t nvlist_nvflag(nvlist_t *);
      |               ^
/usr/include/sys/_stdint.h:54:20: note: 'uint8_t' declared here
   54 | typedef __uint8_t               uint8_t;
      |                                 ^
In file included from m.c:1:
In file included from /usr/include/be.h:31:
In file included from /usr/include/libnvpair.h:29:
/usr/include/sys/nvpair.h:184:11: error: unknown type name 'boolean_t'
  184 |     const boolean_t *, uint_t);
      |           ^
/usr/include/sys/nvpair.h:186:11: error: unknown type name 'uchar_t'
  186 |     const uchar_t *, uint_t);
      |           ^
/usr/include/sys/nvpair.h:218:5: error: unknown type name 'boolean_t'
  218 |     boolean_t *);
      |     ^
/usr/include/sys/nvpair.h:219:70: error: unknown type name 'uchar_t'
  219 | _SYS_NVPAIR_H int nvlist_lookup_byte(const nvlist_t *, const char *, uchar_t *);
      |                                                                      ^
/usr/include/sys/nvpair.h:239:5: error: unknown type name 'boolean_t'
  239 |     boolean_t **, uint_t *);
      |     ^
/usr/include/sys/nvpair.h:239:19: error: unknown type name 'uint_t'; did you mean 'uint8_t'?
  239 |     boolean_t **, uint_t *);
      |                   ^
/usr/include/sys/_stdint.h:54:20: note: 'uint8_t' declared here
   54 | typedef __uint8_t               uint8_t;
      |                                 ^
In file included from m.c:1:
In file included from /usr/include/be.h:31:
In file included from /usr/include/libnvpair.h:29:
/usr/include/sys/nvpair.h:240:70: error: unknown type name 'uchar_t'
  240 | _SYS_NVPAIR_H int nvlist_lookup_byte_array(nvlist_t *, const char *, uchar_t **,
      |                                                                      ^
/usr/include/sys/nvpair.h:241:5: error: unknown type name 'uint_t'; did you mean 'uint8_t'?                                                                         [55/1849]
  241 |     uint_t *);
      |     ^
/usr/include/sys/_stdint.h:54:20: note: 'uint8_t' declared here
   54 | typedef __uint8_t               uint8_t;
      |                                 ^
In file included from m.c:1:
In file included from /usr/include/be.h:31:
In file included from /usr/include/libnvpair.h:29:
/usr/include/sys/nvpair.h:243:5: error: unknown type name 'uint_t'; did you mean 'uint8_t'?
  243 |     uint_t *);
      |     ^
/usr/include/sys/_stdint.h:54:20: note: 'uint8_t' declared here
   54 | typedef __uint8_t               uint8_t;
      |                                 ^
In file included from m.c:1:
In file included from /usr/include/be.h:31:
In file included from /usr/include/libnvpair.h:29:
/usr/include/sys/nvpair.h:245:17: error: unknown type name 'uint_t'; did you mean 'uint8_t'?
  245 |     uint8_t **, uint_t *);
      |                 ^
/usr/include/sys/_stdint.h:54:20: note: 'uint8_t' declared here
   54 | typedef __uint8_t               uint8_t;
      |                                 ^
In file included from m.c:1:
In file included from /usr/include/be.h:31:
In file included from /usr/include/libnvpair.h:29:
/usr/include/sys/nvpair.h:247:17: error: unknown type name 'uint_t'; did you mean 'uint8_t'?
  247 |     int16_t **, uint_t *);
      |                 ^
/usr/include/sys/_stdint.h:54:20: note: 'uint8_t' declared here
   54 | typedef __uint8_t               uint8_t;
      |                                 ^
In file included from m.c:1:
In file included from /usr/include/be.h:31:
In file included from /usr/include/libnvpair.h:29:
/usr/include/sys/nvpair.h:249:18: error: unknown type name 'uint_t'; did you mean 'uint8_t'?
  249 |     uint16_t **, uint_t *);
      |                  ^
/usr/include/sys/_stdint.h:54:20: note: 'uint8_t' declared here
   54 | typedef __uint8_t               uint8_t;
      |                                 ^
In file included from m.c:1:
In file included from /usr/include/be.h:31:
In file included from /usr/include/libnvpair.h:29:
/usr/include/sys/nvpair.h:251:17: error: unknown type name 'uint_t'; did you mean 'uint8_t'?
  251 |     int32_t **, uint_t *);
      |                 ^
/usr/include/sys/_stdint.h:54:20: note: 'uint8_t' declared here
   54 | typedef __uint8_t               uint8_t;
      |                                 ^
In file included from m.c:1:
In file included from /usr/include/be.h:31:
In file included from /usr/include/libnvpair.h:29:

and so forth.

The other thing may be that something is not well documented.

Mon, Sep 23, 6:32 PM
kevans added a comment to D40161: arm64/intrng: add support for FIQs.

I suspect this needs to now be rebased onto main. I've got concerns, so I would like to take a look at what comes when the interaction with the FIQ stuff comes in. Simply asking looking for a temporary pause.

Mon, Sep 23, 2:45 AM

Sun, Sep 22

kevans added a comment to D46748: libbe: Move libbe_handle definition to be.h.

Can you explain more on why you think you want this? The entire point was to hide the interface and avoid it becoming part of the ABI we need to care about.

Sun, Sep 22, 10:17 PM

Fri, Sep 20

kevans accepted D46718: printf(): Save errno earlier..
Fri, Sep 20, 4:30 PM

Thu, Sep 19

kevans added a comment to D46670: wg: don't unlink an unlinked peer.

Hi. Sorry for my delayed reply.

I actually noticed this issue (inconsistency between sc_peers_num and sc_peers TAILQ) and I have a TODO to work on a patch for FreeBSD.

In DragonFly, I fixed the issue in another way (by referring to OpenBSD's) as you may find in commit: https://github.com/DragonFlyBSD/DragonFlyBSD/commit/902964ab24ba9d2c978017d369c0faa8d2fe0f9e

(I found the issue when I was working on replacing nvlist with ioctl.)

I think your approach is nicer. (In general I kind of dislike using bool flags to modulate functions this way: it's hard to see what's going on without jumping to the function definition, and the control flow becomes more complicated. Here it's relatively straightforward, but refactoring a bit is nicer IMHO.)

Thu, Sep 19, 1:57 PM

Wed, Sep 18

kevans accepted D46695: realpath(3): Minor style issues..
Wed, Sep 18, 4:11 PM
kevans added a member for committers: jrtc27.
Wed, Sep 18, 1:23 PM
kevans added a member for committers: stevek.
Wed, Sep 18, 1:21 AM

Sat, Sep 14

kevans added a reviewer for D46670: wg: don't unlink an unlinked peer: aly_aaronly.me.
Sat, Sep 14, 3:44 AM
kevans requested review of D46670: wg: don't unlink an unlinked peer.
Sat, Sep 14, 3:44 AM
kevans abandoned D41833: arm64: add support for FIQs.

Superceded by https://github.com/freebsd/freebsd-src/pull/1363

Sat, Sep 14, 2:55 AM
kevans accepted D46654: flua: add freebsd.kenv, kenv(2) bindings.
Sat, Sep 14, 2:52 AM

Thu, Sep 12

kevans added inline comments to D46654: flua: add freebsd.kenv, kenv(2) bindings.
Thu, Sep 12, 3:27 PM
kevans accepted D46610: flua: move modules source into the main source directory.
Thu, Sep 12, 3:10 AM

Wed, Sep 11

kevans added a comment to D46619: RLIMIT_PIPE.

I still think we want the login.conf addition, even if it's pipe=unlimited -- we seem to do this for all of them (perhaps as an example of the possible limits that can be configured and their login.conf names?)

Wed, Sep 11, 2:41 PM

Tue, Sep 10

kevans added a comment to D46619: RLIMIT_PIPE.

I suspect we also want an addition to lib/libutil/login_class.c

Isn't the current addition of a line in the resources[] array in login_class.c enough?

Tue, Sep 10, 3:44 PM
kevans added a comment to D46619: RLIMIT_PIPE.

I suspect we also want an addition to lib/libutil/login_class.c, and maybe a default in usr.bin/login/login.conf

Tue, Sep 10, 2:35 PM

Mon, Sep 9

kevans removed a member for vbox: kevans.
Mon, Sep 9, 1:00 PM

Wed, Sep 4

kevans accepted D46255: grep: Fix various bugs in recursive tree handling.
Wed, Sep 4, 7:18 PM

Aug 29 2024

kevans accepted D46475: locate.updatedb: Explicitly exit from trap code..
Aug 29 2024, 2:37 PM
kevans updated the diff for D46443: pw: set the user's home directory mode if it existed.

Issue warnings for any permission change failures- they're not fatal, but the admin should know about them in case there's a legitimate issue.

Aug 29 2024, 2:37 AM

Aug 27 2024

kevans added inline comments to D46443: pw: set the user's home directory mode if it existed.
Aug 27 2024, 4:46 PM
kevans added a comment to D46443: pw: set the user's home directory mode if it existed.

First draft of test.

JFYI- I can't see what this is referencing. In the "Referenced Files" section on the right, I can see:

Restricted File
Mon, Aug 26, 20:38

which lines up with the timestamp on your comment, so I guess permissions aren't set on it somehow.

Forgive my ignorance on Phabricator, I believe it is OK now.

Aug 27 2024, 3:35 PM
kevans updated the diff for D46443: pw: set the user's home directory mode if it existed.

Test looks reasonable to me, incorporating it as:

Aug 27 2024, 3:34 PM
kevans added a comment to D46443: pw: set the user's home directory mode if it existed.

First draft of test.

Aug 27 2024, 2:50 PM

Aug 26 2024

kevans requested review of D46443: pw: set the user's home directory mode if it existed.
Aug 26 2024, 11:10 PM

Aug 20 2024

kevans added a comment to D46086: arm64: Remove the E2H check from has_hyp.
Aug 20 2024, 11:00 PM
kevans added inline comments to D46255: grep: Fix various bugs in recursive tree handling.
Aug 20 2024, 10:19 PM
kevans added inline comments to D46255: grep: Fix various bugs in recursive tree handling.
Aug 20 2024, 9:55 PM
kevans accepted D46256: grep: Default to -p instead of -S..

It's fine with me, but I note there's a test in contrib/netbsd-tests/usr.bin/grep/t_grep.sh that assumes the default here that will start failing

Aug 20 2024, 8:57 PM
kevans added a comment to D46086: arm64: Remove the E2H check from has_hyp.

@kevans This should be a partial revert of rGd2ae03bae2add82124973876dec95eb126ff34c8. Can you test to make sure I didn't break anything before I commit?

Aug 20 2024, 3:00 PM

Aug 14 2024

kevans committed rG7088bf662d46: calendar: don't setlogin(2) in the -a user handlers (authored by kevans).
calendar: don't setlogin(2) in the -a user handlers
Aug 14 2024, 3:37 AM

Aug 13 2024

kevans added a comment to D46284: Add the ability have executable jail.conf.

I'm a little torn on the idea itself, but here's some review

Aug 13 2024, 7:54 PM · Jails
kevans added a comment to D41509: crypt(3) style password support for lua loader.

Updated the diff per requested copyright changes.

My intent was that I had implemented all of kevans' reivew changes already, lua-lint passes cleanly-ish. the only issues are about the 'hash' accesses, but those mirror 'gfx' in other lua files.

Aug 13 2024, 1:59 AM · Loader
kevans committed rG6df36deb8bba: boot: update lua linter for recent module additions (authored by kevans).
boot: update lua linter for recent module additions
Aug 13 2024, 1:59 AM

Aug 9 2024

kevans committed rGd349bd35330d: shutdown: fix option sorting (authored by kevans).
shutdown: fix option sorting
Aug 9 2024, 4:22 PM
kevans committed rG6c7ec630c24f: shutdown: add a -q(uiet) flag to suppress warning messages (authored by kevans).
shutdown: add a -q(uiet) flag to suppress warning messages
Aug 9 2024, 4:02 PM
kevans closed D46216: shutdown: add a flag to suppress warning messages.
Aug 9 2024, 4:01 PM

Aug 8 2024

kevans committed rG3a9010c98b3d: calendar: don't setlogin(2) in the -a user handlers (authored by kevans).
calendar: don't setlogin(2) in the -a user handlers
Aug 8 2024, 8:07 PM
kevans committed rG781bc1a69fab: route: avoid overlapping strcpy (authored by kevans).
route: avoid overlapping strcpy
Aug 8 2024, 8:07 PM
kevans committed rG33708452aaab: calendar: don't setlogin(2) in the -a user handlers (authored by kevans).
calendar: don't setlogin(2) in the -a user handlers
Aug 8 2024, 8:07 PM
kevans committed rG40c79e979ea8: route: avoid overlapping strcpy (authored by kevans).
route: avoid overlapping strcpy
Aug 8 2024, 8:07 PM

Aug 5 2024

kevans committed rG6cb8b61efe88: calendar: don't setlogin(2) in the -a user handlers (authored by kevans).
calendar: don't setlogin(2) in the -a user handlers
Aug 5 2024, 6:44 PM
kevans closed D46095: calendar: don't setlogin(2) in the -a user handlers.
Aug 5 2024, 6:44 PM
kevans updated subscribers of D46095: calendar: don't setlogin(2) in the -a user handlers.

These calls are arguably not necessary.

But IMO the real bug is, and always has been in situations like this, that a setlogin() call should never succeed except for session leaders. Would you recall any reason for the current setlogin()'s behavior?

Aug 5 2024, 6:43 PM
kevans added a comment to D46216: shutdown: add a flag to suppress warning messages.
In D46216#1054082, @0mp wrote:

Just an idea: perhaps this could be a sysctl. This way, you could set the setting once and interested programs could check the sysctl value before deciding on being verbose or quiet.

Aug 5 2024, 6:29 PM

Aug 3 2024

kevans added inline comments to D46216: shutdown: add a flag to suppress warning messages.
Aug 3 2024, 5:41 PM
kevans updated the diff for D46216: shutdown: add a flag to suppress warning messages.

Fix the date (whoops :-)), -W -> -q and fix bracketing in usage

Aug 3 2024, 5:41 PM

Aug 2 2024

kevans requested review of D46216: shutdown: add a flag to suppress warning messages.
Aug 2 2024, 8:29 PM

Aug 1 2024

kevans committed rGde866aa35240: ssp: switch to _limits.h for the upper bound of size_t (authored by kevans).
ssp: switch to _limits.h for the upper bound of size_t
Aug 1 2024, 8:43 PM

Jul 30 2024

kevans committed rG9333e1cbd028: include: ssp: hide ppoll redirect behind __BSD_VISIBLE (authored by kevans).
include: ssp: hide ppoll redirect behind __BSD_VISIBLE
Jul 30 2024, 4:40 PM

Jul 29 2024

kevans accepted D46167: openssl: declare getrandom(2) before use.

jhb has a similar patch here https://reviews.freebsd.org/D45995 and I had a similar fix upstream https://github.com/openssl/openssl/pull/24903/files but I've failed to get @bcran (or anyone in upstream OpenSSL) to weigh in on an appropriate solution for their part, so I guess just do it and I'll reconcile the differences later.

Jul 29 2024, 5:41 PM

Jul 24 2024

kevans requested review of D46095: calendar: don't setlogin(2) in the -a user handlers.
Jul 24 2024, 4:30 AM

Jul 23 2024

kevans committed rG8f77be22904a: mitigations(7): note that FORTIFY_SOURCE must be set in the env (authored by kevans).
mitigations(7): note that FORTIFY_SOURCE must be set in the env
Jul 23 2024, 10:21 PM
kevans closed D46070: mitigations(7): note that FORTIFY_SOURCE must be set in the env.
Jul 23 2024, 10:21 PM
kevans committed rG158f319428c1: route: avoid overlapping strcpy (authored by kevans).
route: avoid overlapping strcpy
Jul 23 2024, 8:26 PM
kevans closed D32615: route: avoid overlapping strcpy.
Jul 23 2024, 8:26 PM
kevans abandoned D46069: route: avoid overlapping strcpy(3).

Consensus moves for the first attempt

Jul 23 2024, 8:11 PM
kevans added a comment to D46069: route: avoid overlapping strcpy(3).

And an accompanying review: D32615

Jul 23 2024, 6:52 AM
kevans added a comment to D46069: route: avoid overlapping strcpy(3).

In trying to figure out why I hadn't found this in my smoke-tests, I discovered I had fixed this in another branch from when I initially did the work. Attaching the alternate version, I'm not sure which I prefer; that one just avoids copying by making domain a pointer into domain-renamed-to-domain_storage.

Jul 23 2024, 6:38 AM
kevans requested review of D46070: mitigations(7): note that FORTIFY_SOURCE must be set in the env.
Jul 23 2024, 6:30 AM