Control: reassign -1 src:linux Contorl: forcemerge 934304 934991 Hi,
On Sat, Aug 17, 2019 at 09:18:29PM +0200, JCGoran wrote: > Package: powertop > Version: 2.10-1 > Severity: grave > Justification: renders package unusable > > Dear Maintainer, > > *** Reporter, please consider answering these questions, where appropriate *** > > * What led up to the situation? > Running `powertop` or `powertop --auto-tune` > * What was the outcome of this action? > powertop gets terminated with SIGKILL (according to stack trace) > * What outcome did you expect instead? > powertop should run normally > > It worked fine on the previous unstable kernel (4.19.0-5 if I'm not mistaken). > > Below is the output from `dmesg`: > ------------------------------------------------------------------------------- > [ 1047.234256] BUG: kernel NULL pointer dereference, address: 0000000000000000 > [ 1047.234264] #PF: supervisor instruction fetch in kernel mode > [ 1047.234267] #PF: error_code(0x0010) - not-present page > [ 1047.234270] PGD 0 P4D 0 > [ 1047.234277] Oops: 0010 [#14] SMP PTI > [ 1047.234283] CPU: 7 PID: 25879 Comm: powertop Tainted: G D > 5.2.0-2-amd64 #1 Debian 5.2.7-1 > [ 1047.234287] Hardware name: LENOVO 20L8S8TB00/20L8S8TB00, BIOS N22ET50W > (1.27 ) 11/07/2018 > [ 1047.234293] RIP: 0010:0x0 > [ 1047.234301] Code: Bad RIP value. > [ 1047.234304] RSP: 0018:ffffb76b0ae97cd8 EFLAGS: 00010246 > [ 1047.234308] RAX: 0000000000000000 RBX: ffff9f55ab10de00 RCX: > 0000000000000001 > [ 1047.234311] RDX: ffff9f55de602c00 RSI: ffff9f55ab10de00 RDI: > ffff9f55e0f2dbc0 > [ 1047.234314] RBP: ffff9f55e0f2dbc0 R08: 0000000000000000 R09: > 0000000000000000 > [ 1047.234317] R10: ffff9f55e0edd9c0 R11: 0000000000000000 R12: > ffff9f55ab10de10 > [ 1047.234319] R13: ffffffffa6d1cdd0 R14: 0000000000000000 R15: > ffff9f55ab10de00 > [ 1047.234324] FS: 00007f9ac557a740(0000) GS:ffff9f55e15c0000(0000) > knlGS:0000000000000000 > [ 1047.234327] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 1047.234330] CR2: ffffffffffffffd6 CR3: 0000000451108002 CR4: > 00000000003606e0 > [ 1047.234333] DR0: 0000000000000000 DR1: 0000000000000000 DR2: > 0000000000000000 > [ 1047.234336] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: > 0000000000000400 > [ 1047.234338] Call Trace: > [ 1047.234350] do_dentry_open+0x13a/0x370 > [ 1047.234360] path_openat+0x2c6/0x1480 > [ 1047.234366] ? terminate_walk+0xe6/0x100 > [ 1047.234372] ? path_lookupat.isra.48+0xa3/0x220 > [ 1047.234379] ? reuse_swap_page+0x105/0x320 > [ 1047.234386] do_filp_open+0x93/0x100 > [ 1047.234393] ? __check_object_size+0x15d/0x189 > [ 1047.234401] do_sys_open+0x184/0x220 > [ 1047.234409] do_syscall_64+0x53/0x130 > [ 1047.234417] entry_SYSCALL_64_after_hwframe+0x44/0xa9 > [ 1047.234422] RIP: 0033:0x7f9ac56d71ae > [ 1047.234427] Code: 25 00 00 41 00 3d 00 00 41 00 74 48 48 8d 05 59 65 0d 00 > 8b 00 85 c0 75 69 89 f2 b8 01 01 00 00 48 89 fe bf 9c ff > ff ff 0f 05 <48> 3d 00 f0 ff ff 0f 87 a6 00 00 00 48 8b 4c 24 28 64 48 33 0c > 25 > [ 1047.234430] RSP: 002b:00007ffeb3e55600 EFLAGS: 00000246 ORIG_RAX: > 0000000000000101 > [ 1047.234435] RAX: ffffffffffffffda RBX: 00005602c630e870 RCX: > 00007f9ac56d71ae > [ 1047.234437] RDX: 0000000000000000 RSI: 00007ffeb3e569a0 RDI: > 00000000ffffff9c > [ 1047.234440] RBP: 0000000000000008 R08: 0000000000000008 R09: > 0000000000000001 > [ 1047.234443] R10: 0000000000000000 R11: 0000000000000246 R12: > 00007f9ac5aed805 > [ 1047.234445] R13: 00007f9ac5aed805 R14: 0000000000000001 R15: > 00005602c4f2efd0 > [ 1047.234449] Modules linked in: ctr ccm fuse msr overlay arc4 intel_rapl > iwlmvm mac80211 snd_soc_skl snd_soc_skl_ipc snd_soc_sst_ipc > x86_pkg_temp_thermal snd_soc_sst_dsp intel_powerclamp btusb coretemp > snd_hda_ext_core iwlwifi mei_wdt snd_hda_codec_hdmi snd_soc_acpi > _intel_match kvm_intel snd_soc_acpi snd_hda_codec_realtek nls_ascii btrtl > snd_hda_codec_generic snd_soc_core nls_cp437 btbcm btintel k > vm vfat fat bluetooth irqbypass snd_compress efi_pstore uvcvideo > snd_hda_intel intel_cstate videobuf2_vmalloc elan_i2c sg wmi_bmof joy > dev intel_uncore serio_raw videobuf2_memops intel_rapl_perf snd_hda_codec > efivars videobuf2_v4l2 drbg cfg80211 pcspkr snd_hda_core vid > eobuf2_common iTCO_wdt iTCO_vendor_support thinkpad_acpi watchdog snd_hwdep > videodev snd_pcm nvram snd_timer hid_multitouch ledtrig_au > dio ansi_cprng media mei_me snd ucsi_acpi ecdh_generic soundcore typec_ucsi > processor_thermal_device ecc pcc_cpufreq int3403_thermal m > ei tpm_crb idma64 intel_pch_thermal intel_soc_dts_iosf typec battery > [ 1047.234515] int340x_thermal_zone rfkill ac tpm_tis tpm_tis_core evdev tpm > int3400_thermal acpi_thermal_rel acpi_pad rng_core parpo > rt_pc ppdev lp parport efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache > jbd2 btrfs xor zstd_decompress zstd_compress raid6_pq li > bcrc32c crc32c_generic sd_mod dm_crypt hid_generic dm_mod usbhid hid uas > usb_storage scsi_mod crct10dif_pclmul crc32_pclmul crc32c_int > el ghash_clmulni_intel i915 i2c_algo_bit aesni_intel drm_kms_helper > i2c_designware_platform i2c_designware_core xhci_pci thunderbolt x > hci_hcd drm aes_x86_64 psmouse crypto_simd e1000e cryptd usbcore glue_helper > nvme nvme_core i2c_i801 intel_lpss_pci intel_lpss mfd_cor > e usb_common wmi video button > [ 1047.234571] CR2: 0000000000000000 > [ 1047.234577] ---[ end trace 3c6993d1abe0ca5a ]--- > [ 1047.263116] RIP: 0010:0x0 > [ 1047.263123] Code: Bad RIP value. > [ 1047.263124] RSP: 0018:ffffb76b021ebcd8 EFLAGS: 00010246 > [ 1047.263126] RAX: 0000000000000000 RBX: ffff9f55dabfa800 RCX: > 0000000000000001 > ------------------------------------------------------------------------------- > end of `dmesg` output > > The last few lines of `strace powertop` are: > ------------------------------------------------------------------------------- > access("/dev/cpu/7/msr", R_OK) = 0 > openat(AT_FDCWD, "/dev/cpu/7/msr", O_RDONLY) = 4 > pread64(4, "A\2232\26#\0\0\0", 8, 232) = 8 > close(4) = 0 > read(3, "", 8191) = 0 > close(3) = 0 > access("/sys/class/drm/card0/power/rc6_residency_ms", R_OK) = 0 > openat(AT_FDCWD, "/sys/kernel/debug/tracing/events/power/cpu_idle/id", > O_RDONLY) = ? > +++ killed by SIGKILL +++ > ------------------------------------------------------------------------------- > end of `strace powertop` output > > Is this a kernel bug, or a powertop bug? Or is there something > horribly wrong with my setup? This is #934304 (for linux) and pending at the moment. Regards, Salvatore