Page MenuHomeFreeBSD

kevans (Kyle Evans)
User

Projects (13)

User Details

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

Recent Activity

Today

kevans added a comment to D62095: loader: allow chain in lockdown only with veriexec.
In D62095#1422861, @imp wrote:

How does one toctou in the loader?

Thu, Nov 26, 5:46 AM
kevans added a comment to D62092: loader: efi: annotate commands that are safe in lockdown.
In D62092#1422842, @imp wrote:

I'm less sure of these. The read only nature leaks a lot of data that might be useful for an attacker. I just can't articulate how.

Thu, Nov 26, 5:37 AM
kevans added inline comments to D62088: loader: lay the groundwork for denying some commands in lockdown.
Thu, Nov 26, 5:07 AM
kevans requested review of D62097: loader: start enforcing command restrictions in lockdown.
Thu, Nov 26, 4:07 AM
kevans requested review of D62096: loader: restrict env vars in lockdown.
Thu, Nov 26, 4:07 AM
kevans requested review of D62095: loader: allow chain in lockdown only with veriexec.
Thu, Nov 26, 4:07 AM
kevans requested review of D62094: loader: mark the remaining commands as lockdown-safe.
Thu, Nov 26, 4:07 AM
kevans requested review of D62093: loader: i386: annotate commands that are safe in lockdown.
Thu, Nov 26, 4:07 AM
kevans requested review of D62092: loader: efi: annotate commands that are safe in lockdown.
Thu, Nov 26, 4:07 AM
kevans requested review of D62091: loader: fdt: annotate fdt subcommands that are safe in lockdown.
Thu, Nov 26, 4:06 AM
kevans requested review of D62090: loader: veriexec: require verification of more raw file types.
Thu, Nov 26, 4:06 AM
kevans requested review of D62089: loader: common: annotate commands as lockdown-safe.
Thu, Nov 26, 4:06 AM
kevans requested review of D62088: loader: lay the groundwork for denying some commands in lockdown.
Thu, Nov 26, 4:06 AM
kevans requested review of D62086: loader: efi: check secureboot status, plumb it into kenv.
Thu, Nov 26, 4:06 AM
kevans requested review of D62085: loader: efi: add build support for signing loader.efi.
Thu, Nov 26, 4:06 AM
kevans requested review of D62084: man: add a secureboot(7) page.
Thu, Nov 26, 4:06 AM
kevans closed D61845: lualoader: don't run a failed command twice from the prompt.
Thu, Nov 26, 4:04 AM
kevans committed rGe6bc3b2da9a4: lualoader: don't run a failed command twice from the prompt.
Thu, Nov 26, 4:04 AM
kevans committed rG1436c36f2ef1: stand/zfs: leave variables that nvstore doesn't own alone.
Thu, Nov 26, 4:04 AM
kevans closed D61844: stand/zfs: leave variables that nvstore doesn't own alone.
Thu, Nov 26, 4:04 AM
kevans closed D61843: lualoader: match the .lua extension literally.
Thu, Nov 26, 4:04 AM
kevans committed rG5fb43742ad34: lualoader: match the .lua extension literally.
Thu, Nov 26, 4:03 AM
kevans closed D61841: libsecureboot: don't remember files accepted unverified.
Thu, Nov 26, 4:03 AM
kevans committed rGb1e82823480a: libsecureboot: don't remember files accepted unverified.
Thu, Nov 26, 4:03 AM
kevans committed rG096e54258d15: loader: i386: fix vectx handling in chain error paths.
Thu, Nov 26, 4:03 AM
kevans closed D61840: loader: i386: fix vectx handling in chain error paths.
Thu, Nov 26, 4:03 AM
kevans closed D61846: loader: efi: fix error check on fstat() in chain.
Thu, Nov 26, 4:03 AM
kevans committed rGd866370b80bc: loader: efi: fix error check on fstat() in chain.
Thu, Nov 26, 4:03 AM
kevans closed D61839: loader: fix double free of vectx on verification failure.
Thu, Nov 26, 4:03 AM
kevans committed rGf9d0f90a06e2: loader: fix double free of vectx on verification failure.
Thu, Nov 26, 4:02 AM
kevans committed rGa35c681995e4: zfsbootcfg: fix some error handling bugs in setting/deleting keys.
Thu, Nov 26, 3:58 AM
kevans closed D61849: zfsbootcfg: fix some error handling bugs in setting/deleting keys.
Thu, Nov 26, 3:58 AM
kevans added a comment to D62081: env: Add GNU-compatible signal options.

