[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110518130004.GA10638@redhat.com>
Date: Wed, 18 May 2011 15:00:04 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Jiri Slaby <jslaby@...e.cz>
Cc: akpm@...ux-foundation.org, linux-mm@...ck.org,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org,
jirislaby@...il.com, Alan Cox <alan@...rguk.ukuu.org.uk>,
Al Viro <viro@...iv.linux.org.uk>,
Andi Kleen <andi@...stfloor.org>
Subject: Re: [PATCH v2 1/3] coredump: use get_task_comm for %e filename
format
Sorry for delay,
On 05/12, Jiri Slaby wrote:
>
> We currently access current->comm directly. As we have
> prctl(PR_SET_NAME), we need the access be protected by task_lock. This
> is exactly what get_task_comm does, so use it.
>
> I'm not 100% convinced prctl(PR_SET_NAME) may be called at the time of
> core dump,
It can't be called. Apart from current, a sub-thread can change ->comm[]
via /proc/pid/comm, but we already killed all threads.
> but the locking won't hurt.
Agreed, the patch looks correct. but still unneeded.
Oleg.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists