* [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_prog_select_runtime
@ 2024-03-14 14:25 syzbot
2024-03-23 21:22 ` [syzbot] [PATCH] fix " syzbot
` (5 more replies)
0 siblings, 6 replies; 13+ messages in thread
From: syzbot @ 2024-03-14 14:25 UTC (permalink / raw)
To: andrii, ast, bpf, daniel, eddyz87, haoluo, john.fastabend, jolsa,
kpsingh, linux-kernel, martin.lau, sdf, song, syzkaller-bugs,
yonghong.song
Hello,
syzbot found the following issue on:
HEAD commit: 9187210eee7d Merge tag 'net-next-6.9' of git://git.kernel...
git tree: upstream
console+strace: https://syzkaller.appspot.com/x/log.txt?x=1736a3da180000
kernel config: https://syzkaller.appspot.com/x/.config?x=222448ff79dba2ea
dashboard link: https://syzkaller.appspot.com/bug?extid=d2a2c639d03ac200a4f1
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16b3fdc1180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11201969180000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c1ea7ddb95/disk-9187210e.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/343c5524f68f/vmlinux-9187210e.xz
kernel image: https://storage.googleapis.com/syzbot-assets/6c0c68b0ee90/bzImage-9187210e.xz
The issue was bisected to:
commit 011832b97b311bb9e3c27945bc0d1089a14209c9
Author: Alexei Starovoitov <ast@kernel.org>
Date: Wed Mar 6 03:19:26 2024 +0000
bpf: Introduce may_goto instruction
bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=115e578e180000
final oops: https://syzkaller.appspot.com/x/report.txt?x=135e578e180000
console output: https://syzkaller.appspot.com/x/log.txt?x=155e578e180000
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+d2a2c639d03ac200a4f1@syzkaller.appspotmail.com
Fixes: 011832b97b31 ("bpf: Introduce may_goto instruction")
------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in kernel/bpf/core.c:2349:29
index 16 is out of range for type '<unknown> *[16]'
CPU: 1 PID: 5060 Comm: syz-executor255 Not tainted 6.8.0-syzkaller-05202-g9187210eee7d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
ubsan_epilogue lib/ubsan.c:217 [inline]
__ubsan_handle_out_of_bounds+0x110/0x150 lib/ubsan.c:415
bpf_prog_select_func kernel/bpf/core.c:2349 [inline]
bpf_prog_select_runtime+0x5aa/0x640 kernel/bpf/core.c:2380
bpf_prog_load+0xf0f/0x2660 kernel/bpf/syscall.c:2899
__sys_bpf+0x9b4/0x4b40 kernel/bpf/syscall.c:5631
__do_sys_bpf kernel/bpf/syscall.c:5738 [inline]
__se_sys_bpf kernel/bpf/syscall.c:5736 [inline]
__x64_sys_bpf+0x78/0xc0 kernel/bpf/syscall.c:5736
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x6d/0x75
RIP: 0033:0x7fa2a0fe73e9
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdd829a698 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007ffdd829a878 RCX: 00007fa2a0fe73e9
RDX: 0000000000000048 RSI: 00000000200017c0 RDI: 0000000000000005
RBP: 00007fa2a105a610 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffdd829a868 R14: 0000000000000001 R15: 0000000000000001
</TASK>
---[ end trace ]---
---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
For information about bisection process see: https://goo.gl/tpsmEJ#bisection
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [syzbot] [PATCH] fix array-index-out-of-bounds in bpf_prog_select_runtime
2024-03-14 14:25 [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_prog_select_runtime syzbot
@ 2024-03-23 21:22 ` syzbot
2024-03-23 22:54 ` syzbot
` (4 subsequent siblings)
5 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2024-03-23 21:22 UTC (permalink / raw)
To: linux-kernel
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: [PATCH] fix array-index-out-of-bounds in bpf_prog_select_runtime
Author: cam.alvarez.i@gmail.com
#syz test
BPF documentation specifies that the maximum stack depth for a BPF
program is 512 bytes. This is not enforced when selecting a bpf
interpreter, thus casuing an index out of bounds error when trying to
obtain an interpreter with a bigger stack size.
This patch enforces the stack size to be not bigger than
512.
Signed-off-by: Camila Alvarez <cam.alvarez.i@gmail.com>
---
kernel/bpf/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c
index 696bc55de8e8..8167b3a721e9 100644
--- a/kernel/bpf/core.c
+++ b/kernel/bpf/core.c
@@ -2196,7 +2196,7 @@ static u64 ___bpf_prog_run(u64 *regs, const struct bpf_insn *insn)
BUG_ON(1);
return 0;
}
-
+#define BPF_MAX_STACK_SIZE 512
#define PROG_NAME(stack_size) __bpf_prog_run##stack_size
#define DEFINE_BPF_PROG_RUN(stack_size) \
static unsigned int PROG_NAME(stack_size)(const void *ctx, const struct bpf_insn *insn) \
@@ -2345,7 +2345,7 @@ static void bpf_prog_select_func(struct bpf_prog *fp)
{
#ifndef CONFIG_BPF_JIT_ALWAYS_ON
u32 stack_depth = max_t(u32, fp->aux->stack_depth, 1);
-
+ stack_depth = min_t(u32, stack_depth, BPF_MAX_STACK_SIZE);
fp->bpf_func = interpreters[(round_up(stack_depth, 32) / 32) - 1];
#else
fp->bpf_func = __bpf_prog_ret0_warn;
--
2.34.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [syzbot] [PATCH] fix array-index-out-of-bounds in bpf_prog_select_runtime
2024-03-14 14:25 [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_prog_select_runtime syzbot
2024-03-23 21:22 ` [syzbot] [PATCH] fix " syzbot
@ 2024-03-23 22:54 ` syzbot
2024-03-24 13:38 ` syzbot
` (3 subsequent siblings)
5 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2024-03-23 22:54 UTC (permalink / raw)
To: linux-kernel
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: [PATCH] fix array-index-out-of-bounds in bpf_prog_select_runtime
Author: cam.alvarez.i@gmail.com
Please test the following
#syz test
BPF documentation specifies that the maximum stack depth for a BPF
program is 512 bytes. This is not enforced when selecting a bpf
interpreter, thus casuing an index out of bounds error when trying to
obtain an interpreter with a bigger stack size.
This patch enforces the stack size to be not bigger than
512.
Signed-off-by: Camila Alvarez <cam.alvarez.i@gmail.com>
---
kernel/bpf/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c
index 696bc55de8e8..8167b3a721e9 100644
--- a/kernel/bpf/core.c
+++ b/kernel/bpf/core.c
@@ -2196,7 +2196,7 @@ static u64 ___bpf_prog_run(u64 *regs, const struct bpf_insn *insn)
BUG_ON(1);
return 0;
}
-
+#define BPF_MAX_STACK_SIZE 512
#define PROG_NAME(stack_size) __bpf_prog_run##stack_size
#define DEFINE_BPF_PROG_RUN(stack_size) \
static unsigned int PROG_NAME(stack_size)(const void *ctx, const struct bpf_insn *insn) \
@@ -2345,7 +2345,7 @@ static void bpf_prog_select_func(struct bpf_prog *fp)
{
#ifndef CONFIG_BPF_JIT_ALWAYS_ON
u32 stack_depth = max_t(u32, fp->aux->stack_depth, 1);
-
+ stack_depth = min_t(u32, stack_depth, BPF_MAX_STACK_SIZE);
fp->bpf_func = interpreters[(round_up(stack_depth, 32) / 32) - 1];
#else
fp->bpf_func = __bpf_prog_ret0_warn;
--
2.34.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [syzbot] [PATCH] fix array-index-out-of-bounds in bpf_prog_select_runtime
2024-03-14 14:25 [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_prog_select_runtime syzbot
2024-03-23 21:22 ` [syzbot] [PATCH] fix " syzbot
2024-03-23 22:54 ` syzbot
@ 2024-03-24 13:38 ` syzbot
2024-03-24 14:30 ` syzbot
` (2 subsequent siblings)
5 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2024-03-24 13:38 UTC (permalink / raw)
To: linux-kernel
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: [PATCH] fix array-index-out-of-bounds in bpf_prog_select_runtime
Author: cam.alvarez.i@gmail.com
Please test the following
#syz test
BPF documentation specifies that the maximum stack depth for a BPF
program is 512 bytes. This is not enforced when selecting a bpf
interpreter, thus casuing an index out of bounds error when trying to
obtain an interpreter with a bigger stack size.
This patch enforces the stack size to be not bigger than
512.
Signed-off-by: Camila Alvarez <cam.alvarez.i@gmail.com>
---
kernel/bpf/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c
index 696bc55de8e8..8167b3a721e9 100644
--- a/kernel/bpf/core.c
+++ b/kernel/bpf/core.c
@@ -2196,7 +2196,7 @@ static u64 ___bpf_prog_run(u64 *regs, const struct bpf_insn *insn)
BUG_ON(1);
return 0;
}
-
+#define BPF_MAX_STACK_SIZE 512
#define PROG_NAME(stack_size) __bpf_prog_run##stack_size
#define DEFINE_BPF_PROG_RUN(stack_size) \
static unsigned int PROG_NAME(stack_size)(const void *ctx, const struct bpf_insn *insn) \
@@ -2345,7 +2345,7 @@ static void bpf_prog_select_func(struct bpf_prog *fp)
{
#ifndef CONFIG_BPF_JIT_ALWAYS_ON
u32 stack_depth = max_t(u32, fp->aux->stack_depth, 1);
-
+ stack_depth = min_t(u32, stack_depth, BPF_MAX_STACK_SIZE);
fp->bpf_func = interpreters[(round_up(stack_depth, 32) / 32) - 1];
#else
fp->bpf_func = __bpf_prog_ret0_warn;
--
2.34.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [syzbot] [PATCH] fix array-index-out-of-bounds in bpf_prog_select_runtime
2024-03-14 14:25 [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_prog_select_runtime syzbot
` (2 preceding siblings ...)
2024-03-24 13:38 ` syzbot
@ 2024-03-24 14:30 ` syzbot
2024-03-24 23:12 ` syzbot
2024-05-05 0:03 ` syzbot
5 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2024-03-24 14:30 UTC (permalink / raw)
To: linux-kernel
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: [PATCH] fix array-index-out-of-bounds in bpf_prog_select_runtime
Author: cam.alvarez.i@gmail.com
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
BPF documentation specifies that the maximum stack depth for a BPF
program is 512 bytes. This is not enforced when selecting a bpf
interpreter, thus casuing an index out of bounds error when trying to
obtain an interpreter with a bigger stack size.
This patch enforces the stack size to be not bigger than
512.
Signed-off-by: Camila Alvarez <cam.alvarez.i@gmail.com>
---
kernel/bpf/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c
index 696bc55de8e8..8167b3a721e9 100644
--- a/kernel/bpf/core.c
+++ b/kernel/bpf/core.c
@@ -2196,7 +2196,7 @@ static u64 ___bpf_prog_run(u64 *regs, const struct bpf_insn *insn)
BUG_ON(1);
return 0;
}
-
+#define BPF_MAX_STACK_SIZE 512
#define PROG_NAME(stack_size) __bpf_prog_run##stack_size
#define DEFINE_BPF_PROG_RUN(stack_size) \
static unsigned int PROG_NAME(stack_size)(const void *ctx, const struct bpf_insn *insn) \
@@ -2345,7 +2345,7 @@ static void bpf_prog_select_func(struct bpf_prog *fp)
{
#ifndef CONFIG_BPF_JIT_ALWAYS_ON
u32 stack_depth = max_t(u32, fp->aux->stack_depth, 1);
-
+ stack_depth = min_t(u32, stack_depth, BPF_MAX_STACK_SIZE);
fp->bpf_func = interpreters[(round_up(stack_depth, 32) / 32) - 1];
#else
fp->bpf_func = __bpf_prog_ret0_warn;
--
2.34.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [syzbot] [PATCH] fix array-index-out-of-bounds in bpf_prog_select_runtime
2024-03-14 14:25 [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_prog_select_runtime syzbot
` (3 preceding siblings ...)
2024-03-24 14:30 ` syzbot
@ 2024-03-24 23:12 ` syzbot
2024-05-05 0:03 ` syzbot
5 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2024-03-24 23:12 UTC (permalink / raw)
To: linux-kernel
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: [PATCH] fix array-index-out-of-bounds in bpf_prog_select_runtime
Author: cam.alvarez.i@gmail.com
Please test the following
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 9187210eee7d
BPF documentation specifies that the maximum stack depth for a BPF
program is 512 bytes. This is not enforced when selecting a bpf
interpreter, thus casuing an index out of bounds error when trying to
obtain an interpreter with a bigger stack size.
This patch enforces the stack size to be not bigger than
512.
Signed-off-by: Camila Alvarez <cam.alvarez.i@gmail.com>
---
kernel/bpf/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c
index 696bc55de8e8..8167b3a721e9 100644
--- a/kernel/bpf/core.c
+++ b/kernel/bpf/core.c
@@ -2196,7 +2196,7 @@ static u64 ___bpf_prog_run(u64 *regs, const struct bpf_insn *insn)
BUG_ON(1);
return 0;
}
-
+#define BPF_MAX_STACK_SIZE 512
#define PROG_NAME(stack_size) __bpf_prog_run##stack_size
#define DEFINE_BPF_PROG_RUN(stack_size) \
static unsigned int PROG_NAME(stack_size)(const void *ctx, const struct bpf_insn *insn) \
@@ -2345,7 +2345,7 @@ static void bpf_prog_select_func(struct bpf_prog *fp)
{
#ifndef CONFIG_BPF_JIT_ALWAYS_ON
u32 stack_depth = max_t(u32, fp->aux->stack_depth, 1);
-
+ stack_depth = min_t(u32, stack_depth, BPF_MAX_STACK_SIZE);
fp->bpf_func = interpreters[(round_up(stack_depth, 32) / 32) - 1];
#else
fp->bpf_func = __bpf_prog_ret0_warn;
--
2.34.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [syzbot] [PATCH] fix array-index-out-of-bounds in bpf_prog_select_runtime
2024-03-14 14:25 [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_prog_select_runtime syzbot
` (4 preceding siblings ...)
2024-03-24 23:12 ` syzbot
@ 2024-05-05 0:03 ` syzbot
5 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2024-05-05 0:03 UTC (permalink / raw)
To: linux-kernel
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: [PATCH] fix array-index-out-of-bounds in bpf_prog_select_runtime
Author: cam.alvarez.i@gmail.com
#syz test
The error indicates that the verifier is letting through a program with
a stack depth bigger than 512.
This is due to the verifier not checking the stack depth after
instruction rewrites are perfomed. For example, the MAY_GOTO instruction
adds 8 bytes to the stack, which means that if the stack at the moment
was already 512 bytes it would overflow after rewriting the instruction.
The fix involves adding a stack depth check after all instruction
rewrites are performed.
Reported-by: syzbot+d2a2c639d03ac200a4f1@syzkaller.appspotmail.com
Signed-off-by: Camila Alvarez <cam.alvarez.i@gmail.com>
---
kernel/bpf/verifier.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index 63749ad5ac6b..a9e23b6b8e8f 100644
--- a/kernel/bpf/verifier.c
+++ b/kernel/bpf/verifier.c
@@ -21285,6 +21285,10 @@ int bpf_check(struct bpf_prog **prog, union bpf_attr *attr, bpfptr_t uattr, __u3
if (ret == 0)
ret = do_misc_fixups(env);
+ /* max stack depth verification must be done after rewrites as well */
+ if (ret == 0)
+ ret = check_max_stack_depth(env);
+
/* do 32-bit optimization after insn patching has done so those patched
* insns could be handled correctly.
*/
--
2.34.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_prog_select_runtime
[not found] <20240505000131.203160-1-cam.alvarez.i@gmail.com>
@ 2024-05-05 0:31 ` syzbot
0 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2024-05-05 0:31 UTC (permalink / raw)
To: cam.alvarez.i, linux-kernel, syzkaller-bugs
Hello,
syzbot has tested the proposed patch and the reproducer did not trigger any issue:
Reported-and-tested-by: syzbot+d2a2c639d03ac200a4f1@syzkaller.appspotmail.com
Tested on:
commit: 7367539a Merge tag 'cxl-fixes-6.9-rc7' of git://git.ke..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=174c15f8980000
kernel config: https://syzkaller.appspot.com/x/.config?x=c5179255943c0cc3
dashboard link: https://syzkaller.appspot.com/bug?extid=d2a2c639d03ac200a4f1
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
patch: https://syzkaller.appspot.com/x/patch.diff?x=1144eec0980000
Note: testing is done by a robot and is best-effort only.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_prog_select_runtime
[not found] <20240324231006.79378-1-cam.alvarez.i@gmail.com>
@ 2024-03-25 3:54 ` syzbot
0 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2024-03-25 3:54 UTC (permalink / raw)
To: cam.alvarez.i, linux-kernel, syzkaller-bugs
Hello,
syzbot has tested the proposed patch and the reproducer did not trigger any issue:
Reported-and-tested-by: syzbot+d2a2c639d03ac200a4f1@syzkaller.appspotmail.com
Tested on:
commit: 9187210e Merge tag 'net-next-6.9' of git://git.kernel...
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
console output: https://syzkaller.appspot.com/x/log.txt?x=16a2a7b6180000
kernel config: https://syzkaller.appspot.com/x/.config?x=222448ff79dba2ea
dashboard link: https://syzkaller.appspot.com/bug?extid=d2a2c639d03ac200a4f1
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
patch: https://syzkaller.appspot.com/x/patch.diff?x=1557a979180000
Note: testing is done by a robot and is best-effort only.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_prog_select_runtime
[not found] <20240324142705.3345-1-cam.alvarez.i@gmail.com>
@ 2024-03-24 14:55 ` syzbot
0 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2024-03-24 14:55 UTC (permalink / raw)
To: cam.alvarez.i, linux-kernel, syzkaller-bugs
Hello,
syzbot tried to test the proposed patch but the build/boot failed:
connector registered
[ 9.638214][ T1] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
[ 9.649661][ T1] [drm] Initialized vkms 1.0.0 20180514 for vkms on minor 1
[ 9.748228][ T1] Console: switching to colour frame buffer device 128x48
[ 9.766879][ T1] platform vkms: [drm] fb0: vkmsdrmfb frame buffer device
[ 9.769266][ T1] usbcore: registered new interface driver udl
[ 9.864681][ T1] brd: module loaded
[ 9.979253][ T1] loop: module loaded
[ 10.146705][ T1] zram: Added device: zram0
[ 10.159595][ T1] null_blk: disk nullb0 created
[ 10.160638][ T1] null_blk: module loaded
[ 10.163494][ T1] Guest personality initialized and is inactive
[ 10.165338][ T1] VMCI host device registered (name=vmci, major=10, minor=118)
[ 10.166752][ T1] Initialized host personality
[ 10.167782][ T1] usbcore: registered new interface driver rtsx_usb
[ 10.169480][ T1] usbcore: registered new interface driver viperboard
[ 10.171035][ T1] usbcore: registered new interface driver dln2
[ 10.176227][ T1] usbcore: registered new interface driver pn533_usb
[ 10.185872][ T1] nfcsim 0.2 initialized
[ 10.187457][ T1] usbcore: registered new interface driver port100
[ 10.189293][ T1] usbcore: registered new interface driver nfcmrvl
[ 10.197993][ T1] Loading iSCSI transport class v2.0-870.
[ 10.219498][ T1] virtio_scsi virtio0: 1/0/0 default/read/poll queues
[ 10.232577][ T1] ------------[ cut here ]------------
[ 10.233791][ T1] refcount_t: decrement hit 0; leaking memory.
[ 10.234959][ T1] WARNING: CPU: 0 PID: 1 at lib/refcount.c:31 refcount_warn_saturate+0x1ed/0x210
[ 10.236551][ T1] Modules linked in:
[ 10.237185][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.8.0-syzkaller-13213-g70293240c5ce-dirty #0
[ 10.238831][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
[ 10.240714][ T1] RIP: 0010:refcount_warn_saturate+0x1ed/0x210
[ 10.241704][ T1] Code: 8b e8 97 41 d2 fc 90 0f 0b 90 90 e9 c3 fe ff ff e8 f8 d2 0f fd c6 05 3b 02 4d 0b 01 90 48 c7 c7 80 e3 8e 8b e8 74 41 d2 fc 90 <0f> 0b 90 90 e9 a0 fe ff ff 48 89 ef e8 82 fb 6a fd e9 44 fe ff ff
[ 10.247715][ T1] RSP: 0000:ffffc900000673c0 EFLAGS: 00010286
[ 10.248637][ T1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff814fe149
[ 10.250131][ T1] RDX: ffff888016ec8000 RSI: ffffffff814fe156 RDI: 0000000000000001
[ 10.251308][ T1] RBP: ffff888021c0112c R08: 0000000000000001 R09: 0000000000000000
[ 10.252934][ T1] R10: 0000000000000000 R11: 0000000000000001 R12: ffff888021c0112c
[ 10.254160][ T1] R13: 0000000000000000 R14: 00000000022200ba R15: ffff888140666d88
[ 10.255366][ T1] FS: 0000000000000000(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
[ 10.256931][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 10.257864][ T1] CR2: ffff88823ffff000 CR3: 000000000d97a000 CR4: 00000000003506f0
[ 10.259800][ T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 10.261255][ T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 10.262505][ T1] Call Trace:
[ 10.262993][ T1] <TASK>
[ 10.263430][ T1] ? show_regs+0x8c/0xa0
[ 10.264145][ T1] ? __warn+0xe5/0x3c0
[ 10.264814][ T1] ? __wake_up_klogd.part.0+0x99/0xf0
[ 10.265735][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 10.266801][ T1] ? report_bug+0x3c0/0x580
[ 10.268137][ T1] ? handle_bug+0x3d/0x70
[ 10.269121][ T1] ? exc_invalid_op+0x17/0x50
[ 10.270194][ T1] ? asm_exc_invalid_op+0x1a/0x20
[ 10.270991][ T1] ? __warn_printk+0x199/0x350
[ 10.271883][ T1] ? __warn_printk+0x1a6/0x350
[ 10.272928][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 10.273890][ T1] __reset_page_owner+0x2ea/0x370
[ 10.274676][ T1] __free_pages_ok+0x5a9/0xbf0
[ 10.275425][ T1] ? __split_page_owner+0xdd/0x120
[ 10.276246][ T1] make_alloc_exact+0x165/0x260
[ 10.277164][ T1] vring_alloc_queue+0xc1/0x110
[ 10.278056][ T1] vring_alloc_queue_split+0x186/0x510
[ 10.278834][ T1] ? __pfx_vring_alloc_queue_split+0x10/0x10
[ 10.279802][ T1] ? kasan_save_stack+0x42/0x60
[ 10.280646][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.281878][ T1] vring_create_virtqueue_split+0xe8/0x280
[ 10.282754][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.283453][ T1] ? __pfx_vring_create_virtqueue_split+0x10/0x10
[ 10.284677][ T1] ? virtio_scsi_init+0x75/0x100
[ 10.285450][ T1] ? do_one_initcall+0x128/0x700
[ 10.286310][ T1] ? kernel_init_freeable+0x69d/0xca0
[ 10.287533][ T1] vring_create_virtqueue+0xd7/0x140
[ 10.288470][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.289339][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.290146][ T1] setup_vq+0x123/0x2f0
[ 10.290740][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.291480][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.292515][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.293377][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.294533][ T1] vp_setup_vq+0xb1/0x380
[ 10.295355][ T1] ? iowrite16+0x55/0x80
[ 10.295966][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.296850][ T1] vp_find_vqs_msix+0x661/0xe30
[ 10.297706][ T1] vp_find_vqs+0x58/0x560
[ 10.298344][ T1] virtscsi_init+0x459/0x9f0
[ 10.299048][ T1] ? __pfx_virtscsi_init+0x10/0x10
[ 10.299771][ T1] ? __pfx_default_calc_sets+0x10/0x10
[ 10.300807][ T1] ? ioread8+0x4e/0xa0
[ 10.301547][ T1] ? vp_get+0xf6/0x140
[ 10.302238][ T1] virtscsi_probe+0x3b2/0xdd0
[ 10.302907][ T1] ? __pfx_virtscsi_probe+0x10/0x10
[ 10.303636][ T1] ? trace_raw_output_sched_pi_setprio+0xad/0x150
[ 10.304612][ T1] ? vring_transport_features+0x49/0xb0
[ 10.305447][ T1] virtio_dev_probe+0x5ff/0x9b0
[ 10.306252][ T1] ? __pfx_virtio_dev_probe+0x10/0x10
[ 10.307167][ T1] really_probe+0x23e/0xa90
[ 10.307868][ T1] __driver_probe_device+0x1de/0x440
[ 10.308791][ T1] ? _raw_spin_unlock_irqrestore+0x52/0x80
[ 10.309631][ T1] driver_probe_device+0x4c/0x1b0
[ 10.310356][ T1] __driver_attach+0x283/0x580
[ 10.311185][ T1] ? __pfx___driver_attach+0x10/0x10
[ 10.312186][ T1] bus_for_each_dev+0x13c/0x1d0
[ 10.312922][ T1] ? __pfx_bus_for_each_dev+0x10/0x10
[ 10.313703][ T1] bus_add_driver+0x2ed/0x640
[ 10.314375][ T1] driver_register+0x15c/0x4b0
[ 10.315145][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.315944][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.316816][ T1] virtio_scsi_init+0x75/0x100
[ 10.317552][ T1] do_one_initcall+0x128/0x700
[ 10.318376][ T1] ? __pfx_do_one_initcall+0x10/0x10
[ 10.319134][ T1] ? trace_kmalloc+0x2d/0xe0
[ 10.319810][ T1] ? __kmalloc+0x218/0x440
[ 10.320418][ T1] kernel_init_freeable+0x69d/0xca0
[ 10.321177][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.321967][ T1] kernel_init+0x1c/0x2b0
[ 10.322712][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.324603][ T1] ret_from_fork+0x45/0x80
[ 10.326072][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.327715][ T1] ret_from_fork_asm+0x1a/0x30
[ 10.329055][ T1] </TASK>
[ 10.329910][ T1] Kernel panic - not syncing: kernel: panic_on_warn set ...
[ 10.331883][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.8.0-syzkaller-13213-g70293240c5ce-dirty #0
[ 10.331958][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
[ 10.331958][ T1] Call Trace:
[ 10.331958][ T1] <TASK>
[ 10.331958][ T1] dump_stack_lvl+0x3d/0x1f0
[ 10.331958][ T1] panic+0x6f5/0x7a0
[ 10.331958][ T1] ? __pfx_panic+0x10/0x10
[ 10.331958][ T1] ? show_trace_log_lvl+0x363/0x500
[ 10.331958][ T1] ? check_panic_on_warn+0x1f/0xb0
[ 10.331958][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 10.331958][ T1] check_panic_on_warn+0xab/0xb0
[ 10.331958][ T1] __warn+0xf1/0x3c0
[ 10.331958][ T1] ? __wake_up_klogd.part.0+0x99/0xf0
[ 10.331958][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 10.331958][ T1] report_bug+0x3c0/0x580
[ 10.331958][ T1] handle_bug+0x3d/0x70
[ 10.331958][ T1] exc_invalid_op+0x17/0x50
[ 10.331958][ T1] asm_exc_invalid_op+0x1a/0x20
[ 10.331958][ T1] RIP: 0010:refcount_warn_saturate+0x1ed/0x210
[ 10.331958][ T1] Code: 8b e8 97 41 d2 fc 90 0f 0b 90 90 e9 c3 fe ff ff e8 f8 d2 0f fd c6 05 3b 02 4d 0b 01 90 48 c7 c7 80 e3 8e 8b e8 74 41 d2 fc 90 <0f> 0b 90 90 e9 a0 fe ff ff 48 89 ef e8 82 fb 6a fd e9 44 fe ff ff
[ 10.331958][ T1] RSP: 0000:ffffc900000673c0 EFLAGS: 00010286
[ 10.331958][ T1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff814fe149
[ 10.331958][ T1] RDX: ffff888016ec8000 RSI: ffffffff814fe156 RDI: 0000000000000001
[ 10.331958][ T1] RBP: ffff888021c0112c R08: 0000000000000001 R09: 0000000000000000
[ 10.331958][ T1] R10: 0000000000000000 R11: 0000000000000001 R12: ffff888021c0112c
[ 10.331958][ T1] R13: 0000000000000000 R14: 00000000022200ba R15: ffff888140666d88
[ 10.331958][ T1] ? __warn_printk+0x199/0x350
[ 10.331958][ T1] ? __warn_printk+0x1a6/0x350
[ 10.331958][ T1] __reset_page_owner+0x2ea/0x370
[ 10.331958][ T1] __free_pages_ok+0x5a9/0xbf0
[ 10.331958][ T1] ? __split_page_owner+0xdd/0x120
[ 10.331958][ T1] make_alloc_exact+0x165/0x260
[ 10.331958][ T1] vring_alloc_queue+0xc1/0x110
[ 10.331958][ T1] vring_alloc_queue_split+0x186/0x510
[ 10.331958][ T1] ? __pfx_vring_alloc_queue_split+0x10/0x10
[ 10.331958][ T1] ? kasan_save_stack+0x42/0x60
[ 10.331958][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.331958][ T1] vring_create_virtqueue_split+0xe8/0x280
[ 10.331958][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.331958][ T1] ? __pfx_vring_create_virtqueue_split+0x10/0x10
[ 10.331958][ T1] ? virtio_scsi_init+0x75/0x100
[ 10.331958][ T1] ? do_one_initcall+0x128/0x700
[ 10.331958][ T1] ? kernel_init_freeable+0x69d/0xca0
[ 10.331958][ T1] vring_create_virtqueue+0xd7/0x140
[ 10.331958][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.331958][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.331958][ T1] setup_vq+0x123/0x2f0
[ 10.331958][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.331958][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.331958][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.331958][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.331958][ T1] vp_setup_vq+0xb1/0x380
[ 10.331958][ T1] ? iowrite16+0x55/0x80
[ 10.331958][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.331958][ T1] vp_find_vqs_msix+0x661/0xe30
[ 10.331958][ T1] vp_find_vqs+0x58/0x560
[ 10.331958][ T1] virtscsi_init+0x459/0x9f0
[ 10.331958][ T1] ? __pfx_virtscsi_init+0x10/0x10
[ 10.331958][ T1] ? __pfx_default_calc_sets+0x10/0x10
[ 10.331958][ T1] ? ioread8+0x4e/0xa0
[ 10.331958][ T1] ? vp_get+0xf6/0x140
[ 10.331958][ T1] virtscsi_probe+0x3b2/0xdd0
[ 10.331958][ T1] ? __pfx_virtscsi_probe+0x10/0x10
[ 10.331958][ T1] ? trace_raw_output_sched_pi_setprio+0xad/0x150
[ 10.331958][ T1] ? vring_transport_features+0x49/0xb0
[ 10.331958][ T1] virtio_dev_probe+0x5ff/0x9b0
[ 10.331958][ T1] ? __pfx_virtio_dev_probe+0x10/0x10
[ 10.331958][ T1] really_probe+0x23e/0xa90
[ 10.331958][ T1] __driver_probe_device+0x1de/0x440
[ 10.331958][ T1] ? _raw_spin_unlock_irqrestore+0x52/0x80
[ 10.331958][ T1] driver_probe_device+0x4c/0x1b0
[ 10.331958][ T1] __driver_attach+0x283/0x580
[ 10.331958][ T1] ? __pfx___driver_attach+0x10/0x10
[ 10.331958][ T1] bus_for_each_dev+0x13c/0x1d0
[ 10.331958][ T1] ? __pfx_bus_for_each_dev+0x10/0x10
[ 10.331958][ T1] bus_add_driver+0x2ed/0x640
[ 10.331958][ T1] driver_register+0x15c/0x4b0
[ 10.331958][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.331958][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.331958][ T1] virtio_scsi_init+0x75/0x100
[ 10.331958][ T1] do_one_initcall+0x128/0x700
[ 10.331958][ T1] ? __pfx_do_one_initcall+0x10/0x10
[ 10.331958][ T1] ? trace_kmalloc+0x2d/0xe0
[ 10.331958][ T1] ? __kmalloc+0x218/0x440
[ 10.331958][ T1] kernel_init_freeable+0x69d/0xca0
[ 10.331958][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.331958][ T1] kernel_init+0x1c/0x2b0
[ 10.331958][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.331958][ T1] ret_from_fork+0x45/0x80
[ 10.331958][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.331958][ T1] ret_from_fork_asm+0x1a/0x30
[ 10.331958][ T1] </TASK>
[ 10.331958][ T1] Kernel Offset: disabled
[ 10.331958][ T1] Rebooting in 86400 seconds..
syzkaller build log:
go env (err=<nil>)
GO111MODULE='auto'
GOARCH='amd64'
GOBIN=''
GOCACHE='/syzkaller/.cache/go-build'
GOENV='/syzkaller/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/syzkaller/jobs-2/linux/gopath/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/syzkaller/jobs-2/linux/gopath'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.4'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/syzkaller/jobs-2/linux/gopath/src/github.com/google/syzkaller/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2246881086=/tmp/go-build -gno-record-gcc-switches'
git status (err=<nil>)
HEAD detached at db5b7ff0c
nothing to commit, working tree clean
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
go list -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go install ./sys/syz-sysgen
make .descriptions
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
bin/syz-sysgen
touch .descriptions
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=db5b7ff0c1508e1f6bc77ba4df578cabb88b9914 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240312-201727'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-fuzzer github.com/google/syzkaller/syz-fuzzer
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=db5b7ff0c1508e1f6bc77ba4df578cabb88b9914 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240312-201727'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=db5b7ff0c1508e1f6bc77ba4df578cabb88b9914 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240312-201727'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-stress github.com/google/syzkaller/tools/syz-stress
mkdir -p ./bin/linux_amd64
gcc -o ./bin/linux_amd64/syz-executor executor/executor.cc \
-m64 -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -Wno-unused-but-set-variable -Wno-unused-command-line-argument -static-pie -fpermissive -w -DGOOS_linux=1 -DGOARCH_amd64=1 \
-DHOSTGOOS_linux=1 -DGIT_REVISION=\"db5b7ff0c1508e1f6bc77ba4df578cabb88b9914\"
Error text is too large and was truncated, full error text is at:
https://syzkaller.appspot.com/x/error.txt?x=14414711180000
Tested on:
commit: 70293240 Merge tag 'timers-urgent-2024-03-23' of git:/..
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
kernel config: https://syzkaller.appspot.com/x/.config?x=8f186ceee5fcb0b8
dashboard link: https://syzkaller.appspot.com/bug?extid=d2a2c639d03ac200a4f1
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
patch: https://syzkaller.appspot.com/x/patch.diff?x=12794231180000
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_prog_select_runtime
[not found] <20240324133644.801040-1-cam.alvarez.i@gmail.com>
@ 2024-03-24 14:16 ` syzbot
0 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2024-03-24 14:16 UTC (permalink / raw)
To: cam.alvarez.i, linux-kernel, syzkaller-bugs
Hello,
syzbot tried to test the proposed patch but the build/boot failed:
connector registered
[ 9.359254][ T1] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
[ 9.371403][ T1] [drm] Initialized vkms 1.0.0 20180514 for vkms on minor 1
[ 9.467368][ T1] Console: switching to colour frame buffer device 128x48
[ 9.484342][ T1] platform vkms: [drm] fb0: vkmsdrmfb frame buffer device
[ 9.486204][ T1] usbcore: registered new interface driver udl
[ 9.578720][ T1] brd: module loaded
[ 9.693765][ T1] loop: module loaded
[ 9.866647][ T1] zram: Added device: zram0
[ 9.881604][ T1] null_blk: disk nullb0 created
[ 9.882855][ T1] null_blk: module loaded
[ 9.885500][ T1] Guest personality initialized and is inactive
[ 9.888414][ T1] VMCI host device registered (name=vmci, major=10, minor=118)
[ 9.889712][ T1] Initialized host personality
[ 9.890736][ T1] usbcore: registered new interface driver rtsx_usb
[ 9.892808][ T1] usbcore: registered new interface driver viperboard
[ 9.895104][ T1] usbcore: registered new interface driver dln2
[ 9.896706][ T1] usbcore: registered new interface driver pn533_usb
[ 9.905496][ T1] nfcsim 0.2 initialized
[ 9.907243][ T1] usbcore: registered new interface driver port100
[ 9.909218][ T1] usbcore: registered new interface driver nfcmrvl
[ 9.920947][ T1] Loading iSCSI transport class v2.0-870.
[ 9.944531][ T1] virtio_scsi virtio0: 1/0/0 default/read/poll queues
[ 9.956692][ T1] ------------[ cut here ]------------
[ 9.958110][ T1] refcount_t: decrement hit 0; leaking memory.
[ 9.959897][ T1] WARNING: CPU: 1 PID: 1 at lib/refcount.c:31 refcount_warn_saturate+0x1ed/0x210
[ 9.961752][ T1] Modules linked in:
[ 9.963568][ T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.8.0-syzkaller-13213-g70293240c5ce-dirty #0
[ 9.965624][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
[ 9.967593][ T1] RIP: 0010:refcount_warn_saturate+0x1ed/0x210
[ 9.969540][ T1] Code: 8b e8 97 41 d2 fc 90 0f 0b 90 90 e9 c3 fe ff ff e8 f8 d2 0f fd c6 05 3b 02 4d 0b 01 90 48 c7 c7 80 e3 8e 8b e8 74 41 d2 fc 90 <0f> 0b 90 90 e9 a0 fe ff ff 48 89 ef e8 82 fb 6a fd e9 44 fe ff ff
[ 9.973886][ T1] RSP: 0000:ffffc900000673c0 EFLAGS: 00010286
[ 9.975016][ T1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff814fe149
[ 9.976375][ T1] RDX: ffff888016ec8000 RSI: ffffffff814fe156 RDI: 0000000000000001
[ 9.977761][ T1] RBP: ffff8881482bf6cc R08: 0000000000000001 R09: 0000000000000000
[ 9.979278][ T1] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8881482bf6cc
[ 9.980489][ T1] R13: 0000000000000000 R14: 0000000006d600b9 R15: ffff888016898588
[ 9.981672][ T1] FS: 0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
[ 9.983784][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 9.984872][ T1] CR2: 0000000000000000 CR3: 000000000d97a000 CR4: 00000000003506f0
[ 9.985995][ T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 9.987164][ T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 9.988333][ T1] Call Trace:
[ 9.988860][ T1] <TASK>
[ 9.989504][ T1] ? show_regs+0x8c/0xa0
[ 9.990098][ T1] ? __warn+0xe5/0x3c0
[ 9.990778][ T1] ? __wake_up_klogd.part.0+0x99/0xf0
[ 9.991767][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 9.993725][ T1] ? report_bug+0x3c0/0x580
[ 9.994547][ T1] ? handle_bug+0x3d/0x70
[ 9.995476][ T1] ? exc_invalid_op+0x17/0x50
[ 9.996166][ T1] ? asm_exc_invalid_op+0x1a/0x20
[ 9.997066][ T1] ? __warn_printk+0x199/0x350
[ 9.998094][ T1] ? __warn_printk+0x1a6/0x350
[ 9.998882][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 9.999734][ T1] __reset_page_owner+0x2ea/0x370
[ 10.000503][ T1] __free_pages_ok+0x5a9/0xbf0
[ 10.001625][ T1] ? __split_page_owner+0xdd/0x120
[ 10.002958][ T1] make_alloc_exact+0x165/0x260
[ 10.003811][ T1] vring_alloc_queue+0xc1/0x110
[ 10.004793][ T1] vring_alloc_queue_split+0x186/0x510
[ 10.005541][ T1] ? __pfx_vring_alloc_queue_split+0x10/0x10
[ 10.006529][ T1] ? kasan_save_stack+0x42/0x60
[ 10.007279][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.008113][ T1] vring_create_virtqueue_split+0xe8/0x280
[ 10.008947][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.009744][ T1] ? __pfx_vring_create_virtqueue_split+0x10/0x10
[ 10.010701][ T1] ? virtio_scsi_init+0x75/0x100
[ 10.011622][ T1] ? do_one_initcall+0x128/0x700
[ 10.012973][ T1] ? kernel_init_freeable+0x69d/0xca0
[ 10.013767][ T1] vring_create_virtqueue+0xd7/0x140
[ 10.014563][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.015363][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.016157][ T1] setup_vq+0x123/0x2f0
[ 10.016919][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.017685][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.018631][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.019563][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.020595][ T1] vp_setup_vq+0xb1/0x380
[ 10.021346][ T1] ? iowrite16+0x55/0x80
[ 10.022721][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.023661][ T1] vp_find_vqs_msix+0x661/0xe30
[ 10.024641][ T1] vp_find_vqs+0x58/0x560
[ 10.025268][ T1] virtscsi_init+0x459/0x9f0
[ 10.025910][ T1] ? __pfx_virtscsi_init+0x10/0x10
[ 10.026731][ T1] ? __pfx_default_calc_sets+0x10/0x10
[ 10.027554][ T1] ? ioread8+0x4e/0xa0
[ 10.028865][ T1] ? vp_get+0xf6/0x140
[ 10.029652][ T1] virtscsi_probe+0x3b2/0xdd0
[ 10.030336][ T1] ? __pfx_virtscsi_probe+0x10/0x10
[ 10.031081][ T1] ? trace_raw_output_sched_pi_setprio+0xad/0x150
[ 10.032065][ T1] ? vring_transport_features+0x49/0xb0
[ 10.033373][ T1] virtio_dev_probe+0x5ff/0x9b0
[ 10.034073][ T1] ? __pfx_virtio_dev_probe+0x10/0x10
[ 10.034830][ T1] really_probe+0x23e/0xa90
[ 10.035538][ T1] __driver_probe_device+0x1de/0x440
[ 10.036331][ T1] ? _raw_spin_unlock_irqrestore+0x52/0x80
[ 10.037275][ T1] driver_probe_device+0x4c/0x1b0
[ 10.038113][ T1] __driver_attach+0x283/0x580
[ 10.039309][ T1] ? __pfx___driver_attach+0x10/0x10
[ 10.040179][ T1] bus_for_each_dev+0x13c/0x1d0
[ 10.041034][ T1] ? __pfx_bus_for_each_dev+0x10/0x10
[ 10.041888][ T1] bus_add_driver+0x2ed/0x640
[ 10.043313][ T1] driver_register+0x15c/0x4b0
[ 10.044142][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.045056][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.045867][ T1] virtio_scsi_init+0x75/0x100
[ 10.047082][ T1] do_one_initcall+0x128/0x700
[ 10.047828][ T1] ? __pfx_do_one_initcall+0x10/0x10
[ 10.048864][ T1] ? trace_kmalloc+0x2d/0xe0
[ 10.049704][ T1] ? __kmalloc+0x218/0x440
[ 10.050337][ T1] kernel_init_freeable+0x69d/0xca0
[ 10.051075][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.051845][ T1] kernel_init+0x1c/0x2b0
[ 10.052956][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.053716][ T1] ret_from_fork+0x45/0x80
[ 10.054503][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.055226][ T1] ret_from_fork_asm+0x1a/0x30
[ 10.056190][ T1] </TASK>
[ 10.056638][ T1] Kernel panic - not syncing: kernel: panic_on_warn set ...
[ 10.057903][ T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.8.0-syzkaller-13213-g70293240c5ce-dirty #0
[ 10.059393][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
[ 10.060851][ T1] Call Trace:
[ 10.061436][ T1] <TASK>
[ 10.061914][ T1] dump_stack_lvl+0x3d/0x1f0
[ 10.062473][ T1] panic+0x6f5/0x7a0
[ 10.062473][ T1] ? __pfx_panic+0x10/0x10
[ 10.062473][ T1] ? show_trace_log_lvl+0x363/0x500
[ 10.062473][ T1] ? check_panic_on_warn+0x1f/0xb0
[ 10.062473][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 10.062473][ T1] check_panic_on_warn+0xab/0xb0
[ 10.062473][ T1] __warn+0xf1/0x3c0
[ 10.062473][ T1] ? __wake_up_klogd.part.0+0x99/0xf0
[ 10.062473][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 10.062473][ T1] report_bug+0x3c0/0x580
[ 10.062473][ T1] handle_bug+0x3d/0x70
[ 10.062473][ T1] exc_invalid_op+0x17/0x50
[ 10.062473][ T1] asm_exc_invalid_op+0x1a/0x20
[ 10.062473][ T1] RIP: 0010:refcount_warn_saturate+0x1ed/0x210
[ 10.062473][ T1] Code: 8b e8 97 41 d2 fc 90 0f 0b 90 90 e9 c3 fe ff ff e8 f8 d2 0f fd c6 05 3b 02 4d 0b 01 90 48 c7 c7 80 e3 8e 8b e8 74 41 d2 fc 90 <0f> 0b 90 90 e9 a0 fe ff ff 48 89 ef e8 82 fb 6a fd e9 44 fe ff ff
[ 10.062473][ T1] RSP: 0000:ffffc900000673c0 EFLAGS: 00010286
[ 10.062473][ T1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff814fe149
[ 10.062473][ T1] RDX: ffff888016ec8000 RSI: ffffffff814fe156 RDI: 0000000000000001
[ 10.062473][ T1] RBP: ffff8881482bf6cc R08: 0000000000000001 R09: 0000000000000000
[ 10.062473][ T1] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8881482bf6cc
[ 10.062473][ T1] R13: 0000000000000000 R14: 0000000006d600b9 R15: ffff888016898588
[ 10.062473][ T1] ? __warn_printk+0x199/0x350
[ 10.062473][ T1] ? __warn_printk+0x1a6/0x350
[ 10.062473][ T1] __reset_page_owner+0x2ea/0x370
[ 10.062473][ T1] __free_pages_ok+0x5a9/0xbf0
[ 10.062473][ T1] ? __split_page_owner+0xdd/0x120
[ 10.062473][ T1] make_alloc_exact+0x165/0x260
[ 10.062473][ T1] vring_alloc_queue+0xc1/0x110
[ 10.062473][ T1] vring_alloc_queue_split+0x186/0x510
[ 10.062473][ T1] ? __pfx_vring_alloc_queue_split+0x10/0x10
[ 10.062473][ T1] ? kasan_save_stack+0x42/0x60
[ 10.062473][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.062473][ T1] vring_create_virtqueue_split+0xe8/0x280
[ 10.062473][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.062473][ T1] ? __pfx_vring_create_virtqueue_split+0x10/0x10
[ 10.062473][ T1] ? virtio_scsi_init+0x75/0x100
[ 10.062473][ T1] ? do_one_initcall+0x128/0x700
[ 10.062473][ T1] ? kernel_init_freeable+0x69d/0xca0
[ 10.062473][ T1] vring_create_virtqueue+0xd7/0x140
[ 10.062473][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.062473][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.062473][ T1] setup_vq+0x123/0x2f0
[ 10.062473][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.062473][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.062473][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.062473][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.062473][ T1] vp_setup_vq+0xb1/0x380
[ 10.062473][ T1] ? iowrite16+0x55/0x80
[ 10.062473][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.062473][ T1] vp_find_vqs_msix+0x661/0xe30
[ 10.112351][ T1] vp_find_vqs+0x58/0x560
[ 10.112351][ T1] virtscsi_init+0x459/0x9f0
[ 10.112351][ T1] ? __pfx_virtscsi_init+0x10/0x10
[ 10.112351][ T1] ? __pfx_default_calc_sets+0x10/0x10
[ 10.112351][ T1] ? ioread8+0x4e/0xa0
[ 10.112351][ T1] ? vp_get+0xf6/0x140
[ 10.112351][ T1] virtscsi_probe+0x3b2/0xdd0
[ 10.112351][ T1] ? __pfx_virtscsi_probe+0x10/0x10
[ 10.112351][ T1] ? trace_raw_output_sched_pi_setprio+0xad/0x150
[ 10.112351][ T1] ? vring_transport_features+0x49/0xb0
[ 10.112351][ T1] virtio_dev_probe+0x5ff/0x9b0
[ 10.112351][ T1] ? __pfx_virtio_dev_probe+0x10/0x10
[ 10.112351][ T1] really_probe+0x23e/0xa90
[ 10.112351][ T1] __driver_probe_device+0x1de/0x440
[ 10.112351][ T1] ? _raw_spin_unlock_irqrestore+0x52/0x80
[ 10.112351][ T1] driver_probe_device+0x4c/0x1b0
[ 10.112351][ T1] __driver_attach+0x283/0x580
[ 10.112351][ T1] ? __pfx___driver_attach+0x10/0x10
[ 10.112351][ T1] bus_for_each_dev+0x13c/0x1d0
[ 10.112351][ T1] ? __pfx_bus_for_each_dev+0x10/0x10
[ 10.112351][ T1] bus_add_driver+0x2ed/0x640
[ 10.112351][ T1] driver_register+0x15c/0x4b0
[ 10.112351][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.112351][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.112351][ T1] virtio_scsi_init+0x75/0x100
[ 10.112351][ T1] do_one_initcall+0x128/0x700
[ 10.112351][ T1] ? __pfx_do_one_initcall+0x10/0x10
[ 10.112351][ T1] ? trace_kmalloc+0x2d/0xe0
[ 10.112351][ T1] ? __kmalloc+0x218/0x440
[ 10.112351][ T1] kernel_init_freeable+0x69d/0xca0
[ 10.112351][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.112351][ T1] kernel_init+0x1c/0x2b0
[ 10.112351][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.112351][ T1] ret_from_fork+0x45/0x80
[ 10.112351][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.112351][ T1] ret_from_fork_asm+0x1a/0x30
[ 10.112351][ T1] </TASK>
[ 10.112351][ T1] Kernel Offset: disabled
[ 10.112351][ T1] Rebooting in 86400 seconds..
syzkaller build log:
go env (err=<nil>)
GO111MODULE='auto'
GOARCH='amd64'
GOBIN=''
GOCACHE='/syzkaller/.cache/go-build'
GOENV='/syzkaller/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/syzkaller/jobs-2/linux/gopath/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/syzkaller/jobs-2/linux/gopath'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.4'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/syzkaller/jobs-2/linux/gopath/src/github.com/google/syzkaller/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2080839175=/tmp/go-build -gno-record-gcc-switches'
git status (err=<nil>)
HEAD detached at db5b7ff0c
nothing to commit, working tree clean
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
go list -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go install ./sys/syz-sysgen
make .descriptions
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
bin/syz-sysgen
touch .descriptions
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=db5b7ff0c1508e1f6bc77ba4df578cabb88b9914 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240312-201727'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-fuzzer github.com/google/syzkaller/syz-fuzzer
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=db5b7ff0c1508e1f6bc77ba4df578cabb88b9914 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240312-201727'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=db5b7ff0c1508e1f6bc77ba4df578cabb88b9914 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240312-201727'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-stress github.com/google/syzkaller/tools/syz-stress
mkdir -p ./bin/linux_amd64
gcc -o ./bin/linux_amd64/syz-executor executor/executor.cc \
-m64 -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -Wno-unused-but-set-variable -Wno-unused-command-line-argument -static-pie -fpermissive -w -DGOOS_linux=1 -DGOARCH_amd64=1 \
-DHOSTGOOS_linux=1 -DGIT_REVISION=\"db5b7ff0c1508e1f6bc77ba4df578cabb88b9914\"
Error text is too large and was truncated, full error text is at:
https://syzkaller.appspot.com/x/error.txt?x=14bff946180000
Tested on:
commit: 70293240 Merge tag 'timers-urgent-2024-03-23' of git:/..
git tree: upstream
kernel config: https://syzkaller.appspot.com/x/.config?x=8f186ceee5fcb0b8
dashboard link: https://syzkaller.appspot.com/bug?extid=d2a2c639d03ac200a4f1
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
patch: https://syzkaller.appspot.com/x/patch.diff?x=153af959180000
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_prog_select_runtime
[not found] <20240323225322.644483-1-cam.alvarez.i@gmail.com>
@ 2024-03-24 3:14 ` syzbot
0 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2024-03-24 3:14 UTC (permalink / raw)
To: cam.alvarez.i, linux-kernel, syzkaller-bugs
Hello,
syzbot tried to test the proposed patch but the build/boot failed:
connector registered
[ 9.395362][ T1] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
[ 9.409196][ T1] [drm] Initialized vkms 1.0.0 20180514 for vkms on minor 1
[ 9.505488][ T1] Console: switching to colour frame buffer device 128x48
[ 9.523984][ T1] platform vkms: [drm] fb0: vkmsdrmfb frame buffer device
[ 9.527824][ T1] usbcore: registered new interface driver udl
[ 9.622433][ T1] brd: module loaded
[ 9.743752][ T1] loop: module loaded
[ 9.902769][ T1] zram: Added device: zram0
[ 9.916379][ T1] null_blk: disk nullb0 created
[ 9.918529][ T1] null_blk: module loaded
[ 9.920792][ T1] Guest personality initialized and is inactive
[ 9.924876][ T1] VMCI host device registered (name=vmci, major=10, minor=118)
[ 9.928559][ T1] Initialized host personality
[ 9.930572][ T1] usbcore: registered new interface driver rtsx_usb
[ 9.932974][ T1] usbcore: registered new interface driver viperboard
[ 9.935935][ T1] usbcore: registered new interface driver dln2
[ 9.938724][ T1] usbcore: registered new interface driver pn533_usb
[ 9.947749][ T1] nfcsim 0.2 initialized
[ 9.948705][ T1] usbcore: registered new interface driver port100
[ 9.950666][ T1] usbcore: registered new interface driver nfcmrvl
[ 9.959408][ T1] Loading iSCSI transport class v2.0-870.
[ 9.987262][ T1] virtio_scsi virtio0: 1/0/0 default/read/poll queues
[ 9.998269][ T1] ------------[ cut here ]------------
[ 9.999552][ T1] refcount_t: decrement hit 0; leaking memory.
[ 10.001603][ T1] WARNING: CPU: 0 PID: 1 at lib/refcount.c:31 refcount_warn_saturate+0x1ed/0x210
[ 10.006510][ T1] Modules linked in:
[ 10.007509][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.8.0-syzkaller-13213-g70293240c5ce-dirty #0
[ 10.009102][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
[ 10.012195][ T1] RIP: 0010:refcount_warn_saturate+0x1ed/0x210
[ 10.013921][ T1] Code: 8b e8 97 41 d2 fc 90 0f 0b 90 90 e9 c3 fe ff ff e8 f8 d2 0f fd c6 05 3b 02 4d 0b 01 90 48 c7 c7 80 e3 8e 8b e8 74 41 d2 fc 90 <0f> 0b 90 90 e9 a0 fe ff ff 48 89 ef e8 82 fb 6a fd e9 44 fe ff ff
[ 10.019663][ T1] RSP: 0000:ffffc900000673c0 EFLAGS: 00010286
[ 10.020684][ T1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff814fe149
[ 10.022230][ T1] RDX: ffff888016ec8000 RSI: ffffffff814fe156 RDI: 0000000000000001
[ 10.023825][ T1] RBP: ffff88814076401c R08: 0000000000000001 R09: 0000000000000000
[ 10.025544][ T1] R10: 0000000000000000 R11: 0000000000000001 R12: ffff88814076401c
[ 10.027340][ T1] R13: 0000000000000000 R14: 00000000000000ba R15: ffff88801687cd88
[ 10.029016][ T1] FS: 0000000000000000(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
[ 10.030539][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 10.031427][ T1] CR2: ffff88823ffff000 CR3: 000000000d97a000 CR4: 00000000003506f0
[ 10.032546][ T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 10.033980][ T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 10.035852][ T1] Call Trace:
[ 10.036365][ T1] <TASK>
[ 10.036882][ T1] ? show_regs+0x8c/0xa0
[ 10.037493][ T1] ? __warn+0xe5/0x3c0
[ 10.038211][ T1] ? __wake_up_klogd.part.0+0x99/0xf0
[ 10.039574][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 10.040456][ T1] ? report_bug+0x3c0/0x580
[ 10.041517][ T1] ? handle_bug+0x3d/0x70
[ 10.042234][ T1] ? exc_invalid_op+0x17/0x50
[ 10.042948][ T1] ? asm_exc_invalid_op+0x1a/0x20
[ 10.043682][ T1] ? __warn_printk+0x199/0x350
[ 10.044799][ T1] ? __warn_printk+0x1a6/0x350
[ 10.045592][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 10.046451][ T1] __reset_page_owner+0x2ea/0x370
[ 10.047479][ T1] __free_pages_ok+0x5a9/0xbf0
[ 10.048430][ T1] ? __split_page_owner+0xdd/0x120
[ 10.049202][ T1] make_alloc_exact+0x165/0x260
[ 10.050113][ T1] vring_alloc_queue+0xc1/0x110
[ 10.050904][ T1] vring_alloc_queue_split+0x186/0x510
[ 10.051842][ T1] ? __pfx_vring_alloc_queue_split+0x10/0x10
[ 10.052934][ T1] ? kasan_save_stack+0x42/0x60
[ 10.053823][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.054846][ T1] vring_create_virtqueue_split+0xe8/0x280
[ 10.055854][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.056636][ T1] ? __pfx_vring_create_virtqueue_split+0x10/0x10
[ 10.057892][ T1] ? virtio_scsi_init+0x75/0x100
[ 10.058583][ T1] ? do_one_initcall+0x128/0x700
[ 10.059429][ T1] ? kernel_init_freeable+0x69d/0xca0
[ 10.060342][ T1] vring_create_virtqueue+0xd7/0x140
[ 10.061332][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.062378][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.063213][ T1] setup_vq+0x123/0x2f0
[ 10.063881][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.064796][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.065863][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.067220][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.068258][ T1] vp_setup_vq+0xb1/0x380
[ 10.068926][ T1] ? iowrite16+0x55/0x80
[ 10.069593][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.070890][ T1] vp_find_vqs_msix+0x661/0xe30
[ 10.071561][ T1] vp_find_vqs+0x58/0x560
[ 10.072362][ T1] virtscsi_init+0x459/0x9f0
[ 10.073379][ T1] ? __pfx_virtscsi_init+0x10/0x10
[ 10.074307][ T1] ? __pfx_default_calc_sets+0x10/0x10
[ 10.075361][ T1] ? ioread8+0x4e/0xa0
[ 10.076028][ T1] ? vp_get+0xf6/0x140
[ 10.076816][ T1] virtscsi_probe+0x3b2/0xdd0
[ 10.077559][ T1] ? __pfx_virtscsi_probe+0x10/0x10
[ 10.078612][ T1] ? trace_raw_output_sched_pi_setprio+0xad/0x150
[ 10.079860][ T1] ? vring_transport_features+0x49/0xb0
[ 10.081158][ T1] virtio_dev_probe+0x5ff/0x9b0
[ 10.082032][ T1] ? __pfx_virtio_dev_probe+0x10/0x10
[ 10.083127][ T1] really_probe+0x23e/0xa90
[ 10.083932][ T1] __driver_probe_device+0x1de/0x440
[ 10.084857][ T1] ? _raw_spin_unlock_irqrestore+0x52/0x80
[ 10.085794][ T1] driver_probe_device+0x4c/0x1b0
[ 10.086673][ T1] __driver_attach+0x283/0x580
[ 10.087529][ T1] ? __pfx___driver_attach+0x10/0x10
[ 10.088560][ T1] bus_for_each_dev+0x13c/0x1d0
[ 10.089562][ T1] ? __pfx_bus_for_each_dev+0x10/0x10
[ 10.090418][ T1] bus_add_driver+0x2ed/0x640
[ 10.091571][ T1] driver_register+0x15c/0x4b0
[ 10.092608][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.093646][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.094950][ T1] virtio_scsi_init+0x75/0x100
[ 10.095893][ T1] do_one_initcall+0x128/0x700
[ 10.096901][ T1] ? __pfx_do_one_initcall+0x10/0x10
[ 10.098105][ T1] ? trace_kmalloc+0x2d/0xe0
[ 10.099520][ T1] ? __kmalloc+0x218/0x440
[ 10.100634][ T1] kernel_init_freeable+0x69d/0xca0
[ 10.101566][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.102281][ T1] kernel_init+0x1c/0x2b0
[ 10.103220][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.104324][ T1] ret_from_fork+0x45/0x80
[ 10.105295][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.106249][ T1] ret_from_fork_asm+0x1a/0x30
[ 10.107540][ T1] </TASK>
[ 10.108490][ T1] Kernel panic - not syncing: kernel: panic_on_warn set ...
[ 10.110018][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.8.0-syzkaller-13213-g70293240c5ce-dirty #0
[ 10.112294][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
[ 10.114304][ T1] Call Trace:
[ 10.114304][ T1] <TASK>
[ 10.114304][ T1] dump_stack_lvl+0x3d/0x1f0
[ 10.114304][ T1] panic+0x6f5/0x7a0
[ 10.114304][ T1] ? __pfx_panic+0x10/0x10
[ 10.114304][ T1] ? show_trace_log_lvl+0x363/0x500
[ 10.114304][ T1] ? check_panic_on_warn+0x1f/0xb0
[ 10.114304][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 10.114304][ T1] check_panic_on_warn+0xab/0xb0
[ 10.114304][ T1] __warn+0xf1/0x3c0
[ 10.114304][ T1] ? __wake_up_klogd.part.0+0x99/0xf0
[ 10.114304][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 10.114304][ T1] report_bug+0x3c0/0x580
[ 10.114304][ T1] handle_bug+0x3d/0x70
[ 10.114304][ T1] exc_invalid_op+0x17/0x50
[ 10.114304][ T1] asm_exc_invalid_op+0x1a/0x20
[ 10.114304][ T1] RIP: 0010:refcount_warn_saturate+0x1ed/0x210
[ 10.114304][ T1] Code: 8b e8 97 41 d2 fc 90 0f 0b 90 90 e9 c3 fe ff ff e8 f8 d2 0f fd c6 05 3b 02 4d 0b 01 90 48 c7 c7 80 e3 8e 8b e8 74 41 d2 fc 90 <0f> 0b 90 90 e9 a0 fe ff ff 48 89 ef e8 82 fb 6a fd e9 44 fe ff ff
[ 10.114304][ T1] RSP: 0000:ffffc900000673c0 EFLAGS: 00010286
[ 10.114304][ T1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff814fe149
[ 10.114304][ T1] RDX: ffff888016ec8000 RSI: ffffffff814fe156 RDI: 0000000000000001
[ 10.114304][ T1] RBP: ffff88814076401c R08: 0000000000000001 R09: 0000000000000000
[ 10.114304][ T1] R10: 0000000000000000 R11: 0000000000000001 R12: ffff88814076401c
[ 10.114304][ T1] R13: 0000000000000000 R14: 00000000000000ba R15: ffff88801687cd88
[ 10.114304][ T1] ? __warn_printk+0x199/0x350
[ 10.114304][ T1] ? __warn_printk+0x1a6/0x350
[ 10.114304][ T1] __reset_page_owner+0x2ea/0x370
[ 10.114304][ T1] __free_pages_ok+0x5a9/0xbf0
[ 10.114304][ T1] ? __split_page_owner+0xdd/0x120
[ 10.114304][ T1] make_alloc_exact+0x165/0x260
[ 10.114304][ T1] vring_alloc_queue+0xc1/0x110
[ 10.114304][ T1] vring_alloc_queue_split+0x186/0x510
[ 10.114304][ T1] ? __pfx_vring_alloc_queue_split+0x10/0x10
[ 10.114304][ T1] ? kasan_save_stack+0x42/0x60
[ 10.114304][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.114304][ T1] vring_create_virtqueue_split+0xe8/0x280
[ 10.114304][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.114304][ T1] ? __pfx_vring_create_virtqueue_split+0x10/0x10
[ 10.114304][ T1] ? virtio_scsi_init+0x75/0x100
[ 10.114304][ T1] ? do_one_initcall+0x128/0x700
[ 10.114304][ T1] ? kernel_init_freeable+0x69d/0xca0
[ 10.114304][ T1] vring_create_virtqueue+0xd7/0x140
[ 10.114304][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.114304][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.114304][ T1] setup_vq+0x123/0x2f0
[ 10.114304][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.114304][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.114304][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.114304][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.114304][ T1] vp_setup_vq+0xb1/0x380
[ 10.114304][ T1] ? iowrite16+0x55/0x80
[ 10.114304][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.114304][ T1] vp_find_vqs_msix+0x661/0xe30
[ 10.114304][ T1] vp_find_vqs+0x58/0x560
[ 10.114304][ T1] virtscsi_init+0x459/0x9f0
[ 10.114304][ T1] ? __pfx_virtscsi_init+0x10/0x10
[ 10.114304][ T1] ? __pfx_default_calc_sets+0x10/0x10
[ 10.114304][ T1] ? ioread8+0x4e/0xa0
[ 10.114304][ T1] ? vp_get+0xf6/0x140
[ 10.114304][ T1] virtscsi_probe+0x3b2/0xdd0
[ 10.114304][ T1] ? __pfx_virtscsi_probe+0x10/0x10
[ 10.114304][ T1] ? trace_raw_output_sched_pi_setprio+0xad/0x150
[ 10.114304][ T1] ? vring_transport_features+0x49/0xb0
[ 10.114304][ T1] virtio_dev_probe+0x5ff/0x9b0
[ 10.114304][ T1] ? __pfx_virtio_dev_probe+0x10/0x10
[ 10.114304][ T1] really_probe+0x23e/0xa90
[ 10.114304][ T1] __driver_probe_device+0x1de/0x440
[ 10.114304][ T1] ? _raw_spin_unlock_irqrestore+0x52/0x80
[ 10.114304][ T1] driver_probe_device+0x4c/0x1b0
[ 10.114304][ T1] __driver_attach+0x283/0x580
[ 10.114304][ T1] ? __pfx___driver_attach+0x10/0x10
[ 10.114304][ T1] bus_for_each_dev+0x13c/0x1d0
[ 10.114304][ T1] ? __pfx_bus_for_each_dev+0x10/0x10
[ 10.114304][ T1] bus_add_driver+0x2ed/0x640
[ 10.114304][ T1] driver_register+0x15c/0x4b0
[ 10.114304][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.114304][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.114304][ T1] virtio_scsi_init+0x75/0x100
[ 10.114304][ T1] do_one_initcall+0x128/0x700
[ 10.114304][ T1] ? __pfx_do_one_initcall+0x10/0x10
[ 10.114304][ T1] ? trace_kmalloc+0x2d/0xe0
[ 10.114304][ T1] ? __kmalloc+0x218/0x440
[ 10.114304][ T1] kernel_init_freeable+0x69d/0xca0
[ 10.114304][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.114304][ T1] kernel_init+0x1c/0x2b0
[ 10.114304][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.114304][ T1] ret_from_fork+0x45/0x80
[ 10.114304][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.114304][ T1] ret_from_fork_asm+0x1a/0x30
[ 10.114304][ T1] </TASK>
[ 10.114304][ T1] Kernel Offset: disabled
[ 10.114304][ T1] Rebooting in 86400 seconds..
syzkaller build log:
go env (err=<nil>)
GO111MODULE='auto'
GOARCH='amd64'
GOBIN=''
GOCACHE='/syzkaller/.cache/go-build'
GOENV='/syzkaller/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/syzkaller/jobs-2/linux/gopath/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/syzkaller/jobs-2/linux/gopath'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.4'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/syzkaller/jobs-2/linux/gopath/src/github.com/google/syzkaller/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2524813086=/tmp/go-build -gno-record-gcc-switches'
git status (err=<nil>)
HEAD detached at db5b7ff0c
nothing to commit, working tree clean
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
go list -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go install ./sys/syz-sysgen
make .descriptions
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
bin/syz-sysgen
touch .descriptions
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=db5b7ff0c1508e1f6bc77ba4df578cabb88b9914 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240312-201727'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-fuzzer github.com/google/syzkaller/syz-fuzzer
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=db5b7ff0c1508e1f6bc77ba4df578cabb88b9914 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240312-201727'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=db5b7ff0c1508e1f6bc77ba4df578cabb88b9914 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240312-201727'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-stress github.com/google/syzkaller/tools/syz-stress
mkdir -p ./bin/linux_amd64
gcc -o ./bin/linux_amd64/syz-executor executor/executor.cc \
-m64 -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -Wno-unused-but-set-variable -Wno-unused-command-line-argument -static-pie -fpermissive -w -DGOOS_linux=1 -DGOARCH_amd64=1 \
-DHOSTGOOS_linux=1 -DGIT_REVISION=\"db5b7ff0c1508e1f6bc77ba4df578cabb88b9914\"
Error text is too large and was truncated, full error text is at:
https://syzkaller.appspot.com/x/error.txt?x=16523d85180000
Tested on:
commit: 70293240 Merge tag 'timers-urgent-2024-03-23' of git:/..
git tree: upstream
kernel config: https://syzkaller.appspot.com/x/.config?x=8f186ceee5fcb0b8
dashboard link: https://syzkaller.appspot.com/bug?extid=d2a2c639d03ac200a4f1
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
patch: https://syzkaller.appspot.com/x/patch.diff?x=12014006180000
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_prog_select_runtime
[not found] <20240323212122.569974-1-cam.alvarez.i@gmail.com>
@ 2024-03-23 22:10 ` syzbot
0 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2024-03-23 22:10 UTC (permalink / raw)
To: cam.alvarez.i, linux-kernel, syzkaller-bugs
Hello,
syzbot tried to test the proposed patch but the build/boot failed:
connector registered
[ 9.572858][ T1] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
[ 9.584256][ T1] [drm] Initialized vkms 1.0.0 20180514 for vkms on minor 1
[ 9.680087][ T1] Console: switching to colour frame buffer device 128x48
[ 9.696560][ T1] platform vkms: [drm] fb0: vkmsdrmfb frame buffer device
[ 9.698211][ T1] usbcore: registered new interface driver udl
[ 9.793530][ T1] brd: module loaded
[ 9.913667][ T1] loop: module loaded
[ 10.101090][ T1] zram: Added device: zram0
[ 10.114153][ T1] null_blk: disk nullb0 created
[ 10.115012][ T1] null_blk: module loaded
[ 10.117246][ T1] Guest personality initialized and is inactive
[ 10.119788][ T1] VMCI host device registered (name=vmci, major=10, minor=118)
[ 10.121119][ T1] Initialized host personality
[ 10.122385][ T1] usbcore: registered new interface driver rtsx_usb
[ 10.124441][ T1] usbcore: registered new interface driver viperboard
[ 10.125799][ T1] usbcore: registered new interface driver dln2
[ 10.127995][ T1] usbcore: registered new interface driver pn533_usb
[ 10.138179][ T1] nfcsim 0.2 initialized
[ 10.140398][ T1] usbcore: registered new interface driver port100
[ 10.142027][ T1] usbcore: registered new interface driver nfcmrvl
[ 10.151644][ T1] Loading iSCSI transport class v2.0-870.
[ 10.171732][ T1] virtio_scsi virtio0: 1/0/0 default/read/poll queues
[ 10.186563][ T1] ------------[ cut here ]------------
[ 10.187348][ T1] refcount_t: decrement hit 0; leaking memory.
[ 10.188508][ T1] WARNING: CPU: 0 PID: 1 at lib/refcount.c:31 refcount_warn_saturate+0x1ed/0x210
[ 10.191432][ T1] Modules linked in:
[ 10.192019][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.8.0-syzkaller-13182-g484193fecd2b-dirty #0
[ 10.193638][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
[ 10.195427][ T1] RIP: 0010:refcount_warn_saturate+0x1ed/0x210
[ 10.196395][ T1] Code: 8b e8 17 42 d2 fc 90 0f 0b 90 90 e9 c3 fe ff ff e8 e8 d2 0f fd c6 05 bb 02 4d 0b 01 90 48 c7 c7 80 e3 8e 8b e8 f4 41 d2 fc 90 <0f> 0b 90 90 e9 a0 fe ff ff 48 89 ef e8 72 fb 6a fd e9 44 fe ff ff
[ 10.199935][ T1] RSP: 0000:ffffc900000673c0 EFLAGS: 00010286
[ 10.201025][ T1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff814fe149
[ 10.202204][ T1] RDX: ffff888016ec8000 RSI: ffffffff814fe156 RDI: 0000000000000001
[ 10.203507][ T1] RBP: ffff88814168f58c R08: 0000000000000001 R09: 0000000000000000
[ 10.204951][ T1] R10: 0000000000000000 R11: 0000000000000001 R12: ffff88814168f58c
[ 10.206164][ T1] R13: 0000000000000000 R14: 0000000006ae00b9 R15: ffff88801687a588
[ 10.208440][ T1] FS: 0000000000000000(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
[ 10.210295][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 10.211544][ T1] CR2: ffff88823ffff000 CR3: 000000000d97a000 CR4: 00000000003506f0
[ 10.213262][ T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 10.214476][ T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 10.215639][ T1] Call Trace:
[ 10.216229][ T1] <TASK>
[ 10.216789][ T1] ? show_regs+0x8c/0xa0
[ 10.217525][ T1] ? __warn+0xe5/0x3c0
[ 10.218395][ T1] ? __wake_up_klogd.part.0+0x99/0xf0
[ 10.219772][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 10.220616][ T1] ? report_bug+0x3c0/0x580
[ 10.221279][ T1] ? handle_bug+0x3d/0x70
[ 10.221955][ T1] ? exc_invalid_op+0x17/0x50
[ 10.222793][ T1] ? asm_exc_invalid_op+0x1a/0x20
[ 10.224072][ T1] ? __warn_printk+0x199/0x350
[ 10.225145][ T1] ? __warn_printk+0x1a6/0x350
[ 10.225925][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 10.226934][ T1] __reset_page_owner+0x2ea/0x370
[ 10.227736][ T1] __free_pages_ok+0x5a9/0xbf0
[ 10.228415][ T1] ? __split_page_owner+0xdd/0x120
[ 10.229191][ T1] make_alloc_exact+0x165/0x260
[ 10.229917][ T1] vring_alloc_queue+0xc1/0x110
[ 10.230635][ T1] vring_alloc_queue_split+0x186/0x510
[ 10.231420][ T1] ? __pfx_vring_alloc_queue_split+0x10/0x10
[ 10.232251][ T1] ? kasan_save_stack+0x42/0x60
[ 10.232963][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.234590][ T1] vring_create_virtqueue_split+0xe8/0x280
[ 10.235665][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.236516][ T1] ? __pfx_vring_create_virtqueue_split+0x10/0x10
[ 10.237686][ T1] ? virtio_scsi_init+0x75/0x100
[ 10.238656][ T1] ? do_one_initcall+0x128/0x700
[ 10.239488][ T1] ? kernel_init_freeable+0x69d/0xca0
[ 10.240398][ T1] vring_create_virtqueue+0xd7/0x140
[ 10.241186][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.241965][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.243112][ T1] setup_vq+0x123/0x2f0
[ 10.243810][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.244761][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.245553][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.246547][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.247478][ T1] vp_setup_vq+0xb1/0x380
[ 10.248194][ T1] ? iowrite16+0x55/0x80
[ 10.249175][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.250422][ T1] vp_find_vqs_msix+0x661/0xe30
[ 10.251165][ T1] vp_find_vqs+0x58/0x560
[ 10.251947][ T1] virtscsi_init+0x459/0x9f0
[ 10.252881][ T1] ? __pfx_virtscsi_init+0x10/0x10
[ 10.253796][ T1] ? __pfx_default_calc_sets+0x10/0x10
[ 10.254568][ T1] ? ioread8+0x4e/0xa0
[ 10.255139][ T1] ? vp_get+0xf6/0x140
[ 10.255707][ T1] virtscsi_probe+0x3b2/0xdd0
[ 10.256452][ T1] ? __pfx_virtscsi_probe+0x10/0x10
[ 10.257363][ T1] ? trace_raw_output_sched_pi_setprio+0xad/0x150
[ 10.259318][ T1] ? vring_transport_features+0x49/0xb0
[ 10.260183][ T1] virtio_dev_probe+0x5ff/0x9b0
[ 10.260877][ T1] ? __pfx_virtio_dev_probe+0x10/0x10
[ 10.261663][ T1] really_probe+0x23e/0xa90
[ 10.262480][ T1] __driver_probe_device+0x1de/0x440
[ 10.263462][ T1] ? _raw_spin_unlock_irqrestore+0x52/0x80
[ 10.264576][ T1] driver_probe_device+0x4c/0x1b0
[ 10.265289][ T1] __driver_attach+0x283/0x580
[ 10.265950][ T1] ? __pfx___driver_attach+0x10/0x10
[ 10.266697][ T1] bus_for_each_dev+0x13c/0x1d0
[ 10.267364][ T1] ? __pfx_bus_for_each_dev+0x10/0x10
[ 10.268099][ T1] bus_add_driver+0x2ed/0x640
[ 10.268824][ T1] driver_register+0x15c/0x4b0
[ 10.269581][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.270424][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.271525][ T1] virtio_scsi_init+0x75/0x100
[ 10.272450][ T1] do_one_initcall+0x128/0x700
[ 10.273380][ T1] ? __pfx_do_one_initcall+0x10/0x10
[ 10.274148][ T1] ? trace_kmalloc+0x2d/0xe0
[ 10.274844][ T1] ? __kmalloc+0x218/0x440
[ 10.275566][ T1] kernel_init_freeable+0x69d/0xca0
[ 10.276467][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.277287][ T1] kernel_init+0x1c/0x2b0
[ 10.278215][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.279001][ T1] ret_from_fork+0x45/0x80
[ 10.279722][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.280617][ T1] ret_from_fork_asm+0x1a/0x30
[ 10.281685][ T1] </TASK>
[ 10.282111][ T1] Kernel panic - not syncing: kernel: panic_on_warn set ...
[ 10.283173][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.8.0-syzkaller-13182-g484193fecd2b-dirty #0
[ 10.284676][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
[ 10.286446][ T1] Call Trace:
[ 10.286986][ T1] <TASK>
[ 10.287455][ T1] dump_stack_lvl+0x3d/0x1f0
[ 10.288227][ T1] panic+0x6f5/0x7a0
[ 10.288985][ T1] ? __pfx_panic+0x10/0x10
[ 10.288985][ T1] ? show_trace_log_lvl+0x363/0x500
[ 10.288985][ T1] ? check_panic_on_warn+0x1f/0xb0
[ 10.288985][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 10.288985][ T1] check_panic_on_warn+0xab/0xb0
[ 10.288985][ T1] __warn+0xf1/0x3c0
[ 10.288985][ T1] ? __wake_up_klogd.part.0+0x99/0xf0
[ 10.288985][ T1] ? refcount_warn_saturate+0x1ed/0x210
[ 10.288985][ T1] report_bug+0x3c0/0x580
[ 10.288985][ T1] handle_bug+0x3d/0x70
[ 10.288985][ T1] exc_invalid_op+0x17/0x50
[ 10.288985][ T1] asm_exc_invalid_op+0x1a/0x20
[ 10.288985][ T1] RIP: 0010:refcount_warn_saturate+0x1ed/0x210
[ 10.298878][ T1] Code: 8b e8 17 42 d2 fc 90 0f 0b 90 90 e9 c3 fe ff ff e8 e8 d2 0f fd c6 05 bb 02 4d 0b 01 90 48 c7 c7 80 e3 8e 8b e8 f4 41 d2 fc 90 <0f> 0b 90 90 e9 a0 fe ff ff 48 89 ef e8 72 fb 6a fd e9 44 fe ff ff
[ 10.298878][ T1] RSP: 0000:ffffc900000673c0 EFLAGS: 00010286
[ 10.298878][ T1] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff814fe149
[ 10.298878][ T1] RDX: ffff888016ec8000 RSI: ffffffff814fe156 RDI: 0000000000000001
[ 10.298878][ T1] RBP: ffff88814168f58c R08: 0000000000000001 R09: 0000000000000000
[ 10.298878][ T1] R10: 0000000000000000 R11: 0000000000000001 R12: ffff88814168f58c
[ 10.298878][ T1] R13: 0000000000000000 R14: 0000000006ae00b9 R15: ffff88801687a588
[ 10.308799][ T1] ? __warn_printk+0x199/0x350
[ 10.308799][ T1] ? __warn_printk+0x1a6/0x350
[ 10.308799][ T1] __reset_page_owner+0x2ea/0x370
[ 10.308799][ T1] __free_pages_ok+0x5a9/0xbf0
[ 10.308799][ T1] ? __split_page_owner+0xdd/0x120
[ 10.308799][ T1] make_alloc_exact+0x165/0x260
[ 10.308799][ T1] vring_alloc_queue+0xc1/0x110
[ 10.308799][ T1] vring_alloc_queue_split+0x186/0x510
[ 10.308799][ T1] ? __pfx_vring_alloc_queue_split+0x10/0x10
[ 10.308799][ T1] ? kasan_save_stack+0x42/0x60
[ 10.308799][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.318898][ T1] vring_create_virtqueue_split+0xe8/0x280
[ 10.318898][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.318898][ T1] ? __pfx_vring_create_virtqueue_split+0x10/0x10
[ 10.318898][ T1] ? virtio_scsi_init+0x75/0x100
[ 10.318898][ T1] ? do_one_initcall+0x128/0x700
[ 10.318898][ T1] ? kernel_init_freeable+0x69d/0xca0
[ 10.318898][ T1] vring_create_virtqueue+0xd7/0x140
[ 10.318898][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.318898][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.318898][ T1] setup_vq+0x123/0x2f0
[ 10.318898][ T1] ? __pfx_vp_notify+0x10/0x10
[ 10.318898][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.328775][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.328775][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.328775][ T1] vp_setup_vq+0xb1/0x380
[ 10.328775][ T1] ? iowrite16+0x55/0x80
[ 10.328775][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 10.328775][ T1] vp_find_vqs_msix+0x661/0xe30
[ 10.328775][ T1] vp_find_vqs+0x58/0x560
[ 10.328775][ T1] virtscsi_init+0x459/0x9f0
[ 10.328775][ T1] ? __pfx_virtscsi_init+0x10/0x10
[ 10.328775][ T1] ? __pfx_default_calc_sets+0x10/0x10
[ 10.328775][ T1] ? ioread8+0x4e/0xa0
[ 10.328775][ T1] ? vp_get+0xf6/0x140
[ 10.328775][ T1] virtscsi_probe+0x3b2/0xdd0
[ 10.338889][ T1] ? __pfx_virtscsi_probe+0x10/0x10
[ 10.338889][ T1] ? trace_raw_output_sched_pi_setprio+0xad/0x150
[ 10.338889][ T1] ? vring_transport_features+0x49/0xb0
[ 10.338889][ T1] virtio_dev_probe+0x5ff/0x9b0
[ 10.338889][ T1] ? __pfx_virtio_dev_probe+0x10/0x10
[ 10.338889][ T1] really_probe+0x23e/0xa90
[ 10.338889][ T1] __driver_probe_device+0x1de/0x440
[ 10.338889][ T1] ? _raw_spin_unlock_irqrestore+0x52/0x80
[ 10.338889][ T1] driver_probe_device+0x4c/0x1b0
[ 10.338889][ T1] __driver_attach+0x283/0x580
[ 10.338889][ T1] ? __pfx___driver_attach+0x10/0x10
[ 10.338889][ T1] bus_for_each_dev+0x13c/0x1d0
[ 10.348774][ T1] ? __pfx_bus_for_each_dev+0x10/0x10
[ 10.348774][ T1] bus_add_driver+0x2ed/0x640
[ 10.348774][ T1] driver_register+0x15c/0x4b0
[ 10.348774][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.348774][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 10.348774][ T1] virtio_scsi_init+0x75/0x100
[ 10.348774][ T1] do_one_initcall+0x128/0x700
[ 10.348774][ T1] ? __pfx_do_one_initcall+0x10/0x10
[ 10.348774][ T1] ? trace_kmalloc+0x2d/0xe0
[ 10.348774][ T1] ? __kmalloc+0x218/0x440
[ 10.348774][ T1] kernel_init_freeable+0x69d/0xca0
[ 10.348774][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.348774][ T1] kernel_init+0x1c/0x2b0
[ 10.358850][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.358850][ T1] ret_from_fork+0x45/0x80
[ 10.358850][ T1] ? __pfx_kernel_init+0x10/0x10
[ 10.358850][ T1] ret_from_fork_asm+0x1a/0x30
[ 10.358850][ T1] </TASK>
[ 10.358850][ T1] Kernel Offset: disabled
[ 10.358850][ T1] Rebooting in 86400 seconds..
syzkaller build log:
go env (err=<nil>)
GO111MODULE='auto'
GOARCH='amd64'
GOBIN=''
GOCACHE='/syzkaller/.cache/go-build'
GOENV='/syzkaller/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/syzkaller/jobs-2/linux/gopath/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/syzkaller/jobs-2/linux/gopath'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.4'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/syzkaller/jobs-2/linux/gopath/src/github.com/google/syzkaller/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build1980677323=/tmp/go-build -gno-record-gcc-switches'
git status (err=<nil>)
HEAD detached at db5b7ff0c
nothing to commit, working tree clean
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
go list -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go install ./sys/syz-sysgen
make .descriptions
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command via tools/syz-env for best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
bin/syz-sysgen
touch .descriptions
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=db5b7ff0c1508e1f6bc77ba4df578cabb88b9914 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240312-201727'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-fuzzer github.com/google/syzkaller/syz-fuzzer
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=db5b7ff0c1508e1f6bc77ba4df578cabb88b9914 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240312-201727'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=db5b7ff0c1508e1f6bc77ba4df578cabb88b9914 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240312-201727'" "-tags=syz_target syz_os_linux syz_arch_amd64 " -o ./bin/linux_amd64/syz-stress github.com/google/syzkaller/tools/syz-stress
mkdir -p ./bin/linux_amd64
gcc -o ./bin/linux_amd64/syz-executor executor/executor.cc \
-m64 -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=16384 -Wno-stringop-overflow -Wno-array-bounds -Wno-format-overflow -Wno-unused-but-set-variable -Wno-unused-command-line-argument -static-pie -fpermissive -w -DGOOS_linux=1 -DGOARCH_amd64=1 \
-DHOSTGOOS_linux=1 -DGIT_REVISION=\"db5b7ff0c1508e1f6bc77ba4df578cabb88b9914\"
Error text is too large and was truncated, full error text is at:
https://syzkaller.appspot.com/x/error.txt?x=14e14231180000
Tested on:
commit: 484193fe Merge tag 'powerpc-6.9-2' of git://git.kernel..
git tree: upstream
kernel config: https://syzkaller.appspot.com/x/.config?x=8f186ceee5fcb0b8
dashboard link: https://syzkaller.appspot.com/bug?extid=d2a2c639d03ac200a4f1
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
patch: https://syzkaller.appspot.com/x/patch.diff?x=1298a7b6180000
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2024-05-05 0:31 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-14 14:25 [syzbot] [bpf?] UBSAN: array-index-out-of-bounds in bpf_prog_select_runtime syzbot
2024-03-23 21:22 ` [syzbot] [PATCH] fix " syzbot
2024-03-23 22:54 ` syzbot
2024-03-24 13:38 ` syzbot
2024-03-24 14:30 ` syzbot
2024-03-24 23:12 ` syzbot
2024-05-05 0:03 ` syzbot
[not found] <20240323212122.569974-1-cam.alvarez.i@gmail.com>
2024-03-23 22:10 ` [syzbot] [bpf?] UBSAN: " syzbot
[not found] <20240323225322.644483-1-cam.alvarez.i@gmail.com>
2024-03-24 3:14 ` syzbot
[not found] <20240324133644.801040-1-cam.alvarez.i@gmail.com>
2024-03-24 14:16 ` syzbot
[not found] <20240324142705.3345-1-cam.alvarez.i@gmail.com>
2024-03-24 14:55 ` syzbot
[not found] <20240324231006.79378-1-cam.alvarez.i@gmail.com>
2024-03-25 3:54 ` syzbot
[not found] <20240505000131.203160-1-cam.alvarez.i@gmail.com>
2024-05-05 0:31 ` syzbot
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.