This series is generally related to D62062, but I dont' feel that strongly about it. I do think it'd be an improvement if service(8) reset signal masks to match the startup environment better, but we've made it this far without it causing any problems? The one problem it caused could be debated to be strictly a program bug, but it's also a kind of understandable one if you're almost always started at boot time.

Thu, Nov 26, 3:52 AM
kevans requested review of D62083: service: reset signals when invoking the rc script.
Thu, Nov 26, 3:48 AM
kevans requested review of D62082: sh: Unblock SIGCHLD at startup.
Thu, Nov 26, 3:48 AM
kevans requested review of D62081: env: Add GNU-compatible signal options.
Thu, Nov 26, 3:48 AM
kevans accepted D60057: localedef: off by one bug drops the highest code point from every collation table.
Thu, Nov 26, 12:43 AM

Yesterday

kevans requested review of D62062: auditd: don't assume the signal mask on startup.
Wed, Nov 25, 5:53 PM
kevans added inline comments to D61849: zfsbootcfg: fix some error handling bugs in setting/deleting keys.
Wed, Nov 25, 5:02 PM

Tue, Nov 24

kevans updated the diff for D61844: stand/zfs: leave variables that nvstore doesn't own alone.

Don't override an ENOTSUP

Tue, Nov 24, 4:46 PM
kevans added a comment to D61845: lualoader: don't run a failed command twice from the prompt.
In D61845#1420827, @imp wrote:

What did you do that you found this?

Tue, Nov 24, 4:43 PM
kevans added a comment to D61844: stand/zfs: leave variables that nvstore doesn't own alone.

Gentle ping; D61843 and D61845 are both basically trivial, but this one could use another set of eyes.

Tue, Nov 24, 2:40 PM
kevans abandoned D61842: libsa: let the restricted variable allow-list match bare names.

Abandoned in favor of rG97fd69b0b88405e08c0b23d0a9a3a64e5b47fc84

Tue, Nov 24, 2:39 PM

Mon, Nov 23

kevans added a comment to D61898: contrib/atf: fix atf_tc_require_kmod.

I'm a little surprised that the answer isn't reverting f992c0819019c and doing the appropriate Q/A to make sure we're not going to find more deficiencies after. Are we certain this is the only fallout?

Mon, Nov 23, 2:24 PM
kevans added a comment to D61945: bnxt: reset VLAN filter IDs in bnxt_clear_ids().
Fixes: 91fcacc35597 ("if_bnxt: Add support for VLAN on Thor")
MFC after: 2 weeks
+Sponsored by:	E-CARD LTD.
Sponsored by: Klara, Inc.
Mon, Nov 23, 12:42 PM
kevans added inline comments to D61849: zfsbootcfg: fix some error handling bugs in setting/deleting keys.
Mon, Nov 23, 12:39 PM

Sun, Nov 22

kevans added a comment to D61841: libsecureboot: don't remember files accepted unverified.
In D61841#1417504, @sjg wrote:
In D61841#1417353, @sjg wrote:

Unless you are doing something wrong .kos are always VE_MUST.
The only files that get less are .conf and others allowed by severity_guess()

The theory is that you get something to fopen() it first, which comes in at VE_GUESS that severity_guess remaps to VE_WANT (.ko should perhaps be in the VE_MUST list?). The default accept_no_fp considers it OK if it's omitted from the manifest, then we can happily load it at VE_MUST based on the cached result from fopen.

That said, there are very few files the loader should ever look at more than once, so the overhead of this change should be very low...

My memory may be faulty, but a kernel module should never result in a call to severity_guess() at least that was the intent.

Sun, Nov 22, 6:46 AM
kevans accepted D61856: libsa add boot_serial to is_restricted_var allow list.

I am more than happy to drop what I did- thanks!

Sun, Nov 22, 6:32 AM

Sat, Nov 21

kevans added a comment to D61842: libsa: let the restricted variable allow-list match bare names.
In D61842#1417428, @sjg wrote:

