[Bug 224479] kernel panic in reboot+swapoff sys call
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Dec 24 00:28:31 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224479
--- Comment #7 from Doug Moore <dougm at rice.edu> ---
I don't have the means to reproduce this bug. For someone who does (Peter?),
could you possibly add this assertion to the code and see if the conditions
that trigger the bug trigger the assertion first?
index 22bf6c72b8b..c026dadf8be 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -778,6 +778,7 @@ swp_pager_freeswapspace(daddr_t blk, daddr_t npages)
mtx_lock(&sw_dev_mtx);
TAILQ_FOREACH(sp, &swtailq, sw_list) {
if (blk >= sp->sw_first && blk < sp->sw_end) {
+ MPASS(blk + npages <= sp->sw_end);
sp->sw_used -= npages;
/*
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list