Page MenuHomeFreeBSD
Feed Advanced Search

Aug 27 2017

markm added a comment to D12132: Avoid spinning in random_harvest_queue.

I see an opportunity for documentation improvement here. :-)

Aug 27 2017, 9:43 AM

Jul 29 2017

markm accepted D11769: Remove Redundant Include Directories.
Jul 29 2017, 11:08 AM

Jul 28 2017

markm added a comment to D11769: Remove Redundant Include Directories.

Does Kerberised telnet still work after this? ISTR (many years ago) that a successful compile does not necessarily mean a working binary due to similarly named libraries.

Jul 28 2017, 7:36 AM

Apr 20 2017

markm created D10440: Change arc4random(9) over to using 3-BSD licensed Chacha20..
Apr 20 2017, 7:22 PM

Apr 16 2017

markm committed rS317015: Replace the RC4 algorithm for generating in-kernel secure random.
Replace the RC4 algorithm for generating in-kernel secure random
Apr 16 2017, 9:11 AM
markm closed D10048: Replace the kernel RC4 with Chacha20. by committing rS317015: Replace the RC4 algorithm for generating in-kernel secure random.
Apr 16 2017, 9:11 AM
markm added a comment to D10048: Replace the kernel RC4 with Chacha20..
In D10048#215609, @des wrote:

Please allow me some time to commit my Chacha20 implementation first so we can use that instead of the legally dubious version which is included in this patch. I hit a snag that I haven't had time to debug, but I'm hoping to have it done by Tuesday.

Apr 16 2017, 8:55 AM

Apr 8 2017

markm updated the diff for D10048: Replace the kernel RC4 with Chacha20..

Address reviewer comments.

Apr 8 2017, 1:49 PM

Apr 7 2017

markm added a comment to D10048: Replace the kernel RC4 with Chacha20..

RWatson: Not to get picky or anything, but there was already a malloc() in that place.

I've misread the patch; I'm happy for this to be fixed in a separate commit. I'll continue to sort out a DPCPU man page, however.

Apr 7 2017, 7:26 AM

Mar 26 2017

markm added a comment to D10048: Replace the kernel RC4 with Chacha20..

RWatson: Not to get picky or anything, but there was already a malloc() in that place.

I've misread the patch; I'm happy for this to be fixed in a separate commit. I'll continue to sort out a DPCPU man page, however.

Mar 26 2017, 8:06 PM
markm added a comment to D10048: Replace the kernel RC4 with Chacha20..

RWatson: Not to get picky or anything, but there was already a malloc() in that place.

Mar 26 2017, 6:14 PM
markm added a comment to D10048: Replace the kernel RC4 with Chacha20..

Your commit introduces per-CPU memory allocation.

Mar 26 2017, 5:57 PM
markm added a comment to D10048: Replace the kernel RC4 with Chacha20..
  • I feel that using sleepable mutexes here is fine -- the difference in performance is negligible on most contemporary microarchitectures, and there is an argument for moving some of our other critical sections to being mutexes (e.g., per-CPU UMA caches).

I'm concerned about cpu migration. Mutexes don't guarantee that a thread will stay on the same cpu, right?

This is correct: you must make sure that you continue to access state on the CPU for which you acquired a mutex -- e.g., by caching a pointer to the per-CPU state you are accessing, in case migration takes place.

Mar 26 2017, 5:11 PM

Mar 23 2017

markm added a comment to D10048: Replace the kernel RC4 with Chacha20..

Just a few quick comments:

  • I find it confusing that the new code is in a file named arc4random.c.
Mar 23 2017, 8:36 PM

Mar 21 2017

markm updated the diff for D10048: Replace the kernel RC4 with Chacha20..

I'm not comfortable with critical sections for now. Back to mutexes
as before. I'm happy to revisit this later.

Mar 21 2017, 9:30 PM
markm updated the diff for D10048: Replace the kernel RC4 with Chacha20..

Address review comments.

Mar 21 2017, 8:12 AM

Mar 20 2017

markm added a comment to D10048: Replace the kernel RC4 with Chacha20..

Respond to reviewer.

Mar 20 2017, 5:07 PM
markm updated the diff for D10048: Replace the kernel RC4 with Chacha20..

Address review comments.

Mar 20 2017, 9:20 AM
markm added a comment to D10048: Replace the kernel RC4 with Chacha20..

Reply to reviewer.

Mar 20 2017, 9:18 AM
markm added a comment to D10048: Replace the kernel RC4 with Chacha20..

Reply to reviewers.

Mar 20 2017, 9:00 AM
markm added a comment to D10048: Replace the kernel RC4 with Chacha20..

