Page MenuHomeFreeBSD
Feed Advanced Search

Jun 21 2018

ian added inline comments to D15031: bcm2835_spi.c mod to support mode and clock in ivars from spibus.
Jun 21 2018, 2:48 PM
ian added inline comments to D15301: alter spigen device name to indicate cs as sub-unit.
Jun 21 2018, 2:03 PM

Jun 20 2018

ian accepted D15936: Fix a stack overflow in mount_smbfs when hostname is too long..
Jun 20 2018, 8:44 PM
ian updated the diff for D15743: Extend loader(8) geli support to all architectures and all disk-like devices..

Adapt to the move of stand/geli to stand/libsa/geli.

Jun 20 2018, 5:36 PM
ian added a comment to D15743: Extend loader(8) geli support to all architectures and all disk-like devices..

Some thoughts here:

[...]
This aside, my only comment is that I'd like to see an interface that could more easily tie in to an external key storage system, such as a KMS. I did something like this in my GELI work, and one of the precursor patches can be found here: https://reviews.freebsd.org/D12698. My EFI work always used the EFI KMS interface, and a "fake" in-memory KMS is provided for the cases where there is no genuine device. This could happen in a follow-on changeset, though.

Jun 20 2018, 5:07 PM

Jun 18 2018

ian added a comment to D15847: stand/common/disk.c: Read the partition table relative to the start of the drive.

It might be worth adding another sentence to the summary on commit, along the lines of "Setting the slice to -1 prevents a false positive when checking the cached values of which slices are geli-encrypted in biosdisk.c"

Jun 18 2018, 3:43 PM
ian accepted D15847: stand/common/disk.c: Read the partition table relative to the start of the drive.

I think this looks like a good solution; I'm surprised that trying to munge just the d_offset of the original disk_devdisk while leaving the other fields untouched actually worked as well as it did for so long.

Jun 18 2018, 3:40 PM

Jun 17 2018

ian added a comment to D15844: Avoid reading past the end of the disk in zfsboot.c and biosdisk.c.
In D15844#335494, @ian wrote:

Do we have any idea what led to attemping to read past the end? If it happens only during tasting, that's probably because the current logic/code for tasting is a bit suspect in how it decides which sectors to try, in which case, that's what should be fixed. If it happens during normal filesystem IO then something odd is going on that we should understand better.

The rounding code is what causes the attempt to read past the end of the disk.
Since the physical disk may be 512b sectors (and in a legacy boot scenario, we can only read it in 512b sectors), but the GELI device is encrypted in 4k sectors, we round the reads up to the nearest aligned 4kb, so they can be decrypted, then return the requested portion of that to the caller.
You cannot decrypt the middle 2kb of a GELI block, hence the rounding. However, if you are trying to read the last 9 sectors of a disk, rounding that up to 16 sectors, reads past the end of the disk, if, and only if, the size of the disk is not evenly divisible by 4kb.

Jun 17 2018, 8:16 PM
ian added inline comments to D15847: stand/common/disk.c: Read the partition table relative to the start of the drive.
Jun 17 2018, 6:06 PM
ian added a comment to D15844: Avoid reading past the end of the disk in zfsboot.c and biosdisk.c.

This review was open for less than 9 hours, and was accepted by a reviewer 4 seconds after it was first opened. Seems like the very definition of pro-forma.

Jun 17 2018, 5:55 PM
ian committed rS335283: Build LOCAL_LIB_DIRS along with system lib dirs, rather than building them.
Build LOCAL_LIB_DIRS along with system lib dirs, rather than building them
Jun 17 2018, 2:14 PM

Jun 10 2018

ian added inline comments to D15743: Extend loader(8) geli support to all architectures and all disk-like devices..
Jun 10 2018, 10:55 PM
ian committed rS334935: MFC r334656, r334665, r334695.
MFC r334656, r334665, r334695
Jun 10 2018, 10:26 PM
ian created D15743: Extend loader(8) geli support to all architectures and all disk-like devices..
Jun 10 2018, 8:09 PM

Jun 5 2018

