http://bugzilla.suse.com/show_bug.cgi?id=926169
Thomas Blume changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|bnc-team-screening@forge.pr |thomas.blume@suse.com
|ovo.novell.com |
Flags|needinfo?(thomas.blume@suse |needinfo?(hare@suse.com)
|.com) |
--- Comment #5 from Thomas Blume ---
Created attachment 630231
--> http://bugzilla.suse.com/attachment.cgi?id=630231&action=edit
0001-random-seed-accidental-stack-corruption.patch
Had to modify the patch a little in order to convince gcc to compile it.
It seems to work:
-->--
(gdb)
142 entropy->buf[0] = ((__u32*)buf)[0];
2: &entropy->buf[0] = (__u32 *) 0x7fffffffe208
1: entropy->buf[0] = 0
(gdb)
143 r = ioctl(random_fd, RNDADDENTROPY,
entropy);
2: &entropy->buf[0] = (__u32 *) 0x7fffffffe208
1: entropy->buf[0] = 3422532695
--<--
and the segfault is gone now.
but buf doesn't show a proper value anymore:
-->--
(gdb) print ((__u32*)buf)[0]
value has been optimized out
--<--
Strange, because I thought I disabled all optimization via -O0 to gcc.
Someone should better check my changes.
Hannes, can you confirm that this patch is ok?
--
You are receiving this mail because:
You are on the CC list for the bug.