Re: [PATCH v5] x86: Avoid pr_cont() in show_opcodes().

2018-07-24 Thread Ingo Molnar


* Tetsuo Handa  wrote:

> On 2018/07/18 20:57, Ingo Molnar wrote:
> > 
> > * Tetsuo Handa  wrote:
> > 
> >> Since syzbot is confused by concurrent printk() messages [1],
> >> this patch changes show_opcodes() to use %ph format string.
> >>
> >> When we start adding prefix to each line of printk() output,
> >> we will be able to handle concurrent printk() messages.
> >>
> >> [1] https://syzkaller.appspot.com/text?tag=CrashReport&x=139d342c40
> >>
> >> Signed-off-by: Tetsuo Handa 
> >> Signed-off-by: Rasmus Villemoes 
> > 
> > Wasn't that variant of the patch written by Rasmus?
> 
> Rasmus Villemoes taught me that we can use "%*ph" format string and pass
> length as arguments for "*" part. Then, since Joe Perches suggested me to
> use #define for length variable, I updated to use "#define length immediate"
> and replaced "%*ph" with "%" __strigify(length) "ph" and removed length from
> arguments. That is v5 patch.
> 
> > 
> > If so then the changelog should start with:
> > 
> >  From: Rasmus Villemoes 
> 
> OK. I posted v6 patch with From: line updated.

Please do that only if it was mainly written by him - otherwise just tell me 
that 
it's yours and I'll apply it as such.

Thanks,

Ingo


Re: [PATCH v5] x86: Avoid pr_cont() in show_opcodes().

2018-07-19 Thread Tetsuo Handa
On 2018/07/18 20:57, Ingo Molnar wrote:
> 
> * Tetsuo Handa  wrote:
> 
>> Since syzbot is confused by concurrent printk() messages [1],
>> this patch changes show_opcodes() to use %ph format string.
>>
>> When we start adding prefix to each line of printk() output,
>> we will be able to handle concurrent printk() messages.
>>
>> [1] https://syzkaller.appspot.com/text?tag=CrashReport&x=139d342c40
>>
>> Signed-off-by: Tetsuo Handa 
>> Signed-off-by: Rasmus Villemoes 
> 
> Wasn't that variant of the patch written by Rasmus?

Rasmus Villemoes taught me that we can use "%*ph" format string and pass
length as arguments for "*" part. Then, since Joe Perches suggested me to
use #define for length variable, I updated to use "#define length immediate"
and replaced "%*ph" with "%" __strigify(length) "ph" and removed length from
arguments. That is v5 patch.

> 
> If so then the changelog should start with:
> 
>  From: Rasmus Villemoes 

OK. I posted v6 patch with From: line updated.

> 
> Thanks,
> 
>   Ingo
> 



Re: [PATCH v5] x86: Avoid pr_cont() in show_opcodes().

2018-07-18 Thread Ingo Molnar


* Tetsuo Handa  wrote:

> Since syzbot is confused by concurrent printk() messages [1],
> this patch changes show_opcodes() to use %ph format string.
> 
> When we start adding prefix to each line of printk() output,
> we will be able to handle concurrent printk() messages.
> 
> [1] https://syzkaller.appspot.com/text?tag=CrashReport&x=139d342c40
> 
> Signed-off-by: Tetsuo Handa 
> Signed-off-by: Rasmus Villemoes 

Wasn't that variant of the patch written by Rasmus?

If so then the changelog should start with:

 From: Rasmus Villemoes 

Thanks,

Ingo