[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <53C655C7.6050606@hp.com>
Date: Wed, 16 Jul 2014 18:36:55 +0800
From: "Li, ZhenHua" <zhen-hual@...com>
To: Jiri Slaby <jslaby@...e.cz>
CC: Peter Hurley <peter@...leysoftware.com>,
gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/1] driver/tty: Fix a warning in check_tty_count
Hi Jiri,
You are right, I tested the latest kernel, did not see this bug.
So I will only submit this patch to Redhat.
Thanks
Zhenhua
On 07/15/2014 05:16 PM, Jiri Slaby wrote:
> Hi,
>
> On 07/15/2014 11:08 AM, Li, ZhenHua wrote:
>> This bug was founded in RHEL 6, kernel version 2.6.32.
>>
>> But I also checked the file tty_io.c in latest kernel, not all the code
>> protected by tty_lock(tty).
>>
>> For example, in function tty_del_file,
>>
>> if (--tty->count < 0) {
>> }
>> and
>> tty_del_file(filp);
>> are not surrounded by tty_lock(tty).
> Sure, but there is tty_lock_pair instead.
>
>> So I think the new lock is necessary.
> Nope, sorry, you have to complain to RedHat about this kernel. Unless
> you can reproduce this with the vanilla kernel.
>
> thanks,
--
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