BUG: sleeping function called from invalid context in cpu_bugs_smt_update smpboot: CPU0: Intel(R) Xeon(R) CPU @ 2.20GHz (family: 0x6, model: 0x4f, stepping: 0x0) RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1. RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1. Running RCU-tasks wait API self tests Performance Events: unsupported p6 CPU model 79 no PMU driver, software events only. signal: max sigframe size: 1776 rcu: Hierarchical SRCU implementation. rcu: Max phase no-delay instances is 1000. NMI watchdog: Perf NMI watchdog permanently disabled smp: Bringing up secondary CPUs ... smpboot: x86: Booting SMP configuration: .... node #0, CPUs: #1 BUG: sleeping function called from invalid context at kernel/locking/mutex.c:580 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1, name: swapper/0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 1 lock held by swapper/0/1: #0: ffffffff8c849728 (cpu_add_remove_lock){+.+.}-{3:3}, at: cpu_maps_update_begin kernel/cpu.c:469 [inline] #0: ffffffff8c849728 (cpu_add_remove_lock){+.+.}-{3:3}, at: cpu_up kernel/cpu.c:1696 [inline] #0: ffffffff8c849728 (cpu_add_remove_lock){+.+.}-{3:3}, at: cpu_up+0xbc/0x200 kernel/cpu.c:1679 Preemption disabled at: [] wakeup_secondary_cpu_via_init arch/x86/kernel/smpboot.c:888 [inline] [] do_boot_cpu arch/x86/kernel/smpboot.c:1087 [inline] [] native_kick_ap+0x969/0x1030 arch/x86/kernel/smpboot.c:1124 CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.4.0-next-20230627-syzkaller-g53cdf865f90b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x136/0x150 lib/dump_stack.c:106 __might_resched+0x358/0x580 kernel/sched/core.c:10189 __mutex_lock_common kernel/locking/mutex.c:580 [inline] __mutex_lock+0x9f/0x1350 kernel/locking/mutex.c:747 cpu_bugs_smt_update+0x1b/0x440 arch/x86/kernel/cpu/bugs.c:1633 arch_smt_update+0x9/0x10 arch/x86/kernel/cpu/common.c:2326 _cpu_up+0x3d0/0x940 kernel/cpu.c:1674 cpu_up kernel/cpu.c:1707 [inline] cpu_up+0xfe/0x200 kernel/cpu.c:1679 cpuhp_bringup_mask+0xdc/0x210 kernel/cpu.c:1773 cpuhp_bringup_cpus_parallel kernel/cpu.c:1837 [inline] bringup_nonboot_cpus+0x15f/0x1a0 kernel/cpu.c:1848 smp_init+0x32/0x150 kernel/smp.c:969 kernel_init_freeable+0x425/0xba0 init/main.c:1540 kernel_init+0x1e/0x2c0 init/main.c:1437 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 BUG: scheduling while atomic: swapper/0/1/0x00000002 3 locks held by swapper/0/1: #0: ffffffff8c849728 (cpu_add_remove_lock){+.+.}-{3:3}, at: cpu_maps_update_begin kernel/cpu.c:469 [inline] #0: ffffffff8c849728 (cpu_add_remove_lock){+.+.}-{3:3}, at: cpu_up kernel/cpu.c:1696 [inline] #0: ffffffff8c849728 (cpu_add_remove_lock){+.+.}-{3:3}, at: cpu_up+0xbc/0x200 kernel/cpu.c:1679 #1: ffffffff8c849670 (cpu_hotplug_lock){++++}-{0:0}, at: cpus_write_lock kernel/cpu.c:507 [inline] #1: ffffffff8c849670 (cpu_hotplug_lock){++++}-{0:0}, at: _cpu_up+0x66/0x940 kernel/cpu.c:1619 #2: ffffffff8c9970a8 (sparse_irq_lock){+.+.}-{3:3}, at: cpuhp_bringup_ap+0x65/0x340 kernel/cpu.c:798 Modules linked in: Preemption disabled at: [] wakeup_secondary_cpu_via_init arch/x86/kernel/smpboot.c:888 [inline] [] do_boot_cpu arch/x86/kernel/smpboot.c:1087 [inline] [] native_kick_ap+0x969/0x1030 arch/x86/kernel/smpboot.c:1124 failed to run ["ssh" "-p" "22" "-F" "/dev/null" "-o" "UserKnownHostsFile=/dev/null" "-o" "BatchMode=yes" "-o" "IdentitiesOnly=yes" "-o" "StrictHostKeyChecking=no" "-o" "ConnectTimeout=10" "root@10.128.0.56" "pwd"]: exit status 255 ssh: connect to host 10.128.0.56 port 22: Connection timed out Pseudo-terminal will not be allocated because stdin is not a terminal. Warning: Permanently added '[ssh-serialport.googleapis.com]:9600,[216.239.38.127]:9600' (RSA) to the list of known hosts. serialport: Connected to syzkaller.us-central1-c.ci-upstream-linux-next-kasan-gce-root-test-job-parallel-1 port 1 (session ID: f3e139a34ab2979ae8a69a50b8e54fcf7c9ffcfe728b0f6d943eb7934f76a67b, active connections: 1). SeaBIOS (version 1.8.2-google) Total RAM Size = 0x0000000200000000 = 8192 MiB CPUs found: 2 Max CPUs supported: 2 SeaBIOS (version 1.8.2-google) Machine UUID 344730ca-18e7-c53a-a827-a73ac99b2111 found virtio-scsi at 0:3 virtio-scsi vendor='Google' product='PersistentDisk' rev='1' type=0 removable=0 virtio-scsi blksize=512 sectors=4194304 = 2048 MiB drive 0x000f2820: PCHS=0/0/0 translation=lba LCHS=520/128/63 s=4194304 Sending Seabios boot VM event. Booting from Hard Disk 0... [ 0.000000][ T0] Linux version 6.4.0-next-20230627-syzkaller-g53cdf865f90b (syzkaller@syzkaller) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #0 SMP PREEMPT_DYNAMIC now [ 0.000000][ T0] Command line: BOOT_IMAGE=/boot/bzImage root=/dev/sda1 console=ttyS0 [ 0.000000][ T0] KERNEL supported cpus: [ 0.000000][ T0] Intel GenuineIntel [ 0.000000][ T0] AMD AuthenticAMD [ 0.000000][ T0] BIOS-provided physical RAM map: [ 0.000000][ T0] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable [ 0.000000][ T0] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved [ 0.000000][ T0] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved [ 0.000000][ T0] BIOS-e820: [mem 0x0000000000100000-0x00000000bfffcfff] usable [ 0.000000][ T0] BIOS-e820: [mem 0x00000000bfffd000-0x00000000bfffffff] reserved [ 0.000000][ T0] BIOS-e820: [mem 0x00000000fffbc000-0x00000000ffffffff] reserved [ 0.000000][ T0] BIOS-e820: [mem 0x0000000100000000-0x000000023fffffff] usable [ 0.000000][ T0] printk: bootconsole [earlyser0] enabled [ 0.000000][ T0] ERROR: earlyprintk= earlyser already used [ 0.000000][ T0] ERROR: earlyprintk= earlyser already used [ 0.000000][ T0] ********************************************************** [ 0.000000][ T0] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** [ 0.000000][ T0] ** ** [ 0.000000][ T0] ** This system shows unhashed kernel memory addresses ** [ 0.000000][ T0] ** via the console, logs, and other interfaces. This ** [ 0.000000][ T0] ** might reduce the security of your system. ** [ 0.000000][ T0] ** ** [ 0.000000][ T0] ** If you see this message and you are not debugging ** [ 0.000000][ T0] ** the kernel, report this immediately to your system ** [ 0.000000][ T0] ** administrator! ** [ 0.000000][ T0] ** ** [ 0.000000][ T0] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** [ 0.000000][ T0] ********************************************************** [ 0.000000][ T0] Malformed early option 'vsyscall' [ 0.000000][ T0] nopcid: PCID feature disabled [ 0.000000][ T0] NX (Execute Disable) protection: active [ 0.000000][ T0] SMBIOS 2.4 present. [ 0.000000][ T0] DMI: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 0.000000][ T0] Hypervisor detected: KVM [ 0.000000][ T0] kvm-clock: Using msrs 4b564d01 and 4b564d00 [ 0.000006][ T0] kvm-clock: using sched offset of 4194661584 cycles [ 0.000876][ T0] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns [ 0.003247][ T0] tsc: Detected 2200.214 MHz processor [ 0.008489][ T0] last_pfn = 0x240000 max_arch_pfn = 0x400000000 [ 0.009524][ T0] MTRR map: 4 entries (3 fixed + 1 variable; max 19), built from 8 variable MTRRs [ 0.010943][ T0] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT [ 0.012186][ T0] last_pfn = 0xbfffd max_arch_pfn = 0x400000000 [ 0.019764][ T0] found SMP MP-table at [mem 0x000f2ae0-0x000f2aef] [ 0.020891][ T0] Using GB pages for direct mapping [ 0.023572][ T0] ACPI: Early table checksum verification disabled [ 0.024545][ T0] ACPI: RSDP 0x00000000000F2860 000014 (v00 Google) [ 0.025470][ T0] ACPI: RSDT 0x00000000BFFFFFA0 000038 (v01 Google GOOGRSDT 00000001 GOOG 00000001) [ 0.026911][ T0] ACPI: FACP 0x00000000BFFFF330 0000F4 (v02 Google GOOGFACP 00000001 GOOG 00000001) [ 0.028531][ T0] ACPI: DSDT 0x00000000BFFFD8C0 001A64 (v01 Google GOOGDSDT 00000001 GOOG 00000001) [ 0.029765][ T0] ACPI: FACS 0x00000000BFFFD880 000040 [ 0.030488][ T0] ACPI: FACS 0x00000000BFFFD880 000040 [ 0.031220][ T0] ACPI: SRAT 0x00000000BFFFFE60 0000C8 (v03 Google GOOGSRAT 00000001 GOOG 00000001) [ 0.032565][ T0] ACPI: APIC 0x00000000BFFFFDB0 000076 (v05 Google GOOGAPIC 00000001 GOOG 00000001) [ 0.033959][ T0] ACPI: SSDT 0x00000000BFFFF430 000980 (v01 Google GOOGSSDT 00000001 GOOG 00000001) [ 0.035385][ T0] ACPI: WAET 0x00000000BFFFFE30 000028 (v01 Google GOOGWAET 00000001 GOOG 00000001) [ 0.036818][ T0] ACPI: Reserving FACP table memory at [mem 0xbffff330-0xbffff423] [ 0.037887][ T0] ACPI: Reserving DSDT table memory at [mem 0xbfffd8c0-0xbffff323] [ 0.038925][ T0] ACPI: Reserving FACS table memory at [mem 0xbfffd880-0xbfffd8bf] [ 0.039973][ T0] ACPI: Reserving FACS table memory at [mem 0xbfffd880-0xbfffd8bf] [ 0.041025][ T0] ACPI: Reserving SRAT table memory at [mem 0xbffffe60-0xbfffff27] [ 0.042053][ T0] ACPI: Reserving APIC table memory at [mem 0xbffffdb0-0xbffffe25] [ 0.043066][ T0] ACPI: Reserving SSDT table memory at [mem 0xbffff430-0xbffffdaf] [ 0.044176][ T0] ACPI: Reserving WAET table memory at [mem 0xbffffe30-0xbffffe57] [ 0.045979][ T0] SRAT: PXM 0 -> APIC 0x00 -> Node 0 [ 0.046691][ T0] SRAT: PXM 0 -> APIC 0x01 -> Node 0 [ 0.047376][ T0] ACPI: SRAT: Node 0 PXM 0 [mem 0x00000000-0x0009ffff] [ 0.048325][ T0] ACPI: SRAT: Node 0 PXM 0 [mem 0x00100000-0xbfffffff] [ 0.049208][ T0] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000-0x23fffffff] [ 0.050157][ T0] NUMA: Node 0 [mem 0x00000000-0x0009ffff] + [mem 0x00100000-0xbfffffff] -> [mem 0x00000000-0xbfffffff] [ 0.051606][ T0] NUMA: Node 0 [mem 0x00000000-0xbfffffff] + [mem 0x100000000-0x23fffffff] -> [mem 0x00000000-0x23fffffff] [ 0.053436][ T0] Faking node 0 at [mem 0x0000000000000000-0x000000013fffffff] (5120MB) [ 0.055355][ T0] Faking node 1 at [mem 0x0000000140000000-0x000000023fffffff] (4096MB) [ 0.057298][ T0] NODE_DATA(0) allocated [mem 0x13fffa000-0x13fffffff] [ 0.058733][ T0] NODE_DATA(1) allocated [mem 0x23fff7000-0x23fffcfff] [ 0.098062][ T0] Zone ranges: [ 0.098746][ T0] DMA [mem 0x0000000000001000-0x0000000000ffffff] [ 0.100152][ T0] DMA32 [mem 0x0000000001000000-0x00000000ffffffff] [ 0.101307][ T0] Normal [mem 0x0000000100000000-0x000000023fffffff] [ 0.102480][ T0] Device empty [ 0.103055][ T0] Movable zone start for each node [ 0.103716][ T0] Early memory node ranges [ 0.104297][ T0] node 0: [mem 0x0000000000001000-0x000000000009efff] [ 0.105235][ T0] node 0: [mem 0x0000000000100000-0x00000000bfffcfff] [ 0.106306][ T0] node 0: [mem 0x0000000100000000-0x000000013fffffff] [ 0.107282][ T0] node 1: [mem 0x0000000140000000-0x000000023fffffff] [ 0.108216][ T0] Initmem setup node 0 [mem 0x0000000000001000-0x000000013fffffff] [ 0.109280][ T0] Initmem setup node 1 [mem 0x0000000140000000-0x000000023fffffff] [ 0.110317][ T0] On node 0, zone DMA: 1 pages in unavailable ranges [ 0.110570][ T0] On node 0, zone DMA: 97 pages in unavailable ranges [ 0.173637][ T0] On node 0, zone Normal: 3 pages in unavailable ranges [ 0.544422][ T0] kasan: KernelAddressSanitizer initialized [ 0.546656][ T0] ACPI: PM-Timer IO Port: 0xb008 [ 0.547434][ T0] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1]) [ 0.548594][ T0] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23 [ 0.549708][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level) [ 0.550672][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) [ 0.551676][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level) [ 0.552660][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level) [ 0.553775][ T0] ACPI: Using ACPI (MADT) for SMP configuration information [ 0.554870][ T0] smpboot: Allowing 2 CPUs, 0 hotplug CPUs [ 0.555918][ T0] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff] [ 0.557112][ T0] PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x0009ffff] [ 0.558191][ T0] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000effff] [ 0.559346][ T0] PM: hibernation: Registered nosave memory: [mem 0x000f0000-0x000fffff] [ 0.560429][ T0] PM: hibernation: Registered nosave memory: [mem 0xbfffd000-0xbfffffff] [ 0.561545][ T0] PM: hibernation: Registered nosave memory: [mem 0xc0000000-0xfffbbfff] [ 0.562732][ T0] PM: hibernation: Registered nosave memory: [mem 0xfffbc000-0xffffffff] [ 0.564162][ T0] [mem 0xc0000000-0xfffbbfff] available for PCI devices [ 0.565064][ T0] Booting paravirtualized kernel on KVM [ 0.565804][ T0] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.634648][ T0] setup_percpu: NR_CPUS:8 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:2 [ 0.636578][ T0] percpu: Embedded 72 pages/cpu s254408 r8192 d32312 u1048576 [ 0.637874][ T0] kvm-guest: PV spinlocks enabled [ 0.638558][ T0] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.639644][ T0] Kernel command line: earlyprintk=serial net.ifnames=0 sysctl.kernel.hung_task_all_cpu_backtrace=1 ima_policy=tcb nf-conntrack-ftp.ports=20000 nf-conntrack-tftp.ports=20000 nf-conntrack-sip.ports=20000 nf-conntrack-irc.ports=20000 nf-conntrack-sane.ports=20000 binder.debug_mask=0 rcupdate.rcu_expedited=1 rcupdate.rcu_cpu_stall_cputime=1 no_hash_pointers page_owner=on sysctl.vm.nr_hugepages=4 sysctl.vm.nr_overcommit_hugepages=4 secretmem.enable=1 sysctl.max_rcu_stall_to_panic=1 msr.allow_writes=off coredump_filter=0xffff root=/dev/sda console=ttyS0 vsyscall=native numa=fake=2 kvm-intel.nested=1 spec_store_bypass_disable=prctl nopcid vivid.n_devs=16 vivid.multiplanar=1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2 netrom.nr_ndevs=16 rose.rose_ndevs=16 smp.csd_lock_timeout=100000 watchdog_thresh=55 workqueue.watchdog_thresh=140 sysctl.net.core.netdev_unregister_timeout_secs=140 dummy_hcd.num=8 panic_on_warn=1 BOOT_IMAGE=/boot/bzImage root=/dev/sda1 console=ttyS0 [ 0.656930][ T0] Unknown kernel command line parameters "spec_store_bypass_disable=prctl BOOT_IMAGE=/boot/bzImage", will be passed to user space. [ 0.658992][ T0] random: crng init done [ 0.659766][ T0] Fallback order for Node 0: 0 1 [ 0.659781][ T0] Fallback order for Node 1: 1 0 [ 0.659794][ T0] Built 2 zonelists, mobility grouping on. Total pages: 2064125 [ 0.662054][ T0] Policy zone: Normal [ 0.663197][ T0] mem auto-init: stack:off, heap alloc:on, heap free:off [ 0.664138][ T0] stackdepot: allocating hash table via alloc_large_system_hash [ 0.667451][ T0] stackdepot hash table entries: 1048576 (order: 11, 8388608 bytes, linear) [ 0.668736][ T0] software IO TLB: area num 2. [ 1.620097][ T0] Memory: 6809972K/8388204K available (153600K kernel code, 37663K rwdata, 31760K rodata, 3352K init, 35148K bss, 1577976K reserved, 0K cma-reserved) [ 1.623636][ T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=2 [ 1.747128][ T0] allocated 150994944 bytes of page_ext [ 1.748036][ T0] Node 0, zone DMA: page owner found early allocated 0 pages [ 1.764190][ T0] Node 0, zone DMA32: page owner found early allocated 18528 pages [ 1.777715][ T0] Node 0, zone Normal: page owner found early allocated 0 pages [ 1.789848][ T0] Node 1, zone Normal: page owner found early allocated 18435 pages [ 1.792502][ T0] Dynamic Preempt: full [ 1.794179][ T0] Running RCU self tests [ 1.794811][ T0] Running RCU synchronous self tests [ 1.796000][ T0] rcu: Preemptible hierarchical RCU implementation. [ 1.797260][ T0] rcu: RCU lockdep checking is enabled. [ 1.798454][ T0] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2. [ 1.799694][ T0] rcu: RCU callback double-/use-after-free debug is enabled. [ 1.800811][ T0] rcu: RCU debug extended QS entry/exit. [ 1.801571][ T0] All grace periods are expedited (rcu_expedited). [ 1.802493][ T0] Trampoline variant of Tasks RCU enabled. [ 1.803639][ T0] Tracing variant of Tasks RCU enabled. [ 1.804429][ T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 1.805824][ T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 1.807425][ T0] Running RCU synchronous self tests [ 1.866042][ T0] NR_IRQS: 4352, nr_irqs: 440, preallocated irqs: 16 [ 1.867797][ T0] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 1.869418][ T0] kfence: initialized - using 2097152 bytes for 255 objects at 0xffff88823bc00000-0xffff88823be00000 [ 1.872284][ T0] Console: colour VGA+ 80x25 [ 1.873300][ T0] printk: console [ttyS0] enabled [ 1.873300][ T0] printk: console [ttyS0] enabled [ 1.875479][ T0] printk: bootconsole [earlyser0] disabled [ 1.875479][ T0] printk: bootconsole [earlyser0] disabled [ 1.877568][ T0] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar [ 1.879221][ T0] ... MAX_LOCKDEP_SUBCLASSES: 8 [ 1.880271][ T0] ... MAX_LOCK_DEPTH: 48 [ 1.881218][ T0] ... MAX_LOCKDEP_KEYS: 8192 [ 1.882139][ T0] ... CLASSHASH_SIZE: 4096 [ 1.883074][ T0] ... MAX_LOCKDEP_ENTRIES: 131072 [ 1.884173][ T0] ... MAX_LOCKDEP_CHAINS: 262144 [ 1.884986][ T0] ... CHAINHASH_SIZE: 131072 [ 1.886069][ T0] memory used by lock dependency info: 20785 kB [ 1.887427][ T0] memory used for stack traces: 8320 kB [ 1.888278][ T0] per task-struct memory footprint: 1920 bytes [ 1.889384][ T0] mempolicy: Enabling automatic NUMA balancing. Configure with numa_balancing= or the kernel.numa_balancing sysctl [ 1.891833][ T0] ACPI: Core revision 20230331 [ 1.893651][ T0] APIC: Switch to symmetric I/O mode setup [ 1.895042][ T0] x2apic enabled [ 1.898984][ T0] Switched APIC routing to physical x2apic. [ 1.905429][ T0] ..TIMER: vector=0x30 apic1=0 pin1=0 apic2=-1 pin2=-1 [ 1.906966][ T0] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x1fb6fcd5f2d, max_idle_ns: 440795232554 ns [ 1.909057][ T0] Calibrating delay loop (skipped) preset value.. 4400.42 BogoMIPS (lpj=22002140) [ 1.911990][ T0] Last level iTLB entries: 4KB 64, 2MB 8, 4MB 8 [ 1.913298][ T0] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4 [ 1.919138][ T0] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization [ 1.920905][ T0] Spectre V2 : Mitigation: IBRS [ 1.921831][ T0] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch [ 1.923492][ T0] Spectre V2 : Spectre v2 / SpectreRSB : Filling RSB on VMEXIT [ 1.924830][ T0] RETBleed: Mitigation: IBRS [ 1.925851][ T0] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier [ 1.927361][ T0] Spectre V2 : User space: Mitigation: STIBP via prctl [ 1.929098][ T0] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl [ 1.930646][ T0] MDS: Mitigation: Clear CPU buffers [ 1.931762][ T0] TAA: Mitigation: Clear CPU buffers [ 1.933223][ T0] MMIO Stale Data: Vulnerable: Clear CPU buffers attempted, no microcode [ 1.934407][ T0] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' [ 1.936411][ T0] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' [ 1.937802][ T0] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' [ 1.939052][ T0] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 [ 1.940356][ T0] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format. [ 1.956094][ T0] Freeing SMP alternatives memory: 116K [ 1.957258][ T0] pid_max: default: 32768 minimum: 301 [ 1.958623][ T0] LSM: initializing lsm=lockdown,capability,landlock,yama,safesetid,tomoyo,apparmor,bpf,integrity [ 1.959127][ T0] landlock: Up and running. [ 1.960038][ T0] Yama: becoming mindful. [ 1.960882][ T0] TOMOYO Linux initialized [ 1.961772][ T0] AppArmor: AppArmor initialized [ 1.962689][ T0] LSM support for eBPF active [ 1.970557][ T0] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, vmalloc hugepage) [ 1.974775][ T0] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, vmalloc hugepage) [ 1.977000][ T0] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, vmalloc) [ 1.979251][ T0] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, vmalloc) [ 1.984263][ T0] Running RCU synchronous self tests [ 1.985352][ T0] Running RCU synchronous self tests [ 2.107333][ T1] smpboot: CPU0: Intel(R) Xeon(R) CPU @ 2.20GHz (family: 0x6, model: 0x4f, stepping: 0x0) [ 2.109041][ T1] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1. [ 2.109041][ T1] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1. [ 2.109041][ T1] Running RCU-tasks wait API self tests [ 2.239338][ T1] Performance Events: unsupported p6 CPU model 79 no PMU driver, software events only. [ 2.241130][ T1] signal: max sigframe size: 1776 [ 2.242639][ T1] rcu: Hierarchical SRCU implementation. [ 2.243420][ T1] rcu: Max phase no-delay instances is 1000. [ 2.248466][ T1] NMI watchdog: Perf NMI watchdog permanently disabled [ 2.249861][ T1] smp: Bringing up secondary CPUs ... [ 2.252552][ T1] smpboot: x86: Booting SMP configuration: [ 2.253460][ T1] .... node #0, CPUs: #1 [ 2.253573][ T1] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:580 [ 2.256833][ T1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1, name: swapper/0 [ 2.259103][ T1] preempt_count: 1, expected: 0 [ 2.260527][ T1] RCU nest depth: 0, expected: 0 [ 2.261546][ T1] 1 lock held by swapper/0/1: [ 2.262885][ T1] #0: ffffffff8c849728 (cpu_add_remove_lock){+.+.}-{3:3}, at: cpu_up+0xbc/0x200 [ 2.265052][ T1] Preemption disabled at: [ 2.265062][ T1] [] native_kick_ap+0x969/0x1030 [ 2.268337][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.4.0-next-20230627-syzkaller-g53cdf865f90b #0 [ 2.269041][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 2.269041][ T1] Call Trace: [ 2.269041][ T1] [ 2.269041][ T1] dump_stack_lvl+0x136/0x150 [ 2.269041][ T1] __might_resched+0x358/0x580 [ 2.269041][ T1] ? lock_downgrade+0x690/0x690 [ 2.269041][ T1] __mutex_lock+0x9f/0x1350 [ 2.269041][ T1] ? cpu_bugs_smt_update+0x1b/0x440 [ 2.269041][ T1] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 2.269041][ T1] ? _cpu_up+0x3cb/0x940 [ 2.269041][ T1] ? lock_downgrade+0x690/0x690 [ 2.269041][ T1] ? mark_held_locks+0x9f/0xe0 [ 2.269041][ T1] cpu_bugs_smt_update+0x1b/0x440 [ 2.269041][ T1] arch_smt_update+0x9/0x10 [ 2.269041][ T1] _cpu_up+0x3d0/0x940 [ 2.269041][ T1] cpu_up+0xfe/0x200 [ 2.269041][ T1] cpuhp_bringup_mask+0xdc/0x210 [ 2.269041][ T1] bringup_nonboot_cpus+0x15f/0x1a0 [ 2.269041][ T1] smp_init+0x32/0x150 [ 2.269041][ T1] kernel_init_freeable+0x425/0xba0 [ 2.269041][ T1] ? rest_init+0x2b0/0x2b0 [ 2.269041][ T1] kernel_init+0x1e/0x2c0 [ 2.269041][ T1] ? rest_init+0x2b0/0x2b0 [ 2.269041][ T1] ret_from_fork+0x1f/0x30 [ 2.269041][ T1] [ 2.269217][ T1] BUG: scheduling while atomic: swapper/0/1/0x00000002 [ 2.270913][ T1] 3 locks held by swapper/0/1: [ 2.271858][ T1] #0: ffffffff8c849728 (cpu_add_remove_lock){+.+.}-{3:3}, at: cpu_up+0xbc/0x200 [ 2.273295][ T1] #1: ffffffff8c849670 (cpu_hotplug_lock){++++}-{0:0}, at: _cpu_up+0x66/0x940 [ 2.274883][ T1] #2: ffffffff8c9970a8 (sparse_irq_lock){+.+.}-{3:3}, at: cpuhp_bringup_ap+0x65/0x340 [ 2.279056][ T1] Modules linked in: [ 2.279645][ T1] Preemption disabled at: [ 2.279651][ T1] [] native_kick_ap+0x969/0x1030 [ 2.281242][ T1] Kernel panic - not syncing: scheduling while atomic: panic_on_warn set ... [ 2.282765][ T1] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 6.4.0-next-20230627-syzkaller-g53cdf865f90b #0 [ 2.284605][ T1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 2.286182][ T1] Call Trace: [ 2.286652][ T1] [ 2.287097][ T1] dump_stack_lvl+0xd9/0x150 [ 2.288062][ T1] panic+0x686/0x730 [ 2.288969][ T1] ? panic_smp_self_stop+0xa0/0xa0 [ 2.289041][ T1] ? syslog_print_all+0x3a0/0x3a0 [ 2.289041][ T1] ? is_module_text_address+0x70/0x70 [ 2.289041][ T1] ? native_kick_ap+0x969/0x1030 [ 2.289041][ T1] check_panic_on_warn+0xb1/0xc0 [ 2.289041][ T1] ? native_kick_ap+0x969/0x1030 [ 2.289041][ T1] __schedule_bug+0x122/0x180 [ 2.289041][ T1] __schedule+0x38f2/0x5880 [ 2.289041][ T1] ? lockdep_unlock+0x11b/0x290 [ 2.289041][ T1] ? io_schedule_timeout+0x150/0x150 [ 2.289041][ T1] ? mark_lock.part.0+0xee/0x1960 [ 2.289041][ T1] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 2.289041][ T1] ? lockdep_unlock+0x11b/0x290 [ 2.289041][ T1] ? __lock_acquire+0x2950/0x5e20 [ 2.289041][ T1] ? print_usage_bug.part.0+0x670/0x670 [ 2.289041][ T1] schedule+0xde/0x1a0 [ 2.289041][ T1] schedule_timeout+0x276/0x2b0 [ 2.289041][ T1] ? usleep_range_state+0x1b0/0x1b0 [ 2.289041][ T1] ? __wait_for_common+0x1c4/0x5c0 [ 2.289041][ T1] ? lock_downgrade+0x690/0x690 [ 2.289041][ T1] ? mark_held_locks+0x9f/0xe0 [ 2.289041][ T1] ? _raw_spin_unlock_irq+0x23/0x50 [ 2.289041][ T1] __wait_for_common+0x1ce/0x5c0 [ 2.289041][ T1] ? usleep_range_state+0x1b0/0x1b0 [ 2.289041][ T1] ? bit_wait_io_timeout+0x160/0x160 [ 2.289041][ T1] ? mark_held_locks+0x9f/0xe0 [ 2.289041][ T1] ? _raw_spin_unlock_irqrestore+0x54/0x70 [ 2.289041][ T1] cpuhp_bringup_ap+0xcd/0x340 [ 2.289041][ T1] ? cpuhp_ap_sync_alive+0x170/0x170 [ 2.289041][ T1] cpuhp_invoke_callback+0x645/0xeb0 [ 2.289041][ T1] ? rcu_sync_enter_start+0x70/0x70 [ 2.289041][ T1] ? trace_contention_end+0xd8/0x100 [ 2.289041][ T1] ? cpuhp_next_state+0x15b/0x1b0 [ 2.289041][ T1] __cpuhp_invoke_callback_range+0x104/0x210 [ 2.289041][ T1] ? cpuhp_invoke_callback+0xeb0/0xeb0 [ 2.289041][ T1] ? percpu_down_write+0x175/0x390 [ 2.289041][ T1] _cpu_up+0x3a2/0x940 [ 2.289041][ T1] cpu_up+0xfe/0x200 [ 2.289041][ T1] cpuhp_bringup_mask+0xdc/0x210 [ 2.289041][ T1] bringup_nonboot_cpus+0x16e/0x1a0 [ 2.289041][ T1] smp_init+0x32/0x150 [ 2.289041][ T1] kernel_init_freeable+0x425/0xba0 [ 2.289041][ T1] ? rest_init+0x2b0/0x2b0 [ 2.289041][ T1] kernel_init+0x1e/0x2c0 [ 2.289041][ T1] ? rest_init+0x2b0/0x2b0 [ 2.289041][ T1] ret_from_fork+0x1f/0x30 [ 2.289041][ T1] [ 2.289041][ T1] Rebooting in 86400 seconds.. syzkaller build log: go env (err=) 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="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.20.1" 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 -fdebug-prefix-map=/tmp/go-build47662310=/tmp/go-build -gno-record-gcc-switches" git status (err=) HEAD detached at 3c7fef336 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=3c7fef3361a6007112b26adc1c5a550189ef43fe -X 'github.com/google/syzkaller/prog.gitRevisionDate=20210520-102818'" "-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=3c7fef3361a6007112b26adc1c5a550189ef43fe -X 'github.com/google/syzkaller/prog.gitRevisionDate=20210520-102818'" "-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=3c7fef3361a6007112b26adc1c5a550189ef43fe -X 'github.com/google/syzkaller/prog.gitRevisionDate=20210520-102818'" "-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 -static -fpermissive -w -DGOOS_linux=1 -DGOARCH_amd64=1 \ -DHOSTGOOS_linux=1 -DGIT_REVISION=\"3c7fef3361a6007112b26adc1c5a550189ef43fe\"