Skip to content

Commit

Permalink
Fix the cleanup handling in a error path for TCP BBR.
Browse files Browse the repository at this point in the history
Reported by:		syzbot+df7899c55c4cc52f5447@syzkaller.appspotmail.com
Reviewed by:		rscheff
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D25486
  • Loading branch information
tuexen committed Jul 1, 2020
1 parent e4fc3b6 commit e54b7cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/netinet/tcp_stacks/bbr.c
Original file line number Diff line number Diff line change
Expand Up @@ -13381,6 +13381,8 @@ bbr_output_wtime(struct tcpcb *tp, const struct timeval *tv)
*/
BBR_STAT_INC(bbr_offset_drop);
tcp_set_inp_to_drop(inp, EFAULT);
SOCKBUF_UNLOCK(sb);
(void)m_free(m);
return (0);
}
len = rsm->r_end - rsm->r_start;
Expand Down

0 comments on commit e54b7cd

Please sign in to comment.