+8
−3
Loading
Syzbot reported a KMSAN uninit-value warning in gso_features_check() called from netif_skb_features() [1]. gso_features_check() reads iph->frag_off to decide whether to clear mangleid_features. Accessing the IPv4 header via ip_hdr()/inner_ip_hdr() can rely on skb header offsets that are not always safe for direct dereference on packets injected from PF_PACKET paths. Use skb_header_pointer() for the TCPv4 frag_off check so the header read is robust whether data is already linear or needs copying. [1] https://syzkaller.appspot.com/bug?extid=1543a7d954d9c6d00407 Link: https://lore.kernel.org/netdev/willemdebruijn.kernel.1a9f35039caab@gmail.com/ Fixes: cbc53e08 ("GSO: Add GSO type for fixed IPv4 ID") Reported-by:<syzbot+1543a7d954d9c6d00407@syzkaller.appspotmail.com> Closes: https://syzkaller.appspot.com/bug?extid=1543a7d954d9c6d00407 Tested-by:
<syzbot+1543a7d954d9c6d00407@syzkaller.appspotmail.com> Signed-off-by:
Guoyu Su <yss2813483011xxl@gmail.com> Reviewed-by:
Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20260327153507.39742-1-yss2813483011xxl@gmail.com Signed-off-by:
Jakub Kicinski <kuba@kernel.org>