It is unclear why in6_pcblookup_local() would require write access
to the PCB hash. The function doesn't modify the hash. It always asserted write lock historically, but with epoch conversion this fails in some special cases. Reviewed by: rwatson, bz Reported-by: syzbot+0b0488ca537e20cb2429@syzkaller.appspotmail.com
This commit is contained in:
parent
1989b56245
commit
2d2333004c
@ -714,7 +714,7 @@ in6_pcblookup_local(struct inpcbinfo *pcbinfo, struct in6_addr *laddr,
|
||||
KASSERT((lookupflags & ~(INPLOOKUP_WILDCARD)) == 0,
|
||||
("%s: invalid lookup flags %d", __func__, lookupflags));
|
||||
|
||||
INP_HASH_WLOCK_ASSERT(pcbinfo);
|
||||
INP_HASH_LOCK_ASSERT(pcbinfo);
|
||||
|
||||
if ((lookupflags & INPLOOKUP_WILDCARD) == 0) {
|
||||
struct inpcbhead *head;
|
||||
|
Loading…
x
Reference in New Issue
Block a user