FreeBSD Bugzilla – Attachment 15139 Details for
Bug 28164
[PATCH] crashdump can trash disklabel/other partitions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 779 bytes, created by
Phil Homewood
on 2001-06-15 06:00:07 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Phil Homewood
Created:
2001-06-15 06:00:07 UTC
Size:
779 bytes
patch
obsolete
>--- kern/kern_shutdown.c.orig Mon Jun 11 23:12:10 2001 >+++ kern/kern_shutdown.c Fri Jun 15 14:46:53 2001 >@@ -421,7 +421,7 @@ > /* > * XXX should clean up checking in dumpsys() to be more like this. > */ >- newdumplo = psize - Maxmem * PAGE_SIZE / DEV_BSIZE; >+ newdumplo = psize - (Maxmem + 2) * PAGE_SIZE / DEV_BSIZE; > if (newdumplo < 0) > return (ENOSPC); > dumpdev = dev; >--- kern/subr_disk.c.orig Fri Jun 1 02:47:45 2001 >+++ kern/subr_disk.c Fri Jun 15 14:46:53 2001 >@@ -91,7 +91,7 @@ > dl = dsgetlabel(dev, dp->d_slice); > if (!dl) > return (ENXIO); >- *count = (u_long)Maxmem * PAGE_SIZE / dl->d_secsize; >+ *count = (u_long)(Maxmem + 2) * PAGE_SIZE / dl->d_secsize; > if (dumplo < 0 || > (dumplo + *count > dl->d_partitions[dkpart(dev)].p_size)) > return (EINVAL);
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 28164
: 15139 |
15140
|
15141