syzbot
panic: free: non-malloced addr ADDR type ip_moptions
Status:
upstream: reported on 2026/07/14 01:18
Reported-by: syzbot+eefbaca0eb56be2757c2@syzkaller.appspotmail.com
First crash: 37d, last: 37d
Sample crash report:
login: panic: free: non-malloced addr 0x6a558e3c type ip_moptions
Stopped at db_enter+0x25: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834337b8) at panic+0x1cf sys/kern/subr_prf.c:198
free(6a558e3c,35,0) at free+0x6b7 sys/kern/kern_malloc.c:426
ip_freemoptions(ffff800000c57b00) at ip_freemoptions+0xea sys/netinet/ip_output.c:1744
in_pcbdetach(fffffa806fbdbce8) at in_pcbdetach+0xec sys/netinet/in_pcb.c:605
tcp_close(ffff8000015bb700) at tcp_close+0x194 tcpstat_inc sys/netinet/tcp_var.h:-1 [inline]
tcp_close(ffff8000015bb700) at tcp_close+0x194 sys/netinet/tcp_subr.c:530
tcp_detach(ffff8000016413b0) at tcp_detach+0x8f sys/netinet/tcp_usrreq.c:-1
soclose(ffff8000016413b0,0) at soclose+0xad pru_detach sys/sys/protosw.h:281 [inline]
soclose(ffff8000016413b0,0) at soclose+0xad sys/kern/uipc_socket.c:403
soo_close(fffffa8070e234b0,ffff80003c8e2a80) at soo_close+0x56 sys/kern/sys_socket.c:-1
fdrop(fffffa8070e234b0,ffff80003c8e2a80) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffffa8070e234b0,ffff80003c8e2a80) at closef+0x190 sys/kern/kern_descrip.c:1265
fdfree(ffff80003c8e2a80) at fdfree+0x115 sys/kern/kern_descrip.c:1196
exit1(ffff80003c8e2a80,0,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80003c8e2a80,ffff8000348c3080,ffff8000348c2fd0) at sys_exit+0x1a sys/kern/kern_exit.c:-1
end trace frame: 0xffff8000348c3070, count: 0
https://www.openbsd.org/ddb.html describes the minimum info required in bug
reports. Insufficient info makes it difficult to find and fix bugs.
ddb>
ddb>
* Struck through repros no longer work on HEAD.