Home
last modified time | relevance | path

Searched hist:"69527 b11bb5e1bb234a29eed864896cb1a13d652" (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/netsmb/
H A Dsmb_iod.cdiff 69527b11bb5e1bb234a29eed864896cb1a13d652 Thu Nov 19 00:04:01 CET 2015 Rick Macklem <rmacklem@FreeBSD.org> The problem report was for a crash that happened when smbfs was
trying to do a mount. Given the backtrace,
it appears that the crash occurred when smb_vc_create() failed and then
called smb_vc_put() with vcp->vc_iod == NULL. smb_vc_put() subsequently
called smb_vc_disconnect() with vcp->vc_iod == NULL, causing the crash.
This patch adds a check for vcp->vc_iod != NULL in smb_vc_disconnect() to
avoid the crash. It also fixes the case in smb_vc_create() where
kproc_create() fails so that it destroys the mutexes and sets
vcp->vc_iod == NULL before free()'ing the iod structure.
The person who reported the PR tested the patch, but was not able
to reproduce the crash with or without the patch.

PR: 201912
Reviewed by: jhb
MFC after: 2 weeks
H A Dsmb_conn.cdiff 69527b11bb5e1bb234a29eed864896cb1a13d652 Thu Nov 19 00:04:01 CET 2015 Rick Macklem <rmacklem@FreeBSD.org> The problem report was for a crash that happened when smbfs was
trying to do a mount. Given the backtrace,
it appears that the crash occurred when smb_vc_create() failed and then
called smb_vc_put() with vcp->vc_iod == NULL. smb_vc_put() subsequently
called smb_vc_disconnect() with vcp->vc_iod == NULL, causing the crash.
This patch adds a check for vcp->vc_iod != NULL in smb_vc_disconnect() to
avoid the crash. It also fixes the case in smb_vc_create() where
kproc_create() fails so that it destroys the mutexes and sets
vcp->vc_iod == NULL before free()'ing the iod structure.
The person who reported the PR tested the patch, but was not able
to reproduce the crash with or without the patch.

PR: 201912
Reviewed by: jhb
MFC after: 2 weeks