Bug#934292: powertop: running powertop introduces "kernel NULL pointer dereference"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#934292: powertop: running powertop introduces "kernel NULL pointer dereference"

Vincas Dargis
Package: powertop
Version: 2.8-1+b2
Severity: normal

Dear Maintainer,

Just tried to run `powertop` (after Linux 5.2 upgrade, but not sure if it
worked for me before, ever used it):

```
$ sudo powertop
modprobe cpufreq_stats failedCannot load from file
/var/cache/powertop/saved_results.powertop
Cannot load from file /var/cache/powertop/saved_parameters.powertop
File will be loaded after taking minimum number of measurement(s) with
battery only
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask f
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask f
Nutraukta (killed)
```

Meanwhile, on kernel.log:
```
Aug  9 11:24:47 vinco kernel: [ 6493.332451] BUG: kernel NULL pointer dereference, address: 0000000000000000
Aug  9 11:24:47 vinco kernel: [ 6493.332455] #PF: supervisor instruction fetch in kernel mode
Aug  9 11:24:47 vinco kernel: [ 6493.332456] #PF: error_code(0x0010) - not-present page
Aug  9 11:24:47 vinco kernel: [ 6493.332458] PGD 0 P4D 0
Aug  9 11:24:47 vinco kernel: [ 6493.332460] Oops: 0010 [#12] SMP PTI
Aug  9 11:24:47 vinco kernel: [ 6493.332463] CPU: 3 PID: 20189 Comm: powertop Tainted: G      D    OE     5.2.0-2-amd64 #1 Debian 5.2.7-1
Aug  9 11:24:47 vinco kernel: [ 6493.332464] Hardware name: ASUSTeK COMPUTER INC. N551JM/N551JM, BIOS N551JM.205 02/13/2015
Aug  9 11:24:47 vinco kernel: [ 6493.332467] RIP: 0010:0x0
Aug  9 11:24:47 vinco kernel: [ 6493.332470] Code: Bad RIP value.
Aug  9 11:24:47 vinco kernel: [ 6493.332471] RSP: 0018:ffffa3da897dbcd8 EFLAGS: 00010246
Aug  9 11:24:47 vinco kernel: [ 6493.332473] RAX: 0000000000000000 RBX: ffff8917f2e5f800 RCX: 0000000000000001
Aug  9 11:24:47 vinco kernel: [ 6493.332474] RDX: ffff891b5bd60c00 RSI: ffff8917f2e5f800 RDI: ffff891b5e773090
Aug  9 11:24:47 vinco kernel: [ 6493.332475] RBP: ffff891b5e773090 R08: 0000000000000000 R09: 0000000000000000
Aug  9 11:24:47 vinco kernel: [ 6493.332476] R10: ffff891b5e725d80 R11: 0000000000000000 R12: ffff8917f2e5f810
Aug  9 11:24:47 vinco kernel: [ 6493.332477] R13: ffffffff9c11cdd0 R14: 0000000000000000 R15: ffff8917f2e5f800
Aug  9 11:24:47 vinco kernel: [ 6493.332479] FS:  00007f619c6befc0(0000) GS:ffff891b5ecc0000(0000) knlGS:0000000000000000
Aug  9 11:24:47 vinco kernel: [ 6493.332480] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Aug  9 11:24:47 vinco kernel: [ 6493.332482] CR2: ffffffffffffffd6 CR3: 0000000341aba001 CR4: 00000000001626e0
Aug  9 11:24:47 vinco kernel: [ 6493.332483] Call Trace:
Aug  9 11:24:47 vinco kernel: [ 6493.332488]  do_dentry_open+0x13a/0x370
Aug  9 11:24:47 vinco kernel: [ 6493.332493]  path_openat+0x2c6/0x1480
Aug  9 11:24:47 vinco kernel: [ 6493.332496]  ? mem_cgroup_commit_charge+0x80/0x4d0
Aug  9 11:24:47 vinco kernel: [ 6493.332499]  do_filp_open+0x93/0x100
Aug  9 11:24:47 vinco kernel: [ 6493.332502]  ? __check_object_size+0x15d/0x189
Aug  9 11:24:47 vinco kernel: [ 6493.332505]  do_sys_open+0x184/0x220
Aug  9 11:24:47 vinco kernel: [ 6493.332509]  do_syscall_64+0x53/0x130
Aug  9 11:24:47 vinco kernel: [ 6493.332513]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
Aug  9 11:24:47 vinco kernel: [ 6493.332515] RIP: 0033:0x7f619c81a1ae
Aug  9 11:24:47 vinco kernel: [ 6493.332517] 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
Aug  9 11:24:47 vinco kernel: [ 6493.332518] RSP: 002b:00007ffdd911d5b0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
Aug  9 11:24:47 vinco kernel: [ 6493.332520] RAX: ffffffffffffffda RBX: 0000561f01e77870 RCX: 00007f619c81a1ae
Aug  9 11:24:47 vinco kernel: [ 6493.332521] RDX: 0000000000000000 RSI: 00007ffdd911e960 RDI: 00000000ffffff9c
Aug  9 11:24:47 vinco kernel: [ 6493.332522] RBP: 0000000000000008 R08: 0000000000000008 R09: 0000000000000001
Aug  9 11:24:47 vinco kernel: [ 6493.332523] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f619cc2e805
Aug  9 11:24:47 vinco kernel: [ 6493.332524] R13: 00007f619cc2e805 R14: 0000000000000001 R15: 0000561f01e82130
Aug  9 11:24:47 vinco kernel: [ 6493.332526] Modules linked in: msr rfcomm xt_recent ipt_REJECT nf_reject_ipv4 xt_multiport xt_conntrack xt_hashlimit xt_addrtype xt_mark nft_chain_nat xt_comment xt_CT xt_owner xt_tcpudp nft_compat nft_counter xt_NFLOG nf_log_ipv4 nf_log_common xt_LOG nf_nat_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_nat_pptp nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda ts_kmp nf_conntrack_amanda nf_nat nf_conntrack_sane nf_conntrack_tftp nf_conntrack_sip nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack pci_stub vboxpci(OE) nf_defrag_ipv6 nf_defrag_ipv4 vboxnetadp(OE) vboxnetflt(OE) nf_tables xfrm_user xfrm4_tunnel tunnel4 ipcomp xfrm_ipcomp vboxdrv(OE) l2tp_ppp esp4 l2tp_netlink l2tp_core ip6_udp_tunnel udp_tunnel ah4 pppox ppp_generic af_key slhc
xfrm_algo bnep nfnetlink_log nfnetlink bbswitch(OE) intel_rapl arc4 x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel binfmt_misc kvm
Aug  9 11:24:47 vinco kernel: [ 6493.332556]  irqbypass nls_ascii nls_cp437 vfat fat btusb btrtl btbcm btintel crct10dif_pclmul crc32_pclmul bluetooth ghash_clmulni_intel iwlmvm drbg joydev mac80211 snd_hda_codec_realtek uvcvideo snd_hda_codec_hdmi snd_hda_codec_generic videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 aesni_intel ledtrig_audio videobuf2_common ansi_cprng videodev aes_x86_64 crypto_simd cryptd glue_helper asus_nb_wmi asus_wmi sg ecdh_generic sparse_keymap serio_raw media iwlwifi ecc efi_pstore intel_cstate snd_hda_intel intel_uncore cfg80211 snd_hda_codec intel_rapl_perf snd_hda_core snd_hwdep snd_pcm efivars pcspkr snd_timer rtsx_pci_ms snd iTCO_wdt memstick iTCO_vendor_support pcc_cpufreq watchdog rfkill soundcore ie31200_edac battery ac asus_wireless evdev parport_pc ppdev lp parport efivarfs ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 btrfs xor zstd_decompress
zstd_compress raid6_pq libcrc32c crc32c_generic sr_mod cdrom sd_mod hid_logitech_hidpp hid_logitech_dj hid_generic usbhid hid i915
Aug  9 11:24:47 vinco kernel: [ 6493.332592]  rtsx_pci_sdmmc i2c_algo_bit mmc_core ahci drm_kms_helper libahci xhci_pci xhci_hcd ehci_pci libata mxm_wmi ehci_hcd drm crc32c_intel usbcore scsi_mod psmouse r8169 realtek lpc_ich rtsx_pci libphy i2c_i801 mfd_core usb_common wmi video button
Aug  9 11:24:47 vinco kernel: [ 6493.332604] CR2: 0000000000000000
Aug  9 11:24:47 vinco kernel: [ 6493.332606] ---[ end trace 0239c869250426b5 ]---
Aug  9 11:24:47 vinco kernel: [ 6493.348364] RIP: 0010:0x0
Aug  9 11:24:47 vinco kernel: [ 6493.348369] Code: Bad RIP value.
Aug  9 11:24:47 vinco kernel: [ 6493.348370] RSP: 0018:ffffa3da82a1fcd8 EFLAGS: 00010246
Aug  9 11:24:47 vinco kernel: [ 6493.348372] RAX: 0000000000000000 RBX: ffff891b3290f400 RCX: 0000000000000001
Aug  9 11:24:47 vinco kernel: [ 6493.348373] RDX: ffff891b5bd60c00 RSI: ffff891b3290f400 RDI: ffff891b5e773090
Aug  9 11:24:47 vinco kernel: [ 6493.348374] RBP: ffff891b5e773090 R08: 0000000000000000 R09: 0000000000000000
Aug  9 11:24:47 vinco kernel: [ 6493.348376] R10: ffff891b5e725d80 R11: 0000000000000000 R12: ffff891b3290f410
Aug  9 11:24:47 vinco kernel: [ 6493.348377] R13: ffffffff9c11cdd0 R14: 0000000000000000 R15: ffff891b3290f400
Aug  9 11:24:47 vinco kernel: [ 6493.348379] FS:  00007f619c6befc0(0000) GS:ffff891b5ecc0000(0000) knlGS:0000000000000000
Aug  9 11:24:47 vinco kernel: [ 6493.348380] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Aug  9 11:24:47 vinco kernel: [ 6493.348381] CR2: ffffffffffffffd6 CR3: 0000000341aba001 CR4: 00000000001626e0
```

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.2.0-2-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_DIE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8), LANGUAGE=lt (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages powertop depends on:
ii  libc6             2.28-10
ii  libgcc1           1:9.1.0-10
ii  libncurses6       6.1+20190803-1
ii  libncursesw6      6.1+20190803-1
ii  libnl-3-200       3.4.0-1
ii  libnl-genl-3-200  3.4.0-1
ii  libpci3           1:3.6.2-2
ii  libstdc++6        9.1.0-10
ii  libtinfo6         6.1+20190803-1

powertop recommends no packages.

Versions of packages powertop suggests:
pn  cpufrequtils       <none>
pn  laptop-mode-tools  <none>

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#934292: powertop: running powertop introduces "kernel NULL pointer dereference"

Bernhard Übelacker-3
Dear Maintainer,
it seems this issue got reported now
also against package src:linux in:
    https://bugs.debian.org/934304

Kind regards,
Bernhard