Page MenuHomeFreeBSD

kevans (Kyle Evans)
User

Projects (12)

User Details

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

Recent Activity

Yesterday

kevans requested review of D59439: bectl: stop pretending that jailparam_delarg can fail.
Sat, Sep 5, 3:45 AM

Fri, Sep 4

kevans committed rGf656bde0c2ef: xhci: Only reset the data toggle value when the USB stack asks for it (authored by aokblast).
xhci: Only reset the data toggle value when the USB stack asks for it
Fri, Sep 4, 6:50 PM
kevans committed rG96dfa566fc16: xhci: Only reset the data toggle value when the USB stack asks for it (authored by aokblast).
xhci: Only reset the data toggle value when the USB stack asks for it
Fri, Sep 4, 6:50 PM
kevans committed rGdc052bc25986: stand: set st_dev/st_ino in the loader's ZFS stat for veriexec (authored by Etienne Bonnand <etienne.bonnand@defenso.fr>).
stand: set st_dev/st_ino in the loader's ZFS stat for veriexec
Fri, Sep 4, 6:50 PM
kevans committed rG4337e2bd5f89: usb: xhci: allow up to 1s for SET_ADDRESS (authored by kevans).
usb: xhci: allow up to 1s for SET_ADDRESS
Fri, Sep 4, 6:50 PM
kevans committed rG7399eb454068: kern: fix oversight in security.bsd.unprivileged_kenv_read (authored by kevans).
kern: fix oversight in security.bsd.unprivileged_kenv_read
Fri, Sep 4, 6:50 PM
kevans committed rG1cfebc97445c: prometheus_sysctl_exporter: don't abort on bad labels (authored by kevans).
prometheus_sysctl_exporter: don't abort on bad labels
Fri, Sep 4, 6:50 PM
kevans committed rGb8370f520dba: bsdinstall: add a hardening knob for unprivileged kenv access (authored by kevans).
bsdinstall: add a hardening knob for unprivileged kenv access
Fri, Sep 4, 6:50 PM
kevans accepted D59345: hastd: Add rudimentary tests.
Fri, Sep 4, 6:50 PM
kevans committed rG6b1371fca772: stand: set st_dev/st_ino in the loader's ZFS stat for veriexec (authored by Etienne Bonnand <etienne.bonnand@defenso.fr>).
stand: set st_dev/st_ino in the loader's ZFS stat for veriexec
Fri, Sep 4, 6:50 PM
kevans committed rG8db4de3a74fd: usb: xhci: allow up to 1s for SET_ADDRESS (authored by kevans).
usb: xhci: allow up to 1s for SET_ADDRESS
Fri, Sep 4, 6:50 PM
kevans committed rG48c56b559248: kern: fix oversight in security.bsd.unprivileged_kenv_read (authored by kevans).
kern: fix oversight in security.bsd.unprivileged_kenv_read
Fri, Sep 4, 6:49 PM
kevans committed rG8d227fc5ddf9: prometheus_sysctl_exporter: don't abort on bad labels (authored by kevans).
prometheus_sysctl_exporter: don't abort on bad labels
Fri, Sep 4, 6:49 PM
kevans committed rG240bea933ddd: bsdinstall: add a hardening knob for unprivileged kenv access (authored by kevans).
bsdinstall: add a hardening knob for unprivileged kenv access
Fri, Sep 4, 6:49 PM
kevans accepted D59411: tty_pts: reduce/correct libatf-c linkage.

No idea why I would have done this, I've done plenty of atf-c... thanks!

Fri, Sep 4, 6:27 PM
kevans accepted D59345: hastd: Add rudimentary tests.
Fri, Sep 4, 6:11 PM
kevans accepted D59344: hastd: Add a stop control message.

I'm not that familiar with hastd, but this looks straightforward and correct to me.