Address review comment.

Mar 20 2017, 8:42 AM

Mar 19 2017

markm added a comment to D10048: Replace the kernel RC4 with Chacha20..

I can do a pkg exp-run with this patch on HardenedBSD's infrastructure tomorrow if desired.

Mar 19 2017, 11:09 PM
markm added a comment to D10048: Replace the kernel RC4 with Chacha20..
In D10048#207864, @jmg wrote:

This will cause issues on platforms that do not use loader. We do not require loader on all of our platforms, and those that don't will have issues w/ the way chacha is started. As there is not an error (continues), this creates divergent behavior.

Mar 19 2017, 6:20 PM
markm updated the diff for D10048: Replace the kernel RC4 with Chacha20..

Final tweeks; tidy up some stuff and add bootverbose startup
reports.

Mar 19 2017, 12:37 PM
markm updated the diff for D10048: Replace the kernel RC4 with Chacha20..

Add 'bootverbose' printfs.

Mar 19 2017, 12:06 PM
markm added a comment to D10048: Replace the kernel RC4 with Chacha20..

Respond to reviewer remarks.

Mar 19 2017, 11:39 AM
markm updated the diff for D10048: Replace the kernel RC4 with Chacha20..

Fix reviewer concerns.
Add boot-time entropy usage for first (re)seed.

Mar 19 2017, 11:36 AM

Mar 18 2017

markm added a comment to D10048: Replace the kernel RC4 with Chacha20..

Reply to reviewer.

Mar 18 2017, 10:45 PM
markm added a comment to D10048: Replace the kernel RC4 with Chacha20..

Reply to review comment.

Mar 18 2017, 9:08 PM
markm updated the diff for D10048: Replace the kernel RC4 with Chacha20..

Add an SVN-friendly commit message template.

Mar 18 2017, 9:00 PM
markm added inline comments to D10048: Replace the kernel RC4 with Chacha20..
Mar 18 2017, 7:38 PM
markm added reviewers for D10048: Replace the kernel RC4 with Chacha20.: secteam, security.
Mar 18 2017, 7:11 PM
markm added a reviewer for D10048: Replace the kernel RC4 with Chacha20.: delphij.

Adding the FreeBSD SO.

Mar 18 2017, 7:11 PM
markm updated the diff for D10048: Replace the kernel RC4 with Chacha20..

Fixed a missing word typo in the title.

Mar 18 2017, 7:00 PM
markm created D10048: Replace the kernel RC4 with Chacha20..
Mar 18 2017, 6:55 PM

Feb 24 2017

markm accepted D9689: Fix a memory leak in telnetd.

Looks good to me.

Feb 24 2017, 6:34 PM

Oct 4 2016

markm added a reviewer for D8130: Split arc4random mutexes to improve performance on IPSec traffic: delphij.

Add SO

Oct 4 2016, 8:17 AM ยท Core Team

Oct 2 2016

markm added inline comments to D8077: libc arc4_stir: use only kern.arandom sysctl.
Oct 2 2016, 7:42 PM
markm accepted D8077: libc arc4_stir: use only kern.arandom sysctl.

I really like the direction. One minor nit which is more of a question than an objection.

Oct 2 2016, 3:32 PM

Jul 19 2016

markm committed rS303035: Random bit generator (RBG) driver for RPi and RPi2..
Random bit generator (RBG) driver for RPi and RPi2.
Jul 19 2016, 6:08 PM
markm closed D6888: Random bit generator (RBG) driver for RPi and RPi2. by committing rS303035: Random bit generator (RBG) driver for RPi and RPi2..
Jul 19 2016, 6:07 PM
markm added a comment to D6888: Random bit generator (RBG) driver for RPi and RPi2..

I've got this ready to commit.

Jul 19 2016, 4:23 PM

Jun 18 2016

markm added a reviewer for D6888: Random bit generator (RBG) driver for RPi and RPi2.: delphij.
Jun 18 2016, 11:27 AM
markm added a comment to D6888: Random bit generator (RBG) driver for RPi and RPi2..

Thanks for this, BTW :-)

Jun 18 2016, 11:26 AM
markm requested changes to D6888: Random bit generator (RBG) driver for RPi and RPi2..
Jun 18 2016, 11:26 AM

Jun 8 2016

markm accepted D4229: Add prototype for random_harvest_queue.

Looks OK to me.

Jun 8 2016, 10:04 PM

Mar 27 2016

markm accepted D5712: Don't start the random harvester process until timers are working..
Mar 27 2016, 1:12 PM

Nov 4 2015

