]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: zero-initialize the fake vmlinux module's pdata space
authorNick Alcock <nick.alcock@oracle.com>
Tue, 24 Feb 2015 20:49:14 +0000 (20:49 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 21 Jul 2015 14:30:04 +0000 (15:30 +0100)
commitd4ddf85c920bf09ba11e548ef405d0330eee2108
treebfdbf878cbe264671640478d7a4eda76411bf945
parentdc3e2b8391c4fe2a60b91977f32d37668c2ea690
dtrace: zero-initialize the fake vmlinux module's pdata space

We need to do this because we bypass normal module initialization for this
"module", so move_module() is never called for it and the memory is never zeroed
as it is for real modules.

If this is not done, we end up with a non-initialized pdata which may contain
e.g. a non-zero count of the number of registered SDT probes, even before any
had been registered.  (This would have the effect of preventing the registration
of any SDT probes in the main kernel, forever.)

Orabug: 19005031
Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
kernel/dtrace/dtrace_os.c