Package: src:linux Version: 4.9.30-2+deb9u2 Followup-For: Bug #851577 Dear Maintainer,
I hit same bug during hotpug cpu in a debian VM, kernel panic with NULL pointer deref in rapl_cpu_online+0x5d. apply commit dd86e373e (perf/x86/intel/rapl: Make package handling robust) fixes the bug. I've push the fix into 4.9.46, so debian will include the fix when rebase to 4.9.46+ Jack Wang Linux Kernel Developer ProfitBricks GmbH -- Package-specific info: ** Version: Linux version 4.9.0-3-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) ** Command line: BOOT_IMAGE=/boot/vmlinuz-4.9.0-3-amd64 root=UUID=065baf81-db99-4f78-a190-92614944c2e2 ro consoleblank=0 net.ifnames=0 quiet crashkernel=384M-:128M ** Not tainted ** Kernel log: [ 270.876510] CPU10 has been hot-added [ 270.891832] smpboot: Booting Node 0 Processor 10 APIC 0xa [ 270.887997] kvm-clock: cpu 10, msr 1:3fff0281, secondary cpu clock [ 270.990904] TSC synchronization [CPU#4 -> CPU#10]: [ 270.990906] Measured 713133966959 cycles TSC warp between CPUs, turning off TSC clock. [ 270.990910] tsc: Marking TSC unstable due to check_tsc_sync_source failed [ 270.990978] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008 [ 270.991503] IP: [<ffffffffc050f6dd>] rapl_cpu_online+0x5d/0x69 [intel_rapl_perf] [ 270.992036] PGD 0 [ 270.992047] [ 270.992366] Oops: 0002 [#1] SMP [ 270.992782] Modules linked in: qxl ttm drm_kms_helper drm kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul hid_generic joydev ghash_clmulni_intel serio_raw pcspkr intel_rapl_perf ppdev evdev parport_pc parport usbhid hid acpi_cpufreq button ip_tables x_tables autofs4 ext4 crc16 jbd2 crc32c_generic fscrypto ecb mbcache ata_generic virtio_net virtio_blk crc32c_intel aesni_intel aes_x86_64 glue_helper lrw gf128mul ablk_helper cryptd ata_piix libata uhci_hcd ehci_hcd psmouse virtio_pci virtio_ring usbcore virtio i2c_piix4 scsi_mod usb_common floppy [ 270.995252] CPU: 10 PID: 628 Comm: cpuhp/10 Not tainted 4.9.0-3-amd64 #1 Debian 4.9.30-2+deb9u2 [ 270.995650] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS ?-20160812_114322-buildbot 04/01/2014 [ 270.996184] task: ffff9d5b73e6d140 task.stack: ffffb7f600f58000 [ 270.996538] RIP: 0010:[<ffffffffc050f6dd>] [<ffffffffc050f6dd>] rapl_cpu_online+0x5d/0x69 [intel_rapl_perf] [ 270.997131] RSP: 0000:ffffb7f600f5bde8 EFLAGS: 00010206 [ 270.997491] RAX: 0000000000000200 RBX: 000000000000000a RCX: 0000000000000000 [ 270.998091] RDX: 0000000000000200 RSI: 0000000000000200 RDI: 0000000000000200 [ 270.998459] RBP: 000000000000000a R08: fffffffffffffe00 R09: 0000000000000155 [ 270.999064] R10: 00000000000001b6 R11: 000000000047f4d8 R12: 0000000000000000 [ 270.999438] R13: ffffffffc050f680 R14: 0000000000000000 R15: 0000000000000000 [ 271.000043] FS: 0000000000000000(0000) GS:ffff9d5b7a880000(0000) knlGS:0000000000000000 [ 271.000421] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 271.001052] CR2: 0000000000000008 CR3: 000000006fc07000 CR4: 00000000001406e0 [ 271.001431] Stack: [ 271.002212] 000000000000000a 000000000000006a 0000000000000062 ffffffff95278008 [ 271.002927] ffff9d5b7a88dae0 ffffffff95e33ad0 000000017a618240 ffff9d5b73e6d140 [ 271.003546] ffff9d5b7a88dae0 000000000000000a 0000000000000062 0000000000000097 [ 271.004393] Call Trace: [ 271.005200] [<ffffffff95278008>] ? cpuhp_invoke_callback+0x78/0x3a0 [ 271.006015] [<ffffffff9527bb0a>] ? do_group_exit+0x3a/0xa0 [ 271.006584] [<ffffffff95278470>] ? cpuhp_up_callbacks+0x30/0xb0 [ 271.007339] [<ffffffff95299d30>] ? sort_range+0x20/0x20 [ 271.008143] [<ffffffff95278674>] ? cpuhp_thread_fun+0xf4/0x100 [ 271.008937] [<ffffffff95299e2e>] ? smpboot_thread_fn+0xfe/0x150 [ 271.009742] [<ffffffff952965d7>] ? kthread+0xd7/0xf0 [ 271.010272] [<ffffffff95296500>] ? kthread_park+0x60/0x60 [ 271.011012] [<ffffffff958064f5>] ? ret_from_fork+0x25/0x30 [ 271.011496] Code: 24 00 00 4c 8b a4 d0 10 01 00 00 48 c7 c2 80 a0 00 00 48 01 ca e8 44 8b 01 d5 3b 05 92 40 a0 d5 7c 0e f0 48 0f ab 2d c3 23 00 00 <41> 89 6c 24 08 5b 31 c0 5d 41 5c c3 0f 1f 44 00 00 53 31 db 48 [ 271.012776] RIP [<ffffffffc050f6dd>] rapl_cpu_online+0x5d/0x69 [intel_rapl_perf] [ 271.013301] RSP <ffffb7f600f5bde8> [ 271.013794] CR2: 0000000000000008 ** Model information sys_vendor: QEMU product_name: Standard PC (i440FX + PIIX, 1996) product_version: pc-i440fx-2.7 chassis_vendor: QEMU chassis_version: pc-i440fx-2.7 bios_vendor: SeaBIOS bios_version: ?-20160812_114322-buildbot ** Loaded modules: kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel ppdev intel_rapl_perf serio_raw parport_pc parport qxl ttm drm_kms_helper pcspkr drm acpi_cpufreq button evdev joydev hid_generic usbhid hid ip_tables x_tables autofs4 ext4 crc16 jbd2 crc32c_generic fscrypto ecb mbcache ata_generic virtio_net virtio_blk crc32c_intel aesni_intel aes_x86_64 glue_helper lrw gf128mul ablk_helper cryptd ata_piix psmouse i2c_piix4 uhci_hcd libata ehci_hcd virtio_pci virtio_ring usbcore virtio scsi_mod usb_common floppy ** PCI devices: 00:00.0 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC [Natoma] [8086:1237] (rev 02) Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100] Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- 00:01.0 ISA bridge [0601]: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] [8086:7000] Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100] Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- 00:01.1 IDE interface [0101]: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] [8086:7010] (prog-if 80 [Master]) Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8] Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable) Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8] Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable) Region 4: I/O ports at c0e0 [size=16] Kernel driver in use: ata_piix Kernel modules: ata_piix, ata_generic 00:01.2 USB controller [0c03]: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] [8086:7020] (rev 01) (prog-if 00 [UHCI]) Subsystem: Red Hat, Inc QEMU Virtual Machine [1af4:1100] Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin D routed to IRQ 11 Region 4: I/O ports at c080 [size=32] Kernel driver in use: uhci_hcd Kernel modules: uhci_hcd 00:01.3 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 03) Subsystem: Red Hat, Inc Qemu virtual machine [1af4:1100] Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 9 Kernel driver in use: piix4_smbus Kernel modules: i2c_piix4 00:02.0 VGA compatible controller [0300]: Red Hat, Inc. QXL paravirtual graphic card [1b36:0100] (rev 04) (prog-if 00 [VGA controller]) Subsystem: Red Hat, Inc QEMU Virtual Machine [1af4:1100] Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx- Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 10 Region 0: Memory at f4000000 (32-bit, non-prefetchable) [size=64M] Region 1: Memory at f8000000 (32-bit, non-prefetchable) [size=64M] Region 2: Memory at fc050000 (32-bit, non-prefetchable) [size=8K] Region 3: I/O ports at c0a0 [size=32] Expansion ROM at 000c0000 [disabled] [size=128K] Kernel driver in use: qxl Kernel modules: qxl 00:05.0 SCSI storage controller [0100]: Red Hat, Inc Virtio block device [1af4:1001] Subsystem: Red Hat, Inc Virtio block device [1af4:0002] Physical Slot: 5 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 10 Region 0: I/O ports at c000 [size=64] Region 1: Memory at fc052000 (32-bit, non-prefetchable) [size=4K] Region 4: Memory at fd000000 (64-bit, prefetchable) [size=8M] Capabilities: [98] MSI-X: Enable+ Count=2 Masked- Vector table: BAR=1 offset=00000000 PBA: BAR=1 offset=00000800 Capabilities: [84] Vendor Specific Information: VirtIO: <unknown> BAR=0 offset=00000000 size=00000000 Capabilities: [70] Vendor Specific Information: VirtIO: Notify BAR=4 offset=00003000 size=00400000 multiplier=00001000 Capabilities: [60] Vendor Specific Information: VirtIO: DeviceCfg BAR=4 offset=00002000 size=00001000 Capabilities: [50] Vendor Specific Information: VirtIO: ISR BAR=4 offset=00001000 size=00001000 Capabilities: [40] Vendor Specific Information: VirtIO: CommonCfg BAR=4 offset=00000000 size=00001000 Kernel driver in use: virtio-pci Kernel modules: virtio_pci 00:06.0 Ethernet controller [0200]: Red Hat, Inc Virtio network device [1af4:1000] Subsystem: Red Hat, Inc Virtio network device [1af4:0001] Physical Slot: 6 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 10 Region 0: I/O ports at c0c0 [size=32] Region 1: Memory at fc053000 (32-bit, non-prefetchable) [size=4K] Region 4: Memory at fd800000 (64-bit, prefetchable) [size=8M] Expansion ROM at fc000000 [disabled] [size=256K] Capabilities: [98] MSI-X: Enable+ Count=3 Masked- Vector table: BAR=1 offset=00000000 PBA: BAR=1 offset=00000800 Capabilities: [84] Vendor Specific Information: VirtIO: <unknown> BAR=0 offset=00000000 size=00000000 Capabilities: [70] Vendor Specific Information: VirtIO: Notify BAR=4 offset=00003000 size=00400000 multiplier=00001000 Capabilities: [60] Vendor Specific Information: VirtIO: DeviceCfg BAR=4 offset=00002000 size=00001000 Capabilities: [50] Vendor Specific Information: VirtIO: ISR BAR=4 offset=00001000 size=00001000 Capabilities: [40] Vendor Specific Information: VirtIO: CommonCfg BAR=4 offset=00000000 size=00001000 Kernel driver in use: virtio-pci Kernel modules: virtio_pci 00:07.0 SCSI storage controller [0100]: Red Hat, Inc Virtio block device [1af4:1001] Subsystem: Red Hat, Inc Virtio block device [1af4:0002] Physical Slot: 7 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Latency: 0 Interrupt: pin A routed to IRQ 11 Region 0: I/O ports at c040 [size=64] Region 1: Memory at fc054000 (32-bit, non-prefetchable) [size=4K] Region 4: Memory at fe000000 (64-bit, prefetchable) [size=8M] Capabilities: [98] MSI-X: Enable+ Count=2 Masked- Vector table: BAR=1 offset=00000000 PBA: BAR=1 offset=00000800 Capabilities: [84] Vendor Specific Information: VirtIO: <unknown> BAR=0 offset=00000000 size=00000000 Capabilities: [70] Vendor Specific Information: VirtIO: Notify BAR=4 offset=00003000 size=00400000 multiplier=00001000 Capabilities: [60] Vendor Specific Information: VirtIO: DeviceCfg BAR=4 offset=00002000 size=00001000 Capabilities: [50] Vendor Specific Information: VirtIO: ISR BAR=4 offset=00001000 size=00001000 Capabilities: [40] Vendor Specific Information: VirtIO: CommonCfg BAR=4 offset=00000000 size=00001000 Kernel driver in use: virtio-pci Kernel modules: virtio_pci ** USB devices: not available -- System Information: Debian Release: 9.1 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages linux-image-4.9.0-3-amd64 depends on: ii initramfs-tools [linux-initramfs-tool] 0.130 ii kmod 23-2 ii linux-base 4.5 Versions of packages linux-image-4.9.0-3-amd64 recommends: pn firmware-linux-free <none> pn irqbalance <none> Versions of packages linux-image-4.9.0-3-amd64 suggests: pn debian-kernel-handbook <none> ii grub-pc 2.02~beta3-5 pn linux-doc-4.9 <none> Versions of packages linux-image-4.9.0-3-amd64 is related to: pn firmware-amd-graphics <none> pn firmware-atheros <none> pn firmware-bnx2 <none> pn firmware-bnx2x <none> pn firmware-brcm80211 <none> pn firmware-cavium <none> pn firmware-intel-sound <none> pn firmware-intelwimax <none> pn firmware-ipw2x00 <none> pn firmware-ivtv <none> pn firmware-iwlwifi <none> pn firmware-libertas <none> pn firmware-linux-nonfree <none> pn firmware-misc-nonfree <none> pn firmware-myricom <none> pn firmware-netxen <none> pn firmware-qlogic <none> pn firmware-realtek <none> pn firmware-samsung <none> pn firmware-siano <none> pn firmware-ti-connectivity <none> pn xen-hypervisor <none> -- no debconf information