Hello,
syzbot tried to test the proposed patch but the build/boot failed:
d [mem 0x00000000b5a00000-0x00000000b9a00000] (64MB)
[ 2.451930][ T1] ACPI: bus type thunderbolt registered
[ 2.461150][ T56] kworker/u4:3 (56) used greatest stack depth: 27296 bytes left
[ 2.469939][ T1] kvm: no hardware support for 'kvm_intel'
[ 2.471032][ T1] has_svm: svm not available
[ 2.471715][ T1] kvm: no hardware support for 'kvm_amd'
[ 2.472485][ T1] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x206eb2111f5, max_idle_ns: 440795222471 ns
[ 2.474059][ T1] clocksource: Switched to clocksource tsc
[ 5.639415][ T1] Initialise system trusted keyrings
[ 5.642563][ T1] workingset: timestamp_bits=40 max_order=21 bucket_order=0
[ 5.679289][ T1] zbud: loaded
[ 5.687435][ T1] DLM installed
[ 5.693812][ T1] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 5.702153][ T106] kworker/u4:2 (106) used greatest stack depth: 27144 bytes left
[ 5.703995][ T1] NFS: Registering the id_resolver key type
[ 5.705668][ T1] Key type id_resolver registered
[ 5.706856][ T1] Key type id_legacy registered
[ 5.707913][ T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 5.709340][ T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 5.718331][ T1] Key type cifs.spnego registered
[ 5.719170][ T1] Key type cifs.idmap registered
[ 5.720747][ T1] ntfs: driver 2.1.32 [Flags: R/W].
[ 5.722981][ T1] ntfs3: Max link count 4000
[ 5.723620][ T1] ntfs3: Enabled Linux POSIX ACLs support
[ 5.724468][ T1] ntfs3: Read-only LZX/Xpress compression included
[ 5.726465][ T1] efs: 1.0a -
http://aeschi.ch.eu.org/efs/
[ 5.727550][ T1] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 5.732068][ T1] romfs: ROMFS MTD (C) 2007 Red Hat, Inc.
[ 5.733571][ T1] QNX4 filesystem 0.2.3 registered.
[ 5.734619][ T1] qnx6: QNX6 filesystem 1.0.0 registered.
[ 5.736377][ T1] fuse: init (API version 7.37)
[ 5.741172][ T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[ 5.742921][ T1] orangefs_init: module version upstream loaded
[ 5.744575][ T1] JFS: nTxBlock = 8192, nTxLock = 65536
[ 5.758292][ T1] SGI XFS with ACLs, security attributes, realtime, quota, fatal assert, debug enabled
[ 5.771036][ T1] 9p: Installing v9fs 9p2000 file system support
[ 5.773458][ T1] NILFS version 2 loaded
[ 5.774076][ T1] befs: version: 0.9.3
[ 5.776023][ T1] ocfs2: Registered cluster interface o2cb
[ 5.777385][ T1] ocfs2: Registered cluster interface user
[ 5.778879][ T1] OCFS2 User DLM kernel interface loaded
[ 5.789868][ T1] gfs2: GFS2 installed
[ 5.801406][ T1] ceph: loaded (mds proto 32)
[ 5.813163][ T1] NET: Registered PF_ALG protocol family
[ 5.814174][ T1] xor: automatically using best checksumming function avx
[ 5.815683][ T1] async_tx: api initialized (async)
[ 5.816585][ T1] Key type asymmetric registered
[ 5.817319][ T1] Asymmetric key parser 'x509' registered
[ 5.818175][ T1] Asymmetric key parser 'pkcs8' registered
[ 5.819092][ T1] Key type pkcs7_test registered
[ 5.823005][ T1] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[ 5.824440][ T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 240)
[ 5.826498][ T1] io scheduler mq-deadline registered
[ 5.827648][ T1] io scheduler kyber registered
[ 5.829045][ T1] io scheduler bfq registered
[ 5.836454][ T1] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[ 5.847153][ T1] ACPI: button: Power Button [PWRF]
[ 5.849357][ T1] input: Sleep Button as /devices/LNXSYSTM:00/LNXSLPBN:00/input/input1
[ 5.851446][ T1] ACPI: button: Sleep Button [SLPF]
[ 5.873288][ T1] ACPI: \_SB_.LNKC: Enabled at IRQ 11
[ 5.874470][ T1] virtio-pci 0000:00:03.0: virtio_pci: leaving for legacy driver
[ 5.892851][ T1] ACPI: \_SB_.LNKD: Enabled at IRQ 10
[ 5.894487][ T1] virtio-pci 0000:00:04.0: virtio_pci: leaving for legacy driver
[ 5.913424][ T1] ACPI: \_SB_.LNKB: Enabled at IRQ 10
[ 5.914548][ T1] virtio-pci 0000:00:06.0: virtio_pci: leaving for legacy driver
[ 5.942888][ T232] kworker/u4:2 (232) used greatest stack depth: 27032 bytes left
[ 6.048461][ T403] kworker/u4:0 (403) used greatest stack depth: 26624 bytes left
[ 6.240570][ T1] N_HDLC line discipline registered with maxframe=4096
[ 6.241676][ T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 6.243218][ T1] 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 6.248623][ T1] 00:04: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[ 6.258248][ T1] 00:05: ttyS2 at I/O 0x3e8 (irq = 6, base_baud = 115200) is a 16550A
[ 6.263876][ T1] 00:06: ttyS3 at I/O 0x2e8 (irq = 7, base_baud = 115200) is a 16550A
[ 6.272051][ T1] Non-volatile memory driver v1.3
[ 6.289777][ T1] Linux agpgart interface v0.103
[ 6.292338][ T1] ACPI: bus type drm_connector registered
[ 6.297108][ T1] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
[ 6.303116][ T1] [drm] Initialized vkms 1.0.0 20180514 for vkms on minor 1
[ 6.361560][ T1] Console: switching to colour frame buffer device 128x48
[ 6.379121][ T1] platform vkms: [drm] fb0: vkmsdrmfb frame buffer device
[ 6.380602][ T1] usbcore: registered new interface driver udl
[ 6.431729][ T1] brd: module loaded
[ 6.486879][ T1] loop: module loaded
[ 6.556565][ T1] zram: Added device: zram0
[ 6.563795][ T1] null_blk: disk nullb0 created
[ 6.564546][ T1] null_blk: module loaded
[ 6.565343][ T1] Guest personality initialized and is inactive
[ 6.566628][ T1] VMCI host device registered (name=vmci, major=10, minor=119)
[ 6.568011][ T1] Initialized host personality
[ 6.569164][ T1] usbcore: registered new interface driver rtsx_usb
[ 6.571222][ T1] usbcore: registered new interface driver viperboard
[ 6.572508][ T1] usbcore: registered new interface driver dln2
[ 6.573870][ T1] usbcore: registered new interface driver pn533_usb
[ 6.578221][ T1] nfcsim 0.2 initialized
[ 6.579155][ T1] usbcore: registered new interface driver port100
[ 6.580679][ T1] usbcore: registered new interface driver nfcmrvl
[ 6.584949][ T1] Loading iSCSI transport class v2.0-870.
[ 6.615015][ T1] scsi host0: Virtio SCSI HBA
[ 6.653960][ T1] st: Version 20160209, fixed bufsize 32768, s/g segs 256
[ 6.657863][ T28] scsi 0:0:1:0: Direct-Access Google PersistentDisk 1 PQ: 0 ANSI: 6
[ 6.682711][ T1] Rounding down aligned max_sectors from 4294967295 to 4294967288
[ 6.684766][ T1] db_root: cannot open: /etc/target
[ 6.687866][ T1] slram: not enough parameters.
[ 6.694251][ T1] ftl_cs: FTL header not found.
[ 6.734983][ T1] wireguard: WireGuard 1.0.0 loaded. See
www.wireguard.com for information.
[ 6.736576][ T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <
Ja...@zx2c4.com>. All Rights Reserved.
[ 6.738612][ T1] eql: Equalizer2002: Simon Janes (
si...@ncm.com) and David S. Miller (
da...@redhat.com)
[ 6.749528][ T1] MACsec IEEE 802.1AE
[ 6.774133][ T1] tun: Universal TUN/TAP device driver, 1.6
[ 6.825758][ T1] ------------[ cut here ]------------
[ 6.827585][ T1] WARNING: CPU: 1 PID: 1 at include/linux/cpumask.h:110 cpumask_next_wrap+0x139/0x1d0
[ 6.829022][ T1] Modules linked in:
[ 6.829801][ T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.0.0-syzkaller-11973-g9c9155a3509a-dirty #0
[ 6.831214][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
[ 6.832654][ T1] RIP: 0010:cpumask_next_wrap+0x139/0x1d0
[ 6.833556][ T1] Code: df e8 8b 4a 3d f8 39 eb 77 64 e8 32 4e 3d f8 41 8d 6c 24 01 89 de 89 ef e8 74 4a 3d f8 39 dd 0f 82 54 ff ff ff e8 17 4e 3d f8 <0f> 0b e9 48 ff ff ff e8 0b 4e 3d f8 48 c7 c2 00 02 e2 8d 48 b8 00
[ 6.837478][ T1] RSP: 0018:ffffc90000067920 EFLAGS: 00010293
[ 6.839159][ T1] RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000
[ 6.840875][ T1] RDX: ffff888140170000 RSI: ffffffff893f1c59 RDI: 0000000000000004
[ 6.842624][ T1] RBP: 0000000000000002 R08: 0000000000000004 R09: 0000000000000002
[ 6.844143][ T1] R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000000001
[ 6.845664][ T1] R13: 0000000000000000 R14: 0000000000000002 R15: ffffffff8de20010
[ 6.847288][ T1] FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
[ 6.848892][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 6.850240][ T1] CR2: 0000000000000000 CR3: 000000000bc8e000 CR4: 0000000000350ee0
[ 6.851553][ T1] Call Trace:
[ 6.852243][ T1] <TASK>
[ 6.852893][ T1] virtnet_set_affinity+0x35a/0x750
[ 6.854973][ T1] ? skb_recv_done+0x120/0x120
[ 6.856032][ T1] virtnet_probe+0x12ae/0x31e0
[ 6.857110][ T1] ? virtnet_find_vqs+0xc30/0xc30
[ 6.857970][ T1] virtio_dev_probe+0x577/0x870
[ 6.859042][ T1] ? virtio_features_ok+0x1e0/0x1e0
[ 6.859932][ T1] really_probe+0x249/0xb90
[ 6.860675][ T1] __driver_probe_device+0x1df/0x4d0
[ 6.861554][ T1] driver_probe_device+0x4c/0x1a0
[ 6.862857][ T1] __driver_attach+0x1d0/0x550
[ 6.863998][ T1] ? __device_attach_driver+0x2e0/0x2e0
[ 6.864976][ T1] bus_for_each_dev+0x147/0x1d0
[ 6.866097][ T1] ? subsys_dev_iter_exit+0x20/0x20
[ 6.866896][ T1] bus_add_driver+0x4c9/0x640
[ 6.867960][ T1] driver_register+0x220/0x3a0
[ 6.868853][ T1] ? veth_init+0x11/0x11
[ 6.869611][ T1] virtio_net_driver_init+0x93/0xd2
[ 6.870446][ T1] do_one_initcall+0x13d/0x780
[ 6.871188][ T1] ? trace_event_raw_event_initcall_level+0x1f0/0x1f0
[ 6.872222][ T1] ? parameq+0xa0/0x170
[ 6.872938][ T1] kernel_init_freeable+0x6ff/0x788
[ 6.873727][ T1] ? rest_init+0x270/0x270
[ 6.874518][ T1] kernel_init+0x1a/0x1d0
[ 6.875193][ T1] ? rest_init+0x270/0x270
[ 6.875890][ T1] ret_from_fork+0x1f/0x30
[ 6.876635][ T1] </TASK>
[ 6.877093][ T1] Kernel panic - not syncing: panic_on_warn set ...
[ 6.877988][ T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.0.0-syzkaller-11973-g9c9155a3509a-dirty #0
[ 6.879303][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
[ 6.879673][ T1] Call Trace:
[ 6.879673][ T1] <TASK>
[ 6.879673][ T1] dump_stack_lvl+0xcd/0x134
[ 6.879673][ T1] panic+0x2c8/0x622
[ 6.879673][ T1] ? panic_print_sys_info.part.0+0x110/0x110
[ 6.879673][ T1] ? __warn.cold+0x24b/0x350
[ 6.879673][ T1] ? cpumask_next_wrap+0x139/0x1d0
[ 6.879673][ T1] __warn.cold+0x25c/0x350
[ 6.879673][ T1] ? cpumask_next_wrap+0x139/0x1d0
[ 6.879673][ T1] report_bug+0x1bc/0x210
[ 6.879673][ T1] handle_bug+0x3c/0x70
[ 6.879673][ T1] exc_invalid_op+0x14/0x40
[ 6.879673][ T1] asm_exc_invalid_op+0x16/0x20
[ 6.879673][ T1] RIP: 0010:cpumask_next_wrap+0x139/0x1d0
[ 6.879673][ T1] Code: df e8 8b 4a 3d f8 39 eb 77 64 e8 32 4e 3d f8 41 8d 6c 24 01 89 de 89 ef e8 74 4a 3d f8 39 dd 0f 82 54 ff ff ff e8 17 4e 3d f8 <0f> 0b e9 48 ff ff ff e8 0b 4e 3d f8 48 c7 c2 00 02 e2 8d 48 b8 00
[ 6.879673][ T1] RSP: 0018:ffffc90000067920 EFLAGS: 00010293
[ 6.879673][ T1] RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000
[ 6.879673][ T1] RDX: ffff888140170000 RSI: ffffffff893f1c59 RDI: 0000000000000004
[ 6.879673][ T1] RBP: 0000000000000002 R08: 0000000000000004 R09: 0000000000000002
[ 6.879673][ T1] R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000000001
[ 6.879673][ T1] R13: 0000000000000000 R14: 0000000000000002 R15: ffffffff8de20010
[ 6.879673][ T1] ? cpumask_next_wrap+0x139/0x1d0
[ 6.879673][ T1] virtnet_set_affinity+0x35a/0x750
[ 6.879673][ T1] ? skb_recv_done+0x120/0x120
[ 6.879673][ T1] virtnet_probe+0x12ae/0x31e0
[ 6.879673][ T1] ? virtnet_find_vqs+0xc30/0xc30
[ 6.879673][ T1] virtio_dev_probe+0x577/0x870
[ 6.879673][ T1] ? virtio_features_ok+0x1e0/0x1e0
[ 6.879673][ T1] really_probe+0x249/0xb90
[ 6.879673][ T1] __driver_probe_device+0x1df/0x4d0
[ 6.879673][ T1] driver_probe_device+0x4c/0x1a0
[ 6.879673][ T1] __driver_attach+0x1d0/0x550
[ 6.879673][ T1] ? __device_attach_driver+0x2e0/0x2e0
[ 6.879673][ T1] bus_for_each_dev+0x147/0x1d0
[ 6.879673][ T1] ? subsys_dev_iter_exit+0x20/0x20
[ 6.879673][ T1] bus_add_driver+0x4c9/0x640
[ 6.879673][ T1] driver_register+0x220/0x3a0
[ 6.879673][ T1] ? veth_init+0x11/0x11
[ 6.879673][ T1] virtio_net_driver_init+0x93/0xd2
[ 6.879673][ T1] do_one_initcall+0x13d/0x780
[ 6.879673][ T1] ? trace_event_raw_event_initcall_level+0x1f0/0x1f0
[ 6.879673][ T1] ? parameq+0xa0/0x170
[ 6.879673][ T1] kernel_init_freeable+0x6ff/0x788
[ 6.879673][ T1] ? rest_init+0x270/0x270
[ 6.879673][ T1] kernel_init+0x1a/0x1d0
[ 6.879673][ T1] ? rest_init+0x270/0x270
[ 6.879673][ T1] ret_from_fork+0x1f/0x30
[ 6.879673][ T1] </TASK>
[ 6.879673][ T1] Kernel Offset: disabled
[ 6.879673][ T1] Rebooting in 86400 seconds..
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2352153144=/tmp/go-build -gno-record-gcc-switches"
git status (err=<nil>)
HEAD detached at aea5da898
nothing to commit, working tree clean
go list -f '{{.Stale}}' ./sys/syz-sysgen | grep -q false || go install ./sys/syz-sysgen
make .descriptions
bin/syz-sysgen
touch .descriptions
GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X
github.com/google/syzkaller/prog.GitRevision=aea5da898f473385f3b66c94f8aa49ca9a1c9744 -X '
github.com/google/syzkaller/prog.gitRevisionDate=20221007-214935'" "-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=aea5da898f473385f3b66c94f8aa49ca9a1c9744 -X '
github.com/google/syzkaller/prog.gitRevisionDate=20221007-214935'" "-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=aea5da898f473385f3b66c94f8aa49ca9a1c9744 -X '
github.com/google/syzkaller/prog.gitRevisionDate=20221007-214935'" "-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 -static-pie -fpermissive -w -DGOOS_linux=1 -DGOARCH_amd64=1 \
-DHOSTGOOS_linux=1 -DGIT_REVISION=\"aea5da898f473385f3b66c94f8aa49ca9a1c9744\"
Error text is too large and was truncated, full error text is at:
https://syzkaller.appspot.com/x/error.txt?x=142516aa880000
Tested on:
commit: 9c9155a3 Merge tag 'drm-next-2022-10-14' of git://anon..
kernel config:
https://syzkaller.appspot.com/x/.config?x=e61a914abce9d3fd
dashboard link:
https://syzkaller.appspot.com/bug?extid=15342c1aa6a00fb7a438
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
patch:
https://syzkaller.appspot.com/x/patch.diff?x=11a43eaa880000