Messages in this thread | | | Date | Sat, 31 May 2008 16:24:03 -0700 | From | Chris Wright <> | Subject | Re: Redzone overwritten with CONFIG_SECURITY |
| |
* Chris Wright (chrisw@sous-sol.org) wrote: > * Eric Sesterhenn (snakebyte@gmx.de) wrote: > > Is it possible that this was caused because a file didnt > > get rebuild correctly? I can still reproduce it with the > > old checkout. Sorry if this causes unessecary noise :( > > I had wondered that, since data structures will grow w/ CONFIG_SECURITY > set (like inode, for example). I haven't encountered a Kbuild dependency > bug in quite a while though.
Yeah, this thing is miscompiled (thanks for the vmlinux).
$ cd /tmp/CONFIG_SECURITY-mem-corruption $ gdb -q vmlinux (gdb) p sizeof(struct inode) $1 = 596 (gdb) p sizeof(struct hugetlbfs_inode_info) $2 = 592
struct hugetlbfs_inode_info { struct shared_policy policy; struct inode vfs_inode; }; The hugetlbfs_inode_info structure isn't updated with the 4 extra bytes added from CONFIG_SECURITY to struct inode.
If you're interested in more gory details, you can look at: $ eu-readelf -winfo vmlinux > readelf-info.out
thanks, -chris
| |