[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_79DD6EEACCA727D846F212CE8679C998EE06@qq.com>
Date: Wed, 20 Mar 2024 08:33:14 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+33f4297b5f927648741a@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in check_stack_range_initialized
please test oob in check_stack_range_initialized
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git master
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index 1dd3b99d1bb9..358a90c88905 100644
--- a/kernel/bpf/verifier.c
+++ b/kernel/bpf/verifier.c
@@ -7177,6 +7177,9 @@ static int check_stack_range_initialized(
return 0;
}
+ printk("mio: %d, mao: %d, as: %d, %s\n", min_off, max_off, access_size, __func__);
+ if (!min_off)
+ min_off = 1;
for (i = min_off; i < max_off + access_size; i++) {
u8 *stype;
Powered by blists - more mailing lists