Summary: | cam iosched: Add a handler for the quanta sysctl to enforce valid values | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Fabian Keil <fk> | ||||
Component: | kern | Assignee: | Warner Losh <imp> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | cem, emaste, imp, sbruno, scsi | ||||
Priority: | --- | Keywords: | patch | ||||
Version: | CURRENT | Flags: | koobs:
mfc-stable11+
|
||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Fabian Keil
2017-08-31 10:25:08 UTC
This looks good except for the kernel printf. Other validation routines don't do that. A commit references this bug: Author: imp Date: Wed Sep 20 21:19:54 UTC 2017 New revision: 323829 URL: https://svnweb.freebsd.org/changeset/base/323829 Log: cam iosched: Add a handler for the quanta sysctl to enforce valid values Invalid values can result in devision-by-zero panics or other undefined behaviour so lets not allow them. PR: 221957 Obtained from: ElectroBSD Submitted by: Fabian Keil Differential Revision: https://reviews.freebsd.org/D12351 Changes: head/sys/cam/cam_iosched.c A commit references this bug: Author: sbruno Date: Fri May 25 23:18:06 UTC 2018 New revision: 334229 URL: https://svnweb.freebsd.org/changeset/base/334229 Log: MFC r323829 cam iosched: Add a handler for the quanta sysctl to enforce valid values MFC r323831 cam iosched: Schedule cam_iosched_ticker() quanta times per second PR: 221956 221957 Submitted by: imp Approved by: re (marius) Changes: _U stable/11/ stable/11/sys/cam/cam_iosched.c |