Re: [PATCH v7 00/10] vsprintf: Prevent silent crashes and consolidate error handling

2019-04-26 Thread Petr Mladek
On Fri 2019-04-26 16:02:04, Andy Shevchenko wrote: > On Wed, Apr 24, 2019 at 03:53:06PM +0200, Petr Mladek wrote: > > On Fri 2019-04-19 10:51:12, Sergey Senozhatsky wrote: > > > On (04/17/19 13:53), Petr Mladek wrote: > > > > Crash in vsprintf() might be silent when it happens under logbuf_lock >

Re: [PATCH v7 00/10] vsprintf: Prevent silent crashes and consolidate error handling

2019-04-26 Thread Andy Shevchenko
On Wed, Apr 24, 2019 at 03:53:06PM +0200, Petr Mladek wrote: > On Fri 2019-04-19 10:51:12, Sergey Senozhatsky wrote: > > On (04/17/19 13:53), Petr Mladek wrote: > > > Crash in vsprintf() might be silent when it happens under logbuf_lock > > > in vprintk_emit(). This patch set prevents most of the

Re: [PATCH v7 00/10] vsprintf: Prevent silent crashes and consolidate error handling

2019-04-24 Thread Petr Mladek
On Fri 2019-04-19 10:51:12, Sergey Senozhatsky wrote: > On (04/17/19 13:53), Petr Mladek wrote: > > Crash in vsprintf() might be silent when it happens under logbuf_lock > > in vprintk_emit(). This patch set prevents most of the crashes by probing > > the address. The check is done only by %s and

Re: [PATCH v7 00/10] vsprintf: Prevent silent crashes and consolidate error handling

2019-04-18 Thread Sergey Senozhatsky
On (04/17/19 13:53), Petr Mladek wrote: > Crash in vsprintf() might be silent when it happens under logbuf_lock > in vprintk_emit(). This patch set prevents most of the crashes by probing > the address. The check is done only by %s and some %p* specifiers that need > to dereference the address. >

[PATCH v7 00/10] vsprintf: Prevent silent crashes and consolidate error handling

2019-04-17 Thread Petr Mladek
Crash in vsprintf() might be silent when it happens under logbuf_lock in vprintk_emit(). This patch set prevents most of the crashes by probing the address. The check is done only by %s and some %p* specifiers that need to dereference the address. Only the first byte of the address is checked to