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 22:51:13 -0400
From:   Steven Rostedt <rostedt@...dmis.org>
To:     "Matthew Wilcox (Oracle)" <willy@...radead.org>
Cc:     linux-kernel@...r.kernel.org, pmladek@...e.com,
        Kent Overstreet <kent.overstreet@...il.com>,
        Ingo Molnar <mingo@...hat.com>
Subject: Re: [PATCH v5 31/32] tracing: Convert to printbuf

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.

Thank you.

-- Steve

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