[Bug 279653] Page fault in in6_selecthlim

[email protected]
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279653

Zhenlei Huang <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Zhenlei Huang <[email protected]> ---
(In reply to Daniel Ponte from comment #0)
The stack trace is weird. The caller `sys/netinet/tcp_output.c`
```
1444                 ip6->ip6_hlim = in6_selecthlim(inp, NULL);
```

The callee, `sys/netinet6/in6_src.c`:

```
843 int
844 in6_selecthlim(struct inpcb *inp, struct ifnet *ifp)
845 {
846 
847         if (inp && inp->in6p_hops >= 0)
848                 return (inp->in6p_hops);
849         else if (ifp)
850                 return (ND_IFINFO(ifp)->chlim);
851         else if (inp && !IN6_IS_ADDR_UNSPECIFIED(&inp->in6p_faddr)) {
..
    }
```

The line 850 of should never hit as `ifp` is NULL, the backtrace also shows
that clearly.

That is quite odd ... Is it possible that kgdb report the wrong line number ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.