FreeBSD Bugzilla – Attachment 235285 Details for
Bug 265162
fsck_ffs(8) core dumps with a mangled FS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed fix
diffs2 (text/plain), 575 bytes, created by
Kirk McKusick
on 2022-07-16 00:38:44 UTC
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Kirk McKusick
Created:
2022-07-16 00:38:44 UTC
Size:
575 bytes
patch
obsolete
>diff --git a/sys/ufs/ffs/ffs_subr.c b/sys/ufs/ffs/ffs_subr.c >index 25657a00894f..21daa44de4d8 100644 >--- a/sys/ufs/ffs/ffs_subr.c >+++ b/sys/ufs/ffs/ffs_subr.c >@@ -458,6 +458,7 @@ validate_sblock(struct fs *fs, int isaltsblk) > CHK(fs->fs_size, >, fs->fs_ncg * fs->fs_fpg, %jd); > CHK(fs->fs_cssize, !=, > fragroundup(fs, fs->fs_ncg * sizeof(struct csum)), %jd); >+ CHK(dtog(fs, fs->fs_csaddr), >, fs->fs_ncg, %jd); > cgnum = dtog(fs, fs->fs_csaddr); > CHK(fs->fs_csaddr, <, cgdmin(fs, cgnum), %jd); > CHK(dtog(fs, fs->fs_csaddr + howmany(fs->fs_cssize, fs->fs_fsize)), >,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 265162
:
235202
| 235285