mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: syzbot <syzbot+b0cff308140f79a9c4cb@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Forwarded: Re: [syzbot] [bpf?] WARNING in bpf_bprintf_prepare (3)
Date: Tue, 21 Oct 2025 09:26:58 -0700	[thread overview]
Message-ID: <68f7b452.a70a0220.3bf6c6.0008.GAE@google.com> (raw)
In-Reply-To: <68f6a4c8.050a0220.1be48.0011.GAE@google.com>

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

***

Subject: Re: [syzbot] [bpf?] WARNING in bpf_bprintf_prepare (3)
Author: chandna.sahil@gmail.com

On Mon, Oct 20, 2025 at 02:08:24PM -0700, syzbot wrote:
>Hello,
>
>syzbot found the following issue on:
>
>HEAD commit:    a1e83d4c0361 selftests/bpf: Fix redefinition of 'off' as d..
>git tree:       bpf
>console output: https://syzkaller.appspot.com/x/log.txt?x=12d21de2580000
>kernel config:  https://syzkaller.appspot.com/x/.config?x=9ad7b090a18654a7
>dashboard link: https://syzkaller.appspot.com/bug?extid=b0cff308140f79a9c4cb
>compiler:       Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
>syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=160cf542580000
>C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=128d5c58580000
>
>Downloadable assets:
>disk image: https://storage.googleapis.com/syzbot-assets/2f6a7a0cd1b7/disk-a1e83d4c.raw.xz
>vmlinux: https://storage.googleapis.com/syzbot-assets/873984cfc71e/vmlinux-a1e83d4c.xz
>kernel image: https://storage.googleapis.com/syzbot-assets/16711d84070c/bzImage-a1e83d4c.xz
>
>The issue was bisected to:
>
>commit 7c33e97a6ef5d84e98b892c3e00c6d1678d20395
>Author: Sahil Chandna <chandna.sahil@gmail.com>
>Date:   Tue Oct 14 18:56:35 2025 +0000
>
>    bpf: Do not disable preemption in bpf_test_run().
>
>bisection log:  https://syzkaller.appspot.com/x/bisect.txt?x=172fe492580000
>final oops:     https://syzkaller.appspot.com/x/report.txt?x=14afe492580000
>console output: https://syzkaller.appspot.com/x/log.txt?x=10afe492580000
>
>IMPORTANT: if you fix the issue, please add the following tag to the commit:
>Reported-by: syzbot+b0cff308140f79a9c4cb@syzkaller.appspotmail.com
>Fixes: 7c33e97a6ef5 ("bpf: Do not disable preemption in bpf_test_run().")
#syz test

diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c
index 1b61bb25ba0e..6a128179a26f 100644
--- a/net/core/flow_dissector.c
+++ b/net/core/flow_dissector.c
@@ -1021,7 +1021,9 @@ u32 bpf_flow_dissect(struct bpf_prog *prog, struct bpf_flow_dissector *ctx,
  		     (int)FLOW_DISSECTOR_F_STOP_AT_ENCAP);
  	flow_keys->flags = flags;
  
+	preempt_disable();
  	result = bpf_prog_run_pin_on_cpu(prog, ctx);
+	preempt_enable();
  
  	flow_keys->nhoff = clamp_t(u16, flow_keys->nhoff, nhoff, hlen);
  	flow_keys->thoff = clamp_t(u16, flow_keys->thoff,
-- 

  parent reply	other threads:[~2025-10-21 16:26 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-20 21:08 syzbot
2025-10-21  6:49 ` Forwarded: " syzbot
2025-10-21  9:53 ` syzbot
2025-10-21  9:56 ` syzbot
2025-10-21 16:26 ` syzbot [this message]
2025-10-22 16:57 ` Yonghong Song
2025-10-22 18:40   ` Sahil Chandna
2025-10-22 19:56     ` Yonghong Song
2025-10-26 20:05       ` Sahil Chandna
2025-10-28  3:45         ` Yonghong Song
2025-10-28  7:52           ` Sebastian Andrzej Siewior
2025-10-29 11:22           ` Sahil Chandna
2025-10-29 11:28             ` Sebastian Andrzej Siewior
2025-10-29 15:26             ` Yonghong Song
2025-10-30  8:50               ` Tao Chen
2025-10-30 15:52                 ` Yonghong Song
2025-11-03  1:49                   ` Sahil Chandna
2025-11-03  4:39                     ` Yonghong Song

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=68f7b452.a70a0220.3bf6c6.0008.GAE@google.com \
    --to=syzbot+b0cff308140f79a9c4cb@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

all inboxes | Powered by JetHome®