Home | History | Annotate | Download | only in freebsd
History log of /src/sys/compat/freebsd/freebsd_sysctl.c
RevisionDateAuthorComments
 1.19  14-Feb-2015  dholland typo in comment
 1.18  18-Oct-2014  snj branches: 1.18.2;
src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
 1.17  10-Oct-2014  maxv I'm not sure reading from an unsanitized userland pointer is a good idea.
Some users might be tempted to give 0x01, in which case the kernel will
crash.
 1.16  25-Feb-2014  pooka branches: 1.16.4;
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
 1.15  19-Nov-2008  ad branches: 1.15.16; 1.15.22; 1.15.26; 1.15.28; 1.15.30; 1.15.36;
Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
 1.14  28-Apr-2008  martin branches: 1.14.2; 1.14.6; 1.14.8; 1.14.10; 1.14.16; 1.14.20;
Remove clause 3 and 4 from TNF licenses
 1.13  22-Apr-2008  ad branches: 1.13.2;
Repair copyright.
 1.12  07-Jan-2008  ad branches: 1.12.6; 1.12.8;
Patch up sysctl locking:

- Lock processes, credentials, filehead etc correctly.
- Acquire a read hold on sysctl_treelock if only doing a query.
- Don't wire down the output buffer. It doesn't work correctly and the code
regularly does long term sleeps with it held - it's not worth it.
- Don't hold locks other than sysctl_lock while doing copyout().
- Drop sysctl_lock while doing copyout / allocating memory in a few places.
- Don't take kernel_lock for sysctl.
- Fix a number of bugs spotted along the way
 1.11  20-Dec-2007  dsl Convert all the system call entry points from:
int foo(struct lwp *l, void *v, register_t *retval)
to:
int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
 1.10  08-Dec-2007  dsl branches: 1.10.4;
ANSIfy most of the function definitions in sys/compat (but not ndis).
All by the magic of sed ...
 1.9  15-Aug-2007  ad branches: 1.9.2; 1.9.8; 1.9.10;
Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed
on tech-kern.
 1.8  09-Feb-2007  ad branches: 1.8.6; 1.8.14; 1.8.18;
Merge newlock2 to head.
 1.7  24-Sep-2006  dbj use _KERNEL_OPT instead of _LKM to check whether to include "opt_ktrace.h"
 1.6  24-Sep-2006  dogcow opt_ktrace.h doesn't exist when building LKMs.
 1.5  23-Sep-2006  manu Add sysctl tracing to emulations.
While we are there, fix a bug in FreeBSD sysctl emulation: use copyin for
moving data to the kernel
 1.4  11-Dec-2005  christos branches: 1.4.20; 1.4.22;
merge ktrace-lwp.
 1.3  02-Sep-2005  rpaulo Add a SYSCTL_SETUP_PROTO() so that it compiles fine in the lkm.
 1.2  26-Feb-2005  perry branches: 1.2.2; 1.2.4; 1.2.6; 1.2.8; 1.2.10;
nuke trailing whitespace
 1.1  22-Feb-2005  heas Add FreeBSD sysctl emulation for their undocumented special OIDs rooted at
OID 0. Only OID 0.3 is implemented for now, it 0.3 is the equivalent of
NetBSD's sysctlgetmibinfo().
This includes a new sysctl kern.osreldate with the value __NetBSD_Version__
for kernels with COMPAT_FREEBSD.

