Replicable file-system corruption due to fsck/ufs

Kirk McKusick mckusick at
Sat Apr 13 13:35:41 UTC 2019

> Date: Sat, 13 Apr 2019 14:32:45 +0200
> From: Peter Holm <peter at>
> To: Kirk McKusick <mckusick at>
> Cc: Jamie Landeg-Jones <jamie at>, jamie at,
>         Warner Losh <imp at>, freebsd-stable at
> Subject: Re: Replicable file-system corruption due to fsck/ufs
> On Fri, Apr 12, 2019 at 04:13:00PM -0700, Kirk McKusick wrote:
>> This is indeed a bug in the calculation of the location of the last
>> block of a file. I believe that the following patch to head will
>> fix it.
>> Peter, can you please test and let me know.
>> If Peter confirms that it fixes the bug, I will check it into head
>> and MFC it to 12-stable and 11-stable after a 2-week settle-in time.
>> 	Kirk McKusick
> Yes, this patch works for me.
> -- 
> Peter

Great, thanks for the quick test. Now committed to head as -r346185.


More information about the freebsd-stable mailing list