diff options
author | 2006-05-15 09:44:03 -0700 | |
---|---|---|
committer | 2006-05-15 11:20:55 -0700 | |
commit | 6a050da45b5d855b48b057446847ff1542977b52 (patch) | |
tree | f455f444ddd5be62740cd430c595c6d6a13fb4db /include/asm-x86_64/mman.h | |
parent | [PATCH] s390: lcs incorrect test (diff) | |
download | linux-6a050da45b5d855b48b057446847ff1542977b52.tar.gz linux-6a050da45b5d855b48b057446847ff1542977b52.tar.bz2 linux-6a050da45b5d855b48b057446847ff1542977b52.zip |
[PATCH] initramfs: fix CPIO hardlink check
Copy the filenames of hardlinks when inserting them into the hash, since
the "name" pointer may point to scratch space (name_buf). Not doing so
results in corruption if the scratch space is later overwritten: the wrong
file may be hardlinked, or, if the scratch space contains garbage, the link
will fail and a 0-byte file will be created instead.
Signed-off-by: Mark Huang <mlhuang@cs.princeton.edu>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-x86_64/mman.h')
0 files changed, 0 insertions, 0 deletions