Both of these are used by 3ware's FreeBSD tw_cli, which seems to work now.
 1.2.10.5  21-Jan-2008  yamt sync with head
 1.2.10.4  03-Sep-2007  yamt sync with head.
 1.2.10.3  26-Feb-2007  yamt sync with head.
 1.2.10.2  30-Dec-2006  yamt sync with head.
 1.2.10.1  21-Jun-2006  yamt sync with head.
 1.2.8.2  29-Apr-2005  kent sync with -current
 1.2.8.1  26-Feb-2005  kent file freebsd_sysctl.c was added on branch kent-audio2 on 2005-04-29 11:28:31 +0000
 1.2.6.2  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.2.6.1  26-Feb-2005  yamt file freebsd_sysctl.c was added on branch yamt-km on 2005-03-19 08:33:31 +0000
 1.2.4.2  11-Nov-2006  bouyer Pull up following revision(s) (requested by manu in ticket #1528):
etc/MAKEDEV.tmpl: revision 1.66 via patch
sys/conf/majors: revision 1.30 via patch
sys/dev/pci/twareg.h: revision 1.6 via patch
sys/dev/pci/twa.c: revision 1.13 via patch
sys/dev/pci/twaio.h: revision 1.4 via patch
sys/compat/freebsd/freebsd_sysctl.c: revision 1.5 via patch
Tweak the twa(4) driver so that 3ware command line utility works with
it.
This includes:
- fixing various structure definitions so that the ioctl parameter match
- adding a hw.twa*.driver_version sysctl
- do not refuse multiple device openings, as the management tool will do
it.
I'm not sure we are safe. FreeBSD allows multiple openings, and use
the
open flag only when an attempt to detach the device is done.
Fix a bug in FreeBSD sysctl emulation: use copyin for
moving data to the kernel
 1.2.4.1  13-Sep-2005  tron Pull up following revision(s) (requested by rpaulo in ticket #764):
sys/compat/freebsd/freebsd_sysctl.c: revision 1.3
Add a SYSCTL_SETUP_PROTO() so that it compiles fine in the lkm.
 1.2.2.3  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.2.2.2  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.2.2.1  26-Feb-2005  skrll file freebsd_sysctl.c was added on branch ktrace-lwp on 2005-03-04 16:39:35 +0000
 1.4.22.1  22-Oct-2006  yamt sync with head
 1.4.20.2  30-Jan-2007  ad Remove support for SA. Ok core@.
 1.4.20.1  18-Nov-2006  ad Sync with head.
 1.8.18.2  09-Dec-2007  jmcneill Sync with HEAD.
 1.8.18.1  16-Aug-2007  jmcneill Sync with HEAD.
 1.8.14.1  03-Sep-2007  skrll Sync with HEAD.
 1.8.6.1  20-Aug-2007  ad Sync with HEAD.
 1.9.10.1  26-Dec-2007  ad Sync with head.
 1.9.8.1  18-Feb-2008  mjf Sync with HEAD.
 1.9.2.1  09-Jan-2008  matt sync with HEAD
 1.10.4.2  08-Jan-2008  bouyer Sync with HEAD
 1.10.4.1  02-Jan-2008  bouyer Sync with HEAD
 1.12.8.1  18-May-2008  yamt sync with head.
 1.12.6.2  17-Jan-2009  mjf Sync with HEAD.
 1.12.6.1  02-Jun-2008  mjf Sync with HEAD.
 1.13.2.2  04-May-2009  yamt sync with head.
 1.13.2.1  16-May-2008  yamt sync with head.
 1.14.20.1  27-Oct-2014  msaitoh Pull up following revision(s) (requested by maxv in ticket #1926):
sys/compat/freebsd/freebsd_sysctl.c: revision 1.17
I'm not sure reading from an unsanitized userland pointer is a good idea.
Some users might be tempted to give 0x01, in which case the kernel will
crash.
 1.14.16.1  27-Oct-2014  msaitoh Pull up following revision(s) (requested by maxv in ticket #1926):
sys/compat/freebsd/freebsd_sysctl.c: revision 1.17
I'm not sure reading from an unsanitized userland pointer is a good idea.
Some users might be tempted to give 0x01, in which case the kernel will
crash.
 1.14.10.1  27-Oct-2014  msaitoh Pull up following revision(s) (requested by maxv in ticket #1926):
sys/compat/freebsd/freebsd_sysctl.c: revision 1.17
I'm not sure reading from an unsanitized userland pointer is a good idea.
Some users might be tempted to give 0x01, in which case the kernel will
crash.
 1.14.8.1  19-Jan-2009  skrll Sync with HEAD.
 1.14.6.1  13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.14.2.2  14-May-2008  wrstuden Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.
 1.14.2.1  10-May-2008  wrstuden Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.
 1.15.36.1  19-Oct-2014  snj Pull up following revision(s) (requested by maxv in ticket #1168):
sys/compat/freebsd/freebsd_sysctl.c: revision 1.17
I'm not sure reading from an unsanitized userland pointer is a good idea.
Some users might be tempted to give 0x01, in which case the kernel will
crash.
 1.15.30.1  18-May-2014  rmind sync with head
 1.15.28.1  19-Oct-2014  snj Pull up following revision(s) (requested by maxv in ticket #1168):
sys/compat/freebsd/freebsd_sysctl.c: revision 1.17
I'm not sure reading from an unsanitized userland pointer is a good idea.
Some users might be tempted to give 0x01, in which case the kernel will
crash.
 1.15.26.2  03-Dec-2017  jdolecek update from HEAD
 1.15.26.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.15.22.1  19-Oct-2014  snj Pull up following revision(s) (requested by maxv in ticket #1168):
sys/compat/freebsd/freebsd_sysctl.c: revision 1.17
I'm not sure reading from an unsanitized userland pointer is a good idea.
Some users might be tempted to give 0x01, in which case the kernel will
crash.
 1.15.16.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.16.4.1  18-Oct-2014  martin Pull up following revision(s) (requested by maxv in ticket #146):
sys/compat/freebsd/freebsd_sysctl.c: revision 1.17
I'm not sure reading from an unsanitized userland pointer is a good idea.
Some users might be tempted to give 0x01, in which case the kernel will
crash.
 1.18.2.1  06-Apr-2015  skrll Sync with HEAD

RSS XML Feed