ian committed rS334695: Remove comments and assertions that are no longer valid after r330809..
Remove comments and assertions that are no longer valid after r330809.
Jun 5 2018, 10:14 PM
ian committed rS334665: Make the v*printf() functions in libsa return int instead of void..
Make the v*printf() functions in libsa return int instead of void.
Jun 5 2018, 5:18 PM
ian committed rS334656: Add vsnprintf() to libsa. Alpha-sort the printf prototypes in stand.h..
Add vsnprintf() to libsa. Alpha-sort the printf prototypes in stand.h.
Jun 5 2018, 2:47 PM

Jun 1 2018

ian added inline comments to D15625: md: use prestaged mfs_root.
Jun 1 2018, 4:34 PM

May 30 2018

ian accepted D15625: md: use prestaged mfs_root.
May 30 2018, 10:31 PM

May 4 2018

ian committed rS333260: Properly support the GPIO_PIN_PRESET_{LOW,HIGH} options when configuring.
Properly support the GPIO_PIN_PRESET_{LOW,HIGH} options when configuring
May 4 2018, 7:28 PM
ian committed rS333255: Make reading imx6 gpio pins work correctly whether the pin is in open-drain.
Make reading imx6 gpio pins work correctly whether the pin is in open-drain
May 4 2018, 4:24 PM

Apr 26 2018

ian committed rS333018: MFC r308767 by br:.
MFC r308767 by br:
Apr 26 2018, 4:41 PM

Apr 24 2018

ian committed rS332943: MFC r332518, r332527.
MFC r332518, r332527
Apr 24 2018, 5:13 PM
ian committed rS332942: MFC r331868, r332046, r332194-r332196, r332198, r332219, r332231, r332233….
MFC r331868, r332046, r332194-r332196, r332198, r332219, r332231, r332233…
Apr 24 2018, 5:00 PM
ian committed rS332941: Fix wl(4) after r332288, using the same fix applied in r332331. This.
Fix wl(4) after r332288, using the same fix applied in r332331. This
Apr 24 2018, 4:45 PM

Apr 16 2018

ian committed rS332527: Fix cut-and-pasted line to have the right option letter..
Fix cut-and-pasted line to have the right option letter.
Apr 16 2018, 3:35 AM

Apr 15 2018

ian committed rS332518: Add an option to daemon(8) to specify a delay between restarts of a.
Add an option to daemon(8) to specify a delay between restarts of a
Apr 15 2018, 9:46 PM
ian added inline comments to D15029: new utility usr.sbin/spi.
Apr 15 2018, 7:56 PM
ian added inline comments to D15031: bcm2835_spi.c mod to support mode and clock in ivars from spibus.
Apr 15 2018, 6:57 PM
ian added inline comments to D15031: bcm2835_spi.c mod to support mode and clock in ivars from spibus.
Apr 15 2018, 6:56 PM

Apr 13 2018

ian committed rS332485: Remove .info debugging output that accidentally got left in for MFC commit..
Remove .info debugging output that accidentally got left in for MFC commit.
Apr 13 2018, 7:15 PM

Apr 10 2018

ian committed rS332395: Use explicit_bzero() when cleaning values out of the kernel environment..
Use explicit_bzero() when cleaning values out of the kernel environment.
Apr 10 2018, 10:58 PM

Apr 8 2018

ian committed rS332292: Allow hinted attachment on FDT-based systems. Instead of returning ENXIO.
Allow hinted attachment on FDT-based systems. Instead of returning ENXIO
Apr 8 2018, 5:06 PM
ian accepted D14850: Make OF_getprop_alloc API more intuitive.
Apr 8 2018, 12:50 AM

Apr 7 2018

