Revision 9dfef3adaebb42163d691be73e05b12da440cbe5 authored by Yuval Mintz on 05 January 2014, 16:33:53 UTC, committed by David S. Miller on 06 January 2014, 01:22:25 UTC
There are 2 different (related) flows in the slowpath configuration that utilize the same pointer and cast it to different structs; This is obviously incorrect as the intended allocated memory is that of the smaller struct, possibly causing the flow utilizing the larger struct to corrupt other slowpath configuration. Since both flows are exclusive, set the allocated memory to be a union of both structs. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com> Signed-off-by: Ariel Elior <ariele@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5b62291
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 1.7 KB |
Makefile | -rw-r--r-- | 195 bytes |
balloc.c | -rw-r--r-- | 5.7 KB |
dir.c | -rw-r--r-- | 8.5 KB |
file.c | -rw-r--r-- | 1.3 KB |
ialloc.c | -rw-r--r-- | 5.8 KB |
inode.c | -rw-r--r-- | 9.4 KB |
itree.c | -rw-r--r-- | 11.5 KB |
namei.c | -rw-r--r-- | 5.8 KB |
super.c | -rw-r--r-- | 15.1 KB |
symlink.c | -rw-r--r-- | 487 bytes |
sysv.h | -rw-r--r-- | 7.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...