Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Dec 2020 23:57:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 251803] rctl -a user:test:readiops:throttle=0/user crash the system
Message-ID:  <bug-251803-227-CozWUCNJ3E@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-251803-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-251803-227@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=3D251803

--- Comment #2 from Jason A. Harmening <jah@FreeBSD.org> ---
Looks like rctl_enforce() is blowing up when it tries to scale the throttle
timeout according to the specified limit, which in this case produces divis=
ion
by zero.

In general, it doesn't seem like attempting to throttle resource usage to 0
makes sense; it seems like this should instead be treated as a request to d=
eny
the resource and checked as such.

Can you try the attached patch?

--=20
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-251803-227-CozWUCNJ3E>