lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 7 Aug 2022 23:32:01 -0400
From:   Kent Overstreet <kent.overstreet@...il.com>
To:     Steven Rostedt <rostedt@...dmis.org>,
        "Matthew Wilcox (Oracle)" <willy@...radead.org>
Cc:     linux-kernel@...r.kernel.org, pmladek@...e.com,
        Ingo Molnar <mingo@...hat.com>
Subject: Re: [PATCH v5 31/32] tracing: Convert to printbuf

On 8/7/22 22:51, Steven Rostedt wrote:
> On Mon,  8 Aug 2022 03:41:27 +0100
> "Matthew Wilcox (Oracle)" <willy@...radead.org> wrote:
> 
>>   
>> @@ -9826,20 +9821,8 @@ static struct notifier_block trace_die_notifier = {
>>   void
>>   trace_printk_seq(struct trace_seq *s)
>>   {
>> -	/* Probably should print a warning here. */
>> -	if (s->seq.len >= TRACE_MAX_PRINT)
>> -		s->seq.len = TRACE_MAX_PRINT;
>> -
>> -	/*
>> -	 * More paranoid code. Although the buffer size is set to
>> -	 * PAGE_SIZE, and TRACE_MAX_PRINT is 1000, this is just
>> -	 * an extra layer of protection.
>> -	 */
>> -	if (WARN_ON_ONCE(s->seq.len >= s->seq.size))
>> -		s->seq.len = s->seq.size - 1;
>> -
>>   	/* should be zero ended, but we are paranoid. */
>> -	s->buffer[s->seq.len] = 0;
>> +	printbuf_nul_terminate(&s->seq);
>>   
>>   	printk(KERN_TRACE "%s", s->buffer);
>>   
>> diff --g
> 
> Please remove the two tracing patches and the deletion of the seq_buf from
> the series.

Well, that's not really an option, as Christoph already (rightly) 
pointed out.

If you've got actual engineering concerns that you'd care to articulate 
I'd (still) like to try to work with you - otherwise, I don't think this 
is something I can accommodate you on.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