All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@redhat.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: syzbot <syzbot+cbb25bb9b4d29a773985@syzkaller.appspotmail.com>,
	boqun.feng@gmail.com, brauner@kernel.org,
	linux-kernel@vger.kernel.org, longman@redhat.com,
	michael.christie@oracle.com, mingo@redhat.com, mst@redhat.com,
	syzkaller-bugs@googlegroups.com, tglx@linutronix.de,
	wander@redhat.com, will@kernel.org
Subject: Re: [syzbot] [kernel?] inconsistent lock state in ptrace_attach
Date: Fri, 17 Nov 2023 10:38:30 +0100	[thread overview]
Message-ID: <20231117093829.GA32151@redhat.com> (raw)
In-Reply-To: <20231117092730.GK8262@noisy.programming.kicks-ass.net>

On 11/17, Peter Zijlstra wrote:
>
> On Fri, Nov 17, 2023 at 12:49:04AM -0800, syzbot wrote:
> > syzbot has bisected this issue to:
> >
> > commit 2d25a889601d2fbc87ec79b30ea315820f874b78
> > Author: Peter Zijlstra <peterz@infradead.org>
> > Date:   Sun Sep 17 11:24:21 2023 +0000
> >
> >     ptrace: Convert ptrace_attach() to use lock guards
> >
> > bisection log:  https://syzkaller.appspot.com/x/bisect.txt?x=132b7d84e80000
> > start commit:   f31817cbcf48 Add linux-next specific files for 20231116
> > git tree:       linux-next
> > final oops:     https://syzkaller.appspot.com/x/report.txt?x=10ab7d84e80000
> > console output: https://syzkaller.appspot.com/x/log.txt?x=172b7d84e80000
> > kernel config:  https://syzkaller.appspot.com/x/.config?x=f59345f1d0a928c
> > dashboard link: https://syzkaller.appspot.com/bug?extid=cbb25bb9b4d29a773985
> > syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=1014d797680000
> > C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=11b1ec67680000
> >
> > Reported-by: syzbot+cbb25bb9b4d29a773985@syzkaller.appspotmail.com
> > Fixes: 2d25a889601d ("ptrace: Convert ptrace_attach() to use lock guards")
>
> Hurmph, let me pull that patch from tip and go have a look. Thanks!

I guess

	scoped_guard (write_lock, &tasklist_lock)

is not right... this needs write_lock_irq().

I didn't notice this when I reviewed this patch.

Oleg.


  reply	other threads:[~2023-11-17  9:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-16 11:09 [syzbot] [kernel?] inconsistent lock state in ptrace_attach syzbot
2023-11-16 20:00 ` syzbot
2023-11-17  8:49 ` syzbot
2023-11-17  9:27   ` Peter Zijlstra
2023-11-17  9:38     ` Oleg Nesterov [this message]
2023-11-17  9:45       ` Peter Zijlstra
2023-11-17 12:32         ` Oleg Nesterov
2023-11-17 13:51 ` [syzbot] Test syzbot
     [not found] <CAJjsb4rmXhLyOFpNwQy1kh480Q7p=gvTY5HnhF-b=Sf=VijYKA@mail.gmail.com>
2023-11-17 14:12 ` [syzbot] [kernel?] inconsistent lock state in ptrace_attach syzbot

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=20231117093829.GA32151@redhat.com \
    --to=oleg@redhat.com \
    --cc=boqun.feng@gmail.com \
    --cc=brauner@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=longman@redhat.com \
    --cc=michael.christie@oracle.com \
    --cc=mingo@redhat.com \
    --cc=mst@redhat.com \
    --cc=peterz@infradead.org \
    --cc=syzbot+cbb25bb9b4d29a773985@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    --cc=tglx@linutronix.de \
    --cc=wander@redhat.com \
    --cc=will@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.