Re: [PATCH 1/1] Char: vt, make sysfs operations atomic

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Aristeu Rozanski <aris@...>
Cc: <jirislaby@...>, <linux-kernel@...>, <alan@...>
Date: Wednesday, May 28, 2008 - 6:57 pm

On Tue, 27 May 2008 16:48:58 -0400
Aristeu Rozanski <aris@ruivo.org> wrote:


The patch does fix a race, by extending console_sem coverage to provide
exclusion between the sysfs creation and teardown operations.

I assume - no race was identified in the changelog.  Can we actually
simultaneously run con_open() and con_close() against the same device? 
I guess it might be possible if userspace tried hard enough.

I renamed the patch to the much more accurate "vt: hold console_sem
across sysfs operations" - "atomic" in the kernel context means "cannot
context switch" and nothing "atomic" is happening in this patch.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/1] Char: vt, make sysfs operations atomic, Jiri Slaby, (Mon May 26, 7:53 am)
Re: [PATCH 1/1] Char: vt, make sysfs operations atomic, Aristeu Rozanski, (Tue May 27, 3:43 pm)
Re: [PATCH 1/1] Char: vt, make sysfs operations atomic, Aristeu Rozanski, (Tue May 27, 4:48 pm)
Re: [PATCH 1/1] Char: vt, make sysfs operations atomic, Andrew Morton, (Wed May 28, 6:57 pm)