From: Edward Adam Davis <eadavis@qq.com>
To: syzbot+0054fed3dc9085390f51@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [kernel?] BUG: soft lockup in gate_timer_func
Date: Sun, 23 Aug 2026 11:23:19 +0800 [thread overview]
Message-ID: <tencent_3F41373A96D636064B567555765B661E3C09@qq.com> (raw)
In-Reply-To: <6a83310d.dbb3a75c.20434b.0069.GAE@google.com>
#syz test
diff --git a/net/sched/act_gate.c b/net/sched/act_gate.c
index fdbfcaa3e2ab..30bcf173274c 100644
--- a/net/sched/act_gate.c
+++ b/net/sched/act_gate.c
@@ -501,6 +501,14 @@ static int tcf_gate_init(struct net *net, struct nlattr *nla,
cycle = ktime_add_ns(cycle, entry->interval);
cycletime = cycle;
}
+
+ if (cycletime < 0 || cycletime > INT_MAX) {
+ NL_SET_ERR_MSG(extack, "'cycle_time' is too big");
+ err = -EINVAL;
+ spin_unlock_bh(&gact->tcf_lock);
+ goto err_free;
+ }
+
p->tcfg_cycletime = cycletime;
p->tcfg_cycletime_ext = cycletime_ext;
next prev parent reply other threads:[~2026-08-23 3:23 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-17 16:04 syzbot
2026-08-18 4:45 ` Edward Adam Davis
2026-08-18 6:34 ` syzbot
2026-08-18 8:24 ` Edward Adam Davis
2026-08-18 8:50 ` syzbot
2026-08-18 9:37 ` Edward Adam Davis
2026-08-18 10:44 ` syzbot
2026-08-18 10:44 ` [PATCH] net/sched: act_gate: Limit the max value for cycletime Edward Adam Davis
2026-08-22 20:20 ` Jakub Kicinski
2026-08-23 4:07 ` [PATCH v2] " Edward Adam Davis
2026-08-25 8:25 ` Jamal Hadi Salim
2026-08-25 9:01 ` Edward Adam Davis
2026-08-25 9:31 ` Jamal Hadi Salim
2026-08-25 12:08 ` Edward Adam Davis
2026-08-25 12:13 ` [PATCH v3] " Edward Adam Davis
2026-08-27 19:15 ` Jakub Kicinski
2026-08-27 19:17 ` Jakub Kicinski
2026-08-23 3:23 ` Edward Adam Davis [this message]
2026-08-23 4:07 ` [syzbot] [kernel?] BUG: soft lockup in gate_timer_func syzbot
2026-08-25 11:32 ` Edward Adam Davis
2026-08-25 12:10 ` 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=tencent_3F41373A96D636064B567555765B661E3C09@qq.com \
--to=eadavis@qq.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+0054fed3dc9085390f51@syzkaller.appspotmail.com \
--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®