public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+9d95beb2a3c260622518@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] Re: 000000000000fcfa6406141cc8ac@google.com
Date: Thu, 06 Jun 2024 01:57:24 -0700	[thread overview]
Message-ID: <00000000000020f7d6061a34dfb8@google.com> (raw)
In-Reply-To: <000000000000adb08b061413919e@google.com>

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.

***

Subject: Re: 000000000000fcfa6406141cc8ac@google.com
Author: wojciech.gladysz@infogain.com

#syz test https://linux.googlesource.com/linux/kernel/git/torvalds/linux e377d803b65ee4130213b3c041fc25fdfec1bd90

--- a/kernel/trace/bpf_trace.c
+++ b/kernel/trace/bpf_trace.c
@@ -2393,12 +2393,21 @@ void __bpf_trace_run(struct bpf_raw_tp_link *link, u64 *args)
      cant_sleep();

      // return if instrumentation disabled, see: bpf_disable_instrumentation
-     if (unlikely(__this_cpu_read(bpf_prog_active))) {
+     int instrumentation = unlikely(__this_cpu_read(bpf_prog_active));
+     if (instrumentation) {
+           printk("SKIP FOR INSTRUMENTATION: %s > %s > %p /%i ==============\n",
+                       prog->aux->name,
+                       link->btp->tp->name, prog, instrumentation);
            bpf_prog_inc_misses_counter(prog);
            return;
      }

-     if (unlikely(this_cpu_inc_return(*(prog->active)) != 1)) {
+     int active = this_cpu_inc_return(*(prog->active));
+     // printk("%s > %s > %p /%i\n", prog->aux->name, link->btp->tp->name, prog, active);
+     if (active != 1) {
+           printk("SKIP FOR ACTIVE: %s > %s > %p /%i =======================\n",
+                       prog->aux->name,
+                       link->btp->tp->name, prog, active);
            bpf_prog_inc_misses_counter(prog);
            goto out;
      }
--- a/kernel/tracepoint.c
+++ b/kernel/tracepoint.c
@@ -67,7 +67,7 @@ static void tp_rcu_cond_sync(enum tp_transition_sync sync)
 }

 /* Set to 1 to enable tracepoint debug output */
-static const int tracepoint_debug;
+static const int tracepoint_debug=1;

 #ifdef CONFIG_MODULES
 /*
@@ -298,6 +298,8 @@ static enum tp_func_state nr_func_state(const struct tracepoint_func *tp_funcs)
 {
      if (!tp_funcs)
            return TP_FUNC_0;
+     if (!tp_funcs[0].func)
+           return TP_FUNC_0;
      if (!tp_funcs[1].func)
            return TP_FUNC_1;
      if (!tp_funcs[2].func)

The information in this email is confidential and may be legally privileged. It is intended solely for the addressee and access to it by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken based on it, is strictly prohibited and may be unlawful.

  parent reply	other threads:[~2024-06-06  8:57 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-20  8:42 [syzbot] [bpf?] possible deadlock in trie_delete_elem syzbot
2024-03-20 10:32 ` Hillf Danton
2024-03-20 19:42   ` syzbot
2024-03-20 14:20 ` syzbot
2024-06-05  7:16 ` [syzbot] Re: 000000000000fcfa6406141cc8ac@google.com syzbot
2024-06-05  7:22 ` [syzbot] Re: [syzbot] [bpf?] possible deadlock in trie_delete_elem syzbot
2024-06-05  7:25 ` [syzbot] Re: 000000000000fcfa6406141cc8ac@google.com syzbot
2024-06-05  8:07 ` syzbot
2024-06-06  8:57 ` syzbot [this message]
2024-06-06 11:29 ` syzbot
2024-06-06 12:03 ` syzbot
2024-06-06 12:14 ` syzbot
2024-06-06 13:05 ` syzbot
2024-06-06 13:13 ` syzbot
2024-06-06 13:24 ` syzbot
2024-06-06 13:27 ` [syzbot] possible deadlock in trie_delete_elem syzbot
2024-06-06 13:51 ` syzbot
2024-06-06 14:04 ` syzbot
2024-06-06 14:14 ` syzbot
2024-06-06 20:34   ` kernel test robot
2024-06-06 21:05   ` kernel test robot
2024-06-07  7:17 ` [syzbot] Re: 000000000000fcfa6406141cc8ac@google.com syzbot
2025-05-08  7:13 ` [syzbot] [bpf?] possible deadlock in trie_delete_elem syzbot
2025-05-08 18:00   ` Alexei Starovoitov
2025-05-08 23:39   ` Kumar Kartikeya Dwivedi

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=00000000000020f7d6061a34dfb8@google.com \
    --to=syzbot+9d95beb2a3c260622518@syzkaller.appspotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzkaller-bugs@googlegroups.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