Actually I've a patch to this area - removing the = from entries that might come via boot_setenv()
It has the advantage? of controlling what you accept from boot_setenv() from an unverifyed conf file or loader prompt.
Its not a big deal either way unless a full variable name to be allowed also happens to be a prefix of something which should not be,
but AFAIK that's a merely theoretical distinction.

I've you like, I'll upload my diff and you can decide?

Sat, Nov 21, 3:18 AM
kevans added a comment to D61841: libsecureboot: don't remember files accepted unverified.
In D61841#1417353, @sjg wrote:

Unless you are doing something wrong .kos are always VE_MUST.
The only files that get less are .conf and others allowed by severity_guess()

Sat, Nov 21, 2:59 AM

Fri, Nov 20

kevans requested review of D61849: zfsbootcfg: fix some error handling bugs in setting/deleting keys.
Fri, Nov 20, 9:25 PM
kevans requested review of D61847: packages: update the efi-tools description.
Fri, Nov 20, 9:07 PM
kevans committed rG84090d7b5648: build: fix `delete-old` removal of efisign bits.
Fri, Nov 20, 9:01 PM
kevans closed D61834: zfsbootcfg.8: list each form in the synopsis and document -d.
Fri, Nov 20, 8:47 PM
kevans committed rG9f00a36010b0: zfsbootcfg.8: list each form in the synopsis and document -d.
Fri, Nov 20, 8:47 PM
kevans closed D61833: zfsbootcfg: don't crash on bad or incomplete options.
Fri, Nov 20, 8:47 PM
kevans committed rG73911716076d: zfsbootcfg: don't crash on bad or incomplete options.
Fri, Nov 20, 8:47 PM
kevans updated the diff for D61844: stand/zfs: leave variables that nvstore doesn't own alone.

Fix verbiage in the notcice at the top

Fri, Nov 20, 8:44 PM
kevans committed rGf3c80fc89517: efisign: add to the efi-tools package.
Fri, Nov 20, 8:27 PM
kevans committed rG537dca4c0bc3: uefisign: rename to efisign.
Fri, Nov 20, 8:27 PM
kevans closed D58187: uefisign: rename to efisign.
Fri, Nov 20, 8:27 PM
kevans closed D58186: efisign: add to the efi-tools package.
Fri, Nov 20, 8:27 PM
kevans updated the diff for D61833: zfsbootcfg: don't crash on bad or incomplete options.

Clean up some style nits whle we're here, some pre-existing and some freshly
added.

Fri, Nov 20, 8:04 PM
kevans requested review of D61846: loader: efi: fix error check on fstat() in chain.
Fri, Nov 20, 7:44 PM
kevans requested review of D61845: lualoader: don't run a failed command twice from the prompt.
Fri, Nov 20, 7:43 PM
kevans requested review of D61844: stand/zfs: leave variables that nvstore doesn't own alone.
Fri, Nov 20, 7:43 PM
kevans requested review of D61843: lualoader: match the .lua extension literally.
Fri, Nov 20, 7:43 PM
kevans requested review of D61842: libsa: let the restricted variable allow-list match bare names.
Fri, Nov 20, 7:43 PM
kevans requested review of D61841: libsecureboot: don't remember files accepted unverified.
Fri, Nov 20, 7:43 PM
kevans requested review of D61840: loader: i386: fix vectx handling in chain error paths.
Fri, Nov 20, 7:43 PM
kevans requested review of D61839: loader: fix double free of vectx on verification failure.
Fri, Nov 20, 7:43 PM
kevans added a reviewer for D61834: zfsbootcfg.8: list each form in the synopsis and document -d: manpages.
Fri, Nov 20, 6:53 PM
kevans requested review of D61834: zfsbootcfg.8: list each form in the synopsis and document -d.
Fri, Nov 20, 6:51 PM
kevans requested review of D61833: zfsbootcfg: don't crash on bad or incomplete options.
Fri, Nov 20, 6:51 PM
kevans requested review of D61785: luaunit TAP test support.
Fri, Nov 20, 3:05 AM
kevans requested review of D61784: flua: import luaunit.
Fri, Nov 20, 3:05 AM

Wed, Nov 18

kevans committed rG108240e0baf5: libc: regen exterr_cat_filenames.h.
Wed, Nov 18, 3:52 AM
kevans committed rGeb289bd9517b: vn_fallocate/vn_deallocate: drop vnode addr from exterrors.
Wed, Nov 18, 3:52 AM

Tue, Nov 17

