BUG: sleeping function called from invalid context in vhost_get_avail_idx
Subsystems (5)
syzbot
syzbotHello,
syzbot found the following issue on:
HEAD commit: 8541d8f725c6 Merge tag 'mtd/for-7.1' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=136454ce580000 kernel config: https://syzkaller.appspot.com/x/.config?x=7e54da1916e8d11f dashboard link: https://syzkaller.appspot.com/bug?extid=6985cb8e543ea90ba8ee compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15d264ce580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=143ec1ba580000
Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/d900f083ada3/non_bootable_disk-8541d8f7.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/22dfea2c37c2/vmlinux-8541d8f7.xz
kernel image: https://storage.googleapis.com/syzbot-assets/e2f93ad68fe3/bzImage-8541d8f7.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
BUG: sleeping function called from invalid context at drivers/vhost/vhost.c:1527
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6110, name: vhost-6109preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
2 locks held by vhost-6109/6110:
#0: ffff888055624cb0 (&vq->mutex/1){+.+.}-{4:4}, at: handle_tx+0x2d/0x160 drivers/vhost/net.c:971 #1: ffff888055620248 (&vq->mutex){+.+.}-{4:4}, at: vhost_net_busy_poll+0x9c/0x730 drivers/vhost/net.c:554
Preemption disabled at:
[<ffffffff88f1a006>] vhost_net_busy_poll+0x1c6/0x730 drivers/vhost/net.c:563 CPU: 0 UID: 0 PID: 6110 Comm: vhost-6109 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: <TASK> __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 __might_resched.cold+0x1ec/0x232 kernel/sched/core.c:9162 __might_fault+0x8b/0x140 mm/memory.c:7322 vhost_get_avail_idx+0x31c/0x4f0 drivers/vhost/vhost.c:1527 vhost_vq_avail_empty drivers/vhost/vhost.c:3206 [inline] vhost_vq_avail_empty+0xa9/0xe0 drivers/vhost/vhost.c:3199 vhost_net_busy_poll+0x297/0x730 drivers/vhost/net.c:574 vhost_net_tx_get_vq_desc drivers/vhost/net.c:610 [inline] get_tx_bufs.constprop.0+0x338/0x600 drivers/vhost/net.c:650 handle_tx_copy+0x28c/0x12e0 drivers/vhost/net.c:778 handle_tx+0x139/0x160 drivers/vhost/net.c:985 vhost_run_work_list+0x183/0x220 drivers/vhost/vhost.c:454 vhost_task_fn+0x156/0x430 kernel/vhost_task.c:49 ret_from_fork+0x72b/0xd50 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK>
---
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 [email protected].
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
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
Quoted 22 lines · syzbot
Hello,
syzbot found the following issue on:
HEAD commit: 8541d8f725c6 Merge tag 'mtd/for-7.1' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=136454ce580000 kernel config: https://syzkaller.appspot.com/x/.config?x=7e54da1916e8d11f dashboard link: https://syzkaller.appspot.com/bug?extid=6985cb8e543ea90ba8ee compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15d264ce580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=143ec1ba580000Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/d900f083ada3/non_bootable_disk-8541d8f7.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/22dfea2c37c2/vmlinux-8541d8f7.xz
kernel image: https://storage.googleapis.com/syzbot-assets/e2f93ad68fe3/bzImage-8541d8f7.xzIMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by [email protected]BUG: sleeping function called from invalid context at drivers/vhost/vhost.c:1527
Quoted 8 lines
in_atomic(): 1,irqs_disabled(): 0,non_block: 0, pid: 6110, name: vhost-6109preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
2 locks held by vhost-6109/6110:
#0:ffff888055624cb0(&vq->mutex/1){+.+.}-{4:4}, at:handle_tx+0x2d/0x160drivers/vhost/net.c:971#1:ffff888055620248(&vq->mutex){+.+.}-{4:4}, at:vhost_net_busy_poll+0x9c/0x730drivers/vhost/net.c:554
Preemption disabled at:
[<ffffffff88f1a006>]vhost_net_busy_poll+0x1c6/0x730drivers/vhost/net.c:563
I think the blamed commit may be commit 030881372460 ("vhost_net: basic polling support"), since it introduced preempt_{disable,enable}() around the busy-poll loop, which calls a sleepable function inside the loop.
Also, from the changelog of the series,
https://lore.kernel.org/netdev/[email protected]/T/#u
Changes from RFC V1:
...
- Disable preemption during busy looping to make sure local_clock() was correctly used.
So my understanding is that preempt_disable() was introduced to keep local_clock() based timeout accounting on a single CPU, rather than as a requirement of busy polling itself.
If my understanding is correct, migrate_disable() is sufficient here instead of preempt_disable(), avoiding sleepable accesses from a preempt-disabled context.
#syz test
drivers/vhost/net.c +2 -2
@@ -560,7 +560,7 @@ static void vhost_net_busy_poll(struct vhost_net *net, busyloop_timeout = poll_rx ? rvq->busyloop_timeout: tvq->busyloop_timeout; -preempt_disable (); +migrate_disable (); endtime =busy_clock () + busyloop_timeout;while (vhost_can_busy_poll (endtime)) {
@@ -577,7 +577,7 @@ static void vhost_net_busy_poll(struct vhost_net *net,cpu_relax (); } -preempt_enable (); +migrate_enable ();if (poll_rx ||sock_has_rx_data (sock))vhost_net_busy_poll_try_queue (net, vq);
Quoted 47 lines
CPU: 0 UID: 0 PID: 6110 Comm: vhost-6109 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: <TASK> __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 __might_resched.cold+0x1ec/0x232 kernel/sched/core.c:9162 __might_fault+0x8b/0x140 mm/memory.c:7322 vhost_get_avail_idx+0x31c/0x4f0 drivers/vhost/vhost.c:1527 vhost_vq_avail_empty drivers/vhost/vhost.c:3206 [inline] vhost_vq_avail_empty+0xa9/0xe0 drivers/vhost/vhost.c:3199 vhost_net_busy_poll+0x297/0x730 drivers/vhost/net.c:574 vhost_net_tx_get_vq_desc drivers/vhost/net.c:610 [inline] get_tx_bufs.constprop.0+0x338/0x600 drivers/vhost/net.c:650 handle_tx_copy+0x28c/0x12e0 drivers/vhost/net.c:778 handle_tx+0x139/0x160 drivers/vhost/net.c:985 vhost_run_work_list+0x183/0x220 drivers/vhost/vhost.c:454 vhost_task_fn+0x156/0x430 kernel/vhost_task.c:49 ret_from_fork+0x72b/0xd50 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK>---
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 [email protected].syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-titleIf you want syzbot to run the reproducer, reply with:
#syz test:git://repo/address.gitbranch-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-reportIf you want to undo deduplication, reply with:
#syz undup
syzbot
syzbotsyzbot tried to test the proposed patch but the build/boot failed:
Hello,
syzbot tried to test the proposed patch but the build/boot failed:
failed to copy syz-execprog to VM: scp failed: failed to run ["scp" "-P" "36338" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "IdentitiesOnly=yes" "-o" "BatchMode=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-v" "/syzkaller/jobs/linux/gopath/src/github.com/google/syzkaller/bin/linux_amd64/syz-execprog" "root@localhost:/syz-execprog"]: exit status 1
syzkaller build log:
go env (err=<nil>)
AR='ar'
CC='gcc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='g++'
GCCGO='gccgo'
GO111MODULE='auto'
GOAMD64='v1'
GOARCH='amd64'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/syzkaller/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/syzkaller/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build4123752491=/tmp/go-build -gno-record-gcc-switches' GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/syzkaller/jobs/linux/gopath/src/github.com/google/syzkaller/go.mod'
GOMODCACHE='/syzkaller/jobs/linux/gopath/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/syzkaller/jobs/linux/gopath'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/syzkaller/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.26.0'
GOWORK=''
PKG_CONFIG='pkg-config'
git status (err=<nil>)
HEAD detached at 5be7a9deb87
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}}' -ldflags="-s -w -X github.com/google/syzkaller/prog.GitRevision=5be7a9deb87612d05fcc86125226d72bc2297875 -X github.com/google/syzkaller/prog.gitRevisionDate=20260417-202028" ./sys/syz-sysgen | grep -q false || go install -ldflags="-s -w -X github.com/google/syzkaller/prog.GitRevision=5be7a9deb87612d05fcc86125226d72bc2297875 -X github.com/google/syzkaller/prog.gitRevisionDate=20260417-202028" ./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=5be7a9deb87612d05fcc86125226d72bc2297875 -X github.com/google/syzkaller/prog.gitRevisionDate=20260417-202028" -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog
mkdir -p ./bin/linux_amd64
g++ -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 -std=c++17 -I. -Iexecutor/_include -DGOOS_linux=1 -DGOARCH_amd64=1 \ -DHOSTGOOS_linux=1 -DGIT_REVISION=\"5be7a9deb87612d05fcc86125226d72bc2297875\"
/usr/bin/ld: /tmp/ccUDlBPa.o: in function `Connection::Connect(char const*, char const*)':
executor.cc:(.text._ZN10Connection7ConnectEPKcS1_[_ZN10Connection7ConnectEPKcS1_]+0x386): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking ./tools/check-syzos.sh 2>/dev/null
Tested on:
commit: 4ee64205 Merge tag 'clk-for-linus' of git://git.kernel.. git tree: upstream kernel config: https://syzkaller.appspot.com/x/.config?x=95ee3fe1c5a8ab57 dashboard link: https://syzkaller.appspot.com/bug?extid=6985cb8e543ea90ba8ee compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 patch: https://syzkaller.appspot.com/x/patch.diff?x=122eb4ce580000
Michael S. Tsirkin
maintainerQuoted 69 lines · Kohei Enju
Quoted 22 lines · syzbot
Hello,
syzbot found the following issue on:
HEAD commit: 8541d8f725c6 Merge tag 'mtd/for-7.1' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=136454ce580000 kernel config: https://syzkaller.appspot.com/x/.config?x=7e54da1916e8d11f dashboard link: https://syzkaller.appspot.com/bug?extid=6985cb8e543ea90ba8ee compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15d264ce580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=143ec1ba580000Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/d900f083ada3/non_bootable_disk-8541d8f7.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/22dfea2c37c2/vmlinux-8541d8f7.xz
kernel image: https://storage.googleapis.com/syzbot-assets/e2f93ad68fe3/bzImage-8541d8f7.xzIMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by [email protected]BUG: sleeping function called from invalid context at drivers/vhost/vhost.c:1527Quoted 8 lines
in_atomic(): 1,irqs_disabled(): 0,non_block: 0, pid: 6110, name: vhost-6109preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
2 locks held by vhost-6109/6110:
#0:ffff888055624cb0(&vq->mutex/1){+.+.}-{4:4}, at:handle_tx+0x2d/0x160drivers/vhost/net.c:971#1:ffff888055620248(&vq->mutex){+.+.}-{4:4}, at:vhost_net_busy_poll+0x9c/0x730drivers/vhost/net.c:554
Preemption disabled at:
[<ffffffff88f1a006>]vhost_net_busy_poll+0x1c6/0x730drivers/vhost/net.c:563I think the blamed commit may be commit 030881372460 ("
vhost_net: basic polling support"), since it introduced preempt_{disable,enable}() around the busy-poll loop, which calls a sleepable function inside the loop.Also, from the changelog of the series,
https://lore.kernel.org/netdev/[email protected]/T/#u
Changes from RFC V1:
...
- Disable preemption during busy looping to make surelocal_clock()was correctly used.So my understanding is that
preempt_disable()was introduced to keeplocal_clock()based timeout accounting on a single CPU, rather than as a requirement of busy polling itself.If my understanding is correct,
migrate_disable()is sufficient here instead ofpreempt_disable(), avoiding sleepable accesses from a preempt-disabled context.#syz test
drivers/vhost/net.c +1
-1@@ -560,7 +560,7 @@ static void vhost_net_busy_poll(struct vhost_net *net, busyloop_timeout = poll_rx ? rvq->busyloop_timeout: tvq->busyloop_timeout; -preempt_disable (); +migrate_disable (); endtime =busy_clock () + busyloop_timeout;while (vhost_can_busy_poll (endtime)) {
drivers/vhost/net.c static void vhost_net_busy_poll(struct vhost_net *net, · line 583
Quoted 8 lines
drivers/vhost/net.c +1
-1@@ -577,7 +577,7 @@ static void vhost_net_busy_poll(struct vhost_net *net,cpu_relax (); } -preempt_enable (); +migrate_enable ();if (poll_rx ||sock_has_rx_data (sock))vhost_net_busy_poll_try_queue (net, vq);
Makes sense but this stipped up the bot. Try again?
Quoted 48 lines
Quoted 48 lines
CPU: 0 UID: 0 PID: 6110 Comm: vhost-6109 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: <TASK> __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 __might_resched.cold+0x1ec/0x232 kernel/sched/core.c:9162 __might_fault+0x8b/0x140 mm/memory.c:7322 vhost_get_avail_idx+0x31c/0x4f0 drivers/vhost/vhost.c:1527 vhost_vq_avail_empty drivers/vhost/vhost.c:3206 [inline] vhost_vq_avail_empty+0xa9/0xe0 drivers/vhost/vhost.c:3199 vhost_net_busy_poll+0x297/0x730 drivers/vhost/net.c:574 vhost_net_tx_get_vq_desc drivers/vhost/net.c:610 [inline] get_tx_bufs.constprop.0+0x338/0x600 drivers/vhost/net.c:650 handle_tx_copy+0x28c/0x12e0 drivers/vhost/net.c:778 handle_tx+0x139/0x160 drivers/vhost/net.c:985 vhost_run_work_list+0x183/0x220 drivers/vhost/vhost.c:454 vhost_task_fn+0x156/0x430 kernel/vhost_task.c:49 ret_from_fork+0x72b/0xd50 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK>---
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 [email protected].syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-titleIf you want syzbot to run the reproducer, reply with:
#syz test:git://repo/address.gitbranch-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-reportIf you want to undo deduplication, reply with:
#syz undup
-netdev, Jason, Michael, not to spam them
Quoted 3 lines · syzbot
Hello,
syzbot tried to test the proposed patch but the build/boot failed:
I don't this this failure is caused by the patch, so retrying...
#syz test
drivers/vhost/net.c +2 -2
@@ -560,7 +560,7 @@ static void vhost_net_busy_poll(struct vhost_net *net, busyloop_timeout = poll_rx ? rvq->busyloop_timeout: tvq->busyloop_timeout; -preempt_disable (); +migrate_disable (); endtime =busy_clock () + busyloop_timeout;while (vhost_can_busy_poll (endtime)) {
@@ -577,7 +577,7 @@ static void vhost_net_busy_poll(struct vhost_net *net,cpu_relax (); } -preempt_enable (); +migrate_enable ();if (poll_rx ||sock_has_rx_data (sock))vhost_net_busy_poll_try_queue (net, vq);
Quoted 91 lines
failed to copy syz-execprog to VM: scp failed: failed to run ["scp" "-P" "36338" "-F" "
/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "IdentitiesOnly=yes" "-o" "BatchMode=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "-v" "/syzkaller/jobs/linux/gopath/src/github.com/google/syzkaller/bin/linux_amd64/syz-execprog" "root@localhost:/syz-execprog"]: exit status 1syzkaller build log:
go env (err=<nil>)
AR='ar'
CC='gcc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='g++'
GCCGO='gccgo'
GO111MODULE='auto'
GOAMD64='v1'
GOARCH='amd64'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/syzkaller/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/syzkaller/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build4123752491=/tmp/go-build -gno-record-gcc-switches' GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/syzkaller/jobs/linux/gopath/src/github.com/google/syzkaller/go.mod'
GOMODCACHE='/syzkaller/jobs/linux/gopath/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/syzkaller/jobs/linux/gopath'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/syzkaller/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.26.0'
GOWORK=''
PKG_CONFIG='pkg-config'git status (err=<nil>)
HEAD detached at5be7a9deb87
nothing to commit, working tree cleantput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Makefile:31: run command viatools/syz-envfor best compatibility, see:
Makefile:32: https://github.com/google/syzkaller/blob/master/docs/contributing.md#using-syz-env
go list -f '{{.Stale}}' -ldflags="-s -w -X github.com/google/syzkaller/prog.GitRevision=5be7a9deb87612d05fcc86125226d72bc2297875 -X github.com/google/syzkaller/prog.gitRevisionDate=20260417-202028" ./sys/syz-sysgen | grep -q false || go install -ldflags="-s -w -X github.com/google/syzkaller/prog.GitRevision=5be7a9deb87612d05fcc86125226d72bc2297875 -X github.com/google/syzkaller/prog.gitRevisionDate=20260417-202028" ./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 viatools/syz-envfor 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=5be7a9deb87612d05fcc86125226d72bc2297875 -X github.com/google/syzkaller/prog.gitRevisionDate=20260417-202028" -o ./bin/linux_amd64/syz-execprog github.com/google/syzkaller/tools/syz-execprog
mkdir -p ./bin/linux_amd64g++ -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 -std=c++17 -I. -Iexecutor/_include -DGOOS_linux=1 -DGOARCH_amd64=1 \ -DHOSTGOOS_linux=1 -DGIT_REVISION=\"5be7a9deb87612d05fcc86125226d72bc2297875\"
/usr/bin/ld:/tmp/ccUDlBPa.o: in function `Connection::Connect(char const*, char const*)':
executor.cc:(.text._ZN10Connection7ConnectEPKcS1_[_ZN10Connection7ConnectEPKcS1_]+0x386): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking./tools/check-syzos.sh2>/dev/nullTested on:
commit: 4ee64205 Merge tag 'clk-for-linus' of git://git.kernel.. git tree: upstream kernel config: https://syzkaller.appspot.com/x/.config?x=95ee3fe1c5a8ab57 dashboard link: https://syzkaller.appspot.com/bug?extid=6985cb8e543ea90ba8ee compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 patch: https://syzkaller.appspot.com/x/patch.diff?x=122eb4ce580000
syzbot has tested the proposed patch and the reproducer did not trigger any issue:
Hello,
syzbot has tested the proposed patch and the reproducer did not trigger any issue:
Tested on:
commit: d46dd0d8 Merge tag 'f2fs-for-7.1-rc1' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1120a2d2580000 kernel config: https://syzkaller.appspot.com/x/.config?x=3e19fa1907a3dfda dashboard link: https://syzkaller.appspot.com/bug?extid=6985cb8e543ea90ba8ee compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 patch: https://syzkaller.appspot.com/x/patch.diff?x=1738ac36580000
Note: testing is done by a robot and is best-effort only.
Quoted 23 lines · Michael S. Tsirkin
Quoted 23 lines
#syz test
drivers/vhost/net.c +2
-2@@ -560,7 +560,7 @@ static void vhost_net_busy_poll(struct vhost_net *net, busyloop_timeout = poll_rx ? rvq->busyloop_timeout: tvq->busyloop_timeout; -preempt_disable (); +migrate_disable (); endtime =busy_clock () + busyloop_timeout;while (vhost_can_busy_poll (endtime)) {@@ -577,7 +577,7 @@ static void vhost_net_busy_poll(struct vhost_net *net,cpu_relax (); } -preempt_enable (); +migrate_enable ();
Quoted 6 lines
drivers/vhost/net.c static void vhost_net_busy_poll(struct vhost_net *net, · line 583
Quoted 2 lines
drivers/vhost/net.c +0
-0if (poll_rx ||sock_has_rx_data (sock))vhost_net_busy_poll_try_queue (net, vq);Makes sense but this stipped up the bot. Try again?
Hi Michael,
Thanks for taking a look.
I've retried the testing, and it looks good.
https://lore.kernel.org/all/[email protected]/
Will send an official patch.