mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
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]>