Koba Ko
2d1ac2f2e2
crypto: ccp - Failure on re-initialization due to duplicate sysfs filename
[ Upstream commit 299bf602b3f92f1456aef59c6413591fb02e762a ]
The following warning appears during the CCP module re-initialization:
[ 140.965403] sysfs: cannot create duplicate filename
'/devices/pci0000:00/0000:00:07.1/0000:03:00.2/dma/dma0chan0'
[ 140.975736] CPU: 0 PID: 388 Comm: kworker/0:2 Kdump: loaded Not
tainted 6.2.0-0.rc2.18.eln124.x86_64 #1
[ 140.985185] Hardware name: HPE ProLiant DL325 Gen10/ProLiant DL325
Gen10, BIOS A41 07/17/2020
[ 140.993761] Workqueue: events work_for_cpu_fn
[ 140.998151] Call Trace:
[ 141.000613] <TASK>
[ 141.002726] dump_stack_lvl+0x33/0x46
[ 141.006415] sysfs_warn_dup.cold+0x17/0x23
[ 141.010542] sysfs_create_dir_ns+0xba/0xd0
[ 141.014670] kobject_add_internal+0xba/0x260
[ 141.018970] kobject_add+0x81/0xb0
[ 141.022395] device_add+0xdc/0x7e0
[ 141.025822] ? complete_all+0x20/0x90
[ 141.029510] __dma_async_device_channel_register+0xc9/0x130
[ 141.035119] dma_async_device_register+0x19e/0x3b0
[ 141.039943] ccp_dmaengine_register+0x334/0x3f0 [ccp]
[ 141.045042] ccp5_init+0x662/0x6a0 [ccp]
[ 141.049000] ? devm_kmalloc+0x40/0xd0
[ 141.052688] ccp_dev_init+0xbb/0xf0 [ccp]
[ 141.056732] ? __pci_set_master+0x56/0xd0
[ 141.060768] sp_init+0x70/0x90 [ccp]
[ 141.064377] sp_pci_probe+0x186/0x1b0 [ccp]
[ 141.068596] local_pci_probe+0x41/0x80
[ 141.072374] work_for_cpu_fn+0x16/0x20
[ 141.076145] process_one_work+0x1c8/0x380
[ 141.080181] worker_thread+0x1ab/0x380
[ 141.083953] ? __pfx_worker_thread+0x10/0x10
[ 141.088250] kthread+0xda/0x100
[ 141.091413] ? __pfx_kthread+0x10/0x10
[ 141.095185] ret_from_fork+0x2c/0x50
[ 141.098788] </TASK>
[ 141.100996] kobject_add_internal failed for dma0chan0 with -EEXIST,
don't try to register things with the same name in the same directory.
[ 141.113703] ccp 0000:03:00.2: ccp initialization failed
The /dma/dma0chan0 sysfs file is not removed since dma_chan object
has been released in ccp_dma_release() before releasing dma device.
A correct procedure would be: release dma channels first => unregister
dma device => release ccp dma object.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216888
Fixes: 68dbe80f5b51 ("crypto: ccp - Release dma channels before dmaengine unrgister")
Tested-by: Vladis Dronov <vdronov@redhat.com>
Signed-off-by: Koba Ko <koba.ko@canonical.com>
Reviewed-by: Vladis Dronov <vdronov@redhat.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
|
2023-03-11 16:43:39 +01:00 |
| .. |
|
accessibility
|
|
|
|
acpi
|
ACPI: battery: Fix missing NUL-termination with large strings
|
2023-03-11 16:43:39 +01:00 |
|
amba
|
|
|
|
android
|
binder: Gracefully handle BINDER_TYPE_FDA objects with num_fds=0
|
2022-12-08 11:23:01 +01:00 |
|
ata
|
ata: libata: Fix sata_down_spd_limit() when no link speed is reported
|
2023-02-22 12:50:24 +01:00 |
|
atm
|
|
|
|
auxdisplay
|
|
|
|
base
|
driver core: Fix test_async_probe_init saves device in wrong array
|
2023-02-06 07:52:40 +01:00 |
|
bcma
|
|
|
|
block
|
drbd: use after free in drbd_create_device()
|
2022-11-25 17:42:16 +01:00 |
|
bluetooth
|
Bluetooth: hci_bcsp: don't call kfree_skb() under spin_lock_irqsave()
|
2023-01-18 11:41:16 +01:00 |
|
bus
|
bus: sunxi-rsb: Fix error handling in sunxi_rsb_init()
|
2023-02-22 12:50:23 +01:00 |
|
cdrom
|
|
|
|
char
|
ipmi: fix use after free in _ipmi_destroy_user()
|
2023-01-18 11:41:49 +01:00 |
|
clk
|
clk: Fix pointer casting to prevent oops in devm_clk_release()
|
2023-02-06 07:52:48 +01:00 |
|
clocksource
|
clocksource/drivers/sh_cmt: Make sure channel clock supply is enabled
|
2023-01-18 11:40:56 +01:00 |
|
connector
|
|
|
|
counter
|
counter: stm32-lptimer-cnt: fix the check on arr and cmp registers update
|
2023-01-18 11:41:24 +01:00 |
|
cpufreq
|
cpufreq: armada-37xx: stop using 0 as NULL pointer
|
2023-02-06 07:52:41 +01:00 |
|
cpuidle
|
cpuidle: dt: Return the correct numbers of parsed idle states
|
2023-01-18 11:40:53 +01:00 |
|
crypto
|
crypto: ccp - Failure on re-initialization due to duplicate sysfs filename
|
2023-03-11 16:43:39 +01:00 |
|
dax
|
|
|
|
dca
|
|
|
|
devfreq
|
PM/devfreq: governor: Add a private governor_data for governor
|
2023-01-18 11:41:52 +01:00 |
|
dio
|
drivers: dio: fix possible memory leak in dio_init()
|
2023-01-18 11:41:21 +01:00 |
|
dma
|
dmaengine: sh: rcar-dmac: Check for error num after dma_set_max_seg_size
|
2023-03-03 11:41:48 +01:00 |
|
dma-buf
|
|
|
|
edac
|
EDAC/qcom: Do not pass llcc_driv_data as edac_device_ctl_info's pvt_info
|
2023-02-06 07:52:44 +01:00 |
|
eisa
|
|
|
|
extcon
|
|
|
|
firewire
|
firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region
|
2023-02-22 12:50:22 +01:00 |
|
firmware
|
efi: Accept version 2 of memory attributes table
|
2023-02-22 12:50:27 +01:00 |
|
fpga
|
fpga: stratix10-soc: Fix return value check in s10_ops_write_init()
|
2023-02-22 12:50:28 +01:00 |
|
fsi
|
WRITE is "data source", not destination...
|
2023-02-22 12:50:23 +01:00 |
|
gnss
|
|
|
|
gpio
|
gpio: mxc: Always set GPIOs used as interrupt source to INPUT mode
|
2023-02-06 07:52:37 +01:00 |
|
gpu
|
drm/i915/gvt: fix double free bug in split_2MB_gtt_entry
|
2023-02-25 11:53:26 +01:00 |
|
greybus
|
|
|
|
hid
|
HID: asus: use spinlock to safely schedule workers
|
2023-03-11 16:43:31 +01:00 |
|
hsi
|
HSI: omap_ssi_core: Fix error handling in ssi_init()
|
2023-01-18 11:41:28 +01:00 |
|
hv
|
Drivers: hv: vmbus: fix possible memory leak in vmbus_device_register()
|
2022-12-08 11:22:58 +01:00 |
|
hwmon
|
hwmon: (coretemp) fix pci device refcount leak in nv1a_ram_new()
|
2022-12-08 11:23:03 +01:00 |
|
hwspinlock
|
|
|
|
hwtracing
|
|
|
|
i2c
|
i2c: rk3x: fix a bunch of kernel-doc warnings
|
2023-02-22 12:50:25 +01:00 |
|
i3c
|
|
|
|
ide
|
|
|
|
idle
|
intel_idle: Disable IBRS during long idle
|
2022-10-07 09:16:55 +02:00 |
|
iio
|
iio:adc:twl6030: Enable measurement of VAC
|
2023-02-22 12:50:30 +01:00 |
|
infiniband
|
IB/hfi1: Assign npages earlier
|
2023-03-03 11:41:48 +01:00 |
|
input
|
Input: i8042 - add Clevo PCX0DX to i8042 quirk table
|
2023-02-22 12:50:27 +01:00 |
|
interconnect
|
|
|
|
iommu
|
iommu/amd: Pass gfp flags to iommu_map_page() in amd_iommu_map()
|
2023-02-22 12:50:42 +01:00 |
|
ipack
|
|
|
|
irqchip
|
irqchip: gic-pm: Use pm_runtime_resume_and_get() in gic_probe()
|
2023-01-18 11:40:54 +01:00 |
|
isdn
|
mISDN: hfcmulti: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
|
2023-01-18 11:41:32 +01:00 |
|
leds
|
|
|
|
lightnvm
|
|
|
|
macintosh
|
macintosh/macio-adb: check the return value of ioremap()
|
2023-01-18 11:41:29 +01:00 |
|
mailbox
|
mailbox: zynq-ipi: fix error handling while device_register() fails
|
2023-01-18 11:41:33 +01:00 |
|
mcb
|
mcb: mcb-parse: fix error handing in chameleon_parse_gdd()
|
2023-01-18 11:41:25 +01:00 |
|
md
|
dm thin: resume even if in FAIL mode
|
2023-01-18 11:41:53 +01:00 |
|
media
|
media: s5p-mfc: Fix in register read and write for H264
|
2023-01-18 11:41:53 +01:00 |
|
memory
|
memory: mvebu-devbus: Fix missing clk_disable_unprepare in mvebu_devbus_probe()
|
2023-02-06 07:52:34 +01:00 |
|
memstick
|
|
|
|
message
|
|
|
|
mfd
|
mfd: sm501: Add check for platform_driver_register()
|
2022-10-26 13:22:42 +02:00 |
|
misc
|
misc: fastrpc: Fix use-after-free race condition for maps
|
2023-01-24 07:18:00 +01:00 |
|
mmc
|
mmc: mmc_spi: fix error handling in mmc_spi_probe()
|
2023-02-22 12:50:39 +01:00 |
|
mtd
|
mtd: spi-nor: Check for zero erase size in spi_nor_find_best_erase_type()
|
2023-01-18 11:41:49 +01:00 |
|
mux
|
|
|
|
net
|
wifi: ath9k: Fix potential stack-out-of-bounds write in ath9k_wmi_rsp_callback()
|
2023-03-11 16:43:39 +01:00 |
|
nfc
|
nfc: pn533: Wait for out_urb's completion in pn533_usb_send_frame()
|
2023-01-18 11:42:04 +01:00 |
|
ntb
|
|
|
|
nubus
|
|
|
|
nvdimm
|
|
|
|
nvme
|
nvme-fc: fix a missing queue put in nvmet_fc_ls_create_association
|
2023-02-22 12:50:35 +01:00 |
|
nvmem
|
nvmem: core: fix cell removal on error
|
2023-02-22 12:50:28 +01:00 |
|
of
|
of: overlay: fix null pointer dereferencing in find_dup_cset_node_entry() and find_dup_cset_prop()
|
2023-01-18 11:41:14 +01:00 |
|
opp
|
|
|
|
oprofile
|
|
|
|
parisc
|
parisc: led: Fix potential null-ptr-deref in start_task()
|
2023-01-18 11:41:50 +01:00 |
|
parport
|
parport_pc: Avoid FIFO port location truncation
|
2022-11-25 17:42:14 +01:00 |
|
pci
|
PCI/sysfs: Fix double free in error path
|
2023-01-18 11:41:49 +01:00 |
|
pcmcia
|
|
|
|
perf
|
perf/smmuv3: Fix hotplug callback leak in arm_smmu_pmu_init()
|
2023-01-18 11:40:50 +01:00 |
|
phy
|
phy: rockchip-inno-usb2: Fix missing clk_disable_unprepare() in rockchip_usb2phy_power_on()
|
2023-02-06 07:52:37 +01:00 |
|
pinctrl
|
pinctrl: intel: Restore the pins that used to be in Direct IRQ mode
|
2023-02-22 12:50:32 +01:00 |
|
platform
|
platform/x86: asus-nb-wmi: Add alternate mapping for KEY_SCREENLOCK
|
2023-02-06 07:52:42 +01:00 |
|
pnp
|
PNP: fix name memory leak in pnp_alloc_dev()
|
2023-01-18 11:40:54 +01:00 |
|
power
|
power: supply: fix null pointer dereferencing in power_supply_get_battery_info
|
2023-01-18 11:41:28 +01:00 |
|
powercap
|
powercap: intel_rapl: fix UBSAN shift-out-of-bounds issue
|
2022-10-26 13:22:47 +02:00 |
|
pps
|
|
|
|
ps3
|
|
|
|
ptp
|
|
|
|
pwm
|
pwm: sifive: Call pwm_sifive_update_clock() while mutex is held
|
2023-01-18 11:41:30 +01:00 |
|
rapidio
|
rapidio: devices: fix missing put_device in mport_cdev_open
|
2023-01-18 11:40:59 +01:00 |
|
ras
|
|
|
|
regulator
|
regulator: da9211: Use irq handler when ready
|
2023-01-18 11:42:04 +01:00 |
|
remoteproc
|
remoteproc: qcom_q6v5_pas: Fix missing of_node_put() in adsp_alloc_memory_region()
|
2023-01-18 11:41:31 +01:00 |
|
reset
|
|
|
|
rpmsg
|
rpmsg: qcom: glink: replace strncpy() with strscpy_pad()
|
2022-10-15 07:54:38 +02:00 |
|
rtc
|
rtc: mxc_v2: Add missing clk_disable_unprepare()
|
2023-01-18 11:41:32 +01:00 |
|
s390
|
s390/dasd: Fix potential memleak in dasd_eckd_init()
|
2023-03-11 16:43:35 +01:00 |
|
sbus
|
|
|
|
scsi
|
Revert "scsi: core: run queue if SCSI device queue isn't ready and queue is idle"
|
2023-03-11 16:43:34 +01:00 |
|
sfi
|
|
|
|
sh
|
|
|
|
siox
|
siox: fix possible memory leak in siox_device_add()
|
2022-11-25 17:42:14 +01:00 |
|
slimbus
|
slimbus: stream: correct presence rate frequencies
|
2022-11-25 17:42:17 +01:00 |
|
soc
|
ARM: ux500: do not directly dereference __iomem
|
2023-01-18 11:41:46 +01:00 |
|
soundwire
|
|
|
|
spi
|
spi: spidev: remove debug messages that access spidev->spi without locking
|
2023-02-06 07:52:41 +01:00 |
|
spmi
|
spmi: pmic-arb: correct duplicate APID to PPID mapping logic
|
2022-10-26 13:22:43 +02:00 |
|
ssb
|
|
|
|
staging
|
wifi: wilc1000: fix potential memory leak in wilc_mac_xmit()
|
2023-03-11 16:43:37 +01:00 |
|
target
|
scsi: target: core: Fix warning on RT kernels
|
2023-02-22 12:50:25 +01:00 |
|
tc
|
|
|
|
tee
|
tee: optee: fix possible memory leak in optee_register_device()
|
2022-12-08 11:22:57 +01:00 |
|
thermal
|
thermal: intel: int340x: Add locking to int340x_thermal_get_trip_type()
|
2023-02-06 07:52:46 +01:00 |
|
thunderbolt
|
|
|
|
tty
|
vc_screen: don't clobber return value in vcs_read
|
2023-03-03 11:41:48 +01:00 |
|
uio
|
uio: uio_dmem_genirq: Fix deadlock between irq config and handling
|
2023-01-18 11:41:22 +01:00 |
|
usb
|
USB: core: Don't hold device lock while reading the "descriptors" sysfs file
|
2023-03-03 11:41:49 +01:00 |
|
vfio
|
vfio: platform: Do not pass return buffer to ACPI _RST method
|
2023-01-18 11:41:22 +01:00 |
|
vhost
|
vhost: fix range used in translate_desc()
|
2023-01-18 11:41:57 +01:00 |
|
video
|
fbdev: smscufx: fix error handling code in ufx_usb_probe
|
2023-02-22 12:50:29 +01:00 |
|
virt
|
|
|
|
virtio
|
|
|
|
visorbus
|
|
|
|
vlynq
|
|
|
|
vme
|
vme: Fix error not catched in fake_init()
|
2023-01-18 11:41:26 +01:00 |
|
w1
|
w1: fix WARNING after calling w1_process()
|
2023-02-06 07:52:40 +01:00 |
|
watchdog
|
watchdog: diag288_wdt: fix __diag288() inline assembly
|
2023-02-22 12:50:27 +01:00 |
|
xen
|
fix "direction" argument of iov_iter_kvec()
|
2023-02-22 12:50:23 +01:00 |
|
zorro
|
|
|
|
Kconfig
|
|
|
|
Makefile
|
|
|