[Bug 245463] Driver sysctl tunables that use strings fail with error 14
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Apr 8 23:10:11 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245463
Bug ID: 245463
Summary: Driver sysctl tunables that use strings fail with
error 14
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: jeffrey.e.pieper at intel.com
When changing driver tunables that use strings with kenv, they fail with error
14. For example Intel drivers rx/tx descriptor tunables fail with:
Setting sysctl dev.ixl.0.iflib.override_ntxds failed: 14
Setting sysctl dev.ixl.0.iflib.override_nrxds failed: 14
More than likely this is caused by https://reviews.freebsd.org/D23378. This
patch has made changes to the sysctl_handle_string() function. The copyin()
function is now used to copy bytes from user space to kernel space. The
problem is that the tunables are already located in the kernel space (kenv). It
turns out that changing string parameters using sysctl works well, but if you
set string parameters from kenv, the copyin() function fails with error 14.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list