linux/drivers
Alison Schofield 6c87126096 cxl/trace: Properly initialize cxl_poison region name
The TP_STRUCT__entry that gets assigned the region name, or an
empty string if no region is present, is erroneously initialized
to the cxl_region pointer. It needs to be properly initialized
otherwise it's length is wrong and garbage chars can appear in
the kernel trace output: /sys/kernel/tracing/trace

The bad initialization was due in part to a naming conflict with
the parameter: struct cxl_region *region. The field 'region' is
already exposed externally as the region name, so changing that
to something logical, like 'region_name' is not an option. Instead
rename the internal only struct cxl_region to the commonly used
'cxlr'.

Impact is that tooling depending on that trace data can miss
picking up a valid event when searching by region name. The
TP_printk() output, if enabled, does emit the correct region
names in the dmesg log.

This was found during testing of the cxl-list option to report
media-errors for a region.

Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Jonathan Cameron <jonathan.cameron@huawei.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: stable@vger.kernel.org
Fixes: ddf49d57b8 ("cxl/trace: Add TRACE support for CXL media-error records")
Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2024-03-18 10:26:03 -04:00
..
accel drm for 6.9: 2024-03-13 18:34:05 -07:00
accessibility
acpi sound updates for 6.9-rc1 2024-03-14 11:10:43 -07:00
amba
android
ata ata changes for 6.9-rc1 2024-03-13 09:29:53 -07:00
atm atm: fore200e: Convert to platform remove callback returning void 2024-03-07 20:36:32 -08:00
auxdisplay auxdisplay: img-ascii-lcd: Convert to platform remove callback returning void 2024-03-12 17:37:54 +02:00
base Power management updates for 6.9-rc1 2024-03-13 11:40:06 -07:00
bcma
block for-6.9/block-20240310 2024-03-11 11:43:44 -07:00
bluetooth Bluetooth: Add new quirk for broken read key length on ATS2851 2024-03-06 17:27:14 -05:00
bus ARM: SoC drivers for 6.9 2024-03-12 10:35:24 -07:00
cache cache: ax45mp_cache: Align end size to cache boundary in ax45mp_dma_cache_wback() 2024-02-21 16:24:10 +00:00
cdrom cdrom: gdrom: Convert to platform remove callback returning void 2024-03-07 11:53:30 -07:00
cdx
char drm for 6.9: 2024-03-13 18:34:05 -07:00
clk platform-drivers-x86 for v6.9-1 2024-03-14 10:44:09 -07:00
clocksource
comedi comedi: comedi_test: Prevent timers rescheduling during deletion 2024-03-05 14:21:45 +00:00
connector
counter counter: fix privdata alignment 2024-02-16 18:51:00 -05:00
cpufreq ARM cpufreq updates for 6.9 2024-03-11 15:29:20 +01:00
cpuidle
crypto - Add the x86 part of the SEV-SNP host support. This will allow the 2024-03-11 17:44:11 -07:00
cxl cxl/trace: Properly initialize cxl_poison region name 2024-03-18 10:26:03 -04:00
dax mm, slab: remove last vestiges of SLAB_MEM_SPREAD 2024-03-12 20:32:19 -07:00
dca
devfreq
dio
dma Updates for the MSI interrupt subsystem and RISC-V initial MSI support: 2024-03-11 14:03:03 -07:00
dma-buf
dpll Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2024-03-11 20:38:36 -07:00
edac - Add a FRU (Field Replaceable Unit) memory poison manager which 2024-03-11 18:14:06 -07:00
eisa
extcon
firewire firewire: ohci: prevent leak of left-over IRQ on unbind 2024-03-06 22:35:22 +09:00
firmware sound updates for 6.9-rc1 2024-03-14 11:10:43 -07:00
fpga
fsi
gnss
gpio Pin control changes for the v6.9 kernel cycle: 2024-03-14 10:22:26 -07:00
gpu drm/i915: Add missing ; to __assign_str() macros in tracepoint code 2024-03-18 10:24:25 -04:00
greybus
hid hid-for-linus-2024031301 2024-03-14 09:56:15 -07:00
hsi HSI: ssi_protocol: fix struct members kernel-doc warnings 2024-02-25 19:05:45 +01:00
hte
hv Drivers: hv: vmbus: make hv_bus const 2024-03-03 02:32:35 +00:00
hwmon platform-drivers-x86 for v6.9-1 2024-03-14 10:44:09 -07:00
hwspinlock
hwtracing
i2c i2c: aspeed: Fix the dummy irq expected print 2024-03-08 10:10:27 +01:00
i3c
idle cpuidle: ACPI/intel: fix MWAIT hint target C-state computation 2024-03-05 21:25:18 +01:00
iio spi: Updates for v6.9 2024-03-13 11:07:37 -07:00
infiniband rtnetlink: prepare nla_put_iflink() to run under RCU 2024-02-26 11:46:12 +00:00
input spi: Updates for v6.9 2024-03-13 11:07:37 -07:00
interconnect
iommu IOMMU Updates for Linux v6.9 2024-03-13 09:15:30 -07:00
ipack
irqchip Updates for the MSI interrupt subsystem and RISC-V initial MSI support: 2024-03-11 14:03:03 -07:00
isdn isdn: capi: make capi_class constant 2024-03-07 20:26:24 -08:00
leds - Core Frameworks 2024-03-14 10:38:25 -07:00
macintosh macintosh/via-pmu-backlight: Include <linux/backlight.h> 2024-03-07 13:33:34 +01:00
mailbox imx: add support for i.MX95 ELE/V2X MU 2024-03-13 12:23:36 -07:00
mcb
md - Introduce the DM vdo target which provides block-level 2024-03-13 09:57:23 -07:00
media drm for 6.9: 2024-03-13 18:34:05 -07:00
memory memory: stm32-fmc2-ebi: keep power domain on 2024-02-27 10:18:04 +01:00
memstick MMC core: 2024-03-13 10:59:28 -07:00
message
mfd mfd: cs42l43: Fix wrong GPIO_FN_SEL and SPI_CLK_CONFIG1 defaults 2024-03-05 10:40:30 +00:00
misc spi: Updates for v6.9 2024-03-13 11:07:37 -07:00
mmc spi: Updates for v6.9 2024-03-13 11:07:37 -07:00
most
mtd spi: Updates for v6.9 2024-03-13 11:07:37 -07:00
mux
net net: hns3: tracing: fix hclgevf trace event strings 2024-03-18 10:25:40 -04:00
nfc
ntb NTB: fix possible name leak in ntb_register_device() 2024-02-16 16:13:38 +05:30
nubus
nvdimm pmem: pass queue_limits to blk_mq_alloc_disk 2024-02-19 16:58:24 -07:00
nvme Networking changes for 6.9. 2024-03-12 17:44:08 -07:00
nvmem
of Devicetree fix for v6.8, part 2: 2024-03-01 17:18:35 -08:00
opp OPP: debugfs: Fix warning around icc_get_name() 2024-03-11 10:39:24 +05:30
parisc
parport
pci pci-v6.9-changes 2024-03-14 10:58:27 -07:00
pcmcia
peci
perf arm64 updates for 6.9: 2024-03-14 15:35:42 -07:00
phy phy: qcom-qmp-combo: fix type-c switch registration 2024-03-06 20:37:37 +05:30
pinctrl Pin control changes for the v6.9 kernel cycle: 2024-03-14 10:22:26 -07:00
platform sound updates for 6.9-rc1 2024-03-14 11:10:43 -07:00
pmdomain Core: 2024-03-13 11:33:10 -07:00
pnp
power power supply and reset changes for the 6.9 series 2024-03-14 10:19:48 -07:00
powercap Power management updates for 6.9-rc1 2024-03-13 11:40:06 -07:00
pps
ps3
ptp Networking changes for 6.9. 2024-03-12 17:44:08 -07:00
pwm pwm: imx-tpm: fix probe crash due to access registers without clock 2024-03-04 11:45:22 +01:00
rapidio
ras - Add a FRU (Field Replaceable Unit) memory poison manager which 2024-03-11 18:14:06 -07:00
regulator regulator: Updates for v6.9 2024-03-13 11:05:20 -07:00
remoteproc
reset
rpmsg
rtc rtc: test: Fix invalid format specifier. 2024-02-27 16:26:48 -07:00
s390 s390 updates for 6.9 merge window 2024-03-12 10:14:22 -07:00
sbus
scsi for-6.9/block-20240310 2024-03-11 11:43:44 -07:00
sh
siox
slimbus
soc ARM: SoC drivers for 6.9 2024-03-12 10:35:24 -07:00
soundwire
spi - New Device Support 2024-03-14 10:29:47 -07:00
spmi
ssb
staging - Core Frameworks 2024-03-14 10:38:25 -07:00
target vfs-6.9.super 2024-03-11 10:52:34 -07:00
tc
tee ARM: SoC drivers for 6.9 2024-03-12 10:35:24 -07:00
thermal Thermal control updates for 6.9-rc1 2024-03-13 12:03:57 -07:00
thunderbolt thunderbolt: Fix for v6.8-rc7 2024-03-02 19:47:01 +01:00
tty Revert "tty: serial: simplify qcom_geni_serial_send_chunk_fifo()" 2024-03-05 13:40:34 +00:00
ufs Updates for the MSI interrupt subsystem and RISC-V initial MSI support: 2024-03-11 14:03:03 -07:00
uio
usb spi: Updates for v6.9 2024-03-13 11:07:37 -07:00
vdpa
vfio
vhost vhost/net: remove vhost_net_page_frag_refill() 2024-03-05 11:38:14 +01:00
video - New Drivers 2024-03-14 10:35:46 -07:00
virt virt: efi_secret: Convert to platform remove callback returning void 2024-03-09 11:37:18 +01:00
virtio
w1
watchdog - New Device Support 2024-03-14 10:29:47 -07:00
xen Support for x86 Fast Return and Event Delivery (FRED): 2024-03-11 16:00:17 -07:00
zorro zorro: Make zorro_bus_type const 2024-02-19 11:10:55 +01:00
Kconfig
Makefile Revert "leds: Only descend into leds directory when CONFIG_NEW_LEDS is set" 2024-03-07 08:48:10 +00:00