]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge branch 'net-sched-initialize-struct-tc_ife-to-fix-kernel-infoleak'
authorPaolo Abeni <pabeni@redhat.com>
Tue, 11 Nov 2025 14:00:10 +0000 (15:00 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 11 Nov 2025 14:00:11 +0000 (15:00 +0100)
Ranganath says:

====================
net: sched: initialize struct tc_ife to fix kernel-infoleak

This series addresses the uninitialization of the struct which has
2 bytes of padding. And copying this uninitialized data to userspace
can leak info from kernel memory.

This series ensures all members and padding are cleared prior to
begin copied.

This change silences the KMSAN report and prevents potential information
leaks from the kernel memory.

v3: https://lore.kernel.org/lkml/20251106195635.2438-1-vnranganath.20@gmail.com/#t
v2: https://lore.kernel.org/r/20251101-infoleak-v2-0-01a501d41c09@gmail.com
v1: https://lore.kernel.org/r/20251031-infoleak-v1-1-9f7250ee33aa@gmail.com

Signed-off-by: Ranganath V N <vnranganath.20@gmail.com>
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
====================

Link: https://patch.msgid.link/20251109091336.9277-1-vnranganath.20@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Trivial merge