Gleb Smirnoff 1e80e4f26c Remove epoch assertion from if_setlladdr(). Originally this function was
protected by IF_ADDR_LOCK(), which was a mutex, so that two simultaneous
if_setlladdr() can't execute. Later it was switched to IF_ADDR_RLOCK(),
likely by a mistake. Later it was switched to NET_EPOCH_ENTER(). Then I
incorrectly added NET_EPOCH_ASSERT() here.

In reality ifp->if_addr never goes away and never changes its length. So,
doing bcopy() in it is always "safe", meaning it won't dereference a wrong
pointer or write into someone's else memory. Of course doing two bcopy() in
parallel would result in a mess of two addresses, but net epoch doesn't
protect against that, neither IF_ADDR_RLOCK() did.

So for now, just remove the assertion and leave for later a proper fix.

Reported by:	markj
2019-10-08 17:55:45 +00:00
..
2018-05-31 09:11:21 +00:00
2019-07-14 03:49:48 +00:00
2019-03-09 01:12:59 +00:00
2019-10-07 22:40:05 +00:00
2019-10-07 22:40:05 +00:00
2019-10-07 22:40:05 +00:00
2019-10-07 22:40:05 +00:00
2019-07-25 22:23:34 +00:00
2019-07-25 22:23:34 +00:00
2019-10-07 22:40:05 +00:00
2019-10-07 22:40:05 +00:00
2019-07-24 16:10:20 +00:00
2019-09-17 18:49:13 +00:00
2019-09-30 15:59:07 +00:00
2019-09-30 15:59:07 +00:00
2019-05-09 11:34:46 +00:00
2019-10-07 22:40:05 +00:00
2019-03-15 11:08:44 +00:00
2018-06-16 19:21:09 +00:00
2019-10-07 22:40:05 +00:00
2019-10-07 22:40:05 +00:00
2019-10-08 11:06:24 +00:00