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 ffff88814586f6b8 by task kworker/1:1/26 CPU: 1 PID: 26 Comm: kworker/1:1 Not tainted 6.0.0-rc4-next-20220908-syzkaller-06577-g47c191411b68 #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 ffff88814586f600 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 184 bytes inside of 192-byte region [ffff88814586f600, ffff88814586f6c0) The buggy address belongs to the physical page: page:ffffea0005161bc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14586f 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 2331071574, 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 __do_kmalloc_node mm/slab_common.c:930 [inline] __kmalloc_node_track_caller+0x45/0xc0 mm/slab_common.c:951 __do_krealloc mm/slab_common.c:1315 [inline] krealloc+0x8c/0xf0 mm/slab_common.c:1348 add_sysfs_param+0xca/0x960 kernel/params.c:651 kernel_add_sysfs_param kernel/params.c:812 [inline] param_sysfs_builtin kernel/params.c:851 [inline] param_sysfs_init+0x301/0x43b kernel/params.c:970 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 kernel_init+0x1a/0x1d0 init/main.c:1525 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 page_owner free stack trace missing Memory state around the buggy address: ffff88814586f580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88814586f600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88814586f680: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc ^ ffff88814586f700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88814586f780: 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.88" "pwd"]: exit status 255 ssh: connect to host 10.128.1.88 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: 1612026838e828de11e45361bc92faab628506759b841dd7ae6108f096654bbc, 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-20220908-syzkaller-06577-g47c191411b68 (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 4026705768 cycles [ 0.000847][ T0] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns [ 0.003559][ T0] tsc: Detected 2200.164 MHz processor [ 0.009034][ T0] last_pfn = 0x240000 max_arch_pfn = 0x400000000 [ 0.010684][ T0] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT [ 0.012213][ T0] last_pfn = 0xbfffd max_arch_pfn = 0x400000000 [ 0.019919][ T0] found SMP MP-table at [mem 0x000f2750-0x000f275f] [ 0.021148][ T0] Using GB pages for direct mapping [ 0.023974][ T0] ACPI: Early table checksum verification disabled [ 0.024966][ T0] ACPI: RSDP 0x00000000000F24D0 000014 (v00 Google) [ 0.025865][ T0] ACPI: RSDT 0x00000000BFFFFFA0 000038 (v01 Google GOOGRSDT 00000001 GOOG 00000001) [ 0.027334][ T0] ACPI: FACP 0x00000000BFFFF330 0000F4 (v02 Google GOOGFACP 00000001 GOOG 00000001) [ 0.028728][ T0] ACPI: DSDT 0x00000000BFFFD8C0 001A64 (v01 Google GOOGDSDT 00000001 GOOG 00000001) [ 0.030157][ T0] ACPI: FACS 0x00000000BFFFD880 000040 [ 0.031529][ T0] ACPI: FACS 0x00000000BFFFD880 000040 [ 0.032398][ T0] ACPI: SRAT 0x00000000BFFFFE60 0000C8 (v03 Google GOOGSRAT 00000001 GOOG 00000001) [ 0.033723][ T0] ACPI: APIC 0x00000000BFFFFDB0 000076 (v05 Google GOOGAPIC 00000001 GOOG 00000001) [ 0.036041][ T0] ACPI: SSDT 0x00000000BFFFF430 000980 (v01 Google GOOGSSDT 00000001 GOOG 00000001) [ 0.038265][ T0] ACPI: WAET 0x00000000BFFFFE30 000028 (v01 Google GOOGWAET 00000001 GOOG 00000001) [ 0.039914][ T0] ACPI: Reserving FACP table memory at [mem 0xbffff330-0xbffff423] [ 0.041759][ T0] ACPI: Reserving DSDT table memory at [mem 0xbfffd8c0-0xbffff323] [ 0.043601][ T0] ACPI: Reserving FACS table memory at [mem 0xbfffd880-0xbfffd8bf] [ 0.045908][ T0] ACPI: Reserving FACS table memory at [mem 0xbfffd880-0xbfffd8bf] [ 0.047887][ T0] ACPI: Reserving SRAT table memory at [mem 0xbffffe60-0xbfffff27] [ 0.049444][ T0] ACPI: Reserving APIC table memory at [mem 0xbffffdb0-0xbffffe25] [ 0.050830][ T0] ACPI: Reserving SSDT table memory at [mem 0xbffff430-0xbffffdaf] [ 0.052578][ T0] ACPI: Reserving WAET table memory at [mem 0xbffffe30-0xbffffe57] [ 0.054510][ T0] SRAT: PXM 0 -> APIC 0x00 -> Node 0 [ 0.055614][ T0] SRAT: PXM 0 -> APIC 0x01 -> Node 0 [ 0.056708][ T0] ACPI: SRAT: Node 0 PXM 0 [mem 0x00000000-0x0009ffff] [ 0.057871][ T0] ACPI: SRAT: Node 0 PXM 0 [mem 0x00100000-0xbfffffff] [ 0.058820][ T0] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000-0x23fffffff] [ 0.060084][ T0] NUMA: Node 0 [mem 0x00000000-0x0009ffff] + [mem 0x00100000-0xbfffffff] -> [mem 0x00000000-0xbfffffff] [ 0.062173][ T0] NUMA: Node 0 [mem 0x00000000-0xbfffffff] + [mem 0x100000000-0x23fffffff] -> [mem 0x00000000-0x23fffffff] [ 0.064288][ T0] Faking node 0 at [mem 0x0000000000000000-0x000000013fffffff] (5120MB) [ 0.065377][ T0] Faking node 1 at [mem 0x0000000140000000-0x000000023fffffff] (4096MB) [ 0.067242][ T0] NODE_DATA(0) allocated [mem 0x13fffa000-0x13fffffff] [ 0.068683][ T0] NODE_DATA(1) allocated [mem 0x23fff7000-0x23fffcfff] [ 0.108557][ T0] Zone ranges: [ 0.109636][ T0] DMA [mem 0x0000000000001000-0x0000000000ffffff] [ 0.111358][ T0] DMA32 [mem 0x0000000001000000-0x00000000ffffffff] [ 0.113009][ T0] Normal [mem 0x0000000100000000-0x000000023fffffff] [ 0.114506][ T0] Device empty [ 0.115280][ T0] Movable zone start for each node [ 0.116426][ T0] Early memory node ranges [ 0.117675][ T0] node 0: [mem 0x0000000000001000-0x000000000009efff] [ 0.119183][ T0] node 0: [mem 0x0000000000100000-0x00000000bfffcfff] [ 0.120545][ T0] node 0: [mem 0x0000000100000000-0x000000013fffffff] [ 0.122348][ T0] node 1: [mem 0x0000000140000000-0x000000023fffffff] [ 0.123462][ T0] Initmem setup node 0 [mem 0x0000000000001000-0x000000013fffffff] [ 0.125503][ T0] Initmem setup node 1 [mem 0x0000000140000000-0x000000023fffffff] [ 0.127122][ T0] On node 0, zone DMA: 1 pages in unavailable ranges [ 0.127288][ T0] On node 0, zone DMA: 97 pages in unavailable ranges [ 0.167706][ T0] On node 0, zone Normal: 3 pages in unavailable ranges [ 0.522294][ T0] kasan: KernelAddressSanitizer initialized [ 0.525497][ T0] ACPI: PM-Timer IO Port: 0xb008 [ 0.526585][ T0] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1]) [ 0.527733][ T0] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23 [ 0.528795][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level) [ 0.529800][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) [ 0.531112][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level) [ 0.532164][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level) [ 0.533234][ T0] ACPI: Using ACPI (MADT) for SMP configuration information [ 0.534177][ T0] smpboot: Allowing 2 CPUs, 0 hotplug CPUs [ 0.535232][ T0] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff] [ 0.536800][ T0] PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x0009ffff] [ 0.538510][ T0] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000effff] [ 0.540214][ T0] PM: hibernation: Registered nosave memory: [mem 0x000f0000-0x000fffff] [ 0.541507][ T0] PM: hibernation: Registered nosave memory: [mem 0xbfffd000-0xbfffffff] [ 0.542741][ T0] PM: hibernation: Registered nosave memory: [mem 0xc0000000-0xfffbbfff] [ 0.544085][ T0] PM: hibernation: Registered nosave memory: [mem 0xfffbc000-0xffffffff] [ 0.545478][ T0] [mem 0xc0000000-0xfffbbfff] available for PCI devices [ 0.546766][ T0] Booting paravirtualized kernel on KVM [ 0.548013][ T0] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.618303][ T0] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:2 nr_node_ids:2 [ 0.620494][ T0] percpu: Embedded 69 pages/cpu s243912 r8192 d30520 u1048576 [ 0.621867][ T0] kvm-guest: PV spinlocks enabled [ 0.622844][ T0] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.624972][ T0] Fallback order for Node 0: 0 1 [ 0.625877][ T0] Fallback order for Node 1: 1 0 [ 0.626675][ T0] Built 2 zonelists, mobility grouping on. Total pages: 2064125 [ 0.627914][ T0] Policy zone: Normal [ 0.628655][ 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.648264][ T0] Unknown kernel command line parameters "spec_store_bypass_disable=prctl BOOT_IMAGE=/boot/bzImage", will be passed to user space. [ 0.651916][ T0] mem auto-init: stack:off, heap alloc:on, heap free:off [ 0.656059][ T0] stackdepot hash table entries: 1048576 (order: 11, 8388608 bytes, linear) [ 0.658328][ T0] software IO TLB: area num 2. [ 1.543008][ T0] Memory: 6828212K/8388204K available (143390K kernel code, 34947K rwdata, 30444K rodata, 2732K init, 33796K bss, 1559736K reserved, 0K cma-reserved) [ 1.547134][ T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=2 [ 1.550534][ T0] Dynamic Preempt: full [ 1.552342][ T0] Running RCU self tests [ 1.553201][ T0] rcu: Preemptible hierarchical RCU implementation. [ 1.554423][ T0] rcu: RCU lockdep checking is enabled. [ 1.555410][ T0] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2. [ 1.557069][ T0] rcu: RCU callback double-/use-after-free debug is enabled. [ 1.558552][ T0] rcu: RCU debug extended QS entry/exit. [ 1.559361][ T0] All grace periods are expedited (rcu_expedited). [ 1.560356][ T0] Trampoline variant of Tasks RCU enabled. [ 1.561494][ T0] Tracing variant of Tasks RCU enabled. [ 1.562662][ T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 1.564239][ T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 [ 1.604822][ T0] NR_IRQS: 4352, nr_irqs: 440, preallocated irqs: 16 [ 1.606809][ T0] rcu: srcu_init: Setting srcu_struct sizes based on contention. [ 1.608825][ T0] kfence: initialized - using 2097152 bytes for 255 objects at 0xffff88823bc00000-0xffff88823be00000 [ 1.610667][ T0] random: crng init done [ 1.612596][ T0] Console: colour VGA+ 80x25 [ 1.613615][ T0] printk: console [ttyS0] enabled [ 1.613615][ T0] printk: console [ttyS0] enabled [ 1.615576][ T0] printk: bootconsole [earlyser0] disabled [ 1.615576][ T0] printk: bootconsole [earlyser0] disabled [ 1.618349][ T0] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar [ 1.619744][ T0] ... MAX_LOCKDEP_SUBCLASSES: 8 [ 1.621412][ T0] ... MAX_LOCK_DEPTH: 48 [ 1.622437][ T0] ... MAX_LOCKDEP_KEYS: 8192 [ 1.623299][ T0] ... CLASSHASH_SIZE: 4096 [ 1.624143][ T0] ... MAX_LOCKDEP_ENTRIES: 131072 [ 1.625092][ T0] ... MAX_LOCKDEP_CHAINS: 262144 [ 1.625984][ T0] ... CHAINHASH_SIZE: 131072 [ 1.626908][ T0] memory used by lock dependency info: 20657 kB [ 1.628116][ T0] memory used for stack traces: 8320 kB [ 1.629319][ T0] per task-struct memory footprint: 1920 bytes [ 1.631070][ T0] mempolicy: Enabling automatic NUMA balancing. Configure with numa_balancing= or the kernel.numa_balancing sysctl [ 1.632918][ T0] ACPI: Core revision 20220331 [ 1.634740][ T0] APIC: Switch to symmetric I/O mode setup [ 1.641734][ T0] ..TIMER: vector=0x30 apic1=0 pin1=0 apic2=-1 pin2=-1 [ 1.643276][ T0] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x1fb6cdb0489, max_idle_ns: 440795236064 ns [ 1.645907][ T0] Calibrating delay loop (skipped) preset value.. 4400.32 BogoMIPS (lpj=22001640) [ 1.647332][ T0] pid_max: default: 32768 minimum: 301 [ 1.648519][ T0] LSM: Security Framework initializing [ 1.649610][ T0] landlock: Up and running. [ 1.650628][ T0] Yama: becoming mindful. [ 1.651379][ T0] TOMOYO Linux initialized [ 1.652244][ T0] AppArmor: AppArmor initialized [ 1.652978][ T0] LSM support for eBPF active [ 1.658786][ T0] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, vmalloc hugepage) [ 1.662395][ T0] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, vmalloc hugepage) [ 1.664113][ T0] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, vmalloc) [ 1.665982][ T0] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, vmalloc) [ 1.671246][ T0] Last level iTLB entries: 4KB 64, 2MB 8, 4MB 8 [ 1.673088][ T0] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4 [ 1.674199][ T0] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization [ 1.675962][ T0] Spectre V2 : Mitigation: IBRS [ 1.677073][ T0] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch [ 1.679458][ T0] Spectre V2 : Spectre v2 / SpectreRSB : Filling RSB on VMEXIT [ 1.680802][ T0] RETBleed: Mitigation: IBRS [ 1.681992][ T0] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier [ 1.683546][ T0] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl [ 1.685968][ T0] MDS: Mitigation: Clear CPU buffers [ 1.687159][ T0] TAA: Mitigation: Clear CPU buffers [ 1.688966][ T0] MMIO Stale Data: Vulnerable: Clear CPU buffers attempted, no microcode [ 1.692544][ T0] Freeing SMP alternatives memory: 112K [ 1.814619][ T1] smpboot: CPU0: Intel(R) Xeon(R) CPU @ 2.20GHz (family: 0x6, model: 0x4f, stepping: 0x0) [ 1.815893][ T1] cblist_init_generic: Setting adjustable number of callback queues. [ 1.815893][ T1] cblist_init_generic: Setting shift to 1 and lim to 1. [ 1.815893][ T1] cblist_init_generic: Setting shift to 1 and lim to 1. [ 1.815893][ T1] Running RCU-tasks wait API self tests [ 1.916306][ T1] Performance Events: unsupported p6 CPU model 79 no PMU driver, software events only. [ 1.918571][ T1] rcu: Hierarchical SRCU implementation. [ 1.919601][ T1] rcu: Max phase no-delay instances is 1000. [ 1.924504][ T1] NMI watchdog: Perf NMI watchdog permanently disabled [ 1.926335][ T1] smp: Bringing up secondary CPUs ... [ 1.928525][ T1] x86: Booting SMP configuration: [ 1.929245][ T1] .... node #0, CPUs: #1 [ 1.931381][ 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.931381][ 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.936058][ 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.939122][ T1] smp: Brought up 2 nodes, 2 CPUs [ 1.940066][ T1] smpboot: Max logical packages: 1 [ 1.940784][ T1] smpboot: Total of 2 processors activated (8800.65 BogoMIPS) [ 1.956046][ T13] Callback from call_rcu_tasks_trace() invoked. [ 1.981294][ T1] allocated 134217728 bytes of page_ext [ 1.983226][ T1] Node 0, zone DMA: page owner found early allocated 0 pages [ 2.004345][ T1] Node 0, zone DMA32: page owner found early allocated 20033 pages [ 2.019842][ T1] Node 0, zone Normal: page owner found early allocated 228 pages [ 2.036139][ T1] Node 1, zone Normal: page owner found early allocated 18985 pages [ 2.039923][ T1] devtmpfs: initialized [ 2.039923][ T1] x86/mm: Memory block size: 128MB [ 2.085970][ T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 2.085970][ T1] futex hash table entries: 512 (order: 4, 65536 bytes, vmalloc) [ 2.088829][ T1] PM: RTC time: 04:23:45, date: 2022-09-09 [ 2.105241][ T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 2.111976][ T1] audit: initializing netlink subsys (disabled) [ 2.116085][ T27] audit: type=2000 audit(1662697425.984:1): state=initialized audit_enabled=0 res=1 [ 2.119303][ T1] thermal_sys: Registered thermal governor 'step_wise' [ 2.119315][ T1] thermal_sys: Registered thermal governor 'user_space' [ 2.126081][ T1] cpuidle: using governor menu [ 2.129317][ T1] NET: Registered PF_QIPCRTR protocol family [ 2.136168][ T12] Callback from call_rcu_tasks() invoked. [ 2.132167][ T1] PCI: Using configuration type 1 for base access [ 2.335989][ T1] WARNING: workqueue cpumask: online intersect > possible intersect [ 2.339860][ T1] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages [ 2.339860][ T1] HugeTLB: 16380 KiB vmemmap can be freed for a 1.00 GiB page [ 2.345921][ T1] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages [ 2.345921][ T1] HugeTLB: 28 KiB vmemmap can be freed for a 2.00 MiB page [ 2.356245][ T26] ================================================================== [ 2.358892][ T26] BUG: KASAN: slab-out-of-bounds in _find_next_bit+0x122/0x140 [ 2.366030][ T26] Read of size 8 at addr ffff88814586f6b8 by task kworker/1:1/26 [ 2.366030][ T26] [ 2.366030][ T26] CPU: 1 PID: 26 Comm: kworker/1:1 Not tainted 6.0.0-rc4-next-20220908-syzkaller-06577-g47c191411b68 #0 [ 2.366030][ T26] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 [ 2.366030][ T26] Workqueue: events pcpu_balance_workfn [ 2.366030][ T26] Call Trace: [ 2.366030][ T26] [ 2.366030][ T26] dump_stack_lvl+0xcd/0x134 [ 2.366030][ T26] print_report+0x164/0x463 [ 2.366030][ T26] ? __phys_addr+0xc4/0x140 [ 2.366030][ T26] ? _find_next_bit+0x122/0x140 [ 2.366030][ T26] kasan_report+0xbb/0x1f0 [ 2.366030][ T26] ? _find_next_bit+0x122/0x140 [ 2.366030][ T26] _find_next_bit+0x122/0x140 [ 2.366030][ T26] pcpu_balance_workfn+0x6c0/0xea0 [ 2.366030][ T26] process_one_work+0x991/0x1610 [ 2.366030][ T26] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 2.366030][ T26] ? rwlock_bug.part.0+0x90/0x90 [ 2.396055][ T26] ? _raw_spin_lock_irq+0x41/0x50 [ 2.396417][ T26] worker_thread+0x665/0x1080 [ 2.396417][ T26] ? __kthread_parkme+0x15f/0x220 [ 2.396417][ T26] ? process_one_work+0x1610/0x1610 [ 2.396417][ T26] kthread+0x2e4/0x3a0 [ 2.396417][ T26] ? kthread_complete_and_exit+0x40/0x40 [ 2.396417][ T26] ret_from_fork+0x1f/0x30 [ 2.396417][ T26] [ 2.396417][ T26] [ 2.396417][ T26] Allocated by task 26: [ 2.396417][ T26] kasan_save_stack+0x1e/0x40 [ 2.396417][ T26] kasan_set_track+0x21/0x30 [ 2.396417][ T26] __kasan_kmalloc+0xa1/0xb0 [ 2.396417][ T26] __kmalloc+0x54/0xc0 [ 2.396417][ T26] pcpu_mem_zalloc+0x70/0xa0 [ 2.396417][ T26] pcpu_create_chunk+0x23/0x930 [ 2.396417][ T26] pcpu_balance_workfn+0xc4e/0xea0 [ 2.396417][ T26] process_one_work+0x991/0x1610 [ 2.396417][ T26] worker_thread+0x665/0x1080 [ 2.396417][ T26] kthread+0x2e4/0x3a0 [ 2.396417][ T26] ret_from_fork+0x1f/0x30 [ 2.425923][ T26] [ 2.425923][ T26] The buggy address belongs to the object at ffff88814586f600 [ 2.425923][ T26] which belongs to the cache kmalloc-192 of size 192 [ 2.425923][ T26] The buggy address is located 184 bytes inside of [ 2.425923][ T26] 192-byte region [ffff88814586f600, ffff88814586f6c0) [ 2.425923][ T26] [ 2.425923][ T26] The buggy address belongs to the physical page: [ 2.425923][ T26] page:ffffea0005161bc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x14586f [ 2.425923][ T26] flags: 0x57ff00000000200(slab|node=1|zone=2|lastcpupid=0x7ff) [ 2.425923][ T26] raw: 057ff00000000200 0000000000000000 dead000000000122 ffff888011841a00 [ 2.425923][ T26] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 2.425923][ T26] page dumped because: kasan: bad access detected [ 2.425923][ T26] page_owner tracks the page as allocated [ 2.425923][ 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 2331071574, free_ts 0 [ 2.425923][ T26] get_page_from_freelist+0x109b/0x2ce0 [ 2.425923][ T26] __alloc_pages+0x1c7/0x510 [ 2.425923][ T26] alloc_page_interleave+0x1e/0x200 [ 2.425923][ T26] alloc_pages+0x22f/0x270 [ 2.425923][ T26] allocate_slab+0x213/0x300 [ 2.425923][ T26] ___slab_alloc+0xad0/0x1440 [ 2.425923][ T26] __slab_alloc.constprop.0+0x4d/0xa0 [ 2.425923][ T26] __kmem_cache_alloc_node+0x18a/0x3d0 [ 2.425923][ T26] __kmalloc_node_track_caller+0x45/0xc0 [ 2.425923][ T26] krealloc+0x8c/0xf0 [ 2.425923][ T26] add_sysfs_param+0xca/0x960 [ 2.425923][ T26] param_sysfs_init+0x301/0x43b [ 2.425923][ T26] do_one_initcall+0xfe/0x650 [ 2.425923][ T26] kernel_init_freeable+0x6ff/0x788 [ 2.425923][ T26] kernel_init+0x1a/0x1d0 [ 2.425923][ T26] ret_from_fork+0x1f/0x30 [ 2.425923][ T26] page_owner free stack trace missing [ 2.425923][ T26] [ 2.425923][ T26] Memory state around the buggy address: [ 2.425923][ T26] ffff88814586f580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 2.425923][ T26] ffff88814586f600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 2.425923][ T26] >ffff88814586f680: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc [ 2.425923][ T26] ^ [ 2.425923][ T26] ffff88814586f700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 2.425923][ T26] ffff88814586f780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 2.425923][ T26] ================================================================== [ 2.425923][ T26] Kernel panic - not syncing: panic_on_warn set ... [ 2.425923][ T26] CPU: 1 PID: 26 Comm: kworker/1:1 Not tainted 6.0.0-rc4-next-20220908-syzkaller-06577-g47c191411b68 #0 [ 2.425923][ T26] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 [ 2.425923][ T26] Workqueue: events pcpu_balance_workfn [ 2.425923][ T26] Call Trace: [ 2.425923][ T26] [ 2.425923][ T26] dump_stack_lvl+0xcd/0x134 [ 2.425923][ T26] panic+0x2c8/0x622 [ 2.425923][ T26] ? panic_print_sys_info.part.0+0x110/0x110 [ 2.425923][ T26] end_report.part.0+0x3f/0x7c [ 2.425923][ T26] ? _find_next_bit+0x122/0x140 [ 2.425923][ T26] kasan_report.cold+0xa/0xf [ 2.425923][ T26] ? _find_next_bit+0x122/0x140 [ 2.425923][ T26] _find_next_bit+0x122/0x140 [ 2.425923][ T26] pcpu_balance_workfn+0x6c0/0xea0 [ 2.425923][ T26] process_one_work+0x991/0x1610 [ 2.425923][ T26] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 2.425923][ T26] ? rwlock_bug.part.0+0x90/0x90 [ 2.425923][ T26] ? _raw_spin_lock_irq+0x41/0x50 [ 2.425923][ T26] worker_thread+0x665/0x1080 [ 2.425923][ T26] ? __kthread_parkme+0x15f/0x220 [ 2.425923][ T26] ? process_one_work+0x1610/0x1610 [ 2.425923][ T26] kthread+0x2e4/0x3a0 [ 2.425923][ T26] ? kthread_complete_and_exit+0x40/0x40 [ 2.425923][ T26] ret_from_fork+0x1f/0x30 [ 2.425923][ T26] [ 2.425923][ 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-build2408815689=/tmp/go-build -gno-record-gcc-switches" git status (err=) HEAD detached at ddc3e8599 nothing to commit, working tree clean 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' make[1]: warning: -j62 forced in makefile: resetting jobserver mode. GOOS=linux GOARCH=amd64 go build "-ldflags=-s -w -X github.com/google/syzkaller/sys.GitRevision=ddc3e85997efdad885e208db6a98bca86e5dd52f -X 'github.com/google/syzkaller/sys.gitRevisionDate=Wed Jan 8 17:28:19 2020 +0900'" "-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=ddc3e85997efdad885e208db6a98bca86e5dd52f -X 'github.com/google/syzkaller/sys.gitRevisionDate=Wed Jan 8 17:28:19 2020 +0900'" "-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=ddc3e85997efdad885e208db6a98bca86e5dd52f -X 'github.com/google/syzkaller/sys.gitRevisionDate=Wed Jan 8 17:28:19 2020 +0900'" "-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=\"ddc3e85997efdad885e208db6a98bca86e5dd52f\" make[1]: Leaving directory '/syzkaller/jobs/linux/gopath/src/github.com/google/syzkaller'