ian committed rS332261: Add a manpage for spigen(4)..
Add a manpage for spigen(4).
Apr 7 2018, 11:32 PM
ian committed rS332259: Cast the data pointer to the correct type for the data being accessed (as.
Cast the data pointer to the correct type for the data being accessed (as
Apr 7 2018, 10:21 PM
ian committed rS332258: Don't check for impossible NULL return from malloc(..., M_WAITOK)..
Don't check for impossible NULL return from malloc(..., M_WAITOK).
Apr 7 2018, 9:31 PM
ian committed rS332240: Add the ioctl definitions for spigen get/set spi mode. Should have been.
Add the ioctl definitions for spigen get/set spi mode. Should have been
Apr 7 2018, 8:53 PM
ian committed rS332233: Add an ioctl to get/set the SPI transfer mode. Also, make the bus clock.
Add an ioctl to get/set the SPI transfer mode. Also, make the bus clock
Apr 7 2018, 8:38 PM
ian committed rS332231: Generate a spibus_set_[ivarname]() convenience function for each ivar,.
Generate a spibus_set_[ivarname]() convenience function for each ivar,
Apr 7 2018, 8:35 PM
ian committed rS332219: Remove the existing identify() hack to force-add a spigen device on.
Remove the existing identify() hack to force-add a spigen device on
Apr 7 2018, 8:04 PM
ian committed rS332198: Arrange the list of generated sources as 1-per-line alphbetical, and add.
Arrange the list of generated sources as 1-per-line alphbetical, and add
Apr 7 2018, 7:10 PM
ian committed rS332196: Return BUS_PROBE_DEFAULT, not zero, because this is not the one driver.
Return BUS_PROBE_DEFAULT, not zero, because this is not the one driver
Apr 7 2018, 6:59 PM
ian committed rS332195: A couple minor improvements to spibus.c....
A couple minor improvements to spibus.c...
Apr 7 2018, 6:25 PM
ian committed rS332194: Add support for writing/changing spi device ivars. The SPI mode (polarity.
Add support for writing/changing spi device ivars. The SPI mode (polarity
Apr 7 2018, 6:09 PM

Apr 6 2018

ian committed rS332113: MFC r331868:.
MFC r331868:
Apr 6 2018, 4:48 PM

Apr 4 2018

ian committed rS332046: Add a missing MODULE_DEPEND()..
Add a missing MODULE_DEPEND().
Apr 4 2018, 9:19 PM

Apr 1 2018

ian committed rS331869: Fix the build on arches with default unsigned char. Capture the fubyte().
Fix the build on arches with default unsigned char. Capture the fubyte()
Apr 1 2018, 6:53 PM
ian committed rS331868: Add opt_platform.h for several modules that have #ifdef FDT in the source..
Add opt_platform.h for several modules that have #ifdef FDT in the source.
Apr 1 2018, 6:22 PM

Mar 25 2018

ian committed rS331524: MFC r329989, r330044.
MFC r329989, r330044
Mar 25 2018, 2:04 AM
ian committed rS331523: MFC r331123, r331126, r331129, r331132, r331136, r331138-r331139, r331141.
MFC r331123, r331126, r331129, r331132, r331136, r331138-r331139, r331141
Mar 25 2018, 2:00 AM
ian committed rS331522: MFC r331068:.
MFC r331068:
Mar 25 2018, 1:55 AM
ian committed rS331521: MFC r330773, r330778, r330782, r330797.
MFC r330773, r330778, r330782, r330797
Mar 25 2018, 1:52 AM
ian committed rS331520: MFC r330050:.
MFC r330050:
Mar 25 2018, 1:48 AM
ian committed rS331519: MFC r330437-r330438, r330440, r331045.
MFC r330437-r330438, r330440, r331045
Mar 25 2018, 1:47 AM
ian committed rS331509: MFC r330385:.
MFC r330385:
Mar 25 2018, 12:50 AM

Mar 24 2018

ian committed rS331507: MFC r330361:.
MFC r330361:
Mar 24 2018, 11:27 PM
ian committed rS331506: MFC r310017, r310229, r312289, r327260, r329539, r329544-r329546, r329620,.
MFC r310017, r310229, r312289, r327260, r329539, r329544-r329546, r329620,
Mar 24 2018, 11:23 PM
ian committed rS331505: MFC r329642:.
MFC r329642:
Mar 24 2018, 11:07 PM
ian committed rS331504: MFC r329537:.
MFC r329537:
Mar 24 2018, 11:04 PM
ian committed rS331503: MFC r325233, r328956, r329170, r329172-r329173, r329224, r330403-r330407,.
MFC r325233, r328956, r329170, r329172-r329173, r329224, r330403-r330407,
Mar 24 2018, 11:01 PM
ian committed rS331502: MFC r329534-r329535.
MFC r329534-r329535
Mar 24 2018, 10:51 PM
ian committed rS331501: MFC r329479-r329480, r329483, r329506-r329507, r329526, r329529, r329536,.
MFC r329479-r329480, r329483, r329506-r329507, r329526, r329529, r329536,
Mar 24 2018, 10:39 PM
ian committed rS331500: MFC r329125-r329126.
MFC r329125-r329126
Mar 24 2018, 9:53 PM
ian committed rS331498: MFC r328345, r328349, r328405, r328407, r328442.
MFC r328345, r328349, r328405, r328407, r328442
Mar 24 2018, 9:27 PM
ian committed rS331497: MFC r328307, r328311-r328312.
MFC r328307, r328311-r328312
Mar 24 2018, 9:22 PM
ian committed rS331496: MFC r306288, r314936, r325527, r327971, r328005, r328039, r328068-r328069,.
MFC r306288, r314936, r325527, r327971, r328005, r328039, r328068-r328069,
Mar 24 2018, 8:40 PM
ian committed rS331495: MFC r327756-r327758.
MFC r327756-r327758
Mar 24 2018, 7:57 PM
ian committed rS331494: Record-only merge of r324416. The actual code was merged in 327633, but.
Record-only merge of r324416. The actual code was merged in 327633, but
Mar 24 2018, 7:06 PM
ian committed rS331493: MFC r324186:.
MFC r324186:
Mar 24 2018, 6:43 PM
ian committed rS331492: To fix the powerpc build, back out r331184, which was this mfc:.
To fix the powerpc build, back out r331184, which was this mfc:
Mar 24 2018, 6:06 PM

Mar 23 2018

ian committed rS331465: MFC r315051, r315101, r315103, r315107, r315180, r315197, r315293, r315319,.
MFC r315051, r315101, r315103, r315107, r315180, r315197, r315293, r315319,
Mar 23 2018, 9:06 PM
ian committed rS331460: MFC r307656, r307659, r307674-r307675, r307679, r307683.
MFC r307656, r307659, r307674-r307675, r307679, r307683
Mar 23 2018, 8:20 PM
ian committed rS331434: MFC r306657, r306673, r306726, r307737, r309366, r310135, r323990, r324414.
MFC r306657, r306673, r306726, r307737, r309366, r310135, r323990, r324414
Mar 23 2018, 4:15 PM

Mar 20 2018

ian committed rS331276: MFC r330745:.
MFC r330745:
Mar 20 2018, 10:57 PM
ian committed rS331262: MFC r330745:.
MFC r330745:
Mar 20 2018, 9:03 PM

Mar 18 2018

ian committed rS331141: Add the device/chip type to the disk d_descr field, and print more info.
Add the device/chip type to the disk d_descr field, and print more info
Mar 18 2018, 6:59 PM
ian committed rS331139: Add support for 4K and 32K erase block sizes. Many of the supported chips.
Add support for 4K and 32K erase block sizes. Many of the supported chips
Mar 18 2018, 6:38 PM
ian committed rS331138: Make all internal routines return an int error status, and check the.
Make all internal routines return an int error status, and check the
Mar 18 2018, 5:48 PM
ian committed rS331136: Add sc_parent to the softc and use it in place of device_get_parent() calls.
Add sc_parent to the softc and use it in place of device_get_parent() calls
Mar 18 2018, 5:25 PM
ian committed rS331132: Bugfix: wait for writes/erases to complete after starting them, instead of.
Bugfix: wait for writes/erases to complete after starting them, instead of
Mar 18 2018, 4:52 PM
ian committed rS331129: Eliminate some unneeded intermediate variables. Eliminate some redundant.
Eliminate some unneeded intermediate variables. Eliminate some redundant
Mar 18 2018, 4:36 PM
ian committed rS331126: Remove a pointless KASSERT and reword a comment a bit. The KASSERT tested.
Remove a pointless KASSERT and reword a comment a bit. The KASSERT tested
Mar 18 2018, 4:10 PM
ian committed rS331123: Do not overwrite the contents of BIO_WRITE buffers. SPI inherently.
Do not overwrite the contents of BIO_WRITE buffers. SPI inherently
Mar 18 2018, 3:56 PM

Mar 16 2018

ian abandoned D14565: Use EFI RTC capablities info when registering, add bootverbose diagnostics..
Mar 16 2018, 6:57 PM
ian committed rS331068: Use EFI RTC capabilities info when registering, add bootverbose diagnostics..
Use EFI RTC capabilities info when registering, add bootverbose diagnostics.
Mar 16 2018, 6:16 PM
ian committed rS331063: Add the header file needed for the recently-added call to pagedaemon_wakeup()..
Add the header file needed for the recently-added call to pagedaemon_wakeup().
Mar 16 2018, 4:06 PM
ian committed rS331045: Add required interface header..
Add required interface header.
Mar 16 2018, 2:46 AM

Mar 15 2018

ian accepted D14679: Modify rc.d/fsck to handle new status from fsck/fsck_ffs.

FINALLY: I see no reason not to commit the change in this review, it simply adds the 16) error in the proper place, and has no other effects. This is needed to prevent the error from being ignored. If you agree could you check off on the review,
Thanks.

The change has no effect unless fsck_y_enable is set, in which case we perform a potentially destructive operation (fsck -y) in a situation where fsck -p probably suffices. I don't object to it, but don't see the value in it either.

Mar 15 2018, 4:52 PM

Mar 14 2018

ian added a comment to D14679: Modify rc.d/fsck to handle new status from fsck/fsck_ffs.
  1. Running fsck -y is a last-ditch effort to recover a filesystem and IMO should never be done automatically, so not sure why that is even an option.

I tried to discourage it when it went in, but was unsuccessful.

Mar 14 2018, 5:46 PM

Mar 13 2018

ian added a comment to D14679: Modify rc.d/fsck to handle new status from fsck/fsck_ffs.

[...]

I'll support any knobs you want to add to get to your goal, just please do not remove or change any knobs that prevent me from getting to my goal.

Mar 13 2018, 6:31 PM
ian added a comment to D14679: Modify rc.d/fsck to handle new status from fsck/fsck_ffs.

Ian reported in the thread that -R has no effect if -p is specified, but I'm not seeing how that's true (and that behaviour doesn't really make sense if it is true).

Mar 13 2018, 3:53 PM

Mar 12 2018

ian committed rS330797: Give the atrtc_time_lock a unique name..
Give the atrtc_time_lock a unique name.
Mar 12 2018, 3:26 PM

Mar 11 2018

ian committed rS330783: Revert r330780, it was improperly tested and results in taking a spin.
Revert r330780, it was improperly tested and results in taking a spin
Mar 11 2018, 8:13 PM
ian committed rS330782: Remove MTX_NOPROFILE from atrtc_lock, it was inappropriately copy/pasted.
Remove MTX_NOPROFILE from atrtc_lock, it was inappropriately copy/pasted
Mar 11 2018, 7:56 PM
ian committed rS330780: Eliminate atrtc_time_lock, and use atrtc_lock for efirtc locking..
Eliminate atrtc_time_lock, and use atrtc_lock for efirtc locking.
Mar 11 2018, 7:23 PM
ian committed rS330778: Everywhere that multiple registers are accessed in sequence, lock/unlock.
Everywhere that multiple registers are accessed in sequence, lock/unlock
Mar 11 2018, 6:55 PM
ian committed rS330773: Use separate mutexes for atrtc and i8254 locking. Change all the strange.
Use separate mutexes for atrtc and i8254 locking. Change all the strange
Mar 11 2018, 6:20 PM
ian committed rS330767: Convert atrtc the new style rtc debugging output. Remove the db show.
Convert atrtc the new style rtc debugging output. Remove the db show
Mar 11 2018, 4:57 PM
ian created D14646: Remove ufs-specific mountroot code that waited for devices..
Mar 11 2018, 12:05 AM