public inbox for linux-trace-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Vincent Donnefort <vdonnefort@google.com>
Cc: Qing Wang <wangqing7171@gmail.com>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
	linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org,
	syzbot+3b5dd2030fe08afdf65d@syzkaller.appspotmail.com
Subject: Re: [PATCH] tracing: Fix WARN_ON in tracing_buffers_mmap_close
Date: Fri, 27 Feb 2026 10:10:02 -0500	[thread overview]
Message-ID: <20260227101002.614add75@gandalf.local.home> (raw)
In-Reply-To: <aaF0zS3xh5KgM_yy@google.com>

On Fri, 27 Feb 2026 10:41:17 +0000
Vincent Donnefort <vdonnefort@google.com> wrote:

> > Hum, not sure this is entirely correct. We do set VM_DONTCOPY when creating the
> > mapping (see __rb_map_vma). So AFAICT ->open() is not called in this situation (see
> > dup_mmap())  
> 
> Ah right, Syzkaller is using madvise(MADVISE_DOFORK) which resets VM_DONTCOPY.

Hmm,

So this means user space can override the DONTCOPY? Can this cause bugs
elsewhere that DONTCOPY is used?

-- Steve

  parent reply	other threads:[~2026-02-27 15:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-27  2:58 [PATCH] tracing: Fix WARN_ON in tracing_buffers_mmap_close Qing Wang
2026-02-27 10:02 ` Vincent Donnefort
2026-02-27 10:41   ` Vincent Donnefort
2026-02-27 11:22     ` Vincent Donnefort
2026-02-27 15:20       ` Steven Rostedt
2026-02-27 20:56         ` Steven Rostedt
2026-03-02 12:13           ` Lorenzo Stoakes
2026-03-02 16:52             ` Steven Rostedt
2026-03-03 10:19               ` Lorenzo Stoakes
2026-03-03 15:25                 ` Steven Rostedt
2026-03-04 17:30                   ` Lorenzo Stoakes (Oracle)
2026-02-28  8:59       ` Qing Wang
2026-02-27 15:10     ` Steven Rostedt [this message]
2026-02-27 15:16       ` Vincent Donnefort

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260227101002.614add75@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-trace-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mhiramat@kernel.org \
    --cc=syzbot+3b5dd2030fe08afdf65d@syzkaller.appspotmail.com \
    --cc=vdonnefort@google.com \
    --cc=wangqing7171@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox