The patch titled initramfs: fix CPIO hardlink check has been added to the -mm tree. Its filename is initramfs-fix-cpio-hardlink-check.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this From: Mark Huang <mlhuang@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx> Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- init/initramfs.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff -puN init/initramfs.c~initramfs-fix-cpio-hardlink-check init/initramfs.c --- devel/init/initramfs.c~initramfs-fix-cpio-hardlink-check 2006-05-10 01:44:13.000000000 -0700 +++ devel-akpm/init/initramfs.c 2006-05-10 01:44:13.000000000 -0700 @@ -26,10 +26,12 @@ static void __init free(void *where) /* link hash */ +#define N_ALIGN(len) ((((len) + 1) & ~3) + 2) + static __initdata struct hash { int ino, minor, major; struct hash *next; - char *name; + char name[N_ALIGN(PATH_MAX)]; } *head[32]; static inline int hash(int major, int minor, int ino) @@ -57,7 +59,7 @@ static char __init *find_link(int major, q->ino = ino; q->minor = minor; q->major = major; - q->name = name; + strcpy(q->name, name); q->next = NULL; *p = q; return NULL; @@ -133,8 +135,6 @@ static inline void eat(unsigned n) count -= n; } -#define N_ALIGN(len) ((((len) + 1) & ~3) + 2) - static __initdata char *collected; static __initdata int remains; static __initdata char *collect; _ Patches currently in -mm which might be from mlhuang@xxxxxxxxxxxxxxxx are initramfs-fix-cpio-hardlink-check.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html