Date: Wed, 08 Apr 2020 23:10:10 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 245463] Driver sysctl tunables that use strings fail with error 14 Message-ID: <bug-245463-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245463 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@FreeBSD.org Reporter: jeffrey.e.pieper@intel.com When changing driver tunables that use strings with kenv, they fail with er= ror 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 y= ou set string parameters from kenv, the copyin() function fails with error 14. --=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-245463-227>