[Bugme-janitors] [Bug 9579] New: Returning from a function with a
pointer to a local variable on kernel/sysctl.c
bugme-daemon at bugzilla.kernel.org
bugme-daemon at bugzilla.kernel.org
Sat Dec 15 16:29:56 PST 2007
http://bugzilla.kernel.org/show_bug.cgi?id=9579
Summary: Returning from a function with a pointer to a local
variable on kernel/sysctl.c
Product: Process Management
Version: 2.5
KernelVersion: 2.6.23
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Other
AssignedTo: process_other at kernel-bugs.osdl.org
ReportedBy: marciobuss at gmail.com
On kernel/sysctl.c, function "start_unregistering" defined at line 1261
returns with a pointer to a deallocated stack memory:
(1) at line 1268 variable "wait" is declared (local scope)
(2) at line 1270 the statement "p->unregistering = &wait" establishes
the pointer relation
(3) the local scope closes at line 1274 but the pointer relation
persists after the function returns.
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Bugme-janitors
mailing list