All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] UML crashes when built with _FORTIFY_SOURCE
@ 2008-10-24 23:08 Roman Yepishev
  2008-10-31 19:14 ` Jeff Dike
  0 siblings, 1 reply; 3+ messages in thread
From: Roman Yepishev @ 2008-10-24 23:08 UTC (permalink / raw)
  To: user-mode-linux-devel

Hello,

When UML kernel is built with _FORTIFY_SOURCE defined, then all
arguments for snprintf, printf etc. are checked by glibc.

mconsole_init defines file[256] which is used later to construct the
socket path.
file is then passed to os_create_unix_socket which in turn uses
sockaddr_un to describe the socket.
The problem happens when snprintf tries to fit file into sun_path
which is only 108 bytes long. The checks fail and kernel abort()s.

Temporary solution is to fix file declaration to be 108 or less bytes
but checks should be introduced when socket path is constructed.

The complete history of bug is here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/284631

-- 
Regards,
Roman Yepishev

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-11-03 21:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-24 23:08 [uml-devel] UML crashes when built with _FORTIFY_SOURCE Roman Yepishev
2008-10-31 19:14 ` Jeff Dike
2008-11-03 21:35   ` Roman Yepishev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.