Page MenuHomeFreeBSD
Feed Advanced Search

May 21 2019

delphij accepted D20344: Add deprecation warnings for weaker algorithms to geli(4)..
May 21 2019, 10:49 PM
delphij accepted D20318: random(4): deduplicate explicit_bzero() in harvest.

Looks good to me in principal.

May 21 2019, 2:16 AM

May 19 2019

delphij committed rS347977: MFC r347488,347606: Update leap-seconds to leap-seconds.3676924800..
MFC r347488,347606: Update leap-seconds to leap-seconds.3676924800.
May 19 2019, 6:31 PM
delphij committed rS347965: MFC r347488,347606: Update leap-seconds to leap-seconds.3676924800..
MFC r347488,347606: Update leap-seconds to leap-seconds.3676924800.
May 19 2019, 4:56 AM

May 16 2019

delphij added inline comments to D20193: Relocate crc32 functions from libkern.h to gsb_crc32.h/c.
May 16 2019, 4:55 PM
delphij committed rP501771: Update to 0.5.2..
Update to 0.5.2.
May 16 2019, 5:50 AM

May 15 2019

delphij committed rS347606: Replace the leap-seconds file in r347488 from USNO with a.
Replace the leap-seconds file in r347488 from USNO with a
May 15 2019, 3:39 AM

May 14 2019

delphij accepted D20222: Drop z_stream zbuf.state->dummy from SDT probe..

LGTM.

May 14 2019, 6:07 PM
delphij added reviewers for D20222: Drop z_stream zbuf.state->dummy from SDT probe.: markj, bz.

+markj and bz@ for the DTrace probe.

May 14 2019, 5:58 PM

May 13 2019

delphij accepted D20248: Delete kgzip and kgzldr..
May 13 2019, 4:13 PM
delphij accepted D20239: Fortuna: Fix false negatives in is_random_seeded().
May 13 2019, 4:11 PM
delphij accepted D20222: Drop z_stream zbuf.state->dummy from SDT probe..

I think this can go independently with other changes: is there some reason that you would like to wait instead of proceeding?

May 13 2019, 3:55 PM

May 12 2019

delphij accepted D20242: Depessimize arc4rand.

Looks reasonable to me.

May 12 2019, 4:09 AM

May 11 2019

delphij committed rS347488: Update leap-seconds to leap-seconds.3757622400..
Update leap-seconds to leap-seconds.3757622400.
May 11 2019, 2:22 PM

May 10 2019

delphij accepted D20218: Do not return NULL from the Intel hw PRNG ifunc resolver..
May 10 2019, 12:15 AM

May 9 2019

delphij accepted D20190: Delete #include <sys/inflate.h> from sys/mips..

Warner -- can you commit this change?

May 9 2019, 4:47 PM

May 8 2019

delphij committed rS347244: Move contrib/zlib to sys/contrib/zlib so that we can use it in kernel..
Move contrib/zlib to sys/contrib/zlib so that we can use it in kernel.
May 8 2019, 4:50 PM
delphij closed D20191: Relocate contrib/zlib to sys/contrib/zlib so that we can use this in kernel..

Committed as rS347244.

May 8 2019, 4:45 PM
delphij accepted D20195: random: Don't complain noisily when an entropy source is slow.

I think the change as-is is fine.

May 8 2019, 8:58 AM
delphij accepted D20191: Relocate contrib/zlib to sys/contrib/zlib so that we can use this in kernel..

I'll commit this after a universe build.

May 8 2019, 8:27 AM
delphij accepted D20192: random: x86 driver: Prefer RDSEED over RDRAND when available.

LGTM in principle

May 8 2019, 12:35 AM

May 6 2019

delphij accepted D20163: Remove IPSEC from GENERIC due to performance issues.

No objection from me.

May 6 2019, 5:57 PM

Apr 21 2019

delphij added inline comments to D19928: random(4): More thoroughly attempt to ensure seeding during priming.
Apr 21 2019, 7:08 AM