markm accepted D3933: Add /boot/entropy at install time, and be more careful with permissions.

I'm still Happy!

Nov 4 2015, 9:17 AM

Oct 19 2015

markm accepted D3933: Add /boot/entropy at install time, and be more careful with permissions.

I'm happy.

Oct 19 2015, 7:02 AM

Oct 18 2015

markm accepted D3933: Add /boot/entropy at install time, and be more careful with permissions.

This was on my TODO list. I wish I'd known it was this simple!

Oct 18 2015, 8:41 PM

Oct 13 2015

markm added a comment to V6: Should /usr/local be included in FreeBSD's toolchain paths?.

I am glad to see LOCALBASE is part of the deliberations.

Oct 13 2015, 7:56 AM

Oct 5 2015

markm committed rS288780: Fix printf-like formats for KASSERT..
Fix printf-like formats for KASSERT.
Oct 5 2015, 10:46 AM
markm committed rS288703: It appears that under some circumstances, like virtualisiation, the.
It appears that under some circumstances, like virtualisiation, the
Oct 5 2015, 7:41 AM

Aug 29 2015

markm added a comment to D3486: Fix `make depend` in sys/modules.

Iโ€™m nearly there - there are a few more of them too!

Aug 29 2015, 9:40 AM

Aug 22 2015

markm committed rS287023: Make the UMA harvesting go away completely if not wanted. Default to "notโ€ฆ.
Make the UMA harvesting go away completely if not wanted. Default to "notโ€ฆ
Aug 22 2015, 12:59 PM
markm closed D3197: Do not compile in the really expensive entropy harvesting unless it is requested. by committing rS287023: Make the UMA harvesting go away completely if not wanted. Default to "notโ€ฆ.
Aug 22 2015, 12:59 PM

Aug 19 2015

markm updated D3197: Do not compile in the really expensive entropy harvesting unless it is requested..
Aug 19 2015, 10:13 AM
markm updated D3197: Do not compile in the really expensive entropy harvesting unless it is requested..
Aug 19 2015, 9:31 AM
markm updated the diff for D3197: Do not compile in the really expensive entropy harvesting unless it is requested..

Massage this into a more commit-worthy version; document what is going on and provide SDT probes to assist adopters.

Aug 19 2015, 9:30 AM

Aug 18 2015

markm committed rP394583: Sort out duplicate LATEST_LINK issue by adding "format" suffix..
Sort out duplicate LATEST_LINK issue by adding "format" suffix.
Aug 18 2015, 1:21 PM

Aug 17 2015

markm committed rS286839: Add DEV_RANDOM pseudo-option and use it to "include out" random(4).
Add DEV_RANDOM pseudo-option and use it to "include out" random(4)
Aug 17 2015, 7:36 AM
markm closed D3354: Reintroduce loadable modules for random(4) by committing rS286839: Add DEV_RANDOM pseudo-option and use it to "include out" random(4).
Aug 17 2015, 7:36 AM
markm added a comment to D3354: Reintroduce loadable modules for random(4).

Thanks reviewers!

Aug 17 2015, 7:29 AM

Aug 16 2015

markm updated the diff for D3354: Reintroduce loadable modules for random(4).

Review nits from bjk.

Aug 16 2015, 4:18 PM
markm added a comment to D3354: Reintroduce loadable modules for random(4).

Thanks, bjk!

Aug 16 2015, 4:16 PM
markm updated the diff for D3354: Reintroduce loadable modules for random(4).

Add example module.
Move common _write functions to mase of module.
Remove unused functions.

Aug 16 2015, 2:45 PM
markm added a comment to D3354: Reintroduce loadable modules for random(4).
Aug 16 2015, 10:22 AM
markm added inline comments to D3354: Reintroduce loadable modules for random(4).
Aug 16 2015, 10:21 AM
markm added a comment to D3354: Reintroduce loadable modules for random(4).

Thanks J-M!

Aug 16 2015, 10:18 AM
markm updated the diff for D3354: Reintroduce loadable modules for random(4).

Address review; tidy up the opt_*.h includes.

Aug 16 2015, 10:16 AM

Aug 15 2015

markm added a reviewer for D3354: Reintroduce loadable modules for random(4): jhb.
Aug 15 2015, 8:12 PM
markm removed a reviewer for D3354: Reintroduce loadable modules for random(4): manpages.
Aug 15 2015, 7:57 PM
markm added a comment to D3354: Reintroduce loadable modules for random(4).
Aug 15 2015, 7:12 PM
markm updated the diff for D3354: Reintroduce loadable modules for random(4).

