[<prev] [next>] [day] [month] [year] [list]
Message-ID: <000000000000580ad90614bda9bd@google.com>
Date: Thu, 28 Mar 2024 12:38:02 -0700
From: syzbot <syzbot+9c0a93c676799fdf466c@...kaller.appspotmail.com>
To: brauner@...nel.org, linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [fs?] WARNING: ODEBUG bug in bdev_super_lock
Hello,
syzbot tried to test the proposed patch but the build/boot failed:
[ 9.827096][ T1] ------------[ cut here ]------------
[ 9.828078][ T1] refcount_t: decrement hit 0; leaking memory.
[ 9.829800][ T1] WARNING: CPU: 1 PID: 1 at lib/refcount.c:31 refcount_warn_saturate+0xfa/0x1d0
[ 9.831609][ T1] Modules linked in:
[ 9.832246][ T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.9.0-rc1-syzkaller-g22650a99821d #0
[ 9.833858][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
[ 9.835637][ T1] RIP: 0010:refcount_warn_saturate+0xfa/0x1d0
[ 9.836865][ T1] Code: b2 00 00 00 e8 d7 db e9 fc 5b 5d e9 d0 85 e0 06 e8 cb db e9 fc c6 05 8f 84 e8 0a 01 90 48 c7 c7 60 32 1f 8c e8 07 78 ac fc 90 <0f> 0b 90 90 eb d9 e8 ab db e9 fc c6 05 6c 84 e8 0a 01 90 48 c7 c7
[ 9.840203][ T1] RSP: 0018:ffffc90000066e18 EFLAGS: 00010246
[ 9.841605][ T1] RAX: 73a55f6856218c00 RBX: ffff88802101cc6c RCX: ffff8880166d0000
[ 9.842848][ T1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 9.844053][ T1] RBP: 0000000000000004 R08: ffffffff815800c2 R09: fffffbfff1c396e0
[ 9.845853][ T1] R10: dffffc0000000000 R11: fffffbfff1c396e0 R12: ffffea000502cdc0
[ 9.847348][ T1] R13: ffffea000502cdc8 R14: 1ffffd4000a059b9 R15: 0000000000000000
[ 9.848493][ T1] FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
[ 9.850332][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 9.851729][ T1] CR2: 0000000000000000 CR3: 000000000e132000 CR4: 0000000000350ef0
[ 9.853028][ T1] Call Trace:
[ 9.853740][ T1] <TASK>
[ 9.854296][ T1] ? __warn+0x163/0x4e0
[ 9.855289][ T1] ? refcount_warn_saturate+0xfa/0x1d0
[ 9.856339][ T1] ? report_bug+0x2b3/0x500
[ 9.857091][ T1] ? refcount_warn_saturate+0xfa/0x1d0
[ 9.858009][ T1] ? handle_bug+0x3e/0x70
[ 9.859055][ T1] ? exc_invalid_op+0x1a/0x50
[ 9.859887][ T1] ? asm_exc_invalid_op+0x1a/0x20
[ 9.860670][ T1] ? __warn_printk+0x292/0x360
[ 9.861387][ T1] ? refcount_warn_saturate+0xfa/0x1d0
[ 9.862309][ T1] ? refcount_warn_saturate+0xf9/0x1d0
[ 9.863096][ T1] __free_pages_ok+0xc60/0xd90
[ 9.863791][ T1] make_alloc_exact+0xa3/0xf0
[ 9.864692][ T1] vring_alloc_queue_split+0x20a/0x600
[ 9.865642][ T1] ? __pfx_vring_alloc_queue_split+0x10/0x10
[ 9.866530][ T1] ? vp_find_vqs+0x4c/0x4e0
[ 9.867393][ T1] ? virtscsi_probe+0x3ea/0xf60
[ 9.868249][ T1] ? virtio_dev_probe+0x993/0xaf0
[ 9.869255][ T1] ? really_probe+0x2ba/0xad0
[ 9.869940][ T1] ? driver_probe_device+0x50/0x430
[ 9.870721][ T1] vring_create_virtqueue_split+0xc6/0x310
[ 9.871561][ T1] ? ret_from_fork+0x4d/0x80
[ 9.872295][ T1] ? __pfx_vring_create_virtqueue_split+0x10/0x10
[ 9.873627][ T1] vring_create_virtqueue+0xca/0x110
[ 9.874772][ T1] ? __pfx_vp_notify+0x10/0x10
[ 9.875523][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.876526][ T1] setup_vq+0xe9/0x2d0
[ 9.877345][ T1] ? __pfx_vp_notify+0x10/0x10
[ 9.878322][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.879538][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.880573][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.881434][ T1] vp_setup_vq+0xc1/0x330
[ 9.882087][ T1] ? __pfx_vp_config_changed+0x10/0x10
[ 9.883422][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.884655][ T1] ? ioread16+0x2f/0x90
[ 9.885417][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.886541][ T1] vp_find_vqs_msix+0x8b2/0xc80
[ 9.887569][ T1] vp_find_vqs+0x4c/0x4e0
[ 9.888212][ T1] virtscsi_init+0x8dd/0xd00
[ 9.889003][ T1] ? __pfx_virtscsi_init+0x10/0x10
[ 9.889853][ T1] ? __pfx_default_calc_sets+0x10/0x10
[ 9.890890][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.891703][ T1] ? scsi_host_alloc+0xa57/0xea0
[ 9.892486][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.893269][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.894149][ T1] ? vp_get+0xfd/0x140
[ 9.894862][ T1] virtscsi_probe+0x3ea/0xf60
[ 9.895725][ T1] ? __pfx_virtscsi_probe+0x10/0x10
[ 9.896569][ T1] ? kernfs_add_one+0x156/0x8b0
[ 9.897285][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.897970][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.898863][ T1] ? virtio_features_ok+0x10c/0x270
[ 9.899770][ T1] virtio_dev_probe+0x993/0xaf0
[ 9.900613][ T1] ? __pfx_virtio_dev_probe+0x10/0x10
[ 9.901586][ T1] really_probe+0x2ba/0xad0
[ 9.902274][ T1] __driver_probe_device+0x1a2/0x390
[ 9.903055][ T1] driver_probe_device+0x50/0x430
[ 9.903839][ T1] __driver_attach+0x45f/0x710
[ 9.904538][ T1] ? __pfx___driver_attach+0x10/0x10
[ 9.905334][ T1] bus_for_each_dev+0x23b/0x2b0
[ 9.906039][ T1] ? __pfx___driver_attach+0x10/0x10
[ 9.906776][ T1] ? __pfx_bus_for_each_dev+0x10/0x10
[ 9.907541][ T1] ? do_raw_spin_unlock+0x13c/0x8b0
[ 9.908385][ T1] bus_add_driver+0x347/0x620
[ 9.909339][ T1] driver_register+0x23a/0x320
[ 9.910264][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 9.911222][ T1] virtio_scsi_init+0x65/0xe0
[ 9.911916][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 9.912708][ T1] do_one_initcall+0x24a/0x880
[ 9.913383][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 9.914212][ T1] ? __pfx_do_one_initcall+0x10/0x10
[ 9.914975][ T1] ? lockdep_hardirqs_on_prepare+0x43d/0x780
[ 9.915956][ T1] ? __pfx_parse_args+0x10/0x10
[ 9.916686][ T1] ? do_initcalls+0x1c/0x80
[ 9.917333][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.918045][ T1] ? rcu_is_watching+0x15/0xb0
[ 9.918900][ T1] do_initcall_level+0x157/0x210
[ 9.919645][ T1] do_initcalls+0x3f/0x80
[ 9.920262][ T1] kernel_init_freeable+0x435/0x5d0
[ 9.921097][ T1] ? __pfx_kernel_init_freeable+0x10/0x10
[ 9.921899][ T1] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10
[ 9.922815][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.923507][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.924275][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.924987][ T1] kernel_init+0x1d/0x2b0
[ 9.925673][ T1] ret_from_fork+0x4d/0x80
[ 9.926323][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.927030][ T1] ret_from_fork_asm+0x1a/0x30
[ 9.927820][ T1] </TASK>
[ 9.928310][ T1] Kernel panic - not syncing: kernel: panic_on_warn set ...
[ 9.928873][ T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.9.0-rc1-syzkaller-g22650a99821d #0
[ 9.928873][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
[ 9.928873][ T1] Call Trace:
[ 9.928873][ T1] <TASK>
[ 9.928873][ T1] dump_stack_lvl+0x241/0x360
[ 9.928873][ T1] ? __pfx_dump_stack_lvl+0x10/0x10
[ 9.928873][ T1] ? __pfx__printk+0x10/0x10
[ 9.928873][ T1] ? _printk+0xd5/0x120
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? vscnprintf+0x5d/0x90
[ 9.928873][ T1] panic+0x349/0x860
[ 9.928873][ T1] ? __warn+0x172/0x4e0
[ 9.928873][ T1] ? __pfx_panic+0x10/0x10
[ 9.928873][ T1] ? show_trace_log_lvl+0x4e6/0x520
[ 9.928873][ T1] ? ret_from_fork_asm+0x1a/0x30
[ 9.928873][ T1] __warn+0x346/0x4e0
[ 9.928873][ T1] ? refcount_warn_saturate+0xfa/0x1d0
[ 9.928873][ T1] report_bug+0x2b3/0x500
[ 9.928873][ T1] ? refcount_warn_saturate+0xfa/0x1d0
[ 9.928873][ T1] handle_bug+0x3e/0x70
[ 9.928873][ T1] exc_invalid_op+0x1a/0x50
[ 9.928873][ T1] asm_exc_invalid_op+0x1a/0x20
[ 9.928873][ T1] RIP: 0010:refcount_warn_saturate+0xfa/0x1d0
[ 9.928873][ T1] Code: b2 00 00 00 e8 d7 db e9 fc 5b 5d e9 d0 85 e0 06 e8 cb db e9 fc c6 05 8f 84 e8 0a 01 90 48 c7 c7 60 32 1f 8c e8 07 78 ac fc 90 <0f> 0b 90 90 eb d9 e8 ab db e9 fc c6 05 6c 84 e8 0a 01 90 48 c7 c7
[ 9.928873][ T1] RSP: 0018:ffffc90000066e18 EFLAGS: 00010246
[ 9.928873][ T1] RAX: 73a55f6856218c00 RBX: ffff88802101cc6c RCX: ffff8880166d0000
[ 9.928873][ T1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 9.928873][ T1] RBP: 0000000000000004 R08: ffffffff815800c2 R09: fffffbfff1c396e0
[ 9.928873][ T1] R10: dffffc0000000000 R11: fffffbfff1c396e0 R12: ffffea000502cdc0
[ 9.928873][ T1] R13: ffffea000502cdc8 R14: 1ffffd4000a059b9 R15: 0000000000000000
[ 9.928873][ T1] ? __warn_printk+0x292/0x360
[ 9.928873][ T1] ? refcount_warn_saturate+0xf9/0x1d0
[ 9.928873][ T1] __free_pages_ok+0xc60/0xd90
[ 9.928873][ T1] make_alloc_exact+0xa3/0xf0
[ 9.928873][ T1] vring_alloc_queue_split+0x20a/0x600
[ 9.928873][ T1] ? __pfx_vring_alloc_queue_split+0x10/0x10
[ 9.928873][ T1] ? vp_find_vqs+0x4c/0x4e0
[ 9.928873][ T1] ? virtscsi_probe+0x3ea/0xf60
[ 9.928873][ T1] ? virtio_dev_probe+0x993/0xaf0
[ 9.928873][ T1] ? really_probe+0x2ba/0xad0
[ 9.928873][ T1] ? driver_probe_device+0x50/0x430
[ 9.928873][ T1] vring_create_virtqueue_split+0xc6/0x310
[ 9.928873][ T1] ? ret_from_fork+0x4d/0x80
[ 9.928873][ T1] ? __pfx_vring_create_virtqueue_split+0x10/0x10
[ 9.928873][ T1] vring_create_virtqueue+0xca/0x110
[ 9.928873][ T1] ? __pfx_vp_notify+0x10/0x10
[ 9.928873][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.928873][ T1] setup_vq+0xe9/0x2d0
[ 9.928873][ T1] ? __pfx_vp_notify+0x10/0x10
[ 9.928873][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.928873][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.928873][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.928873][ T1] vp_setup_vq+0xc1/0x330
[ 9.928873][ T1] ? __pfx_vp_config_changed+0x10/0x10
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? ioread16+0x2f/0x90
[ 9.928873][ T1] ? __pfx_virtscsi_ctrl_done+0x10/0x10
[ 9.928873][ T1] vp_find_vqs_msix+0x8b2/0xc80
[ 9.928873][ T1] vp_find_vqs+0x4c/0x4e0
[ 9.928873][ T1] virtscsi_init+0x8dd/0xd00
[ 9.928873][ T1] ? __pfx_virtscsi_init+0x10/0x10
[ 9.928873][ T1] ? __pfx_default_calc_sets+0x10/0x10
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? scsi_host_alloc+0xa57/0xea0
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? vp_get+0xfd/0x140
[ 9.928873][ T1] virtscsi_probe+0x3ea/0xf60
[ 9.928873][ T1] ? __pfx_virtscsi_probe+0x10/0x10
[ 9.928873][ T1] ? kernfs_add_one+0x156/0x8b0
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? virtio_features_ok+0x10c/0x270
[ 9.928873][ T1] virtio_dev_probe+0x993/0xaf0
[ 9.928873][ T1] ? __pfx_virtio_dev_probe+0x10/0x10
[ 9.928873][ T1] really_probe+0x2ba/0xad0
[ 9.928873][ T1] __driver_probe_device+0x1a2/0x390
[ 9.928873][ T1] driver_probe_device+0x50/0x430
[ 9.928873][ T1] __driver_attach+0x45f/0x710
[ 9.928873][ T1] ? __pfx___driver_attach+0x10/0x10
[ 9.928873][ T1] bus_for_each_dev+0x23b/0x2b0
[ 9.928873][ T1] ? __pfx___driver_attach+0x10/0x10
[ 9.928873][ T1] ? __pfx_bus_for_each_dev+0x10/0x10
[ 9.928873][ T1] ? do_raw_spin_unlock+0x13c/0x8b0
[ 9.928873][ T1] bus_add_driver+0x347/0x620
[ 9.928873][ T1] driver_register+0x23a/0x320
[ 9.928873][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 9.928873][ T1] virtio_scsi_init+0x65/0xe0
[ 9.928873][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 9.928873][ T1] do_one_initcall+0x24a/0x880
[ 9.928873][ T1] ? __pfx_virtio_scsi_init+0x10/0x10
[ 9.928873][ T1] ? __pfx_do_one_initcall+0x10/0x10
[ 9.928873][ T1] ? lockdep_hardirqs_on_prepare+0x43d/0x780
[ 9.928873][ T1] ? __pfx_parse_args+0x10/0x10
[ 9.928873][ T1] ? do_initcalls+0x1c/0x80
[ 9.928873][ T1] ? srso_return_thunk+0x5/0x5f
[ 9.928873][ T1] ? rcu_is_watching+0x15/0xb0
[ 9.928873][ T1] do_initcall_level+0x157/0x210
[ 9.928873][ T1] do_initcalls+0x3f/0x80
[ 9.928873][ T1] kernel_init_freeable+0x435/0x5d0
[ 9.928873][ T1] ? __pfx_kernel_init_freeable+0x10/0x10
[ 9.928873][ T1] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10
[ 9.928873][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.928873][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.928873][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.928873][ T1] kernel_init+0x1d/0x2b0
[ 9.928873][ T1] ret_from_fork+0x4d/0x80
[ 9.928873][ T1] ? __pfx_kernel_init+0x10/0x10
[ 9.928873][ T1] ret_from_fork_asm+0x1a/0x30
[ 9.928873][ T1] </TASK>
[ 9.928873][ T1] Kernel Offset: disabled
[ 9.928873][ 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-build4004819836=/tmp/go-build -gno-record-gcc-switches'
git status (err=<nil>)
HEAD detached at 454571b6a
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=454571b6a16598f5a6e015b9fb1a04932bce7ab9 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240326-163935'" "-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=454571b6a16598f5a6e015b9fb1a04932bce7ab9 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240326-163935'" "-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=454571b6a16598f5a6e015b9fb1a04932bce7ab9 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240326-163935'" "-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=\"454571b6a16598f5a6e015b9fb1a04932bce7ab9\"
Error text is too large and was truncated, full error text is at:
https://syzkaller.appspot.com/x/error.txt?x=13bf0c95180000
Tested on:
commit: 22650a99 fs,block: yield devices early
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs.fixes
kernel config: https://syzkaller.appspot.com/x/.config?x=151a91b67a261267
dashboard link: https://syzkaller.appspot.com/bug?extid=9c0a93c676799fdf466c
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
Note: no patches were applied.
Powered by blists - more mailing lists