Fri, Sep 4, 6:04 PM
kevans committed rG619d09217720: iuserboot: bump the interface to v6, add an accept_interpreter callback (authored by kevans).
iuserboot: bump the interface to v6, add an accept_interpreter callback
Fri, Sep 4, 3:27 PM
kevans closed D58771: userboot: bump the interface to v6, add an accept_interpreter callback.
Fri, Sep 4, 3:27 PM
kevans requested review of D59388: bhyveload: note that newer FreeBSD is explicitly not supported.
Fri, Sep 4, 1:45 PM
kevans updated the diff for D59327: tpm: crb: make the Pluton startmethod more resilient.

review feedback: go with the first suggestion, and leave pluton_wait_reply() to
always poll for a reply at least once. The timeout == 0 case shouldn't really
happen in practice today, but it's worth defining the semantics now.

Fri, Sep 4, 3:35 AM

Thu, Sep 3

kevans accepted D59343: hastd: Ensure nvpair padding is initialized.
Thu, Sep 3, 4:44 PM
kevans added inline comments to D59327: tpm: crb: make the Pluton startmethod more resilient.
Thu, Sep 3, 11:41 AM
kevans requested review of D59327: tpm: crb: make the Pluton startmethod more resilient.
Thu, Sep 3, 3:38 AM
kevans accepted D59240: tpm20: Harden the common device lifecycle.
Thu, Sep 3, 2:53 AM
kevans accepted D59195: tpm20: Validate suspend and resume commands.
Thu, Sep 3, 2:52 AM

Wed, Sep 2

kevans added inline comments to D59322: bhyve: reinitialise swtpm's TPM at startup.
Wed, Sep 2, 5:59 PM
kevans accepted D59310: hastd: Clean up the ebuf code.
Wed, Sep 2, 5:55 PM
kevans accepted D59306: hastd: Fix crash on empty message.
Wed, Sep 2, 5:19 PM
kevans committed rGc3c6a6c7825c: snd_uaudio: drop the default monitor level to 10% (authored by kevans).
snd_uaudio: drop the default monitor level to 10%
Wed, Sep 2, 3:55 AM
kevans closed D59199: snd_uaudio: drop the default monitor level to 10%.
Wed, Sep 2, 3:55 AM
kevans committed rGc45bdb39fe98: rc: add a backlight service to save/restore backlight levels (authored by kevans).
rc: add a backlight service to save/restore backlight levels
Wed, Sep 2, 3:52 AM
kevans closed D59296: rc: add a backlight service to save/restore backlight levels.
Wed, Sep 2, 3:52 AM

Tue, Sep 1

kevans added a comment to D58779: sound: uaudio: discard hardware sidetone feature units.

Can you please take care of MFCing this?

Tue, Sep 1, 4:27 PM
kevans added a comment to D59296: rc: add a backlight service to save/restore backlight levels.

Can you put this in rc.conf.5 too?

Tue, Sep 1, 3:03 PM
kevans updated the diff for D59296: rc: add a backlight service to save/restore backlight levels.

Review feedback:

  • Scope the backlight settings off into /var/db/backlight
  • Turn it off by default, mention it in the manpage
  • Condense the license/copyright header down and fix the PROVIDE/REQUIRE
  • Use my preferred quoting style while we're here
Tue, Sep 1, 1:47 PM
kevans added inline comments to D59296: rc: add a backlight service to save/restore backlight levels.
Tue, Sep 1, 12:56 PM
kevans updated the summary of D59296: rc: add a backlight service to save/restore backlight levels.
Tue, Sep 1, 4:28 AM
kevans requested review of D59296: rc: add a backlight service to save/restore backlight levels.
Tue, Sep 1, 3:41 AM

Mon, Aug 31

kevans added a comment to D59277: inetd: only declare and use the mapped-address netconfig under INET6.

I think the prior approach suggested by @dim to make as minimal of a change as possible makes a lot of sense: there's no real single-maintainer in inetd and the daemon has remained in maintenance mode for many years.

Mon, Aug 31, 6:07 PM · Contributor Reviews (src)
kevans accepted D59196: tpm20: Initialize common state before testing TIS interrupts.
Mon, Aug 31, 12:58 AM

Sat, Aug 29

kevans accepted D59247: amd64, powerpc: Enable tpm(4) in supported kernels.

