linux-stable/samples
Ivanov Mikhail c29a9b84cd samples/landlock: Fix incorrect free in populate_ruleset_net
[ Upstream commit 42212936d9 ]

Pointer env_port_name changes after strsep(). Memory allocated via
strdup() will not be freed if landlock_add_rule() returns non-zero value.

Fixes: 5e990dcef1 ("samples/landlock: Support TCP restrictions")
Signed-off-by: Ivanov Mikhail <ivanov.mikhail1@huawei-partners.com>
Reviewed-by: Konstantin Meskhidze <konstantin.meskhidze@huawei.com>
Link: https://lore.kernel.org/r/20240326095625.3576164-1-ivanov.mikhail1@huawei-partners.com
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-05-30 09:45:01 +02:00
..
acrn
auxdisplay
binderfs
bpf bpf-next-for-netdev 2024-03-02 20:50:59 -08:00
cgroup samples/cgroup: add .gitignore file for generated samples 2024-01-24 11:52:40 -08:00
configfs
connector
coresight
fanotify
fprobe
ftrace RISC-V Patches for the 6.8 Merge Window, Part 4 2024-01-20 11:06:04 -08:00
hid
hidraw .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
hw_breakpoint
kdb
kfifo
kmemleak
kobject
kprobes samples: kprobes: Fixes a typo 2023-10-10 01:00:50 +09:00
landlock samples/landlock: Fix incorrect free in populate_ruleset_net 2024-05-30 09:45:01 +02:00
livepatch
mei
nitro_enclaves
pfsm samples: Add userspace example for TI TPS6594 PFSM 2023-06-15 13:41:53 +02:00
pidfd .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
pktgen
qmi
rpmsg
rust
seccomp samples: user-trap: fix strict-aliasing warning 2024-02-12 10:42:02 -08:00
timers
trace_events tracing: Remove second parameter to __assign_rel_str() 2024-03-18 10:33:05 -04:00
trace_printk
uhid
user_events
v4l media updates for v6.8-rc1 2024-01-12 14:29:48 -08:00
vfio-mdev vfio/mbochs: make mbochs_class constant 2024-03-05 15:15:27 -07:00
vfs
watch_queue
watchdog
Kconfig
Makefile