linux/drivers
Dan Carpenter 4f0d91ba72 net/mlx4: prevent potential use after free in mlx4_en_do_uc_filter()
Print "entry->mac" before freeing "entry".  The "entry" pointer is
freed with kfree_rcu() so it's unlikely that we would trigger this
in real life, but it's safer to re-order it.

Fixes: cc5387f734 ("net/mlx4_en: Add unicast MAC filtering")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/aNvMHX4g8RksFFvV@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
History 2025-10-03 10:20:20 -07:00
..
accel accel/habanalabs: add Infineon version check 2025-09-25 09:14:45 +03:00
accessibility treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
acpi ACPI updates for 6.18-rc1 2025-10-01 16:24:50 -07:00
amba PM: domains: Add flags to specify power on attach/detach 2025-07-07 20:41:20 +02:00
android Char / Misc / IIO / other driver updates for 6.17-rc1 2025-07-29 09:52:01 -07:00
ata for-6.18/block-20250929 2025-10-02 10:16:56 -07:00
atm atm: atmtcp: Prevent arbitrary write in atmtcp_recv_control(). 2025-08-22 17:23:15 -07:00
auxdisplay treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
base Power management updates for 6.18-rc1 2025-10-01 16:08:37 -07:00
bcma treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
block for-6.18/block-20250929 2025-10-02 10:16:56 -07:00
bluetooth Bluetooth: bcsp: receive data only if registered 2025-09-27 11:37:02 -04:00
bus bus: fsl-mc: Replace snprintf and sprintf with sysfs_emit in sysfs show functions 2025-08-25 19:55:03 +02:00
cache cache: sifive_ccache: Optimize cache flushes 2025-09-11 19:13:21 +01:00
cdrom cdrom: Call cdrom_mrw_exit from cdrom_release function 2025-07-22 19:10:17 -06:00
cdx - Add support for new AMD family 0x1a models to amd64_edac 2025-09-30 11:41:03 -07:00
char soc: driver updates for 6.18 2025-10-01 17:32:51 -07:00
clk bitmap-for-6.18 2025-10-02 08:57:03 -07:00
clocksource clocksource/drivers/sh_cmt: Split start/stop of clock source and events 2025-09-23 12:42:43 +02:00
comedi comedi: Make insn_rw_emulate_bits() do insn->n samples 2025-08-19 12:57:01 +02:00
connector connector/cn_proc: revert "connector: Fix proc_event_num_listeners count not cleared" 2024-02-13 11:15:44 +01:00
counter Second set of Counter updates for 6.16 2025-05-24 08:29:32 +02:00
cpufreq Merge back earlier cpufreq material for 6.18 2025-09-24 21:32:28 +02:00
cpuidle cpuidle: Fail cpuidle device registration if there is one already 2025-09-20 13:08:54 +02:00
crypto soc: driver updates for 6.18 2025-10-01 17:32:51 -07:00
cxl Significant patch series in this pull request: 2025-08-03 16:23:09 -07:00
dax fs: rename generic_delete_inode() and generic_drop_inode() 2025-09-15 16:09:42 +02:00
dca Driver core changes for 6.11-rc1 2024-07-25 10:42:22 -07:00
devfreq PM / devfreq: rockchip-dfi: add support for LPDDR5 2025-09-09 23:37:39 +09:00
dibs dibs: Check correct variable in dibs_init() 2025-09-26 15:10:59 -07:00
dio dio: Have dio_bus_match() callback take a const * 2024-07-10 15:38:14 +02:00
dma dmaengine: dw: dmamux: Fix device reference leak in rzn1_dmamux_route_allocate 2025-09-02 15:01:51 +05:30
dma-buf dma-buf: dma-heap: export declared functions 2025-09-11 11:22:17 +02:00
dpll dpll: zl3073x: Allow to configure phase offset averaging factor 2025-09-29 18:57:41 -07:00
edac - Add support for new AMD family 0x1a models to amd64_edac 2025-09-30 11:41:03 -07:00
eisa EISA: Move devlist.h out of obj to always 2025-05-07 07:01:01 +02:00
extcon Update extcon next for v6.14 2025-01-12 13:44:27 +01:00
firewire firewire updates for v6.18 2025-10-01 12:52:43 -07:00
firmware soc: driver updates for 6.18 2025-10-01 17:32:51 -07:00
fpga fpga: zynq_fpga: Fix the wrong usage of dma_map_sgtable() 2025-08-19 12:54:45 +02:00
fsi Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
fwctl fwctl: Fix repeated device word in log message 2025-04-11 20:47:45 -03:00
gnss [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
gpio Pin control changes for the v6.18 kernel cycle: 2025-10-01 13:14:48 -07:00
gpu [GIT PULL for v6.18] media updates 2025-10-02 13:13:26 -07:00
greybus greybus: gb-beagleplay: remove unneeded calls to devm_gpiod_put() 2025-07-01 12:29:37 +02:00
hid drm next for 6.18-rc1 2025-10-02 12:47:25 -07:00
hsi HSI: omap_ssi_port: Remove redundant pm_runtime_mark_last_busy() calls 2025-09-05 22:56:59 +02:00
hte treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
hv ARM: 2025-07-30 17:14:01 -07:00
hwmon gpio updates for v6.18-rc1 2025-10-01 11:34:12 -07:00
hwspinlock hwspinlock: Remove unused hwspin_lock_get_id() 2025-03-21 17:12:04 -05:00
hwtracing coresight: trbe: Prevent overflow in PERF_IDX2OFF() 2025-09-18 15:23:58 +01:00
i2c soc: driver updates for 6.18 2025-10-01 17:32:51 -07:00
i3c i3c: fix big-endian FIFO transfers 2025-09-29 00:17:22 +02:00
idle intel_idle: Remove unnecessary address-of operators 2025-09-01 17:32:25 +02:00
iio iio: pressure: bmp280: Use IS_ERR() in bmp280_common_probe() 2025-08-18 19:22:18 +01:00
infiniband Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-09-25 11:00:59 -07:00
input MFD for v6.18 2025-10-01 12:04:12 -07:00
interconnect Char / Misc / IIO / other driver updates for 6.17-rc1 2025-07-29 09:52:01 -07:00
iommu iommufd 6.17 second rc pull 2025-09-22 11:16:14 -07:00
ipack driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
irqchip Devicetree updates for v6.18: 2025-10-01 16:58:24 -07:00
isdn mISDN: Fix memory leak in dsp_hwec_enable() 2025-08-29 19:19:39 -07:00
leds leds: led-class: Add Device Tree support to led_get() 2025-09-16 16:49:28 +01:00
macintosh treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
mailbox mailbox/pcc: support mailbox management of the shared buffer 2025-08-07 23:49:56 -05:00
mcb mcb: use sysfs_emit_at() instead of scnprintf() in show functions 2025-07-16 14:17:07 +02:00
md for-6.18/block-20250929 2025-10-02 10:16:56 -07:00
media [GIT PULL for v6.18] media updates 2025-10-02 13:13:26 -07:00
memory memory: tegra210: Use bindings for client ids 2025-09-10 11:40:44 +02:00
memstick for-6.18/block-20250929 2025-10-02 10:16:56 -07:00
message scsi: switch ->bios_param() to passing gendisk 2025-08-13 02:59:28 -04:00
mfd soc: driver updates for 6.18 2025-10-01 17:32:51 -07:00
misc drm next for 6.18-rc1 2025-10-02 12:47:25 -07:00
mmc for-6.18/block-20250929 2025-10-02 10:16:56 -07:00
most most: core: Drop device reference after usage in get_channel() 2025-08-19 12:57:34 +02:00
mtd for-6.18/block-20250929 2025-10-02 10:16:56 -07:00
mux hardening updates for v6.17-rc1 2025-07-28 17:16:12 -07:00
net net/mlx4: prevent potential use after free in mlx4_en_do_uc_filter() 2025-10-03 10:20:20 -07:00
nfc nfc: s3fwrn5: Use SHA-1 library instead of crypto_shash 2025-08-18 17:29:08 -07:00
ntb NTB/msi: Switch MSI descriptor locking to lock guard() 2025-04-09 20:47:29 +02:00
nubus nubus: Make nubus_bus_type static and constant 2024-01-03 13:33:59 +01:00
nvdimm block: switch ->getgeo() to struct gendisk 2025-08-13 02:59:29 -04:00
nvme for-6.18/block-20250929 2025-10-02 10:16:56 -07:00
nvmem Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
of Devicetree updates for v6.18: 2025-10-01 16:58:24 -07:00
opp OPP: Add support to find OPP for a set of keys 2025-08-26 10:40:58 +05:30
parisc parisc/power: Move soft-power into power.c 2025-07-23 11:52:48 +02:00
parport treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
pci drm next for 6.18-rc1 2025-10-02 12:47:25 -07:00
pcmcia pcmcia: Add error handling for add_interval() in do_validate_mem() 2025-08-16 15:49:58 +02:00
peci module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
perf RISC-V updates for the v6.18 merge window (part one) 2025-09-29 19:01:08 -07:00
phy bitmap-for-6.18 2025-10-02 08:57:03 -07:00
pinctrl soc: driver updates for 6.18 2025-10-01 17:32:51 -07:00
platform chrome-platform: Updates for v6.18 2025-10-01 09:16:28 -07:00
pmdomain soc: driver updates for 6.18 2025-10-01 17:32:51 -07:00
pnp PNP: isapnp: use str_plural() to simplify the code 2025-08-25 17:30:16 +02:00
power power supply and reset changes for the 6.18 series 2025-10-01 13:02:59 -07:00
powercap powercap: idle_inject: use us_to_ktime() where appropriate 2025-08-21 21:57:54 +02:00
pps pps: fix poll support 2025-07-01 12:29:29 +02:00
ps3 powerpc/ps3: Use str_write_read() in ps3stor_read_write_sectors() 2025-09-06 17:01:26 +05:30
ptp Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-10-01 10:14:49 +02:00
pwm gpio updates for v6.18-rc1 2025-10-01 11:34:12 -07:00
rapidio Merge 6.16-rc3 into driver-core-next 2025-06-23 07:53:36 +02:00
ras RAS: Export log_non_standard_event() to drivers 2025-09-15 16:20:29 +02:00
regulator MFD for v6.18 2025-10-01 12:04:12 -07:00
remoteproc soc: qcom: mdt_loader: Remove pas id parameter 2025-08-11 10:14:32 -05:00
reset soc: driver updates for 6.18 2025-10-01 17:32:51 -07:00
rpmsg remoteproc updates for v6.17 2025-08-01 15:02:25 -07:00
rtc Merge branches 'ib-mfd-char-crypto-6.18', 'ib-mfd-gpio-6.18', 'ib-mfd-gpio-hwmon-i2c-can-rtc-watchdog-6.18', 'ib-mfd-gpio-input-pinctrl-pwm-6.18', 'ib-mfd-input-6.18', 'ib-mfd-input-rtc-6.18' and 'ib-mfd-power-regulator-6.18' into ibs-for-mfd-merged 2025-10-01 10:27:35 +01:00
s390 Networking changes for 6.18. 2025-10-02 15:17:01 -07:00
sbus Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
scsi for-6.18/block-20250929 2025-10-02 10:16:56 -07:00
sh sh: Switch to irq_domain_create_*() 2025-05-16 21:06:11 +02:00
siox Driver core changes for 6.11-rc1 2024-07-25 10:42:22 -07:00
slimbus slimbus: messaging: Free transaction ID in delayed interrupt scenario 2025-02-20 15:19:51 +01:00
soc sound updates for 6.18-rc1 2025-10-02 11:37:19 -07:00
soundwire soundwire: bus: add sdw_slave_get_current_bank helper 2025-09-18 22:24:27 +01:00
spi soc: driver updates for 6.18 2025-10-01 17:32:51 -07:00
spmi irqdomain: spmi: Switch to irq_domain_create_tree() 2025-05-21 14:53:17 +02:00
ssb treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
staging Networking changes for 6.18. 2025-10-02 15:17:01 -07:00
target block: add a bio_init_inline helper 2025-09-09 07:31:59 -06:00
tc TC: Fix the wrong format specifier 2024-11-12 15:48:08 +01:00
tee soc: driver updates for 6.18 2025-10-01 17:32:51 -07:00
thermal - Add missing file when importing conflicting change for the Renesas 2025-09-28 12:01:58 +02:00
thunderbolt thunderbolt: Fix copy+paste error in match_service_id() 2025-07-21 16:33:43 +02:00
tty soc: driver updates for 6.18 2025-10-01 17:32:51 -07:00
ufs scsi: ufs: mcq: Fix memory allocation checks for SQE and CQE 2025-09-09 22:38:38 -04:00
uio Char/Misc/IIO pull request for 6.16-rc1 2025-06-06 11:50:47 -07:00
usb [GIT PULL for v6.18] media updates 2025-10-02 13:13:26 -07:00
vdpa vdpa: Fix IDR memory leak in VDUSE module exit 2025-08-01 09:11:08 -04:00
vfio VFIO updates for v6.17-rc1 v2 2025-08-07 07:32:50 +03:00
vhost vhost: vringh: Fix copy_to_iter return value check 2025-09-26 17:31:35 -07:00
video drm next for 6.18-rc1 2025-10-02 12:47:25 -07:00
virt arm64 updates for 6.18 2025-09-29 18:48:39 -07:00
virtio virtio_input: Improve freeze handling 2025-08-26 03:38:19 -04:00
w1 sysfs: treewide: switch back to attribute_group::bin_attrs 2025-06-17 10:44:15 +02:00
watchdog watchdog: Add Nuvoton NCT6694 WDT support 2025-09-16 14:41:57 +01:00
xen xen: take system_transition_mutex on suspend 2025-09-22 10:16:55 +02:00
zorro zorro: Remove extra whitespace in macro definitions 2025-09-15 14:30:17 +02:00
Kconfig drm for 6.17-rc1 2025-07-30 19:26:49 -07:00
Makefile dibs: Create drivers/dibs 2025-09-23 11:13:21 +02:00