Re: [PATCH] tty: Correct tty buffer flush.

2013-03-16 Thread Ben Hutchings
On Mon, 2013-03-04 at 23:19 +0400, Ilya Zykov wrote: > On 03.12.2012 13:54, Ilya Zykov wrote: > > The root of problem is carelessly zeroing pointer(in function > > __tty_buffer_flush()), > > when another thread can use it. It can be cause of "NULL pointer > > dereference". > > Main idea of

Re: [PATCH] tty: Correct tty buffer flush.

2013-03-16 Thread Ben Hutchings
On Mon, 2013-03-04 at 23:19 +0400, Ilya Zykov wrote: On 03.12.2012 13:54, Ilya Zykov wrote: The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of NULL pointer dereference. Main idea of the patch,

Re: [PATCH] tty: Correct tty buffer flush.

2013-03-04 Thread Ilya Zykov
On 03.12.2012 13:54, Ilya Zykov wrote: > The root of problem is carelessly zeroing pointer(in function > __tty_buffer_flush()), > when another thread can use it. It can be cause of "NULL pointer dereference". > Main idea of the patch, this is never release last (struct tty_buffer) in > the

Re: [PATCH] tty: Correct tty buffer flush.

2013-03-04 Thread Ilya Zykov
On 03.12.2012 13:54, Ilya Zykov wrote: The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of NULL pointer dereference. Main idea of the patch, this is never release last (struct tty_buffer) in the active

Re: [PATCH] tty: Correct tty buffer flush.

2013-01-19 Thread Sedat Dilek
On Sat, Jan 19, 2013 at 4:12 PM, Sedat Dilek wrote: > On Sat, Jan 19, 2013 at 3:16 PM, Ilya Zykov wrote: >> The root of problem is carelessly zeroing pointer(in function >> __tty_buffer_flush()), >> when another thread can use it. It can be cause of "NULL pointer >> dereference". >> Main

[PATCH] tty: Correct tty buffer flush.

2013-01-19 Thread Ilya Zykov
The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of "NULL pointer dereference". Main idea of the patch, this is never free last (struct tty_buffer) in the active buffer. Only flush the data for

[PATCH] tty: Correct tty buffer flush.

2013-01-19 Thread Ilya Zykov
The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of NULL pointer dereference. Main idea of the patch, this is never free last (struct tty_buffer) in the active buffer. Only flush the data for

Re: [PATCH] tty: Correct tty buffer flush.

2013-01-19 Thread Sedat Dilek
On Sat, Jan 19, 2013 at 4:12 PM, Sedat Dilek sedat.di...@gmail.com wrote: On Sat, Jan 19, 2013 at 3:16 PM, Ilya Zykov i...@ilyx.ru wrote: The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of NULL pointer

Re: [PATCH] tty: Correct tty buffer flush.

2013-01-18 Thread Greg Kroah-Hartman
On Wed, Jan 16, 2013 at 12:55:00PM +0400, Ilya Zykov wrote: > The root of problem is carelessly zeroing pointer(in function > __tty_buffer_flush()), > when another thread can use it. It can be cause of "NULL pointer dereference". > Main idea of the patch, this is never free last (struct

Re: [PATCH] tty: Correct tty buffer flush.

2013-01-18 Thread Greg Kroah-Hartman
On Wed, Jan 16, 2013 at 12:55:00PM +0400, Ilya Zykov wrote: The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of NULL pointer dereference. Main idea of the patch, this is never free last (struct tty_buffer)

[PATCH] tty: Correct tty buffer flush.

2013-01-16 Thread Ilya Zykov
The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of "NULL pointer dereference". Main idea of the patch, this is never free last (struct tty_buffer) in the active buffer. Only flush the data for

[PATCH] tty: Correct tty buffer flush.

2013-01-16 Thread Ilya Zykov
The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of NULL pointer dereference. Main idea of the patch, this is never free last (struct tty_buffer) in the active buffer. Only flush the data for

Re: [PATCH] tty: Correct tty buffer flush.

2012-12-04 Thread Alan Cox
On Tue, 04 Dec 2012 17:10:57 +0400 Ilya Zykov wrote: > The root of problem is carelessly zeroing pointer(in function > __tty_buffer_flush()), > when another thread can use it. It can be cause of "NULL pointer dereference". > Main idea of the patch, this is never free last (struct

[PATCH] tty: Correct tty buffer flush.

2012-12-04 Thread Ilya Zykov
The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of "NULL pointer dereference". Main idea of the patch, this is never free last (struct tty_buffer) in the active buffer. Only flush the data for

[PATCH] tty: Correct tty buffer flush.

2012-12-04 Thread Ilya Zykov
The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of NULL pointer dereference. Main idea of the patch, this is never free last (struct tty_buffer) in the active buffer. Only flush the data for

Re: [PATCH] tty: Correct tty buffer flush.

2012-12-04 Thread Alan Cox
On Tue, 04 Dec 2012 17:10:57 +0400 Ilya Zykov i...@ilyx.ru wrote: The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of NULL pointer dereference. Main idea of the patch, this is never free last (struct

[PATCH] tty: Correct tty buffer flush.

2012-12-03 Thread Ilya Zykov
The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of "NULL pointer dereference". Main idea of the patch, this is never release last (struct tty_buffer) in the active buffer. Only flush data for

[PATCH] tty: Correct tty buffer flush.

2012-12-03 Thread Ilya Zykov
The root of problem is carelessly zeroing pointer(in function __tty_buffer_flush()), when another thread can use it. It can be cause of NULL pointer dereference. Main idea of the patch, this is never release last (struct tty_buffer) in the active buffer. Only flush data for