| #
957a9c67 |
| 24-May-2022 |
andvar <andvar@NetBSD.org> |
s/build-in/built-in/ in comments.
|
| #
8c2f80f1 |
| 01-Mar-2019 |
pgoyette <pgoyette@NetBSD.org> |
Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly discussed on irc.
NFCI intended.
Ride the earlier kernel bump - it;s getting crowded.
|
| #
957d24ff |
| 28-Jan-2019 |
christos <christos@NetBSD.org> |
remove uninitialized (and unused)
|
| #
8c89d501 |
| 27-Jan-2019 |
christos <christos@NetBSD.org> |
- autoload the compat_80 for modstat - move compat struct to a compat header
|
| #
d91f98a8 |
| 27-Jan-2019 |
pgoyette <pgoyette@NetBSD.org> |
Merge the [pgoyette-compat] branch
|
| #
fdec83dc |
| 04-Sep-2018 |
maxv <maxv@NetBSD.org> |
Introduce KAUTH_REQ_PROCESS_CANSEE_KPTR, and use it in the already-existing modstat code. No real functional change.
|
| #
d1579b2d |
| 03-Sep-2018 |
riastradh <riastradh@NetBSD.org> |
Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name min/max should not silently truncate to 32 bits on 64-bit systems. This is purely a n
Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int. The generic name min/max should not silently truncate to 32 bits on 64-bit systems. This is purely a name change -- no functional change intended.
HOWEVER! Some subsystems have
#define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b))
even though our standard name for that is MIN/MAX. Although these may invite multiple evaluation bugs, these do _not_ cause integer truncation.
To avoid `fixing' these cases, I first changed the name in libkern, and then compile-tested every file where min/max occurred in order to confirm that it failed -- and thus confirm that nothing shadowed min/max -- before changing it.
I have left a handful of bootloaders that are too annoying to compile-test, and some dead code:
cobalt ews4800mips hp300 hppa ia64 luna68k vax acorn32/if_ie.c (not included in any kernels) macppc/if_gm.c (superseded by gem(4))
It should be easy to fix the fallout once identified -- this way of doing things fails safe, and the goal here, after all, is to _avoid_ silent integer truncations, not introduce them.
Maybe one day we can reintroduce min/max as type-generic things that never silently truncate. But we should avoid doing that for a while, so that existing code has a chance to be detected by the compiler for conversion to uimin/uimax without changing the semantics until we can properly audit it all. (Who knows, maybe in some cases integer truncation is actually intended!)
show more ...
|
| #
9b17ef8e |
| 18-Jan-2018 |
maxv <maxv@NetBSD.org> |
Don't return the address of the kernel modules if the user is not privileged. Discussed on tech-kern@.
|
| #
fd34ea77 |
| 01-Jun-2017 |
chs <chs@NetBSD.org> |
remove checks for failure after memory allocation calls that cannot fail:
kmem_alloc() with KM_SLEEP kmem_zalloc() with KM_SLEEP percpu_alloc() pserialize_create() psref_class_create()
al
remove checks for failure after memory allocation calls that cannot fail:
kmem_alloc() with KM_SLEEP kmem_zalloc() with KM_SLEEP percpu_alloc() pserialize_create() psref_class_create()
all of these paths include an assertion that the allocation has not failed, so callers should not assert that again.
show more ...
|
| #
65028d03 |
| 12-Dec-2015 |
maxv <maxv@NetBSD.org> |
Put the code in charge of handling MODCTL_STAT into a separate function.
No functional change.
|
| #
3e202925 |
| 04-Nov-2015 |
pgoyette <pgoyette@NetBSD.org> |
Export module flags to userland
|
| #
d8e04c90 |
| 24-Aug-2015 |
pooka <pooka@NetBSD.org> |
to garnish, dust with _KERNEL_OPT
|
| #
c41d48b8 |
| 19-Jun-2015 |
martin <martin@NetBSD.org> |
Make handle_modctl_load() usable from compat/netbsd32.
|
| #
e65c85be |
| 10-Jul-2014 |
christos <christos@NetBSD.org> |
don't cast void * in c.
|
| #
d319c468 |
| 10-Jul-2014 |
maxv <maxv@NetBSD.org> |
Simplify a bit
|
| #
2d6d2921 |
| 10-Jul-2014 |
maxv <maxv@NetBSD.org> |
Fix a user-controlled memory allocation. kmem_alloc(0) will panic the system.
ok christos@
|
| #
942121f5 |
| 07-Aug-2012 |
jnemeth <jnemeth@NetBSD.org> |
Add -A, -a, and -e options to modstat(8) along with kernel changes required to support these options. The -e option was requested by martin@ in private chat in order to make writing tests easier (i.
Add -A, -a, and -e options to modstat(8) along with kernel changes required to support these options. The -e option was requested by martin@ in private chat in order to make writing tests easier (i.e. don't bother testing MODULAR functionaility if it doesn't exist). While there, I added -A and -a since those were quite similar.
-A Tells you whether or not modules can be autoloaded at the moment. This option does take into consideration the sysctl kern.module.autoload.
-a Tells you whether or not modules can be autoloaded at the moment. This option does not take into consideration the sysctl kern.module.autoload.
-e Tells you whether or not you may load a module at the moment.
show more ...
|
| #
bc7506b1 |
| 08-Jul-2011 |
mrg <mrg@NetBSD.org> |
avoid some uninitialised variable warnings.
|
| #
23d5409e |
| 21-Aug-2010 |
pgoyette <pgoyette@NetBSD.org> |
Update the rest of the kernel to conform to the module subsystem's new locking protocol.
|
| #
ee7bfacd |
| 05-Mar-2010 |
pooka <pooka@NetBSD.org> |
Move builtin modules to a list in init and load them from there instead of using linksets directly. This has two implications:
1) It is now possible to "unload" a builtin module provided it is n
Move builtin modules to a list in init and load them from there instead of using linksets directly. This has two implications:
1) It is now possible to "unload" a builtin module provided it is not busy. This is useful e.g. to disable a kernel feature as an immediate workaround to a security problem. To re-initialize the module, modload -f <name> is required. 2) It is possible to use builtin modules which were linked at runtime with an external linker (dlopen + rump).
show more ...
|
| #
30d0592b |
| 16-Oct-2009 |
jnemeth <jnemeth@NetBSD.org> |
allow passing a NULL proplib dictionary to modctl(MODCTL_LOAD, ...)
|
| #
15c5c439 |
| 28-Apr-2009 |
skrll <skrll@NetBSD.org> |
copyin the modctl_load_t for the non-x86 world. Fixes PR/41294.
|
| #
7b228b5a |
| 22-Oct-2008 |
ad <ad@NetBSD.org> |
- Be clear about whether module load is explicit or system initiated (auto). - Require that module_lock is held to autoload, so that any preconditions can be safely checked.
|
| #
61270d54 |
| 20-May-2008 |
ad <ad@NetBSD.org> |
If autoloading a module, don't consider the current working directory.
|
| #
67280de1 |
| 20-May-2008 |
ad <ad@NetBSD.org> |
Allow module class to be passed to module_load(), as a basic sanity check that we are loading the right kind of module.
|