Balbir Singh 361371201b 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 <vikki.km@gmail.com>
Reported-by: Sarvesh Kumar Lal Das <skldas@gmail.com>
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Reviewed-by: WANG Cong <wangcong@zeuux.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: <stable@kernel.org>		[please check with Jeff]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-12-10 08:01:52 -08:00
..
2008-04-28 08:58:28 -07:00
2008-05-13 08:02:22 -07:00
2007-10-16 09:43:09 -07:00
2007-10-16 09:43:08 -07:00
2007-10-16 09:43:08 -07:00
2008-05-13 08:02:22 -07:00
2008-07-02 15:06:26 -06:00
2008-05-13 08:02:21 -07:00
2008-04-28 08:58:28 -07:00
2007-10-16 09:43:08 -07:00
2008-07-02 15:06:26 -06:00
2008-04-28 08:58:28 -07:00
2008-05-13 08:02:22 -07:00
2007-10-20 01:23:03 +02:00
2007-10-16 09:43:08 -07:00
2008-05-21 16:55:57 -07:00
2006-10-10 15:37:24 -07:00
2008-02-05 09:44:32 -08:00
2005-04-16 15:20:36 -07:00
2008-05-13 08:02:22 -07:00
2008-07-02 15:06:26 -06:00
2008-04-28 08:58:28 -07:00
2006-09-27 08:26:15 -07:00
2008-02-05 09:44:30 -08:00
2006-09-27 08:26:15 -07:00
2008-02-05 09:44:26 -08:00
2005-04-16 15:20:36 -07:00
2007-10-20 01:23:03 +02:00
2005-04-16 15:20:36 -07:00
2008-05-13 08:02:22 -07:00
2008-10-21 07:47:34 -04:00
2008-02-05 09:44:26 -08:00
2007-10-16 09:43:08 -07:00
2008-02-05 09:44:28 -08:00
2007-10-16 09:43:05 -07:00
2007-07-16 09:05:38 -07:00
2008-05-13 08:02:22 -07:00
2005-04-16 15:20:36 -07:00