ip_reass: make stray callout assertion more verbose

Syzcaller hits this assertion, but can't find reproducer.  I also never
seen it hit in my testing.  Try to get more information via syzcaller.
This commit is contained in:
Gleb Smirnoff 2022-09-10 02:11:39 -07:00
parent 53af9c235f
commit 13018bfae8

View File

@ -600,7 +600,8 @@ ipreass_callout(void *arg)
CURVNET_SET(bucket->vnet);
fp = TAILQ_LAST(&bucket->head, ipqhead);
KASSERT(fp != NULL && fp->ipq_expire >= time_uptime,
("%s: stray callout on bucket %p", __func__, bucket));
("%s: stray callout on bucket %p, %ju < %ju", __func__, bucket,
fp ? (uintmax_t)fp->ipq_expire : 0, (uintmax_t)time_uptime));
while (fp != NULL && fp->ipq_expire >= time_uptime) {
ipq_timeout(bucket, fp);