Page MenuHomeFreeBSD

LoaderProject
ActivePublic

Recent Activity

Aug 16 2024

david_crossfamilyweb.com added a comment to D41509: crypt(3) style password support for lua loader.

Is there anything I can do here?

Aug 16 2024, 4:55 PM · Loader

Aug 14 2024

david_crossfamilyweb.com updated the diff for D41509: crypt(3) style password support for lua loader.

Updated to remove the extra newline

Aug 14 2024, 8:26 PM · Loader

Aug 13 2024

imp added inline comments to D41509: crypt(3) style password support for lua loader.
Aug 13 2024, 2:07 AM · Loader
david_crossfamilyweb.com added a comment to D41509: crypt(3) style password support for lua loader.

Should note I just got done testing this with a clean 14.1 src tree that I applied the git diff to with no other changes; tested sha256 password and sha512 password, additionally un-commented both test vector suites and all passed.

Aug 13 2024, 2:00 AM · Loader
kevans added a comment to D41509: crypt(3) style password support for lua loader.

Updated the diff per requested copyright changes.

My intent was that I had implemented all of kevans' reivew changes already, lua-lint passes cleanly-ish. the only issues are about the 'hash' accesses, but those mirror 'gfx' in other lua files.

Aug 13 2024, 1:59 AM · Loader
david_crossfamilyweb.com updated the diff for D41509: crypt(3) style password support for lua loader.

Updated the diff per requested copyright changes.

Aug 13 2024, 1:52 AM · Loader

Aug 12 2024

imp added a comment to D41509: crypt(3) style password support for lua loader.

Thanks for the rebase. I have one minor housekeeping issue here, but otherwise defer to kevans' reviews (I can't tell if they are folded in or not, but they don't appear to be).

Aug 12 2024, 8:47 PM · Loader
david_crossfamilyweb.com updated the diff for D41509: crypt(3) style password support for lua loader.

Synced with latest freebsd/main for diff generation, no other changes

Aug 12 2024, 6:52 PM · Loader
david_crossfamilyweb.com updated the diff for D41509: crypt(3) style password support for lua loader.

As promised, updated, including modifications to export sha512 from C, updated lua crypt implementation to use exported C routines, removed the now unneeded pure lua implementation, I ran all validation suites on my computer and this is passing.

Aug 12 2024, 6:49 PM · Loader

Aug 11 2024

david_crossfamilyweb.com added a comment to D41509: crypt(3) style password support for lua loader.
In D41509#1055136, @imp wrote:

Great! I'd forgotten I'd only included it in kboot since that's the only place I'd tested it.
I'll include it elsewhere by default. IIRC, the lua glue code is only about 200 extra bytes of code, so we can have it in the BIOS loader. We're not that close to the edge on it. Normally, I'd say no new features there, but this is a reasonable exception. The big ones that will be hard in the future is there will be no new ZFS compression or crypto supported there.

Aug 11 2024, 8:23 PM · Loader
imp added a comment to D41509: crypt(3) style password support for lua loader.

Great! I'd forgotten I'd only included it in kboot since that's the only place I'd tested it.
I'll include it elsewhere by default. IIRC, the lua glue code is only about 200 extra bytes of code, so we can have it in the BIOS loader. We're not that close to the edge on it. Normally, I'd say no new features there, but this is a reasonable exception. The big ones that will be hard in the future is there will be no new ZFS compression or crypto supported there.

Aug 11 2024, 4:08 PM · Loader
david_crossfamilyweb.com added a comment to D41509: crypt(3) style password support for lua loader.
In D41509#1054254, @imp wrote:

I can work on that and validate it; checking quickly it looks like the version exported is compatible (the big issue with other implementations was being given the binary form of the hash to work with, your export seems to do that).

However only sha256 seems to be available there; sha512 is the default for password hashing. I only had done the sha256 since the structure was so similar to sha512 in both the hash mechanism and crypt(3) mechanism that it was easy, but SHA512 was the primary target.

I can add it easily enough. I just didn't need it for the thing I was working on.

Could I get a quick pointer as to accessing these in the code?

I've tried 'require("hash")' and 'loader.sha256' and even 'loader.hash.sha256') (tried modeling these after the gfx module which seems at a high level to be implemented the same way: LUA_COMPILE_SET() to an _init function that luaL_require the module,and then accessing it via the loader hash, but no matter what I try I get a nil dereferene

Aug 11 2024, 2:15 AM · Loader

