diff options
author | avg <avg@FreeBSD.org> | 2010-09-03 10:40:53 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2010-09-03 10:40:53 +0000 |
commit | 9cb74fce5a363515c8f4250b344250d6f4d3c688 (patch) | |
tree | 9026f195a41cb19abbf8fe9f2170b46969f76154 | |
parent | e895a280b31039d77a9de1ccb205da9bb06431ce (diff) | |
download | FreeBSD-src-9cb74fce5a363515c8f4250b344250d6f4d3c688.zip FreeBSD-src-9cb74fce5a363515c8f4250b344250d6f4d3c688.tar.gz |
vm_page.c: include opt_msgbuf.h for MSGBUF_SIZE use in vm_page_startup
vm_page_startup uses MSGBUF_SIZE value for adding msgbuf pages to minidump.
If opt_msgbuf.h is not included and MSGBUF_SIZE is overriden in kernel
config, then not all msgbuf pages will be dumped. And most importantly,
struct msgbuf itself will not be included. Thus the dump would look
corrupted/incomplete to tools like kgdb, dmesg, etc that try to access
struct msgbuf as one of the first things they do when working on a crash
dump.
MFC after: 5 days
-rw-r--r-- | sys/vm/vm_page.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 44b801e..d778c99 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -100,6 +100,7 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include "opt_msgbuf.h" #include "opt_vm.h" #include <sys/param.h> |