I was a little torn when it went into GENERIC the first time, but moving into a world where we can reliably do more interesting things with various PCR measurements (which I did see your review for, but haven't had time to get back to it) I think it's a solid addition.

Sat, Aug 29, 3:30 AM
kevans added a reviewer for D59246: tpm20: Preserve all harvested random bytes: csprng.
Sat, Aug 29, 3:27 AM
kevans accepted D59245: tpm20: Move user copies outside the lifecycle lock.
Sat, Aug 29, 3:26 AM
kevans accepted D59244: tpm20: Correct 32-bit register helpers.
Sat, Aug 29, 3:22 AM
kevans accepted D59243: tpm20: Release transport state after command failures.
Sat, Aug 29, 3:21 AM
kevans accepted D59241: tpm_tis: Close interrupt wait races.
Sat, Aug 29, 3:16 AM
kevans added inline comments to D59240: tpm20: Harden the common device lifecycle.
Sat, Aug 29, 3:02 AM
kevans accepted D59197: tpm_tis: Restore validated interrupts after resume.
Sat, Aug 29, 2:45 AM
kevans added inline comments to D59196: tpm20: Initialize common state before testing TIS interrupts.
Sat, Aug 29, 2:40 AM
kevans added inline comments to D59195: tpm20: Validate suspend and resume commands.
Sat, Aug 29, 2:34 AM
kevans accepted D59238: tpm: Move user copies outside the TPM 1.2 lock.
Sat, Aug 29, 2:17 AM

Fri, Aug 28

kevans added a comment to D59239: tpm: Harvest entropy from TPM 1.2 devices.

Thanks for adding csprng. One thing that bears a bit of scrutiny here and the existing tpm20 collector is the registered quality level. https://trustedcomputinggroup.org/resource/sha-1-uses-in-tpm-v1-2/ claims the SHA-1 mixing function does not materially degrade the output and I can link some papers that claim they tend to outperform PRNGs. In a tpm20, you generally have a high(er) quality random source and mixing function, but it could also be a vTPM proxying CPU rdrand or the like.

Fri, Aug 28, 1:38 PM
kevans added inline comments to D59211: tpm: Remove Giant from the TPM 1.2 driver.
Fri, Aug 28, 4:17 AM
kevans accepted D59238: tpm: Move user copies outside the TPM 1.2 lock.

The inline comment isn't really all that critical because the types of errors retuned today would be interpreted as fatal, so maybe it isn't worth it

Fri, Aug 28, 4:11 AM
kevans added a reviewer for D59239: tpm: Harvest entropy from TPM 1.2 devices: csprng.
Fri, Aug 28, 4:09 AM
kevans accepted D59237: tpm: Bound TPM 1.2 locality ownership.
Fri, Aug 28, 4:04 AM
kevans added inline comments to D59238: tpm: Move user copies outside the TPM 1.2 lock.
Fri, Aug 28, 4:03 AM
kevans accepted D59237: tpm: Bound TPM 1.2 locality ownership.
Fri, Aug 28, 3:38 AM
kevans accepted D59211: tpm: Remove Giant from the TPM 1.2 driver.
Fri, Aug 28, 3:27 AM
kevans accepted D59193: tpm: Restore TPM 1.2 TIS state after resume.
Fri, Aug 28, 3:13 AM
kevans accepted D59192: tpm: Correct the TPM 1.2 suspend transaction.
Fri, Aug 28, 3:08 AM

Wed, Aug 26

kevans updated subscribers of D59200: security/p11-kit: use base system consolidated anchor lists.

CC @des as well

Wed, Aug 26, 6:11 PM
kevans added a reviewer for D59199: snd_uaudio: drop the default monitor level to 10%: christos.
Wed, Aug 26, 2:45 PM
kevans requested review of D59199: snd_uaudio: drop the default monitor level to 10%.
Wed, Aug 26, 2:36 PM
kevans committed rGf01b594b7fa5: snd_uaudio: recognize hardware sidetone as a monitor (authored by kevans).
snd_uaudio: recognize hardware sidetone as a monitor
Wed, Aug 26, 2:32 PM
kevans closed D58779: sound: uaudio: discard hardware sidetone feature units.
Wed, Aug 26, 2:32 PM
kevans added a comment to D59186: xhci: Only reset the data toggle value when the USB stack asks for it.

CC releng because this should go into 14.5, IMO, which might mean an expedited MFC. I think this is reasonably safe.

Wed, Aug 26, 1:49 PM
kevans accepted D59186: xhci: Only reset the data toggle value when the USB stack asks for it.

This LGTM and also tests fine with my Yubikey. My test setup is naive, but just to document it:

Wed, Aug 26, 1:25 PM
kevans added a comment to D59186: xhci: Only reset the data toggle value when the USB stack asks for it.

@kevans Could you please check if there is any regression on your yubikey? Thanks!

Wed, Aug 26, 1:43 AM

Tue, Aug 25

kevans updated subscribers of D54098: kern: add KPI to derive a root from arbitrary cpuset.
Tue, Aug 25, 6:38 PM

Fri, Aug 21

kevans updated the diff for D58779: sound: uaudio: discard hardware sidetone feature units.

Tag them as monitors instead and re-word the comment slightly. The commit
message has also been updated locally.

Fri, Aug 21, 5:50 PM
kevans added a comment to D58779: sound: uaudio: discard hardware sidetone feature units.

This seems to work reasonably well and happens quickly enough that there is infact no feedback:

Fri, Aug 21, 5:43 PM
kevans added a comment to D58779: sound: uaudio: discard hardware sidetone feature units.
static u_int16_t snd_mixerdefaults[SOUND_MIXER_NRDEVICES] = {
[...]
        [SOUND_MIXER_MONITOR]   = 75,                                                                         
};

Anythng above 15 or 20% results in major feedback, and it's not clear how to best handle this. You can hint it lower, of course, but I wonder if it'd make sense to add a function to the kernel mixer interface to allow uaudio to override the default.

You could call mix_set() from uaudio once everything is set up, and set the volume like that. Should work I think.

Fri, Aug 21, 1:01 PM
kevans added a comment to D58779: sound: uaudio: discard hardware sidetone feature units.

It isn't tied to any of those now, with this patch. It probably makes sense to add a way to plumb the name out so it can be controlled via sysctl, but IGAIN and MONITOR both sounded like they're historically used for subtly different things than this.

I think it'd be better to use one of the existing OSS devices and show it under mixer(8), than implement yet another sysctl.

Fri, Aug 21, 12:53 PM
kevans added a comment to D58779: sound: uaudio: discard hardware sidetone feature units.

It isn't tied to any of those now, with this patch. It probably makes sense to add a way to plumb the name out so it can be controlled via sysctl, but IGAIN and MONITOR both sounded like they're historically used for subtly different things than this.

Fri, Aug 21, 12:16 PM
kevans added a comment to D58779: sound: uaudio: discard hardware sidetone feature units.

on this headset, the vol control does absolutely nothing while pcm controls the volume.

Which controls do you get in mixer(8)?

Fri, Aug 21, 11:40 AM

Thu, Aug 20

kevans added a comment to D58767: libc: Avoid defining memcpy() as a macro under FORTIFY_SOURCE.

It should probably be noted that this effectively orphans the corresponding __*_chk symbols in libc/secure. I don't think that's a bad thing or that we should stop exposing a default version for them, it just means that we won't emit references to them with our own implementation.

Thu, Aug 20, 8:15 PM
kevans accepted D59051: cred: Fix group_is_primary().

That's a bit embarrasing. =\ I have no idea how this one was overlooked, I did a lot of grepping around for cr_groups indexing...

Thu, Aug 20, 6:07 PM

Wed, Aug 19

kevans added a comment to D58779: sound: uaudio: discard hardware sidetone feature units.

Gentle ping

Wed, Aug 19, 1:36 PM

Tue, Aug 18

kevans added a comment to D56845: mixer: Improve error messages.

I would argue that the user might not know it. "Invalid argument" is barely descriptive IMHO. If mixer knows the problem is that the supplied device number is negative, why not tell the user the exact problem instead of trusting the user "should know" something?

The reason I'm pushing back against this is because, apart from the fact that the -d option is already documented in the man page, the logic of the option is that you supply the name of the device (e.g., pcm0) or just its unit number. The error messages you introduce are accurate in the sense that they are more fine-grained in an input sense, but the point is that the user is trying to reference a device that does not exist, and these messages in my opinion make the issue more about the fact that the numbers are negative/out of range/etc, and not about the fact that the device simply does not exist. That's why I think "Invalid argument" for example is enough, because if someone deliberately tries to use the -d option, they should know what arguments it expects also, they wouldn't use an option randomly.

Tue, Aug 18, 8:07 PM
kevans committed rGb567434a592e: stand: set st_dev/st_ino in the loader's ZFS stat for veriexec (authored by Etienne Bonnand <etienne.bonnand@defenso.fr>).
stand: set st_dev/st_ino in the loader's ZFS stat for veriexec
Tue, Aug 18, 3:47 PM

Mon, Aug 17

kevans accepted D58890: yes: Avoid static initialization.
Mon, Aug 17, 2:40 PM

Fri, Aug 14

kevans added a comment to D58840: ifnet: Restore previous size of if_afdata.

There's also a copy in if_detach_internal that should be resized, this should have tripped a _Static_assert there. (No opinion on the literal)

Fri, Aug 14, 11:27 AM

Thu, Aug 13

kevans accepted D58827: libifconfig: Fix table size.
Thu, Aug 13, 5:49 PM
kevans accepted D58826: routing: Fix table sizes.
Thu, Aug 13, 5:49 PM
kevans accepted D46313: daemon(8): Add option to write pidfile w/o supervising it.
Thu, Aug 13, 1:55 PM
kevans added inline comments to D58822: db/hash: Harden hash(3) database code.
Thu, Aug 13, 1:51 PM
kevans added inline comments to D58737: ether_gen_addr(9): fix `OUI_FREEBSD_BASE` description.
Thu, Aug 13, 12:46 AM

Wed, Aug 12

kevans added reviewers for D58779: sound: uaudio: discard hardware sidetone feature units: USB, audio.
Wed, Aug 12, 5:45 PM
kevans accepted D55686: libusb: version symbols.
Wed, Aug 12, 2:31 PM

Tue, Aug 11

kevans added a comment to D58779: sound: uaudio: discard hardware sidetone feature units.

Ah, vol is neutralized because of that mixer #36. It defaults to ctl == 0 from the struct being zero-init, so we don't create the synthetic vol parent from the pcm feature unit. I don't have enough hardware available to feel confident about poking that hornet's nest.

Tue, Aug 11, 3:42 AM
kevans retitled D58779: sound: uaudio: discard hardware sidetone feature units from sound: uaudio: recognize hardware sidetone as imix to sound: uaudio: discard hardware sidetone feature units.
Tue, Aug 11, 2:57 AM
kevans updated the summary of D58779: sound: uaudio: discard hardware sidetone feature units.
Tue, Aug 11, 2:56 AM
kevans requested review of D58779: sound: uaudio: discard hardware sidetone feature units.
Tue, Aug 11, 2:54 AM
kevans committed rG135df7785431: usb: xhci: allow up to 1s for SET_ADDRESS (authored by kevans).
usb: xhci: allow up to 1s for SET_ADDRESS
Tue, Aug 11, 1:27 AM
kevans closed D58717: usb: xhci: allow up to 1s for SET_ADDRESS.
Tue, Aug 11, 1:27 AM

Mon, Aug 10

kevans requested review of D58771: userboot: bump the interface to v6, add an accept_interpreter callback.
Mon, Aug 10, 8:54 PM
kevans added a comment to D58706: tty: do not recurse on ttydev_close().

Writing a test for this seems to be a little harder than I anticipated, but I'm also wondering now if deleting the knotes was infact the right thing to do. From revoke(2):

Mon, Aug 10, 7:13 PM
kevans added inline comments to D58737: ether_gen_addr(9): fix `OUI_FREEBSD_BASE` description.
Mon, Aug 10, 12:48 AM