KASAN: slab-out-of-bounds Read in _find_next_bit ================================================================== BUG: KASAN: slab-out-of-bounds in _find_next_bit+0x122/0x140 lib/find_bit.c:109 Read of size 8 at addr ffff888145afe1b8 by task kworker/1:1/26 CPU: 1 PID: 26 Comm: kworker/1:1 Not tainted 6.0.0-rc4-next-20220909-syzkaller-06877-g9a82ccda91ed #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Workqueue: events pcpu_balance_workfn Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:287 [inline] print_report+0x164/0x463 mm/kasan/report.c:398 kasan_report+0xbb/0x1f0 mm/kasan/report.c:486 _find_next_bit+0x122/0x140 lib/find_bit.c:109 find_next_bit include/linux/find.h:55 [inline] pcpu_balance_populated mm/percpu.c:2086 [inline] pcpu_balance_workfn+0x6c0/0xea0 mm/percpu.c:2246 process_one_work+0x991/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Allocated by task 26: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:45 kasan_set_track+0x21/0x30 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:371 [inline] ____kasan_kmalloc mm/kasan/common.c:330 [inline] __kasan_kmalloc+0xa1/0xb0 mm/kasan/common.c:380 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:931 [inline] __kmalloc+0x54/0xc0 mm/slab_common.c:944 kmalloc include/linux/slab.h:564 [inline] kzalloc include/linux/slab.h:695 [inline] pcpu_mem_zalloc+0x70/0xa0 mm/percpu.c:514 pcpu_alloc_chunk mm/percpu.c:1446 [inline] pcpu_create_chunk+0x23/0x930 mm/percpu-vm.c:338 pcpu_balance_populated mm/percpu.c:2108 [inline] pcpu_balance_workfn+0xc4e/0xea0 mm/percpu.c:2246 process_one_work+0x991/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 The buggy address belongs to the object at ffff888145afe100 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 184 bytes inside of 192-byte region [ffff888145afe100, ffff888145afe1c0) The buggy address belongs to the physical page: page:ffffea000516bf80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x145afe flags: 0x57ff00000000200(slab|node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000000200 0000000000000000 dead000000000122 ffff888011841a00 raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 2038084364, free_ts 0 prep_new_page mm/page_alloc.c:2541 [inline] get_page_from_freelist+0x109b/0x2ce0 mm/page_alloc.c:4291 __alloc_pages+0x1c7/0x510 mm/page_alloc.c:5549 alloc_page_interleave+0x1e/0x200 mm/mempolicy.c:2113 alloc_pages+0x22f/0x270 mm/mempolicy.c:2275 alloc_slab_page mm/slub.c:1734 [inline] allocate_slab+0x213/0x300 mm/slub.c:1879 new_slab mm/slub.c:1932 [inline] ___slab_alloc+0xad0/0x1440 mm/slub.c:3113 __slab_alloc.constprop.0+0x4d/0xa0 mm/slub.c:3211 slab_alloc_node mm/slub.c:3296 [inline] __kmem_cache_alloc_node+0x18a/0x3d0 mm/slub.c:3369 kmalloc_trace+0x22/0x60 mm/slab_common.c:1011 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:695 [inline] call_usermodehelper_setup+0x97/0x340 kernel/umh.c:365 kobject_uevent_env+0xee6/0x1640 lib/kobject_uevent.c:614 workqueue_sysfs_register+0x2d4/0x3e0 kernel/workqueue.c:5772 alloc_workqueue+0x9d9/0x1100 kernel/workqueue.c:4350 default_bdi_init+0x1a/0x37 mm/backing-dev.c:236 do_one_initcall+0xfe/0x650 init/main.c:1307 do_initcall_level init/main.c:1382 [inline] do_initcalls init/main.c:1398 [inline] do_basic_setup init/main.c:1417 [inline] kernel_init_freeable+0x6ff/0x788 init/main.c:1637 page_owner free stack trace missing Memory state around the buggy address: ffff888145afe080: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff888145afe100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888145afe180: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ^ ffff888145afe200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888145afe280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== 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.1.67" "pwd"]: exit status 255 ssh: connect to host 10.128.1.67 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-test-job-1 port 1 (session ID: 07366c2153457b6ea1effbcb1baca1c745b080b94ea33a160162f2cf45953b50, 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 1c7e9715-2ead-9fff-2922-a89d3fb41c5a 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 0x000f2490: 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.0.0-rc4-next-20220909-syzkaller-06877-g9a82ccda91ed (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] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' [ 0.000000][ T0] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' [ 0.000000][ T0] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' [ 0.000000][ T0] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 [ 0.000000][ T0] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format. [ 0.000000][ T0] signal: max sigframe size: 1776 [ 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 08/26/2022 [ 0.000000][ T0] Hypervisor detected: KVM [ 0.000000][ T0] kvm-clock: Using msrs 4b564d01 and 4b564d00 [ 0.000007][ T0] kvm-clock: using sched offset of 6020814301 cycles [ 0.001196][ T0] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns [ 0.003989][ T0] tsc: Detected 2199.998 MHz processor [ 0.008365][ T0] last_pfn = 0x240000 max_arch_pfn = 0x400000000 [ 0.009391][ T0] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT [ 0.011056][ T0] last_pfn = 0xbfffd max_arch_pfn = 0x400000000 [ 0.017273][ T0] found SMP MP-table at [mem 0x000f2750-0x000f275f] [ 0.018554][ T0] Using GB pages for direct mapping [ 0.020727][ T0] ACPI: Early table checksum verification disabled [ 0.022223][ T0] ACPI: RSDP 0x00000000000F24D0 000014 (v00 Google) [ 0.023429][ T0] ACPI: RSDT 0x00000000BFFFFFA0 000038 (v01 Google GOOGRSDT 00000001 GOOG 00000001) [ 0.025214][ T0] ACPI: FACP 0x00000000BFFFF330 0000F4 (v02 Google GOOGFACP 00000001 GOOG 00000001) [ 0.027033][ T0] ACPI: DSDT 0x00000000BFFFD8C0 001A64 (v01 Google GOOGDSDT 00000001 GOOG 00000001) [ 0.029710][ T0] ACPI: FACS 0x00000000BFFFD880 000040 [ 0.030886][ T0] ACPI: FACS 0x00000000BFFFD880 000040 [ 0.031820][ T0] ACPI: SRAT 0x00000000BFFFFE60 0000C8 (v03 Google GOOGSRAT 00000001 GOOG 00000001) [ 0.033153][ T0] ACPI: APIC 0x00000000BFFFFDB0 000076 (v05 Google GOOGAPIC 00000001 GOOG 00000001) [ 0.035062][ T0] ACPI: SSDT 0x00000000BFFFF430 000980 (v01 Google GOOGSSDT 00000001 GOOG 00000001) [ 0.036615][ T0] ACPI: WAET 0x00000000BFFFFE30 000028 (v01 Google GOOGWAET 00000001 GOOG 00000001) [ 0.038582][ T0] ACPI: Reserving FACP table memory at [mem 0xbffff330-0xbffff423] [ 0.040030][ T0] ACPI: Reserving DSDT table memory at [mem 0xbfffd8c0-0xbffff323] [ 0.041363][ T0] ACPI: Reserving FACS table memory at [mem 0xbfffd880-0xbfffd8bf] [ 0.042868][ T0] ACPI: Reserving FACS table memory at [mem 0xbfffd880-0xbfffd8bf] [ 0.045233][ T0] ACPI: Reserving SRAT table memory at [mem 0xbffffe60-0xbfffff27] [ 0.046463][ T0] ACPI: Reserving APIC table memory at [mem 0xbffffdb0-0xbffffe25] [ 0.048003][ T0] ACPI: Reserving SSDT table memory at [mem 0xbffff430-0xbffffdaf] [ 0.049464][ T0] ACPI: Reserving WAET table memory at [mem 0xbffffe30-0xbffffe57] [ 0.051168][ T0] SRAT: PXM 0 -> APIC 0x00 -> Node 0 [ 0.052625][ T0] SRAT: PXM 0 -> APIC 0x01 -> Node 0 [ 0.053355][ T0] ACPI: SRAT: Node 0 PXM 0 [mem 0x00000000-0x0009ffff] [ 0.054594][ T0] ACPI: SRAT: Node 0 PXM 0 [mem 0x00100000-0xbfffffff] [ 0.055888][ T0] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000-0x23fffffff] [ 0.057598][ T0] NUMA: Node 0 [mem 0x00000000-0x0009ffff] + [mem 0x00100000-0xbfffffff] -> [mem 0x00000000-0xbfffffff] [ 0.059404][ T0] NUMA: Node 0 [mem 0x00000000-0xbfffffff] + [mem 0x100000000-0x23fffffff] -> [mem 0x00000000-0x23fffffff] [ 0.062088][ T0] Faking node 0 at [mem 0x0000000000000000-0x000000013fffffff] (5120MB) [ 0.063894][ T0] Faking node 1 at [mem 0x0000000140000000-0x000000023fffffff] (4096MB) [ 0.065737][ T0] NODE_DATA(0) allocated [mem 0x13fffa000-0x13fffffff] [ 0.067534][ T0] NODE_DATA(1) allocated [mem 0x23fff7000-0x23fffcfff] [ 0.096443][ T0] Zone ranges: [ 0.097071][ T0] DMA [mem 0x0000000000001000-0x0000000000ffffff] [ 0.098286][ T0] DMA32 [mem 0x0000000001000000-0x00000000ffffffff] [ 0.099972][ T0] Normal [mem 0x0000000100000000-0x000000023fffffff] [ 0.101578][ T0] Device empty [ 0.102230][ T0] Movable zone start for each node [ 0.103025][ T0] Early memory node ranges [ 0.103772][ T0] node 0: [mem 0x0000000000001000-0x000000000009efff] [ 0.104958][ T0] node 0: [mem 0x0000000000100000-0x00000000bfffcfff] [ 0.105969][ T0] node 0: [mem 0x0000000100000000-0x000000013fffffff] [ 0.107342][ T0] node 1: [mem 0x0000000140000000-0x000000023fffffff] [ 0.108499][ T0] Initmem setup node 0 [mem 0x0000000000001000-0x000000013fffffff] [ 0.109766][ T0] Initmem setup node 1 [mem 0x0000000140000000-0x000000023fffffff] [ 0.111182][ T0] On node 0, zone DMA: 1 pages in unavailable ranges [ 0.111335][ T0] On node 0, zone DMA: 97 pages in unavailable ranges [ 0.146378][ T0] On node 0, zone Normal: 3 pages in unavailable ranges [ 0.410762][ T0] kasan: KernelAddressSanitizer initialized [ 0.413695][ T0] ACPI: PM-Timer IO Port: 0xb008 [ 0.414888][ T0] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1]) [ 0.416651][ T0] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23 [ 0.418824][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level) [ 0.421047][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) [ 0.423055][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level) [ 0.424872][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level) [ 0.426860][ T0] ACPI: Using ACPI (MADT) for SMP configuration information [ 0.428704][ T0] smpboot: Allowing 2 CPUs, 0 hotplug CPUs [ 0.430741][ T0] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff] [ 0.432267][ T0] PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x0009ffff] [ 0.434326][ T0] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000effff] [ 0.436038][ T0] PM: hibernation: Registered nosave memory: [mem 0x000f0000-0x000fffff] [ 0.438431][ T0] PM: hibernation: Registered nosave memory: [mem 0xbfffd000-0xbfffffff] [ 0.440014][ T0] PM: hibernation: Registered nosave memory: [mem 0xc0000000-0xfffbbfff] [ 0.441323][ T0] PM: hibernation: Registered nosave memory: [mem 0xfffbc000-0xffffffff] [ 0.442822][ T0] [mem 0xc0000000-0xfffbbfff] available for PCI devices [ 0.444543][ T0] Booting paravirtualized kernel on KVM [ 0.445791][ T0] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.505139][ T0] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:2 nr_node_ids:2 [ 0.507237][ T0] percpu: Embedded 69 pages/cpu s243912 r8192 d30520 u1048576 [ 0.509041][ T0] kvm-guest: PV spinlocks enabled [ 0.509995][ T0] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.512168][ T0] Fallback order for Node 0: 0 1 [ 0.514139][ T0] Fallback order for Node 1: 1 0 [ 0.515776][ T0] Built 2 zonelists, mobility grouping on. Total pages: 2064125 [ 0.517642][ T0] Policy zone: Normal [ 0.519067][ 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 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 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.540852][ T0] Unknown kernel command line parameters "spec_store_bypass_disable=prctl BOOT_IMAGE=/boot/bzImage", will be passed to user space. [ 0.545043][ T0] mem auto-init: stack:off, heap alloc:on, heap free:off [ 0.548603][ T0] stackdepot hash table entries: 1048576 (order: 11, 8388608 bytes, linear) [ 0.551213][ T0] software IO TLB: area num 2. [ 1.281900][ T0] Memory: 6828212K/8388204K available (143390K kernel code, 34953K rwdata, 30452K rodata, 2732K init, 33788K bss, 1559736K reserved, 0K cma-reserved) [ 1.285881][ T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=2 [ 1.289125][ T0] Dynamic Preempt: full [ 1.290868][ T0] Running RCU self tests [ 1.292016][ T0] rcu: Preemptible hierarchical RCU implementation. [ 1.293273][ T0] rcu: RCU lockdep checking is enabled. [ 1.294589][ T0] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2. [ 1.296735][ T0] rcu: RCU callback double-/use-after-free debug is enabled. [ 1.298363][ T0] rcu: RCU debug extended QS entry/exit. [ 1.300082][ T0] All grace periods are expedited (rcu_expedited). [ 1.301520][ T0] Trampoline variant of Tasks RCU enabled. [ 1.302345][ T0] Tracing variant of Tasks RCU enabled. [ 1.303714][ T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 1.305386][ T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 1.339224][ T0] NR_IRQS: 4352, nr_irqs: 440, preallocated irqs: 16 [ 1.341263][ T0] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 1.343255][ T0] kfence: initialized - using 2097152 bytes for 255 objects at 0xffff88823bc00000-0xffff88823be00000 [ 1.345280][ T0] random: crng init done [ 1.347452][ T0] Console: colour VGA+ 80x25 [ 1.348559][ T0] printk: console [ttyS0] enabled [ 1.348559][ T0] printk: console [ttyS0] enabled [ 1.350924][ T0] printk: bootconsole [earlyser0] disabled [ 1.350924][ T0] printk: bootconsole [earlyser0] disabled [ 1.353466][ T0] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar [ 1.355108][ T0] ... MAX_LOCKDEP_SUBCLASSES: 8 [ 1.356748][ T0] ... MAX_LOCK_DEPTH: 48 [ 1.358105][ T0] ... MAX_LOCKDEP_KEYS: 8192 [ 1.359388][ T0] ... CLASSHASH_SIZE: 4096 [ 1.360223][ T0] ... MAX_LOCKDEP_ENTRIES: 131072 [ 1.361274][ T0] ... MAX_LOCKDEP_CHAINS: 262144 [ 1.362402][ T0] ... CHAINHASH_SIZE: 131072 [ 1.363739][ T0] memory used by lock dependency info: 20657 kB [ 1.365320][ T0] memory used for stack traces: 8320 kB [ 1.366663][ T0] per task-struct memory footprint: 1920 bytes [ 1.368016][ T0] mempolicy: Enabling automatic NUMA balancing. Configure with numa_balancing= or the kernel.numa_balancing sysctl [ 1.371057][ T0] ACPI: Core revision 20220331 [ 1.372763][ T0] APIC: Switch to symmetric I/O mode setup [ 1.380078][ T0] ..TIMER: vector=0x30 apic1=0 pin1=0 apic2=-1 pin2=-1 [ 1.382131][ T0] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x1fb63109b96, max_idle_ns: 440795265316 ns [ 1.384835][ T0] Calibrating delay loop (skipped) preset value.. 4399.99 BogoMIPS (lpj=21999980) [ 1.386366][ T0] pid_max: default: 32768 minimum: 301 [ 1.387617][ T0] LSM: Security Framework initializing [ 1.388897][ T0] landlock: Up and running. [ 1.390463][ T0] Yama: becoming mindful. [ 1.391603][ T0] TOMOYO Linux initialized [ 1.395012][ T0] AppArmor: AppArmor initialized [ 1.396586][ T0] LSM support for eBPF active [ 1.400839][ T0] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, vmalloc hugepage) [ 1.404084][ T0] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, vmalloc hugepage) [ 1.404961][ T0] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, vmalloc) [ 1.407175][ T0] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, vmalloc) [ 1.411749][ T0] Last level iTLB entries: 4KB 64, 2MB 8, 4MB 8 [ 1.414835][ T0] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4 [ 1.416170][ T0] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization [ 1.418129][ T0] Spectre V2 : Mitigation: IBRS [ 1.419040][ T0] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch [ 1.420731][ T0] Spectre V2 : Spectre v2 / SpectreRSB : Filling RSB on VMEXIT [ 1.421920][ T0] RETBleed: Mitigation: IBRS [ 1.422803][ T0] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier [ 1.424867][ T0] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl [ 1.426422][ T0] MDS: Mitigation: Clear CPU buffers [ 1.428097][ T0] TAA: Mitigation: Clear CPU buffers [ 1.429202][ T0] MMIO Stale Data: Vulnerable: Clear CPU buffers attempted, no microcode [ 1.432778][ T0] Freeing SMP alternatives memory: 112K [ 1.554591][ T1] smpboot: CPU0: Intel(R) Xeon(R) CPU @ 2.20GHz (family: 0x6, model: 0x4f, stepping: 0x0) [ 1.554821][ T1] cblist_init_generic: Setting adjustable number of callback queues. [ 1.554821][ T1] cblist_init_generic: Setting shift to 1 and lim to 1. [ 1.554821][ T1] cblist_init_generic: Setting shift to 1 and lim to 1. [ 1.554821][ T1] Running RCU-tasks wait API self tests [ 1.665060][ T1] Performance Events: unsupported p6 CPU model 79 no PMU driver, software events only. [ 1.667467][ T1] rcu: Hierarchical SRCU implementation. [ 1.668884][ T1] rcu: Max phase no-delay instances is 1000. [ 1.673443][ T1] NMI watchdog: Perf NMI watchdog permanently disabled [ 1.675489][ T1] smp: Bringing up secondary CPUs ... [ 1.678298][ T1] x86: Booting SMP configuration: [ 1.680141][ T1] .... node #0, CPUs: #1 [ 1.682549][ T1] MDS CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/mds.html for more details. [ 1.684935][ T1] TAA CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/tsx_async_abort.html for more details. [ 1.689568][ T1] MMIO Stale Data CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/processor_mmio_stale_data.html for more details. [ 1.692540][ T1] smp: Brought up 2 nodes, 2 CPUs [ 1.693300][ T1] smpboot: Max logical packages: 1 [ 1.694837][ T1] smpboot: Total of 2 processors activated (8799.99 BogoMIPS) [ 1.704908][ T13] Callback from call_rcu_tasks_trace() invoked. [ 1.723596][ T1] allocated 134217728 bytes of page_ext [ 1.725036][ T1] Node 0, zone DMA: page owner found early allocated 0 pages [ 1.747967][ T1] Node 0, zone DMA32: page owner found early allocated 19072 pages [ 1.760311][ T1] Node 0, zone Normal: page owner found early allocated 228 pages [ 1.775416][ T1] Node 1, zone Normal: page owner found early allocated 18929 pages [ 1.785338][ T1] devtmpfs: initialized [ 1.787374][ T1] x86/mm: Memory block size: 128MB [ 1.824894][ T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 1.824894][ T1] futex hash table entries: 512 (order: 4, 65536 bytes, vmalloc) [ 1.824894][ T1] PM: RTC time: 00:03:56, date: 2022-09-10 [ 1.838056][ T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 1.843852][ T1] audit: initializing netlink subsys (disabled) [ 1.854894][ T27] audit: type=2000 audit(1662768236.403:1): state=initialized audit_enabled=0 res=1 [ 1.854841][ T1] thermal_sys: Registered thermal governor 'step_wise' [ 1.854841][ T1] thermal_sys: Registered thermal governor 'user_space' [ 1.854841][ T1] cpuidle: using governor menu [ 1.854841][ T1] NET: Registered PF_QIPCRTR protocol family [ 1.859320][ T1] PCI: Using configuration type 1 for base access [ 1.885142][ T12] Callback from call_rcu_tasks() invoked. [ 2.034904][ T1] WARNING: workqueue cpumask: online intersect > possible intersect [ 2.038185][ T1] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages [ 2.038185][ T1] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page [ 2.039549][ T1] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages [ 2.041378][ T1] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page [ 2.054847][ T26] ================================================================== [ 2.054847][ T26] BUG: KASAN: slab-out-of-bounds in _find_next_bit+0x122/0x140 [ 2.054847][ T26] Read of size 8 at addr ffff888145afe1b8 by task kworker/1:1/26 [ 2.054847][ T26] [ 2.054847][ T26] CPU: 1 PID: 26 Comm: kworker/1:1 Not tainted 6.0.0-rc4-next-20220909-syzkaller-06877-g9a82ccda91ed #0 [ 2.054847][ T26] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 [ 2.054847][ T26] Workqueue: events pcpu_balance_workfn [ 2.054847][ T26] Call Trace: [ 2.054847][ T26] [ 2.054847][ T26] dump_stack_lvl+0xcd/0x134 [ 2.054847][ T26] print_report+0x164/0x463 [ 2.054847][ T26] ? __phys_addr+0xc4/0x140 [ 2.054847][ T26] ? _find_next_bit+0x122/0x140 [ 2.054847][ T26] kasan_report+0xbb/0x1f0 [ 2.054847][ T26] ? _find_next_bit+0x122/0x140 [ 2.054847][ T26] _find_next_bit+0x122/0x140 [ 2.054847][ T26] pcpu_balance_workfn+0x6c0/0xea0 [ 2.054847][ T26] process_one_work+0x991/0x1610 [ 2.054847][ T26] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 2.054847][ T26] ? rwlock_bug.part.0+0x90/0x90 [ 2.054847][ T26] ? _raw_spin_lock_irq+0x41/0x50 [ 2.054847][ T26] worker_thread+0x665/0x1080 [ 2.054847][ T26] ? __kthread_parkme+0x15f/0x220 [ 2.054847][ T26] ? process_one_work+0x1610/0x1610 [ 2.054847][ T26] kthread+0x2e4/0x3a0 [ 2.054847][ T26] ? kthread_complete_and_exit+0x40/0x40 [ 2.054847][ T26] ret_from_fork+0x1f/0x30 [ 2.054847][ T26] [ 2.054847][ T26] [ 2.054847][ T26] Allocated by task 26: [ 2.054847][ T26] kasan_save_stack+0x1e/0x40 [ 2.054847][ T26] kasan_set_track+0x21/0x30 [ 2.054847][ T26] __kasan_kmalloc+0xa1/0xb0 [ 2.054847][ T26] __kmalloc+0x54/0xc0 [ 2.054847][ T26] pcpu_mem_zalloc+0x70/0xa0 [ 2.054847][ T26] pcpu_create_chunk+0x23/0x930 [ 2.054847][ T26] pcpu_balance_workfn+0xc4e/0xea0 [ 2.054847][ T26] process_one_work+0x991/0x1610 [ 2.054847][ T26] worker_thread+0x665/0x1080 [ 2.115233][ T26] kthread+0x2e4/0x3a0 [ 2.115233][ T26] ret_from_fork+0x1f/0x30 [ 2.115233][ T26] [ 2.115233][ T26] The buggy address belongs to the object at ffff888145afe100 [ 2.115233][ T26] which belongs to the cache kmalloc-192 of size 192 [ 2.115233][ T26] The buggy address is located 184 bytes inside of [ 2.115233][ T26] 192-byte region [ffff888145afe100, ffff888145afe1c0) [ 2.115233][ T26] [ 2.115233][ T26] The buggy address belongs to the physical page: [ 2.115233][ T26] page:ffffea000516bf80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x145afe [ 2.115233][ T26] flags: 0x57ff00000000200(slab|node=1|zone=2|lastcpupid=0x7ff) [ 2.115233][ T26] raw: 057ff00000000200 0000000000000000 dead000000000122 ffff888011841a00 [ 2.115233][ T26] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 2.115233][ T26] page dumped because: kasan: bad access detected [ 2.115233][ T26] page_owner tracks the page as allocated [ 2.115233][ T26] page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 2038084364, free_ts 0 [ 2.115233][ T26] get_page_from_freelist+0x109b/0x2ce0 [ 2.115233][ T26] __alloc_pages+0x1c7/0x510 [ 2.154854][ T26] alloc_page_interleave+0x1e/0x200 [ 2.154854][ T26] alloc_pages+0x22f/0x270 [ 2.154854][ T26] allocate_slab+0x213/0x300 [ 2.154854][ T26] ___slab_alloc+0xad0/0x1440 [ 2.154854][ T26] __slab_alloc.constprop.0+0x4d/0xa0 [ 2.154854][ T26] __kmem_cache_alloc_node+0x18a/0x3d0 [ 2.154854][ T26] kmalloc_trace+0x22/0x60 [ 2.154854][ T26] call_usermodehelper_setup+0x97/0x340 [ 2.154854][ T26] kobject_uevent_env+0xee6/0x1640 [ 2.154854][ T26] workqueue_sysfs_register+0x2d4/0x3e0 [ 2.154854][ T26] alloc_workqueue+0x9d9/0x1100 [ 2.154854][ T26] default_bdi_init+0x1a/0x37 [ 2.154854][ T26] do_one_initcall+0xfe/0x650 [ 2.154854][ T26] kernel_init_freeable+0x6ff/0x788 [ 2.154854][ T26] page_owner free stack trace missing [ 2.154854][ T26] [ 2.154854][ T26] Memory state around the buggy address: [ 2.154854][ T26] ffff888145afe080: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 2.154854][ T26] ffff888145afe100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 2.154854][ T26] >ffff888145afe180: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc [ 2.154854][ T26] ^ [ 2.154854][ T26] ffff888145afe200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 2.154854][ T26] ffff888145afe280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 2.154854][ T26] ================================================================== [ 2.154854][ T26] Kernel panic - not syncing: panic_on_warn set ... [ 2.154854][ T26] CPU: 1 PID: 26 Comm: kworker/1:1 Not tainted 6.0.0-rc4-next-20220909-syzkaller-06877-g9a82ccda91ed #0 [ 2.154854][ T26] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 [ 2.154854][ T26] Workqueue: events pcpu_balance_workfn [ 2.154854][ T26] Call Trace: [ 2.154854][ T26] [ 2.154854][ T26] dump_stack_lvl+0xcd/0x134 [ 2.154854][ T26] panic+0x2c8/0x622 [ 2.154854][ T26] ? panic_print_sys_info.part.0+0x110/0x110 [ 2.154854][ T26] end_report.part.0+0x3f/0x7c [ 2.154854][ T26] ? _find_next_bit+0x122/0x140 [ 2.154854][ T26] kasan_report.cold+0xa/0xf [ 2.154854][ T26] ? _find_next_bit+0x122/0x140 [ 2.154854][ T26] _find_next_bit+0x122/0x140 [ 2.154854][ T26] pcpu_balance_workfn+0x6c0/0xea0 [ 2.154854][ T26] process_one_work+0x991/0x1610 [ 2.154854][ T26] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 2.154854][ T26] ? rwlock_bug.part.0+0x90/0x90 [ 2.154854][ T26] ? _raw_spin_lock_irq+0x41/0x50 [ 2.154854][ T26] worker_thread+0x665/0x1080 [ 2.154854][ T26] ? __kthread_parkme+0x15f/0x220 [ 2.154854][ T26] ? process_one_work+0x1610/0x1610 [ 2.154854][ T26] kthread+0x2e4/0x3a0 [ 2.154854][ T26] ? kthread_complete_and_exit+0x40/0x40 [ 2.154854][ T26] ret_from_fork+0x1f/0x30 [ 2.154854][ T26] [ 2.154854][ T26] 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/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" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.17" GCCGO="gccgo" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1349080937=/tmp/go-build -gno-record-gcc-switches" git status (err=) HEAD detached at 7509bf360 nothing to commit, working tree clean export BUILDOS=linux export NATIVEBUILDOS=linux export HOSTOS=linux export HOSTARCH=amd64 export TARGETOS=linux export TARGETARCH=amd64 export TARGETVMARCH=amd64 export CC=gcc export ADDCFLAGS=-O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=8192 -m64 -static export NCORES=64 export EXE= export NATIVEBUILDOS=linux GOOS=linux GOARCH=amd64 go install ./syz-fuzzer make fuzzer execprog stress executor make[1]: Entering directory '/syzkaller/jobs/linux/gopath/src/github.com/google/syzkaller' export BUILDOS=linux export NATIVEBUILDOS=linux export HOSTOS=linux export HOSTARCH=amd64 export TARGETOS=linux export TARGETARCH=amd64 export TARGETVMARCH=amd64 export CC=gcc export ADDCFLAGS=-O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=8192 -m64 -static export NCORES=64 export EXE= export NATIVEBUILDOS=linux make[1]: warning: -j64 forced in makefile: resetting jobserver mode. GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/sys.GitRevision=7509bf360eba1461ac6059e4cacfbc29c9d2d4c7 -X 'github.com/google/syzkaller/sys.gitRevisionDate=Wed Jun 26 15:04:20 2019 +0100'" "-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/sys.GitRevision=7509bf360eba1461ac6059e4cacfbc29c9d2d4c7 -X 'github.com/google/syzkaller/sys.gitRevisionDate=Wed Jun 26 15:04:20 2019 +0100'" "-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/sys.GitRevision=7509bf360eba1461ac6059e4cacfbc29c9d2d4c7 -X 'github.com/google/syzkaller/sys.gitRevisionDate=Wed Jun 26 15:04:20 2019 +0100'" "-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 \ -O2 -pthread -Wall -Werror -Wparentheses -Wunused-const-variable -Wframe-larger-than=8192 -m64 -static -fpermissive -w -DGOOS_linux=1 -DGOARCH_amd64=1 \ -DHOSTGOOS_linux=1 -DGIT_REVISION=\"7509bf360eba1461ac6059e4cacfbc29c9d2d4c7\" make[1]: Leaving directory '/syzkaller/jobs/linux/gopath/src/github.com/google/syzkaller'