Address jmg review comments.

Aug 15 2015, 7:07 PM
markm added a comment to D3354: Reintroduce loadable modules for random(4).

Thanks JMG.

Aug 15 2015, 6:56 PM
markm added a comment to D3354: Reintroduce loadable modules for random(4).

Thanks Warren! (wblock)

Aug 15 2015, 1:23 PM
markm removed a reviewer for D3354: Reintroduce loadable modules for random(4): manpages.
Aug 15 2015, 1:22 PM
markm added a comment to D3354: Reintroduce loadable modules for random(4).
Aug 15 2015, 1:22 PM
markm added a comment to D3354: Reintroduce loadable modules for random(4).

What the hell is 'manpages' doing, blocking immediately on diff upload? Rogue script?

Aug 15 2015, 1:20 PM
markm updated the diff for D3354: Reintroduce loadable modules for random(4).
  • Add DEV_RANDOM pseudo-option and use it to "include out" random(4)
  • Update documentation for random(4) modules.
Aug 15 2015, 1:19 PM
markm added a reviewer for D3354: Reintroduce loadable modules for random(4): wblock.
Aug 15 2015, 1:13 PM
markm added a comment to D3354: Reintroduce loadable modules for random(4).

Incorporated with edits, thank you!

Aug 15 2015, 1:12 PM
markm added a comment to D3354: Reintroduce loadable modules for random(4).

I removed 'manages' as an auto-reviewer - it gave a thoroughly broken scripted review.

Aug 15 2015, 11:20 AM
markm added a comment to D3354: Reintroduce loadable modules for random(4).

I am now seeking formal review for this please.

Aug 15 2015, 11:16 AM
markm updated D3354: Reintroduce loadable modules for random(4).
Aug 15 2015, 11:14 AM
markm removed a reviewer for D3354: Reintroduce loadable modules for random(4): manpages.
Aug 15 2015, 11:13 AM
markm updated the diff for D3354: Reintroduce loadable modules for random(4).
  • Add DEV_RANDOM pseudo-option and use it to "include out" random(4)
  • Update documentation for random(4) modules.
Aug 15 2015, 11:10 AM

Aug 12 2015

markm updated D3354: Reintroduce loadable modules for random(4).
Aug 12 2015, 8:06 AM
markm updated D3354: Reintroduce loadable modules for random(4).
Aug 12 2015, 8:05 AM
markm updated the diff for D3354: Reintroduce loadable modules for random(4).

Build tweeks to make "make universe" work.

Aug 12 2015, 7:28 AM

Aug 11 2015

markm added a comment to D3354: Reintroduce loadable modules for random(4).

I have only glanced over the code and it seems good overall.

Aug 11 2015, 9:13 PM
markm added a comment to D3354: Reintroduce loadable modules for random(4).
In D3354#68411, @jmg wrote:

Are you opening this up to more reviewers? Or still only for SO (aka delphij)? The reason I ask is that secteam only consists of delphij, so adding secteam doesn't add any new reviewers.

Aug 11 2015, 9:05 PM

Aug 10 2015

markm added a reviewer for D3354: Reintroduce loadable modules for random(4): secteam.
Aug 10 2015, 10:06 PM
markm added a comment to D3354: Reintroduce loadable modules for random(4).

I'm not soliciting reviews yet except from delphi (AKA SO). When I'm finished testing, I'll open up for reviews.

Aug 10 2015, 10:05 PM
markm removed reviewers for D3354: Reintroduce loadable modules for random(4): secteam, jmg.
Aug 10 2015, 10:03 PM
markm retitled D3354: Reintroduce loadable modules for random(4) from to Reintroduce loadable modules for random(4).
Aug 10 2015, 6:11 PM

Jul 26 2015

markm added inline comments to D3197: Do not compile in the really expensive entropy harvesting unless it is requested..
Jul 26 2015, 1:58 PM
markm added a comment to D3197: Do not compile in the really expensive entropy harvesting unless it is requested..
Jul 26 2015, 1:55 PM
markm updated the diff for D3197: Do not compile in the really expensive entropy harvesting unless it is requested..
  • Make the UMA harvesting go away completely if not wanted. Default to "not wanted".
  • Fix comment as per review suggestion.
Jul 26 2015, 1:49 PM
markm added a comment to D3197: Do not compile in the really expensive entropy harvesting unless it is requested..

I like the idea, but it looks like the new version doesn't have the random.h changes. If combined with the sys/conf/NOTES, sys/conf/files and sys/sys/random.h changes in the first version of changeset, then consider this as an "Accept".

Jul 26 2015, 1:43 PM