mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
syscalls: fix modspecific_t stack content leak
Zero-initialize the whole modspecific_t so that there would not be kernel stack content leak in the unused part. Sponsored by: Juniper Networks, Inc. MFC after: 1 days Differential Revision: https://reviews.freebsd.org/D40815
This commit is contained in:
parent
f03a7e5276
commit
2cab2d43b8
1 changed files with 1 additions and 1 deletions
|
|
@ -173,7 +173,7 @@ kern_syscall_module_handler(struct sysent *sysents, struct module *mod,
|
||||||
int what, void *arg)
|
int what, void *arg)
|
||||||
{
|
{
|
||||||
struct syscall_module_data *data = arg;
|
struct syscall_module_data *data = arg;
|
||||||
modspecific_t ms;
|
modspecific_t ms = { 0 };
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
switch (what) {
|
switch (what) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue