Date: Sun, 24 Dec 2017 00:28:31 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 224479] kernel panic in reboot+swapoff sys call Message-ID: <bug-224479-8-kmOJBy8Qx1@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-224479-8@https.bugs.freebsd.org/bugzilla/> References: <bug-224479-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224479 --- Comment #7 from Doug Moore <dougm@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-224479-8-kmOJBy8Qx1>
