git: 79aa96f9ca4d - main - infiniband: Bring back M_ASSERTVALID() check in infiband_bpf_mtap()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Mar 2023 15:49:14 UTC
The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=79aa96f9ca4d57eb1b50337967704234a0ee1522 commit 79aa96f9ca4d57eb1b50337967704234a0ee1522 Author: Justin Hibbits <jhibbits@FreeBSD.org> AuthorDate: 2023-03-15 19:40:24 +0000 Commit: Justin Hibbits <jhibbits@FreeBSD.org> CommitDate: 2023-03-24 15:04:42 +0000 infiniband: Bring back M_ASSERTVALID() check in infiband_bpf_mtap() Reported by: rpokala Fixes: adf62e83631 --- sys/net/if_infiniband.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/if_infiniband.c b/sys/net/if_infiniband.c index 6764373b3d1a..6ca90ba1d8c7 100644 --- a/sys/net/if_infiniband.c +++ b/sys/net/if_infiniband.c @@ -131,6 +131,7 @@ infiniband_bpf_mtap(struct ifnet *ifp, struct mbuf *mb) if (!bpf_peers_present(ifp->if_bpf)) return; + M_ASSERTVALID(mb); if (mb->m_len < sizeof(*ibh)) return;