Prevent changing interface loopback flag from userland.
authorbluhm <bluhm@openbsd.org>
Thu, 11 Apr 2024 15:08:18 +0000 (15:08 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 11 Apr 2024 15:08:18 +0000 (15:08 +0000)
commit4733ced31b52279ffbbb7a95a03079ab09f79d05
tree8576420e7fcd3899d2951c63d07c1675dc0b366c
parent1baa51d9481f74d21e434002fb195a48a7fc3443
Prevent changing interface loopback flag from userland.

IFF_LOOPBACK is telling userland the behaviour of a specific driver,
it is supposed to be static and permanent.  Clearing the loopback
flag on lo0 could lead to a kernel crash due to inconsistent multicast
igmp group.

Reported-by: syzbot+2f24ed6c8ddb2d6bb22c@syzkaller.appspotmail.com
OK claudio@ deraadt@
sys/net/if.h