Aug 9 2024

david_crossfamilyweb.com added a comment to D41509: crypt(3) style password support for lua loader.
In D41509#1054254, @imp wrote:

I can work on that and validate it; checking quickly it looks like the version exported is compatible (the big issue with other implementations was being given the binary form of the hash to work with, your export seems to do that).

However only sha256 seems to be available there; sha512 is the default for password hashing. I only had done the sha256 since the structure was so similar to sha512 in both the hash mechanism and crypt(3) mechanism that it was easy, but SHA512 was the primary target.

I can add it easily enough. I just didn't need it for the thing I was working on.

Aug 9 2024, 9:30 PM · Loader

Aug 6 2024

david_crossfamilyweb.com added a comment to D41509: crypt(3) style password support for lua loader.
In D41509#1054254, @imp wrote:

I can work on that and validate it; checking quickly it looks like the version exported is compatible (the big issue with other implementations was being given the binary form of the hash to work with, your export seems to do that).

However only sha256 seems to be available there; sha512 is the default for password hashing. I only had done the sha256 since the structure was so similar to sha512 in both the hash mechanism and crypt(3) mechanism that it was easy, but SHA512 was the primary target.

I can add it easily enough. I just didn't need it for the thing I was working on.

Aug 6 2024, 4:27 PM · Loader
imp added a comment to D41509: crypt(3) style password support for lua loader.

I can work on that and validate it; checking quickly it looks like the version exported is compatible (the big issue with other implementations was being given the binary form of the hash to work with, your export seems to do that).

However only sha256 seems to be available there; sha512 is the default for password hashing. I only had done the sha256 since the structure was so similar to sha512 in both the hash mechanism and crypt(3) mechanism that it was easy, but SHA512 was the primary target.

Aug 6 2024, 4:20 PM · Loader
david_crossfamilyweb.com added a comment to D41509: crypt(3) style password support for lua loader.

I can work on that and validate it; checking quickly it looks like the version exported is compatible (the big issue with other implementations was being given the binary form of the hash to work with, your export seems to do that).

Aug 6 2024, 3:56 PM · Loader
imp added a comment to D41509: crypt(3) style password support for lua loader.

I added lua bindings for the Sha hash functions. Can those be used instead of the lua implementation?

Aug 6 2024, 7:27 AM · Loader

May 10 2024

david_crossfamilyweb.com updated the diff for D41509: crypt(3) style password support for lua loader.

updated diff -U 99999

May 10 2024, 5:19 PM · Loader

May 2 2024

david_crossfamilyweb.com added a comment to D41509: crypt(3) style password support for lua loader.

Could this be imported as is, and then when the hash modules are in and exported it could be switched over?

May 2 2024, 6:06 AM · Loader

Apr 18 2024

david_crossfamilyweb.com added a comment to D41509: crypt(3) style password support for lua loader.
In D41509#1022312, @imp wrote:

I've created a hash module that has some of the sha routines. I don't have big issues connecting those.

Apr 18 2024, 3:54 PM · Loader
imp added a comment to D41509: crypt(3) style password support for lua loader.

I've created a hash module that has some of the sha routines. I don't have big issues connecting those.

Apr 18 2024, 3:27 PM · Loader
david_crossfamilyweb.com updated the diff for D41509: crypt(3) style password support for lua loader.

Updated with all PR comments, save 1.

Apr 18 2024, 3:21 PM · Loader

Nov 21 2023

imp added a comment to D42459: loader: fix EFI ACPI detection.

src/sys/contrib/dev/acpica/include/actypes.h:235:41: error: redefinition of typedef 'BOOLEAN' is a C11 feature [-Werror,-Wtypedef-redefinition]
typedef unsigned char BOOLEAN;

^

/usr/src/stand/efi/include/efidef.h:33:25: note: previous definition is here
typedef UINT8 BOOLEAN;

Nov 21 2023, 5:02 AM · Loader
imp added a comment to D42459: loader: fix EFI ACPI detection.

This broke the armv7 build...
https://ci.freebsd.org/job/FreeBSD-main-armv7-build/19710/
Please fix ASAP.

Nov 21 2023, 4:58 AM · Loader

Nov 20 2023

rcm closed D42483: loader: improve lua ACPI detection and handling.
Nov 20 2023, 7:06 PM · Loader
rcm closed D42459: loader: fix EFI ACPI detection.
Nov 20 2023, 7:05 PM · Loader

