Page MenuHomeFreeBSD
Feed Advanced Search

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

Jan 13 2019

delphij committed rS342997: MFC r342614, r342633.
MFC r342614, r342633
Jan 13 2019, 8:50 AM
delphij committed rS342996: MFC r342614, r342633.
MFC r342614, r342633
Jan 13 2019, 8:46 AM

Jan 9 2019

delphij committed rP489757: MFH: r489756.
MFH: r489756
Jan 9 2019, 8:14 AM
delphij committed rP489756: Update to 2018-04-22b..
Update to 2018-04-22b.
Jan 9 2019, 8:13 AM
delphij added a comment to D18786: Disable FTS3, FTS4, and RTREE in bundled and private sqlite3.

LGTM now, thanks!

Jan 9 2019, 6:26 AM
delphij accepted D18786: Disable FTS3, FTS4, and RTREE in bundled and private sqlite3.
Jan 9 2019, 6:25 AM
delphij committed rS342876: Enable use of Capsicum sandbox when there is only one.
Enable use of Capsicum sandbox when there is only one
Jan 9 2019, 5:31 AM

Jan 8 2019

delphij requested changes to D18786: Disable FTS3, FTS4, and RTREE in bundled and private sqlite3.

I'd like to request that the change be either extended to disable RTREE (my preference; we don't use rtree in base either), or reduced to build with FTS4 (to match upstream; arguably FTS5 should be also enabled if that's the approach taken) for consistency.

Jan 8 2019, 9:42 PM
delphij committed rS342856: Added support for the SIOCGI2C ioctl..
Added support for the SIOCGI2C ioctl.
Jan 8 2019, 5:41 AM

Jan 7 2019

delphij committed rS342846: Correct documentation year..
Correct documentation year.
Jan 7 2019, 8:29 AM
delphij committed rS342845: Port NetBSD improvements:.
Port NetBSD improvements:
Jan 7 2019, 8:27 AM
delphij committed rS342844: MFC r340359:.
MFC r340359:
Jan 7 2019, 7:12 AM

Jan 6 2019

delphij committed rS342814: Remove unneeded assert.h (there is no assertion in this file)..
Remove unneeded assert.h (there is no assertion in this file).
Jan 6 2019, 8:42 PM
delphij committed rS342813: Remove unneeded headers..
Remove unneeded headers.
Jan 6 2019, 8:39 PM
delphij committed rP489523: Update to 1.8..
Update to 1.8.
Jan 6 2019, 7:28 PM

Jan 4 2019

delphij added a comment to D18536: Add bounds checking to the tws(4) passthrough ioctl handler..

LGTM (the unlocked use of sc->ioctl_data_mem looks worrisome to me, but the proposed change won't worsen the situation). Do you have a chance to test this on real hardware? (@jpaetzel do you know someone who may be able to help with that?).

My last 9750 died a while ago. I'll ping Austin @ ix to see if he can rig up a system for us to test with.

Ping?

I haven't been deemed worthy of a reply, so I guess that's a no.

Jan 4 2019, 6:57 PM

Jan 1 2019

delphij committed rS342665: MFC r342661: Happy New Year 2019!.
MFC r342661: Happy New Year 2019!
Jan 1 2019, 12:48 AM
delphij committed rS342664: MFC r333391 (imp): Remove 'All Rights Reserved' from the collection copyright.
MFC r333391 (imp): Remove 'All Rights Reserved' from the collection copyright
Jan 1 2019, 12:43 AM
delphij committed rS342663: MFC r342661: Happy New Year 2019!.
MFC r342661: Happy New Year 2019!
Jan 1 2019, 12:35 AM
delphij committed rS342661: Happy New Year 2019!.
Happy New Year 2019!
Jan 1 2019, 12:25 AM

Dec 31 2018

delphij committed rP488846: Update to 1.10..
Update to 1.10.
Dec 31 2018, 11:13 PM
delphij committed rP488845: Update to 1.7..
Update to 1.7.
Dec 31 2018, 11:09 PM
delphij committed rP488844: Update to 1.44..
Update to 1.44.
Dec 31 2018, 11:03 PM
delphij committed rS342640: Ensure buffer is nul-terminated..
Ensure buffer is nul-terminated.
Dec 31 2018, 3:08 AM

Dec 30 2018

delphij committed rS342633: Fix various issues with Chinese locales:.
Fix various issues with Chinese locales:
Dec 30 2018, 11:04 PM
delphij closed D18689: Fix various issues with Chinese locales..
Dec 30 2018, 11:04 PM
delphij added a comment to D18689: Fix various issues with Chinese locales..

I would think this would affect any program that calls strftime(3) with abbreviated weekday name (%a),
for example ps(1):

https://svnweb.freebsd.org/base/head/bin/ps/print.c?revision=335023&view=markup#l411

410             } else if (now - k->ki_p->ki_start.tv_sec < 7 * 86400) {
411                             (void)strftime(buf, buflen, "%a%H  ", tp);

then it would just print out a here instead of 周五:

% env LANG=zh_CN.UTF-8 ps auwwx | grep '[s]bin/sshd'
root 26612  0.0  0.0 20784  100  -  IsJ  五12    0:00.02 /usr/sbin/sshd

% env LANG=en_US.UTF-8 ps auwwx | grep '[s]bin/sshd'
root 26612  0.0  0.0 20784  100  -  IsJ  Fri12   0:00.02 /usr/sbin/sshd
Dec 30 2018, 10:37 PM
delphij added a reviewer for D18689: Fix various issues with Chinese locales.: loader.
Dec 30 2018, 8:47 AM
delphij updated the summary of D18689: Fix various issues with Chinese locales..
Dec 30 2018, 8:46 AM
delphij updated the diff for D18689: Fix various issues with Chinese locales..

Rebase after r342614.

Dec 30 2018, 8:39 AM
delphij committed rS342614: Properly set svn:mimetype for zh_CN.UTF-8.src..
Properly set svn:mimetype for zh_CN.UTF-8.src.
Dec 30 2018, 8:30 AM
delphij updated the diff for D18689: Fix various issues with Chinese locales..

Properly set MIME type for zh_CN.UTF-8.src.

Dec 30 2018, 8:03 AM
delphij created D18689: Fix various issues with Chinese locales..
Dec 30 2018, 8:01 AM
delphij committed rP488700: Update to 0.9.23..
Update to 0.9.23.
Dec 30 2018, 6:29 AM

Dec 21 2018

delphij added a comment to D17083: Alter the prototype of qsort_r(3) to match POSIX, which adopted the glibc-based interface..

Looks good to me (except please do use FBSD_1.6 version).

Dec 21 2018, 7:21 PM
delphij committed rP487953: Update to 2.4.47..
Update to 2.4.47.
Dec 21 2018, 6:40 AM

Dec 13 2018

delphij accepted D18536: Add bounds checking to the tws(4) passthrough ioctl handler..

LGTM (the unlocked use of sc->ioctl_data_mem looks worrisome to me, but the proposed change won't worsen the situation). Do you have a chance to test this on real hardware? (@jpaetzel do you know someone who may be able to help with that?).

Dec 13 2018, 12:55 AM