FTR, this is reproducible by running the following syzkaller program:
mmap(&(0x7f0000000000/0xfbb000)=nil, (0xfbb000), 0x3, 0x32,
0xffffffffffffffff, 0x0)
r0 = socket(0x0, 0x0, 0x0)
r1 = socket(0xa, 0x1, 0x0)
setsockopt$NETROM_N2(r1, 0x103, 0x3, &(0x7f000072a000)=0x7, 0x4)
r2 = bpf$PROG_LOAD(0x5, &(0x7f0000b50000-0x30)={0x1, 0x2,
&(0x7f0000b4f000)=[@generic={0xffffffffffffffb7, 0x0, 0x0, 0x0},
@generic={0x9595, 0x0, 0x0, 0x0}], &(0x7f000015a000)="008b", 0x9,
0x80, &(0x7f0000b4f000)="0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
0x0}, 0x30)
pread64(r1, &(0x7f0000fb8000)="", 0x0, 0x38)
mmap(&(0x7f0000fbb000/0x1000)=nil, (0x1000), 0x3, 0x32, 0xffffffffffffffff, 0x0)
setsockopt$SCTP_AUTO_ASCONF(r1, 0x84, 0x1e, &(0x7f0000fbc000-0x4)=0x7, 0x4)
r3 = dup3(r0, r1, 0x0)
ioctl$UFFDIO_API(r2, 0xc018aa3f, &(0x7f000073d000)={0xaa, 0x0, 0x0})
recvmsg$kcm(r3, &(0x7f0000fb9000)={0x0, 0x0,
&(0x7f0000fba000-0x40)=[{&(0x7f00001c0000)="", 0x0},
{&(0x7f0000fba000-0x43)="", 0x0}, {&(0x7f00009ec000)="", 0x0},
{&(0x7f0000fb9000)="", 0x0}], 0x4, &(0x7f0000fba000-0xd6)="", 0x0,
0x7}, 0x2)
bpf$PROG_LOAD(0x5, &(0x7f0000fb8000)={0x80, 0x1,
&(0x7f0000302000-0x28)=[@generic={0x0, 0xc00000, 0x0, 0x0}],
&(0x7f0000a85000)="008b", 0x0, 0x0, &(0x7f0000fb5000)="", 0x9}, 0x30)
r4 = socket$kcm(0x29, 0x5, 0x0)
write(r4, &(0x7f0000fb3000-0xe9)="", 0x0)
ioctl$SIOCSIFHWADDR(r3, 0x8924,
&(0x7f00008d8000)={"4682049c0228afcdfa4945e37a244a3a",
@data="ecefff20cec4768429383ab454036dad"})
ioctl$TUNSETPERSIST(r3, 0x400454cb, &(0x7f0000fbb000-0x4)=0x1)
mmap(&(0x7f0000fbc000/0x1000)=nil, (0x1000), 0x3, 0x32, 0xffffffffffffffff, 0x0)
mmap(&(0x7f0000fbc000/0x1000)=nil, (0x1000), 0x3, 0x32, 0xffffffffffffffff, 0x0)
getsockopt$dccp6_int(r3, 0x21, 0x1, &(0x7f0000fbc000)=0x0,
&(0x7f0000fbd000-0x4)=0x4)
ioctl$SIOCKCMATTACH(r4, 0x89e0, &(0x7f0000b5c000)={r1, r2})
ioctl$SIOCKCMUNATTACH(r4, 0x89e1, &(0x7f0000fb5000)={r1})