lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <000000000000053e7f06121ed89c@google.com>
Date: Sat, 24 Feb 2024 03:19:02 -0800
From: syzbot <syzbot+d7521c1e3841ed075a42@...kaller.appspotmail.com>
To: linux-kernel@...r.kernel.org, penguin-kernel@...ove.sakura.ne.jp, 
	syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [mm] KMSAN: uninit-value in virtqueue_add (4)

Hello,

syzbot tried to test the proposed patch but the build/boot failed:

t_init: NFSv4 File Layout Driver Registering...
[   20.471049][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[   20.505263][    T1] Key type cifs.spnego registered
[   20.511376][    T1] Key type cifs.idmap registered
[   20.520289][    T1] ntfs: driver 2.1.32 [Flags: R/W].
[   20.527115][    T1] ntfs3: Max link count 4000
[   20.531960][    T1] ntfs3: Enabled Linux POSIX ACLs support
[   20.538483][    T1] ntfs3: Read-only LZX/Xpress compression included
[   20.545508][    T1] efs: 1.0a - http://aeschi.ch.eu.org/efs/
[   20.551729][    T1] romfs: ROMFS MTD (C) 2007 Red Hat, Inc.
[   20.557831][    T1] QNX4 filesystem 0.2.3 registered.
[   20.563340][    T1] qnx6: QNX6 filesystem 1.0.0 registered.
[   20.570536][    T1] fuse: init (API version 7.39)
[   20.571734][  T101] kworker/u4:2 (101) used greatest stack depth: 11288 bytes left
[   20.581752][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   20.592075][    T1] orangefs_init: module version upstream loaded
[   20.600151][    T1] JFS: nTxBlock = 8192, nTxLock = 65536
[   20.639154][    T1] SGI XFS with ACLs, security attributes, realtime, quota, no debug enabled
[   20.657570][    T1] 9p: Installing v9fs 9p2000 file system support
[   20.665095][    T1] NILFS version 2 loaded
[   20.669396][    T1] befs: version: 0.9.3
[   20.674578][    T1] ocfs2: Registered cluster interface o2cb
[   20.681669][    T1] ocfs2: Registered cluster interface user
[   20.688930][    T1] OCFS2 User DLM kernel interface loaded
[   20.707749][    T1] gfs2: GFS2 installed
[   20.744474][    T1] ceph: loaded (mds proto 32)
[   24.874084][    T1] NET: Registered PF_ALG protocol family
[   24.880210][    T1] xor: automatically using best checksumming function   avx       
[   24.888295][    T1] async_tx: api initialized (async)
[   24.893754][    T1] Key type asymmetric registered
[   24.898745][    T1] Asymmetric key parser 'x509' registered
[   24.904660][    T1] Asymmetric key parser 'pkcs8' registered
[   24.910541][    T1] Key type pkcs7_test registered
[   24.916242][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 240)
[   24.926204][    T1] io scheduler mq-deadline registered
[   24.931648][    T1] io scheduler kyber registered
[   24.937150][    T1] io scheduler bfq registered
[   24.953833][    T1] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[   24.971277][    T1] ACPI: button: Power Button [PWRF]
[   24.979332][    T1] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1
[   24.989840][    T1] ACPI: button: Sleep Button [SLPF]
[   25.012119][    T1] ioatdma: Intel(R) QuickData Technology Driver 5.00
[   25.095202][    T1] ACPI: \_SB_.LNKC: Enabled at IRQ 11
[   25.101026][    T1] virtio-pci 0000:00:03.0: virtio_pci: leaving for legacy driver
[   25.175231][    T1] ACPI: \_SB_.LNKD: Enabled at IRQ 10
[   25.180945][    T1] virtio-pci 0000:00:04.0: virtio_pci: leaving for legacy driver
[   25.256940][    T1] ACPI: \_SB_.LNKB: Enabled at IRQ 10
[   25.262845][    T1] virtio-pci 0000:00:06.0: virtio_pci: leaving for legacy driver
[   25.319638][    T1] virtio-pci 0000:00:07.0: virtio_pci: leaving for legacy driver
[   25.380117][  T192] kworker/u4:2 (192) used greatest stack depth: 11000 bytes left
[   25.419761][  T216] kworker/u4:4 (216) used greatest stack depth: 10880 bytes left
[   26.330623][    T1] N_HDLC line discipline registered with maxframe=4096
[   26.337903][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[   26.350042][    T1] 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[   26.379363][    T1] 00:04: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[   26.408213][    T1] 00:05: ttyS2 at I/O 0x3e8 (irq = 6, base_baud = 115200) is a 16550A
[   26.436415][    T1] 00:06: ttyS3 at I/O 0x2e8 (irq = 7, base_baud = 115200) is a 16550A
[   26.484205][    T1] Non-volatile memory driver v1.3
[   26.510889][    T1] Linux agpgart interface v0.103
[   26.525992][    T1] ACPI: bus type drm_connector registered
[   26.541877][    T1] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
[   26.561354][    T1] [drm] Initialized vkms 1.0.0 20180514 for vkms on minor 1
[   27.039310][    T1] Console: switching to colour frame buffer device 128x48
[   27.194448][    T1] platform vkms: [drm] fb0: vkmsdrmfb frame buffer device
[   27.202140][    T1] usbcore: registered new interface driver udl
[   27.363686][    T1] brd: module loaded
[   27.533426][    T1] loop: module loaded
[   27.781686][    T1] zram: Added device: zram0
[   27.803872][    T1] null_blk: disk nullb0 created
[   27.808850][    T1] null_blk: module loaded
[   27.813612][    T1] Guest personality initialized and is inactive
[   27.821083][    T1] VMCI host device registered (name=vmci, major=10, minor=118)
[   27.828876][    T1] Initialized host personality
[   27.835427][    T1] usbcore: registered new interface driver rtsx_usb
[   27.843793][    T1] usbcore: registered new interface driver viperboard
[   27.851479][    T1] usbcore: registered new interface driver dln2
[   27.858605][    T1] usbcore: registered new interface driver pn533_usb
[   27.871594][    T1] nfcsim 0.2 initialized
[   27.876318][    T1] usbcore: registered new interface driver port100
[   27.883331][    T1] usbcore: registered new interface driver nfcmrvl
[   27.899548][    T1] Loading iSCSI transport class v2.0-870.
[   27.935492][    T1] virtio_scsi virtio0: 1/0/0 default/read/poll queues
[   27.968598][    T1] scsi host0: Virtio SCSI HBA
[   28.484347][    T1] st: Version 20160209, fixed bufsize 32768, s/g segs 256
[   28.491538][   T26] scsi 0:0:1:0: Direct-Access     Google   PersistentDisk   1    PQ: 0 ANSI: 6
[   28.563800][    T1] Rounding down aligned max_sectors from 4294967295 to 4294967288
[   28.574157][    T1] db_root: cannot open: /etc/target
[   28.623965][    T1] =====================================================
[   28.624202][    T1] BUG: KMSAN: use-after-free in __list_del_entry_valid_or_report+0x19e/0x490
[   28.624362][    T1]  __list_del_entry_valid_or_report+0x19e/0x490
[   28.624516][    T1]  stack_depot_save_flags+0x3e2/0x7a0
[   28.624621][    T1]  stack_depot_save+0x12/0x20
[   28.624709][    T1]  ref_tracker_alloc+0x215/0x700
[   28.624801][    T1]  netdev_hold+0xe2/0x120
[   28.624916][    T1]  register_netdevice+0x1bc7/0x2170
[   28.625022][    T1]  bond_create+0x138/0x2a0
[   28.625148][    T1]  bonding_init+0x1a7/0x2d0
[   28.625247][    T1]  do_one_initcall+0x216/0x960
[   28.625348][    T1]  do_initcall_level+0x140/0x350
[   28.625453][    T1]  do_initcalls+0xf0/0x1d0
[   28.625556][    T1]  do_basic_setup+0x22/0x30
[   28.625649][    T1]  kernel_init_freeable+0x300/0x4b0
[   28.625757][    T1]  kernel_init+0x2f/0x7e0
[   28.625871][    T1]  ret_from_fork+0x66/0x80
[   28.625991][    T1]  ret_from_fork_asm+0x11/0x20
[   28.626101][    T1] 
[   28.626114][    T1] Uninit was created at:
[   28.626277][    T1]  free_unref_page_prepare+0xc1/0xad0
[   28.626418][    T1]  free_unref_page+0x58/0x6d0
[   28.626549][    T1]  __free_pages+0xb1/0x1f0
[   28.626626][    T1]  thread_stack_free_rcu+0x97/0xb0
[   28.626721][    T1]  rcu_core+0xa3c/0x1df0
[   28.626843][    T1]  rcu_core_si+0x12/0x20
[   28.626950][    T1]  __do_softirq+0x1b7/0x7c3
[   28.627080][    T1] 
[   28.627096][    T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.8.0-rc5-syzkaller-00278-g603c04e27c3e-dirty #0
[   28.627194][    T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
[   28.627246][    T1] =====================================================
[   28.627270][    T1] Disabling lock debugging due to kernel taint
[   28.627299][    T1] Kernel panic - not syncing: kmsan.panic set ...
[   28.627335][    T1] CPU: 1 PID: 1 Comm: swapper/0 Tainted: G    B              6.8.0-rc5-syzkaller-00278-g603c04e27c3e-dirty #0
[   28.627441][    T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
[   28.627493][    T1] Call Trace:
[   28.627520][    T1]  <TASK>
[   28.627548][    T1]  dump_stack_lvl+0x1bf/0x240
[   28.627651][    T1]  dump_stack+0x1e/0x20
[   28.627733][    T1]  panic+0x4de/0xc90
[   28.627875][    T1]  kmsan_report+0x2d0/0x2d0
[   28.627974][    T1]  ? cleanup_uevent_env+0x40/0x50
[   28.628108][    T1]  ? netdev_queue_update_kobjects+0x3f5/0x870
[   28.628237][    T1]  ? netdev_register_kobject+0x41e/0x520
[   28.628357][    T1]  ? register_netdevice+0x198f/0x2170
[   28.628473][    T1]  ? __msan_warning+0x96/0x110
[   28.628609][    T1]  ? __list_del_entry_valid_or_report+0x19e/0x490
[   28.628762][    T1]  ? stack_depot_save_flags+0x3e2/0x7a0
[   28.628872][    T1]  ? stack_depot_save+0x12/0x20
[   28.628971][    T1]  ? ref_tracker_alloc+0x215/0x700
[   28.629069][    T1]  ? netdev_hold+0xe2/0x120
[   28.629172][    T1]  ? register_netdevice+0x1bc7/0x2170
[   28.629287][    T1]  ? bond_create+0x138/0x2a0
[   28.629416][    T1]  ? bonding_init+0x1a7/0x2d0
[   28.629523][    T1]  ? do_one_initcall+0x216/0x960
[   28.629638][    T1]  ? do_initcall_level+0x140/0x350
[   28.629749][    T1]  ? do_initcalls+0xf0/0x1d0
[   28.629852][    T1]  ? do_basic_setup+0x22/0x30
[   28.629955][    T1]  ? kernel_init_freeable+0x300/0x4b0
[   28.630064][    T1]  ? kernel_init+0x2f/0x7e0
[   28.630180][    T1]  ? ret_from_fork+0x66/0x80
[   28.630304][    T1]  ? ret_from_fork_asm+0x11/0x20
[   28.630420][    T1]  ? kmsan_get_shadow_origin_ptr+0x4d/0xa0
[   28.630527][    T1]  ? kmsan_get_metadata+0x146/0x1c0
[   28.630619][    T1]  ? kmsan_get_metadata+0x146/0x1c0
[   28.630710][    T1]  ? kmsan_get_metadata+0x146/0x1c0
[   28.630805][    T1]  ? kmsan_get_shadow_origin_ptr+0x4d/0xa0
[   28.630913][    T1]  ? filter_irq_stacks+0x60/0x1a0
[   28.631030][    T1]  ? stack_depot_save_flags+0x2c/0x7a0
[   28.631140][    T1]  ? kmsan_get_metadata+0x146/0x1c0
[   28.631239][    T1]  ? kmsan_get_metadata+0x146/0x1c0
[   28.631330][    T1]  ? kmsan_get_metadata+0x146/0x1c0
[   28.631426][    T1]  ? kmsan_get_shadow_origin_ptr+0x4d/0xa0
[   28.631538][    T1]  __msan_warning+0x96/0x110
[   28.631674][    T1]  __list_del_entry_valid_or_report+0x19e/0x490
[   28.631838][    T1]  stack_depot_save_flags+0x3e2/0x7a0
[   28.631958][    T1]  stack_depot_save+0x12/0x20
[   28.632058][    T1]  ref_tracker_alloc+0x215/0x700
[   28.632169][    T1]  ? kmsan_get_metadata+0x146/0x1c0
[   28.632260][    T1]  ? netdev_hold+0xe2/0x120
[   28.632365][    T1]  ? register_netdevice+0x1bc7/0x2170
[   28.632438][    T1]  ? bond_create+0x138/0x2a0
[   28.632438][    T1]  ? bonding_init+0x1a7/0x2d0
[   28.632438][    T1]  ? do_one_initcall+0x216/0x960
[   28.632438][    T1]  ? do_initcall_level+0x140/0x350
[   28.632900][    T1]  ? do_initcalls+0xf0/0x1d0
[   28.632900][    T1]  ? do_basic_setup+0x22/0x30
[   28.632900][    T1]  ? kernel_init_freeable+0x300/0x4b0
[   28.632900][    T1]  ? kernel_init+0x2f/0x7e0
[   28.632900][    T1]  ? ret_from_fork+0x66/0x80
[   28.632900][    T1]  ? ret_from_fork_asm+0x11/0x20
[   28.632900][    T1]  ? kmsan_internal_unpoison_memory+0x14/0x20
[   28.633734][    T1]  netdev_hold+0xe2/0x120
[   28.633734][    T1]  register_netdevice+0x1bc7/0x2170
[   28.633970][    T1]  ? kmsan_get_shadow_origin_ptr+0x4d/0xa0
[   28.633970][    T1]  bond_create+0x138/0x2a0
[   28.633970][    T1]  ? kmsan_get_shadow_origin_ptr+0x4d/0xa0
[   28.633970][    T1]  bonding_init+0x1a7/0x2d0
[   28.633970][    T1]  ? spi_dln2_driver_init+0x40/0x40
[   28.633970][    T1]  do_one_initcall+0x216/0x960
[   28.633970][    T1]  ? spi_dln2_driver_init+0x40/0x40
[   28.634792][    T1]  ? kmsan_get_metadata+0x80/0x1c0
[   28.634802][    T1]  ? kmsan_get_shadow_origin_ptr+0x4d/0xa0
[   28.634802][    T1]  ? filter_irq_stacks+0x60/0x1a0
[   28.634802][    T1]  ? stack_depot_save_flags+0x2c/0x7a0
[   28.634802][    T1]  ? skip_spaces+0x8f/0xc0
[   28.634802][    T1]  ? kmsan_get_metadata+0x146/0x1c0
[   28.634802][    T1]  ? kmsan_get_metadata+0x146/0x1c0
[   28.634802][    T1]  ? kmsan_get_shadow_origin_ptr+0x4d/0xa0
[   28.635636][    T1]  ? kmsan_get_metadata+0x146/0x1c0
[   28.635636][    T1]  ? kmsan_get_shadow_origin_ptr+0x4d/0xa0
[   28.635636][    T1]  ? parse_args+0x1511/0x15e0
[   28.635636][    T1]  ? kmsan_get_metadata+0x146/0x1c0
[   28.635636][    T1]  ? kmsan_get_shadow_origin_ptr+0x4d/0xa0
[   28.635636][    T1]  ? spi_dln2_driver_init+0x40/0x40
[   28.635636][    T1]  do_initcall_level+0x140/0x350
[   28.635636][    T1]  do_initcalls+0xf0/0x1d0
[   28.636461][    T1]  ? arch_cpuhp_init_parallel_bringup+0xe0/0xe0
[   28.636461][    T1]  do_basic_setup+0x22/0x30
[   28.636461][    T1]  kernel_init_freeable+0x300/0x4b0
[   28.636461][    T1]  ? rest_init+0x260/0x260
[   28.636461][    T1]  kernel_init+0x2f/0x7e0
[   28.636461][    T1]  ? rest_init+0x260/0x260
[   28.636461][    T1]  ret_from_fork+0x66/0x80
[   28.637299][    T1]  ? rest_init+0x260/0x260
[   28.637299][    T1]  ret_from_fork_asm+0x11/0x20
[   28.637299][    T1]  </TASK>
[   28.637299][    T1] Kernel Offset: disabled


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-build1437193816=/tmp/go-build -gno-record-gcc-switches'

git status (err=<nil>)
HEAD detached at 9bd8dcda8
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:32: run command via tools/syz-env for best compatibility, see:
Makefile:33: 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
bin/syz-sysgen
touch .descriptions
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/prog.GitRevision=9bd8dcda8c7c494d59bd3132a668f4784ea835c6 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240119-142441'" "-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=9bd8dcda8c7c494d59bd3132a668f4784ea835c6 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240119-142441'" "-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=9bd8dcda8c7c494d59bd3132a668f4784ea835c6 -X 'github.com/google/syzkaller/prog.gitRevisionDate=20240119-142441'" "-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=\"9bd8dcda8c7c494d59bd3132a668f4784ea835c6\"


Error text is too large and was truncated, full error text is at:
https://syzkaller.appspot.com/x/error.txt?x=1423a4ac180000


Tested on:

commit:         603c04e2 Merge tag 'parisc-for-6.8-rc6' of git://git.k..
git tree:       upstream
kernel config:  https://syzkaller.appspot.com/x/.config?x=d33318d4e4a0d226
dashboard link: https://syzkaller.appspot.com/bug?extid=d7521c1e3841ed075a42
compiler:       Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
patch:          https://syzkaller.appspot.com/x/patch.diff?x=17a12a30180000


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