Apr 18 2019

delphij accepted D19944: random(4): Restore availability tradeoff prior to r346250.
Apr 18 2019, 7:15 PM
delphij added inline comments to D19944: random(4): Restore availability tradeoff prior to r346250.
Apr 18 2019, 5:22 PM
delphij accepted D19944: random(4): Restore availability tradeoff prior to r346250.

(I'm not against with the overall plan, but see my comments about use of hash function inline).

Apr 18 2019, 5:04 PM

Apr 17 2019

delphij added inline comments to D19928: random(4): More thoroughly attempt to ensure seeding during priming.
Apr 17 2019, 11:29 PM
delphij added inline comments to D19944: random(4): Restore availability tradeoff prior to r346250.
Apr 17 2019, 11:19 PM

Apr 16 2019

delphij requested changes to D19928: random(4): More thoroughly attempt to ensure seeding during priming.
Apr 16 2019, 8:37 PM
delphij accepted D19927: stack_protector: Add tunable to bypass random cookies.

For a stopgap fix I think it's fine. Note that it's probably better to derive __stack_chk_guard from SHA512 of something that we change often (e.g. __FreeBSD_version) concatenate with something that potentially varies, like getcyclecount(), for the fallback guard data: these are not secure random numbers, but would make it harder for an attacker to develop more generic smashing attack.

Apr 16 2019, 6:34 PM
delphij accepted D19926: random(4): Add is_random_seeded(9) KPI.
Apr 16 2019, 4:36 PM

Apr 15 2019

delphij added a comment to D19918: sys: Remove DEV_RANDOM device option.

I'm in favor of this change; please consider this as an explicit "accepted" if nobody objects in a week.

Apr 15 2019, 10:16 PM
delphij accepted D19744: random(4): Block read_random(9) on initial seeding.

The code changes looks good to me -- and thanks for working on this!

Apr 15 2019, 7:09 AM
delphij committed rS346220: Don't cast result from malloc()..
Don't cast result from malloc().
Apr 15 2019, 6:33 AM

Apr 12 2019

delphij accepted D19713: tpm: Prevent session hijack..
In D19713#427179, @mindal_semihalf.com wrote:

I don't really know the internals of this driver (ideally this should be done by someone who is familiar with it), but are we sure that the write method is always called before a read? Also, if the discard callout is fired, should the owner tid be reset (because the contents is now discarded)?

If the write method hasn't been called before a read then there will be nothing in the buffer and the read will fail - as pending_data_length equals 0.
Essentially the way it works is that write is used to do the entire communication with TPM and read just copies the response to userspace.
As for the discard callout, since it also clears the buffer read would fail either way and tid is not checked in write, as it is used only to restrict access to buffer contents which is empty when a write is performed.

Apr 12 2019, 3:49 PM
delphij committed rS346147: MFC r345647:.
MFC r345647:
Apr 12 2019, 2:27 AM
delphij committed rS346146: MFC r345647:.
MFC r345647:
Apr 12 2019, 2:24 AM

Apr 11 2019

delphij added a comment to D19713: tpm: Prevent session hijack..

I don't really know the internals of this driver (ideally this should be done by someone who is familiar with it), but are we sure that the write method is always called before a read? Also, if the discard callout is fired, should the owner tid be reset (because the contents is now discarded)?

Apr 11 2019, 7:03 PM
delphij added inline comments to D19744: random(4): Block read_random(9) on initial seeding.
Apr 11 2019, 8:02 AM

Apr 6 2019

delphij requested changes to D19744: random(4): Block read_random(9) on initial seeding.

Noticed a few minor issues, please see comment inline. Overall I think the change is good.

Apr 6 2019, 7:36 PM
delphij committed rS345976: Write string constant differently to improve readability..
Write string constant differently to improve readability.
Apr 6 2019, 3:42 AM
delphij closed D19829: Write string constant differently to improve readability..
Apr 6 2019, 3:42 AM

Apr 5 2019

delphij created D19829: Write string constant differently to improve readability..
Apr 5 2019, 6:45 AM
delphij committed rS345901: Fix build..
Fix build.
Apr 5 2019, 2:37 AM
delphij committed rS345900: Implement checking of `.' and `..' entries of subdirectory..
Implement checking of `.' and `..' entries of subdirectory.
Apr 5 2019, 2:21 AM
delphij closed D19824: Implement checking of `.' and `..' entries of subdirectory..
Apr 5 2019, 2:21 AM

Apr 4 2019

delphij committed rS345897: Restore lfcl when LOSTDIR's chain was corrupted and overwritten.
Restore lfcl when LOSTDIR's chain was corrupted and overwritten
Apr 4 2019, 11:34 PM
delphij created D19824: Implement checking of `.' and `..' entries of subdirectory..
Apr 4 2019, 11:31 PM
delphij committed rS345894: Restore the ability of checking and fixing next free.
Restore the ability of checking and fixing next free
Apr 4 2019, 11:16 PM

Apr 3 2019

delphij accepted D19760: Replace read_random(9) with more appropriate arc4rand(9) KPIs.
Apr 3 2019, 7:46 AM
delphij accepted D19712: tpm: Add a cv_wait to the harvesting function..
Apr 3 2019, 7:40 AM
delphij committed rS345839: Assert that q can't be NULL. 'empty' is always non-NULL when DIREMPTY.
Assert that q can't be NULL. 'empty' is always non-NULL when DIREMPTY
Apr 3 2019, 7:09 AM

Mar 31 2019

delphij accepted D19742: random(4): Attempt to persist entropy promptly.

LGTM, thanks!

Mar 31 2019, 4:44 AM

Mar 29 2019

delphij requested changes to D19742: random(4): Attempt to persist entropy promptly.

The shutdown script change LGTM, but I insist that libexec/save-entropy/save-entropy.sh line 83 should be removed as explained in previous comment.

Mar 29 2019, 10:50 PM
delphij added a comment to D19742: random(4): Attempt to persist entropy promptly.
In D19742#423456, @cem wrote:

I think a 'fsync saved-entropy.1 .' should be sufficient.

We don't really care if the renames were not persistent until the new entropy is saved,

Sure, if that is the power-fail/crash behavior of un-fsynced renames. But I don't believe that model is accurate. There is no requirement that the underlying filesystem order the dirent writes in a way that matches this observable behavior; the only requirement is that it is persisted by fsync.

FS&K §9.6.2 is clear, "All updates to the seed file must be atomic" and goes into more detail in §9.6.5.

Mar 29 2019, 10:38 PM
delphij added a reviewer for D19744: random(4): Block read_random(9) on initial seeding: O3: Kernel Random Numbers Generator.

I think you should separate most of the read_random() -> arc4random_buf() change out because in most cases the code should use the latter exclusively, especially places where the return value of read_random() were not tested because it would be a strict improvement to the status quo.

Mar 29 2019, 7:47 AM
delphij added a comment to D19742: random(4): Attempt to persist entropy promptly.

I think a 'fsync saved-entropy.1 .' should be sufficient.

Mar 29 2019, 7:32 AM

Mar 28 2019

delphij committed rS345647: Distinguish between lseek errors and read errores..
Distinguish between lseek errors and read errores.
Mar 28 2019, 6:20 PM
delphij added a comment to D19706: Allow Kernel to link in both legacy libkern/zlib and new sys/contrib/zlib..

I need to understand better kernel malloc/free as they take 1 extra argument compare to stdlib.h.

Mar 28 2019, 5:43 AM

Mar 27 2019

delphij updated subscribers of D19706: Allow Kernel to link in both legacy libkern/zlib and new sys/contrib/zlib..

Hi, first of all, kudos for taking on this! The change looks mostly Ok to me except a few minor issues commented inline.

Mar 27 2019, 6:23 PM

Mar 23 2019

delphij added a comment to D19686: Update message displaying during `zpool upgrade`.

Why is the partition index changed from 1 to 2? (The change looks otherwise fine to me).

Mar 23 2019, 7:04 AM

Mar 22 2019

delphij accepted D19682: Make it possible to update TMPFS mount point from read-only to read-write and vice versa..
Mar 22 2019, 8:03 PM
delphij accepted D19620: Add an option to use TPM as entropy source.

Thanks! LGTM (note that discard_buffer_callout should probably also be drained, but it's unrelated to this change).

Mar 22 2019, 4:48 PM

Mar 21 2019

delphij requested changes to D19620: Add an option to use TPM as entropy source.

I have noticed a few minor issues and have commented inline.

Mar 21 2019, 7:31 PM

Mar 7 2019

delphij accepted D19475: Fortuna: Add Chacha20 as an alternative stream cipher.

(Note that randomdev_getkey() have similar issue and should be fixed too, feel free to fix it prior to commit)

Mar 7 2019, 11:20 PM
delphij added a comment to D19475: Fortuna: Add Chacha20 as an alternative stream cipher.

Looks good to me in principle and I like the fact that fortuna.c no longer cares about the keystream context internals.

Mar 7 2019, 9:31 PM

Mar 1 2019

delphij accepted D19409: fortuna: Deduplicate kernel vs user includes.
Mar 1 2019, 10:09 PM
delphij accepted D19411: Fortuna: push CTR-mode loop down into randomdev hash.h interface.
Mar 1 2019, 7:03 PM

Feb 25 2019

delphij abandoned D18920: Allow mmap operations for CAPH_READ and CAPH_WRITE..

Abandoned in favor of D19216.

Feb 25 2019, 3:07 AM
delphij added a comment to D19216: Fix the case where stdin is closed, second attempt..

Sorry, this looks good to me & thanks!

Feb 25 2019, 3:07 AM
delphij accepted D19216: Fix the case where stdin is closed, second attempt..
Feb 25 2019, 3:07 AM

Feb 19 2019

delphij accepted D18944: freebsd-update: Clarify unclear help text.
Feb 19 2019, 5:30 PM

Feb 13 2019

delphij added a comment to D19184: Set process title during zfs send.

Ah I didn't realized that we haven't upstreamed it & thanks for forward-porting it for so many years...

Feb 13 2019, 9:56 PM

Feb 7 2019

delphij accepted D18785: Fix quotas for UFS after r339008.
Feb 7 2019, 9:37 PM

Feb 5 2019

delphij committed rS343765: MFC r342813: Remove unneeded headers..
MFC r342813: Remove unneeded headers.
Feb 5 2019, 8:05 AM

Jan 29 2019

delphij committed rS343545: MFC r343038: Use TD_IS_IDLETHREAD instead of unrolled version..
MFC r343038: Use TD_IS_IDLETHREAD instead of unrolled version.
Jan 29 2019, 7:48 AM
delphij committed rS343544: MFC r343038: Use TD_IS_IDLETHREAD instead of unrolled version..
MFC r343038: Use TD_IS_IDLETHREAD instead of unrolled version.
Jan 29 2019, 7:48 AM

Jan 28 2019

delphij added a comment to D18920: Allow mmap operations for CAPH_READ and CAPH_WRITE..

Is this some common pattern?

Jan 28 2019, 1:32 AM

Jan 27 2019

delphij added a reviewer for D18920: Allow mmap operations for CAPH_READ and CAPH_WRITE.: capsicum.
Jan 27 2019, 7:26 AM

Jan 24 2019

delphij accepted D18913: freebsd-update: open $PAGER only if necessary.

One last change request -- could you please use ${PAGER} instead of $PAGER while there? The change looks otherwise fine to me.

Jan 24 2019, 5:51 AM
delphij accepted D18916: Clarify unsupported architecture upgrade message.

LGTM & Thanks for your work!

Jan 24 2019, 5:50 AM

Jan 22 2019

delphij added a comment to D18859: Print fatal errors/warnings to STDERR and add -q (quiet) option.

Note that most IDS_run output shouldn't be considered as "informational", especially checksum differences: these should not be suppressed because they suggest there are real issues.

Where are the checksum diffs? I don't think they are currently suppressed but maybe I missed it.

Jan 22 2019, 5:29 AM
delphij requested changes to D18913: freebsd-update: open $PAGER only if necessary.

I like this change in principle, but I think you could simplify the code a little bit (see my comments in line).

Jan 22 2019, 5:26 AM
delphij requested changes to D18916: Clarify unsupported architecture upgrade message.

I really don't like this approach because it would bar us from retrofit publishing freebsd-update bits (and would create problems for users who have their own freebsd-update instance running). I think it's more appropriate to make fetch_key to provide more meaningful output instead of "Fetching public key from ... failed".

Jan 22 2019, 5:10 AM
delphij created D18920: Allow mmap operations for CAPH_READ and CAPH_WRITE..
Jan 22 2019, 4:49 AM
delphij committed rS343300: MFC r342856: Added support for the SIOCGI2C ioctl..
MFC r342856: Added support for the SIOCGI2C ioctl.
Jan 22 2019, 4:21 AM
delphij committed rS343299: MFC r342856: Added support for the SIOCGI2C ioctl..
MFC r342856: Added support for the SIOCGI2C ioctl.
Jan 22 2019, 4:20 AM

Jan 21 2019

delphij committed rS343251: MFC r342845,342846: Port NetBSD improvements:.
MFC r342845,342846: Port NetBSD improvements:
Jan 21 2019, 6:52 AM
delphij committed rS343250: MFC r342845,342846: Port NetBSD improvements:.
MFC r342845,342846: Port NetBSD improvements:
Jan 21 2019, 6:14 AM

Jan 18 2019

delphij accepted D18881: Allow upgrade from -BETA and -RC releases.

LGTM in principal (except the style issue raised by @emaste which is minor and I think he would take care of it when committing).

Jan 18 2019, 6:08 PM
delphij added inline comments to D18825: Verify the system can perform install/rollback.
Jan 18 2019, 5:58 PM
delphij added a comment to D18859: Print fatal errors/warnings to STDERR and add -q (quiet) option.

It may be because it is hard to follow but warnings/errors are redirected to the stderr

Jan 18 2019, 5:51 PM
delphij accepted D18849: Use BASEDIR when checking for src component.

LGTM, thanks!

Jan 18 2019, 5:28 PM
delphij requested changes to D18849: Use BASEDIR when checking for src component.
Jan 18 2019, 1:05 AM
delphij added inline comments to D18825: Verify the system can perform install/rollback.
Jan 18 2019, 1:04 AM
delphij requested changes to D18825: Verify the system can perform install/rollback.

I think this is not complete. For example, /usr may be a symlink to somewhere else, and freebsd-update needs to have write access there (this applies to /boot, /var, etc. too).

Jan 18 2019, 12:59 AM
delphij requested changes to D18859: Print fatal errors/warnings to STDERR and add -q (quiet) option.

I like the idea in general, but I think there were some implementation issues:

Jan 18 2019, 12:41 AM

Jan 15 2019

delphij committed rS343040: MFC r342640: Ensure buffer is nul-terminated..
MFC r342640: Ensure buffer is nul-terminated.
Jan 15 2019, 6:52 AM
delphij committed rS343039: MFC r342640: Ensure buffer is nul-terminated..
MFC r342640: Ensure buffer is nul-terminated.
Jan 15 2019, 6:51 AM
delphij committed rS343038: Use TD_IS_IDLETHREAD instead of unrolled version..
Use TD_IS_IDLETHREAD instead of unrolled version.
Jan 15 2019, 6:44 AM