public inbox for linux-hwmon@vger.kernel.org
 help / color / mirror / Atom feed
* PMBus memory overflow
@ 2025-04-17 15:39 Matt Corallo
  2025-04-17 18:00 ` Guenter Roeck
  0 siblings, 1 reply; 29+ messages in thread
From: Matt Corallo @ 2025-04-17 15:39 UTC (permalink / raw)
  To: linux-hwmon

When adding the PMBus entry for a FSP520-20RAB (actually FSP Twins Pro but it appears to be 
identical hardware with a provided SMBus -> USB adapter and it self-reports as an FSP520-20RAB when 
queried over PMBus using the old pmbus_peek.c script) with `echo pmbus 0x59 > 
/sys/bus/i2c/devices/i2c-3/new_device` I got the following BUG_ON (on Proxmox's 6.8.12-8-pve 
kernel). Its redundant and reports back fine on 0x60 and 0x59 for both of its modules (using 
pmbus_peek.c) and I'd already added 0x60 and it BUG'd adding the second module at 0x59.

Apr 17 15:31:19 rackchill-refresh kernel: detected buffer overflow in memcpy
Apr 17 15:31:19 rackchill-refresh kernel: ------------[ cut here ]------------
Apr 17 15:31:19 rackchill-refresh kernel: kernel BUG at lib/string_helpers.c:1048!
Apr 17 15:31:19 rackchill-refresh kernel: invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
Apr 17 15:31:19 rackchill-refresh kernel: CPU: 18 PID: 387839 Comm: bash Tainted: P           O 
  6.8.12-8-pve #1
Apr 17 15:31:19 rackchill-refresh kernel: Hardware name: Supermicro Super Server/X13SAE-F, BIOS 4.1 
10/01/2024
Apr 17 15:31:19 rackchill-refresh kernel: RIP: 0010:fortify_panic+0x13/0x20
Apr 17 15:31:19 rackchill-refresh kernel: Code: cc 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 
90 90 90 90 90 90 55 48 89 fe 48 c7 c7 b0 4e bf 90 48 89 e5 e8 4d f6 9a ff <0f> 0b 66 66 2e 0f 1f 84 
00 00 00 00 00 90 90 90 90 90 90 90 90 90
Apr 17 15:31:19 rackchill-refresh kernel: RSP: 0018:ffffab56ae19f708 EFLAGS: 00010246
Apr 17 15:31:19 rackchill-refresh kernel: RAX: 0000000000000022 RBX: ffffab56ae19f766 RCX: 
0000000000000000
Apr 17 15:31:19 rackchill-refresh kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 
0000000000000000
Apr 17 15:31:19 rackchill-refresh kernel: RBP: ffffab56ae19f708 R08: 0000000000000000 R09: 
0000000000000000
Apr 17 15:31:19 rackchill-refresh kernel: R10: 0000000000000000 R11: 0000000000000000 R12: 
ffff8a76f8c98428
Apr 17 15:31:19 rackchill-refresh kernel: R13: ffff8a7481989400 R14: 000000000000009b R15: 
ffff8a8f6fe1a428
Apr 17 15:31:19 rackchill-refresh kernel: FS:  00007f3e871a1740(0000) GS:ffff8a937fd00000(0000) 
knlGS:0000000000000000
Apr 17 15:31:19 rackchill-refresh kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Apr 17 15:31:19 rackchill-refresh kernel: CR2: 00007ff6328e0000 CR3: 00000011f6ba0002 CR4: 
0000000000f72ef0
Apr 17 15:31:19 rackchill-refresh kernel: PKRU: 55555554
Apr 17 15:31:19 rackchill-refresh kernel: Call Trace:
Apr 17 15:31:19 rackchill-refresh kernel:  <TASK>
Apr 17 15:31:19 rackchill-refresh kernel:  ? show_regs+0x6d/0x80
Apr 17 15:31:19 rackchill-refresh kernel:  ? die+0x37/0xa0
Apr 17 15:31:19 rackchill-refresh kernel:  ? do_trap+0xd4/0xf0
Apr 17 15:31:19 rackchill-refresh kernel:  ? do_error_trap+0x71/0xb0
Apr 17 15:31:19 rackchill-refresh kernel:  ? fortify_panic+0x13/0x20
Apr 17 15:31:19 rackchill-refresh kernel:  ? exc_invalid_op+0x52/0x80
Apr 17 15:31:19 rackchill-refresh kernel:  ? fortify_panic+0x13/0x20
Apr 17 15:31:19 rackchill-refresh kernel:  ? asm_exc_invalid_op+0x1b/0x20
Apr 17 15:31:19 rackchill-refresh kernel:  ? fortify_panic+0x13/0x20
Apr 17 15:31:19 rackchill-refresh kernel:  ? fortify_panic+0x13/0x20
Apr 17 15:31:19 rackchill-refresh kernel:  i2c_smbus_read_block_data+0x116/0x120
Apr 17 15:31:19 rackchill-refresh kernel:  pmbus_check_block_register.constprop.0+0x77/0x100 
[pmbus_core]
Apr 17 15:31:19 rackchill-refresh kernel:  pmbus_do_probe+0x11a5/0x1e00 [pmbus_core]
Apr 17 15:31:19 rackchill-refresh kernel:  ? __kmalloc_node_track_caller+0x1c9/0x430
Apr 17 15:31:19 rackchill-refresh kernel:  ? devres_add+0x6f/0xf0
Apr 17 15:31:19 rackchill-refresh kernel:  pmbus_probe+0x74/0xb0 [pmbus]
Apr 17 15:31:19 rackchill-refresh kernel:  i2c_device_probe+0x13b/0x300
Apr 17 15:31:19 rackchill-refresh kernel:  really_probe+0x1c9/0x430
Apr 17 15:31:19 rackchill-refresh kernel:  __driver_probe_device+0x8c/0x190
Apr 17 15:31:19 rackchill-refresh kernel:  driver_probe_device+0x24/0xd0
Apr 17 15:31:19 rackchill-refresh kernel:  __device_attach_driver+0xcd/0x170
Apr 17 15:31:19 rackchill-refresh kernel:  ? __pfx___device_attach_driver+0x10/0x10
Apr 17 15:31:19 rackchill-refresh kernel:  bus_for_each_drv+0x94/0xf0
Apr 17 15:31:19 rackchill-refresh kernel:  __device_attach+0xb6/0x1d0
Apr 17 15:31:19 rackchill-refresh kernel:  device_initial_probe+0x13/0x20
Apr 17 15:31:19 rackchill-refresh kernel:  bus_probe_device+0x9f/0xb0
Apr 17 15:31:19 rackchill-refresh kernel:  device_add+0x6d7/0x8f0
Apr 17 15:31:19 rackchill-refresh kernel:  ? hrtimer_init+0x27/0x90
Apr 17 15:31:19 rackchill-refresh kernel:  device_register+0x1a/0x30
Apr 17 15:31:19 rackchill-refresh kernel:  i2c_new_client_device+0x1fb/0x3f0
Apr 17 15:31:19 rackchill-refresh kernel:  new_device_store+0x113/0x290
Apr 17 15:31:19 rackchill-refresh kernel:  dev_attr_store+0x14/0x40
Apr 17 15:31:19 rackchill-refresh kernel:  sysfs_kf_write+0x3b/0x60
Apr 17 15:31:19 rackchill-refresh kernel:  kernfs_fop_write_iter+0x130/0x210
Apr 17 15:31:19 rackchill-refresh kernel:  vfs_write+0x2a5/0x480
Apr 17 15:31:19 rackchill-refresh kernel:  ksys_write+0x73/0x100
Apr 17 15:31:19 rackchill-refresh kernel:  __x64_sys_write+0x19/0x30
Apr 17 15:31:19 rackchill-refresh kernel:  x64_sys_call+0x200f/0x2480
Apr 17 15:31:19 rackchill-refresh kernel:  do_syscall_64+0x81/0x170
Apr 17 15:31:19 rackchill-refresh kernel:  ? __handle_mm_fault+0xba9/0xf70
Apr 17 15:31:19 rackchill-refresh kernel:  ? __count_memcg_events+0x6f/0xe0
Apr 17 15:31:19 rackchill-refresh kernel:  ? count_memcg_events.constprop.0+0x2a/0x50
Apr 17 15:31:19 rackchill-refresh kernel:  ? handle_mm_fault+0xad/0x380
Apr 17 15:31:19 rackchill-refresh kernel:  ? do_user_addr_fault+0x33e/0x660
Apr 17 15:31:19 rackchill-refresh kernel:  ? irqentry_exit_to_user_mode+0x7b/0x260
Apr 17 15:31:19 rackchill-refresh kernel:  ? irqentry_exit+0x43/0x50
Apr 17 15:31:19 rackchill-refresh kernel:  ? exc_page_fault+0x94/0x1b0
Apr 17 15:31:19 rackchill-refresh kernel:  entry_SYSCALL_64_after_hwframe+0x78/0x80
Apr 17 15:31:19 rackchill-refresh kernel: RIP: 0033:0x7f3e8729c300
Apr 17 15:31:19 rackchill-refresh kernel: Code: 40 00 48 8b 15 01 9b 0d 00 f7 d8 64 89 02 48 c7 c0 
ff ff ff ff eb b7 0f 1f 00 80 3d e1 22 0e 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 
c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
Apr 17 15:31:19 rackchill-refresh kernel: RSP: 002b:00007ffcd6171828 EFLAGS: 00000202 ORIG_RAX: 
0000000000000001
Apr 17 15:31:19 rackchill-refresh kernel: RAX: ffffffffffffffda RBX: 000000000000000b RCX: 
00007f3e8729c300
Apr 17 15:31:19 rackchill-refresh kernel: RDX: 000000000000000b RSI: 00005a5e6f9bb6f0 RDI: 
0000000000000001
Apr 17 15:31:19 rackchill-refresh kernel: RBP: 00005a5e6f9bb6f0 R08: 0000000000000007 R09: 
0000000000000073
Apr 17 15:31:19 rackchill-refresh kernel: R10: 0000000000000000 R11: 0000000000000202 R12: 
000000000000000b
Apr 17 15:31:19 rackchill-refresh kernel: R13: 00007f3e87377760 R14: 000000000000000b R15: 
00007f3e873729e0
Apr 17 15:31:19 rackchill-refresh kernel:  </TASK>
Apr 17 15:31:19 rackchill-refresh kernel: Modules linked in: pmbus pmbus_core tcp_diag inet_diag 
ebt_arp xt_mac veth rbd ceph libceph cmac nls_utf8 cifs cifs_arc4 nls_ucs2_utils rdma_cm iw_cm ib_cm 
cifs_md4 netfs ebtable_filter ebtables ip6table_raw ip6t_REJECT nf_reject_ipv6 ip6table_filter 
ip6_tables iptable_raw ipt_REJECT nf_reject_ipv4 xt_mark xt_set xt_physdev xt_addrtype xt_comment 
xt_multiport xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_tcpudp iptable_filter 
ip_set_hash_net ip_set sctp ip6_udp_tunnel udp_tunnel nf_tables nvme_fabrics nvme_keyring bonding 
sunrpc softdog nfnetlink_log binfmt_misc nfnetlink intel_rapl_msr intel_rapl_common 
intel_uncore_frequency intel_uncore_frequency_common snd_sof_pci_intel_tgl snd_sof_intel_hda_common 
soundwire_intel snd_sof_intel_hda_mlink soundwire_cadence snd_sof_intel_hda x86_pkg_temp_thermal 
snd_sof_pci intel_powerclamp snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_hdac_hda coretemp 
snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi soundwire_generic_allocation soundwire_bus
Apr 17 15:31:19 rackchill-refresh kernel:  kvm_intel snd_soc_core snd_hda_codec_realtek snd_compress 
ac97_bus snd_hda_codec_generic snd_pcm_dmaengine snd_hda_intel kvm snd_intel_dspcfg 
snd_intel_sdw_acpi snd_hda_codec snd_hda_core ipmi_ssif irqbypass snd_hwdep mei_hdcp mei_pxp 
cmdlinepart snd_pcm spi_nor snd_timer rapl ast snd acpi_ipmi intel_cstate ucsi_acpi mtd wmi_bmof 
i2c_algo_bit soundcore mei_me pcspkr intel_pmc_core typec_ucsi ipmi_si mei ipmi_devintf intel_vsec 
typec pmt_telemetry ipmi_msghandler pmt_class acpi_pad acpi_tad joydev input_leds mac_hid zfs(PO) 
spl(O) vhost_net vhost vhost_iotlb tap nct6775 nct6775_core hwmon_vid efi_pstore dmi_sysfs ip_tables 
x_tables autofs4 btrfs blake2b_generic xor raid6_pq libcrc32c dm_crypt mlx5_ib ib_uverbs macsec 
ib_core rndis_host cdc_ether usbnet mii usbmouse hid_cp2112 hid_generic usbhid hid crct10dif_pclmul 
mlx5_core crc32_pclmul polyval_clmulni nvme xhci_pci polyval_generic ghash_clmulni_intel 
xhci_pci_renesas sha256_ssse3 sha1_ssse3 e1000e intel_lpss_pci mlxfw nvme_core i2c_i801 ahci igc psample
Apr 17 15:31:19 rackchill-refresh kernel:  intel_lpss spi_intel_pci xhci_hcd spi_intel i2c_smbus tls 
idma64 nvme_auth libahci pci_hyperv_intf video pinctrl_alderlake wmi aesni_intel crypto_simd cryptd
Apr 17 15:31:19 rackchill-refresh kernel: ---[ end trace 0000000000000000 ]---
Apr 17 15:31:19 rackchill-refresh kernel: RIP: 0010:fortify_panic+0x13/0x20
Apr 17 15:31:19 rackchill-refresh kernel: Code: cc 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 
90 90 90 90 90 90 55 48 89 fe 48 c7 c7 b0 4e bf 90 48 89 e5 e8 4d f6 9a ff <0f> 0b 66 66 2e 0f 1f 84 
00 00 00 00 00 90 90 90 90 90 90 90 90 90
Apr 17 15:31:19 rackchill-refresh kernel: RSP: 0018:ffffab56ae19f708 EFLAGS: 00010246
Apr 17 15:31:19 rackchill-refresh kernel: RAX: 0000000000000022 RBX: ffffab56ae19f766 RCX: 
0000000000000000
Apr 17 15:31:19 rackchill-refresh kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 
0000000000000000
Apr 17 15:31:19 rackchill-refresh kernel: RBP: ffffab56ae19f708 R08: 0000000000000000 R09: 
0000000000000000
Apr 17 15:31:19 rackchill-refresh kernel: R10: 0000000000000000 R11: 0000000000000000 R12: 
ffff8a76f8c98428
Apr 17 15:31:19 rackchill-refresh kernel: R13: ffff8a7481989400 R14: 000000000000009b R15: 
ffff8a8f6fe1a428
Apr 17 15:31:19 rackchill-refresh kernel: FS:  00007f3e871a1740(0000) GS:ffff8a937fd00000(0000) 
knlGS:0000000000000000
Apr 17 15:31:19 rackchill-refresh kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Apr 17 15:31:19 rackchill-refresh kernel: CR2: 00007ff6328e0000 CR3: 00000011f6ba0002 CR4: 
0000000000f72ef0
Apr 17 15:31:19 rackchill-refresh kernel: PKRU: 55555554

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2026-03-02  5:19 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-17 15:39 PMBus memory overflow Matt Corallo
2025-04-17 18:00 ` Guenter Roeck
2025-04-17 18:14   ` Matt Corallo
2025-04-18  1:21     ` Guenter Roeck
2025-04-18 21:03       ` Matt Corallo
2025-04-18 22:30         ` Guenter Roeck
2025-04-19 17:53           ` Matt Corallo
2025-04-19 19:05             ` Guenter Roeck
2025-04-19 19:29               ` Matt Corallo
2025-04-19 22:38                 ` Guenter Roeck
2025-04-19 22:49                   ` Guenter Roeck
2025-04-20  2:29                     ` Matt Corallo
2025-04-20  3:03                       ` Guenter Roeck
2025-04-25  8:16                         ` Wolfram Sang
2025-05-05 20:41                           ` Matt Corallo
2025-05-05 20:50                             ` Guenter Roeck
2025-05-05 20:57                               ` Matt Corallo
2025-05-06  1:39                                 ` Guenter Roeck
2025-06-06 20:57                                   ` Matt Corallo
2025-06-07  8:19                                     ` Greg KH
2025-06-07 13:25                                       ` Matt Corallo
2025-06-08  7:14                                         ` Greg KH
2025-06-09 13:57                                           ` Matt Corallo
2026-03-01 13:46                                             ` Matt Corallo
2026-03-01 16:12                                               ` Kees Cook
2026-03-01 17:10                                                 ` Matt Corallo
2026-03-01 20:17                                                   ` Guenter Roeck
2026-03-02  5:09                                                   ` Kees Cook
2026-03-02  5:19                                                     ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox