diff options
| author | Balbir Singh <[email protected]> | 2008-12-09 13:14:07 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-12-10 08:01:52 -0800 |
| commit | 361371201b60ffd686a694c848c1d5ad6061725f (patch) | |
| tree | 925f3fa0e62a5fc64840824dfd9a9aad36cb1076 /scripts | |
| parent | 69fc208be5b7eb18d22d1eca185b201400fd5ffc (diff) | |
uml: boot broken due to buffer overrun
mconsole_init() passed 256 bytes as length in os_create_unix_socket, while
the sizeof UNIX_PATH_MAX is 108. This patch fixes that problem and avoids
a big overrun bug reported on UML bootup.
sockaddr_un.sun_path is UNIX_PATH_MAX long which causes the problem.
Reported-by: Vikas K Managutte <[email protected]>
Reported-by: Sarvesh Kumar Lal Das <[email protected]>
Signed-off-by: Balbir Singh <[email protected]>
Reviewed-by: Pekka Enberg <[email protected]>
Reviewed-by: WANG Cong <[email protected]>
Cc: Jeff Dike <[email protected]>
Cc: <[email protected]> [please check with Jeff]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions