Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/kern
Module Name: src
Committed By: maxv
Date: Mon Apr 8 18:38:45 UTC 2019
Modified Files:
src/sys/kern: uipc_socket.c
Log Message:
Reset so_cred to NULL after freeing it, because close() may leave the PCB
in pcblist, and we don't want a future lookup (via eg netstat) to read
freed data.
Detected by KASAN, reported by Alexander Nasonov.
To generate a diff of this commit:
cvs rdiff -u -r1.272 -r1.273 src/sys/kern/uipc_socket.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index