WSL2-Linux-Kernel/include/trace/events
Azeem Shaikh 2933d3cd07 tracing: Replace strlcpy with strscpy in trace/events/task.h
strlcpy() reads the entire source buffer first.
This read may exceed the destination size limit.
This is both inefficient and can lead to linear read
overflows if a source string is not NUL-terminated [1].
In an effort to remove strlcpy() completely [2], replace
strlcpy() here with strscpy().

No return values were used, so direct replacement is safe.

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strlcpy
[2] https://github.com/KSPP/linux/issues/89

Link: https://lore.kernel.org/linux-trace-kernel/20230831194212.1529941-1-azeemshaikh38@gmail.com

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Azeem Shaikh <azeemshaikh38@gmail.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2023-09-01 21:00:00 -04:00
..
9p.h
afs.h
alarmtimer.h
asoc.h
avc.h
bcache.h
block.h
bpf_test_run.h
bridge.h
btrfs.h
cachefiles.h
cgroup.h
clk.h
cma.h
compaction.h
context_tracking.h
cpuhp.h
csd.h
damon.h
devfreq.h
devlink.h
dlm.h
dma_fence.h
erofs.h
error_report.h
ext4.h
f2fs.h
fib.h
fib6.h
filelock.h
filemap.h
fs_dax.h
fscache.h
fsi.h
fsi_master_aspeed.h
fsi_master_ast_cf.h
fsi_master_gpio.h
fsi_master_i2cr.h
gpio.h
gpu_mem.h
habanalabs.h
handshake.h
host1x.h
huge_memory.h
hwmon.h
i2c.h
i2c_slave.h
ib_mad.h
ib_umad.h
initcall.h
intel-sst.h
intel_ifs.h
intel_ish.h
io_uring.h
iocost.h
iommu.h
ipi.h
irq.h
irq_matrix.h
iscsi.h
jbd2.h
kmem.h
ksm.h
kvm.h
kyber.h
libata.h
lock.h
maple_tree.h
mce.h
mctp.h
mdio.h
migrate.h
mlxsw.h
mmap.h
mmap_lock.h
mmc.h
mmflags.h
module.h
mptcp.h
napi.h
nbd.h
neigh.h
net.h
net_probe_common.h
netfs.h
netlink.h
nilfs2.h
nmi.h
notifier.h
objagg.h
oom.h
osnoise.h
page_isolation.h
page_pool.h
page_ref.h
pagemap.h
percpu.h
power.h
power_cpu_migrate.h
preemptirq.h
printk.h
pwc.h
pwm.h
qdisc.h
qla.h
qrtr.h
rcu.h
rdma_core.h
regulator.h
rpcgss.h
rpcrdma.h
rpm.h
rseq.h
rtc.h
rv.h
rwmmio.h
rxrpc.h
sched.h
scmi.h
scsi.h
sctp.h
signal.h
siox.h
skb.h
smbus.h
sock.h
sof.h
sof_intel.h
spi.h
spmi.h
sunrpc.h
sunvnet.h
swiotlb.h
syscalls.h
target.h
task.h tracing: Replace strlcpy with strscpy in trace/events/task.h 2023-09-01 21:00:00 -04:00
tcp.h
tegra_apb_dma.h
thermal_pressure.h
thp.h
timer.h
tlb.h
udp.h
ufs.h
v4l2.h
vb2.h
vmalloc.h
vmscan.h
vsock_virtio_transport_common.h
watchdog.h
wbt.h
workqueue.h
writeback.h
xdp.h
xen.h