Nov 17 2023

kevans accepted D42459: loader: fix EFI ACPI detection.

I'm not seeing any remaining problems here, seems to LGTM.

Nov 17 2023, 9:39 PM · Loader
kevans accepted D42483: loader: improve lua ACPI detection and handling.
Nov 17 2023, 9:37 PM · Loader

Nov 6 2023

rcm added inline comments to D42483: loader: improve lua ACPI detection and handling.
Nov 6 2023, 7:01 PM · Loader
rcm updated the diff for D42483: loader: improve lua ACPI detection and handling.
Nov 6 2023, 7:01 PM · Loader
kevans added a comment to D42483: loader: improve lua ACPI detection and handling.

Just one minor nit

Nov 6 2023, 6:56 PM · Loader
imp accepted D42483: loader: improve lua ACPI detection and handling.

looks good now. Thanks for the split.

Nov 6 2023, 6:39 PM · Loader
rcm added inline comments to D42459: loader: fix EFI ACPI detection.
Nov 6 2023, 6:37 PM · Loader
jrtc27 added inline comments to D42459: loader: fix EFI ACPI detection.
Nov 6 2023, 6:33 PM · Loader
mhorne added inline comments to D42459: loader: fix EFI ACPI detection.
Nov 6 2023, 6:17 PM · Loader
rcm added a comment to D42459: loader: fix EFI ACPI detection.

Added @jrtc27 and @mhorne to chime in concerning @imp's question concerning risc-v (and possibly armv7)

Nov 6 2023, 5:43 PM · Loader
rcm added reviewers for D42459: loader: fix EFI ACPI detection: mhorne, jrtc27.
Nov 6 2023, 5:42 PM · Loader
rcm requested review of D42483: loader: improve lua ACPI detection and handling.
Nov 6 2023, 5:31 PM · Loader
rcm added inline comments to D42459: loader: fix EFI ACPI detection.
Nov 6 2023, 5:27 PM · Loader
rcm added a comment to D42459: loader: fix EFI ACPI detection.
In D42459#969394, @imp wrote:

I generally like this change, one or two quibbles to work out.
I'd also split the lua and other stuff into separate commits (the old lua code will work with the new loader.efi, which I like as well).
But I can do the splitting if that's a hassle. This is otherwise fairly clean so I wouldn't mind a small amount of extra work.

Nov 6 2023, 5:20 PM · Loader
rcm retitled D42459: loader: fix EFI ACPI detection from loader: fix efi ACPI detection to loader: fix EFI ACPI detection.
Nov 6 2023, 5:19 PM · Loader
rcm updated the diff for D42459: loader: fix EFI ACPI detection.

Stripped out lua diff to submit separately

Nov 6 2023, 5:19 PM · Loader
imp added a comment to D42459: loader: fix EFI ACPI detection.

I generally like this change, one or two quibbles to work out.
I'd also split the lua and other stuff into separate commits (the old lua code will work with the new loader.efi, which I like as well).
But I can do the splitting if that's a hassle. This is otherwise fairly clean so I wouldn't mind a small amount of extra work.

Nov 6 2023, 4:48 PM · Loader

Nov 3 2023

rcm updated the diff for D42459: loader: fix EFI ACPI detection.

Address Warner's comment regarding legacy hints and update the man page as suggested by Kyle

Nov 3 2023, 7:47 PM · Loader
rcm added inline comments to D42459: loader: fix EFI ACPI detection.
Nov 3 2023, 7:35 PM · Loader
imp added a comment to D42459: loader: fix EFI ACPI detection.

I'll take a look at the rest of this later...

Nov 3 2023, 7:33 PM · Loader
rcm retitled D42459: loader: fix EFI ACPI detection from loader/: fix ACPI detection and lua system default handling to loader: fix ACPI detection and lua system default handling.
Nov 3 2023, 6:30 PM · Loader
rcm requested review of D42459: loader: fix EFI ACPI detection.
Nov 3 2023, 6:29 PM · Loader

Aug 26 2023

kevans added a comment to D41509: crypt(3) style password support for lua loader.

Nothing too concerning, mostly some style complaints but as a general rule I'd like to keep luacheck happy for the times it does actually identify legitimate issues.

Aug 26 2023, 6:02 AM · Loader
david_crossfamilyweb.com added a comment to D41509: crypt(3) style password support for lua loader.
  1. Updated documentation
Aug 26 2023, 4:47 AM · Loader