kevans committed rG4a7bf62ec173: tmpfs: fix append-only file handling for writes and hole-punching.
Tue, Nov 17, 9:11 PM
kevans committed rG41e054033ed9: tmpfs: fix a hang reachable through hole-punching.
Tue, Nov 17, 9:11 PM
kevans committed rG95c7b9eaa9ec: vfs: fail VOP_DEALLOCATE passes that make no progress.
Tue, Nov 17, 9:11 PM
kevans committed rG8bee7ea63a6a: vfs: fail VOP_ALLOCATE passes that make no progress.
Tue, Nov 17, 9:11 PM
kevans closed D61496: vfs: fail VOP_DEALLOCATE passes that make no progress.
Tue, Nov 17, 9:11 PM
kevans closed D61490: tmpfs: fix a hang reachable through hole-punching.
Tue, Nov 17, 9:11 PM
kevans closed D61497: vfs: fail VOP_ALLOCATE passes that make no progress.
Tue, Nov 17, 9:11 PM
kevans closed D61491: tmpfs: fix append-only file handling for writes and hole-punching.
Tue, Nov 17, 9:11 PM

Mon, Nov 16

kevans added a comment to D61594: ether_gen_addr(9): widen generated-OUI pool from 16 to 20 bits.

Are you only worried about the collisions inside a specific jail host, or does this include all the other freebsd machines an an L2 domain that may be bridging jails with virtual interfaces?

As far as I understand the implementation the issue is limited to the (jail) host only because the host uuid is taken into account. I would expect that there no two nodes on the network with the same host uuid.

Ok. At this point I /kind/ of want to just figure out what an ethernet address registry on a host would look like, because "hoping" that random address selection would work when there isn't necessarily a way to re-roll the die when a collision is detected doesn't sound like a sustainable option to me.
(I'm not saying "no" to increasing the bit range - kevans already expressed his concerns there! - I just wonder if we should try tackling the larger problem.)

Mon, Nov 16, 12:51 PM
kevans accepted D61596: mac: Fix a couple of bugs in prison label handling.

Whoops, thanks!

Mon, Nov 16, 12:20 PM

Sun, Nov 15

kevans added inline comments to D61496: vfs: fail VOP_DEALLOCATE passes that make no progress.
Sun, Nov 15, 3:00 PM
kevans updated the diff for D61497: vfs: fail VOP_ALLOCATE passes that make no progress.

Switch to EXTERR, slightly wordsmith the commit message to note that we're
dropping the assertion.

Sun, Nov 15, 2:58 PM
kevans updated the diff for D61496: vfs: fail VOP_DEALLOCATE passes that make no progress.

Remove assertion, add exterr. exterr_cat_filenames.h is missing
EXTERR_CAT_GEOMZONED, so I'll run the script once before this to catch it up.

Sun, Nov 15, 2:56 PM
kevans added a comment to D61594: ether_gen_addr(9): widen generated-OUI pool from 16 to 20 bits.
MFC after: 2 weeks
MFC to: stable/15
Sun, Nov 15, 2:26 PM

Sat, Nov 14

kevans accepted D61528: MFC: Fix direct reads of blocks pending free.
Sat, Nov 14, 3:24 AM
kevans accepted D61527: MFC: dbuf: restore BP_IS_HOLE() recheck after dnode_block_freed().

Ditto the note about "MFC:" in the subject line

Sat, Nov 14, 3:24 AM
kevans accepted D61526: MFC: Fix double free when cloning a block with a pending free.

IMO you should drop the "MFC:" in the subject line

Sat, Nov 14, 3:23 AM

Fri, Nov 13

kevans requested review of D61497: vfs: fail VOP_ALLOCATE passes that make no progress.
Fri, Nov 13, 4:20 AM
kevans requested review of D61496: vfs: fail VOP_DEALLOCATE passes that make no progress.
Fri, Nov 13, 4:20 AM

Thu, Nov 12

kevans added inline comments to D61491: tmpfs: fix append-only file handling for writes and hole-punching.
Thu, Nov 12, 11:12 PM
kevans added inline comments to D61491: tmpfs: fix append-only file handling for writes and hole-punching.
Thu, Nov 12, 11:01 PM
kevans requested review of D61491: tmpfs: fix append-only file handling for writes and hole-punching.
Thu, Nov 12, 9:51 PM