Re: [PATCH -mm v2] coredump: extend core dump note section tocontain file names of mapped files
From: Oleg Nesterov
Date: Wed Sep 19 2012 - 07:48:13 EST
On 09/18, Oleg Nesterov wrote:
>
> Hmm. And I just noticed that 'filename = ""' case does not verify
> there is a room to write a single '\0' :/
>
> So, afaics you also need
>
> - if (-ENAMETOOLONG)
> + if (-ENAMETOOLONG || !remaining)
No, please ignore.
d_path() always starts with prepend("\0", 1), it should always
return ENAMETOOLONG if !remaining.
Oleg.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/