Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/netinet



Module Name:    src
Committed By:   ozaki-r
Date:           Thu Jul 17 06:48:39 UTC 2025

Modified Files:
        src/sys/netinet: ip_output.c

Log Message:
in: avoid racy ifa_acquire(rt->rt_ifa) in ip_output()

If a rtentry is being destroyed asynchronously, ifa referenced by rt_ifa
can be destructed and taking ifa_acquire(rt->rt_ifa) aborts with a
KASSERT failure.  Fortunately, the ifa is not actually freed because of
a reference by rt_ifa, it can be available (except some functions like
psref) so as long the rtentry is held.

PR kern/59527


To generate a diff of this commit:
cvs rdiff -u -r1.329 -r1.330 src/sys/netinet/ip_output.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index