diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2022-02-25 23:51:05 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2022-02-25 23:51:05 +0000 |
commit | 35d935e7af10bc634f79c37722158ba200732393 (patch) | |
tree | 204598a1369d152503cd594dbe6d3ad5b7dd1630 /sys/netinet/tcp_var.h | |
parent | 4f8344a22bf26c93d3595f04fc892a8bb47e268a (diff) |
Reported-by: syzbot+1b5b209ce506db4d411d@syzkaller.appspotmail.com
Revert the pr_usrreqs move: syzkaller found a NULL pointer deref
and I won't be available to monitor for followup issues for a bit
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r-- | sys/netinet/tcp_var.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index 927ad2b3fcf..7d8f615d4d2 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_var.h,v 1.138 2022/02/25 08:36:01 guenther Exp $ */ +/* $OpenBSD: tcp_var.h,v 1.139 2022/02/25 23:51:03 guenther Exp $ */ /* $NetBSD: tcp_var.h,v 1.17 1996/02/13 23:44:24 christos Exp $ */ /* @@ -703,6 +703,8 @@ struct tcpcb * int tcp_sysctl(int *, u_int, void *, size_t *, void *, size_t); int tcp_usrreq(struct socket *, int, struct mbuf *, struct mbuf *, struct mbuf *, struct proc *); +int tcp_attach(struct socket *, int); +int tcp_detach(struct socket *); void tcp_xmit_timer(struct tcpcb *, int); void tcpdropoldhalfopen(struct tcpcb *, u_int16_t); void tcp_sack_option(struct tcpcb *,struct tcphdr *,u_char *,int); @@ -736,10 +738,5 @@ tcp_trace(short act, short ostate, struct tcpcb *tp, struct tcpcb *otp, } #endif -extern const struct pr_usrreqs tcp_usrreqs; -#ifdef INET6 -extern const struct pr_usrreqs tcp6_usrreqs; -#endif - #endif /* _KERNEL */ #endif /* _NETINET_TCP_VAR_H_ */ |