The Samba-Bugzilla – Attachment 8445 Details for
Bug 9571
Unlink after open causes smbd to panic
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
s3:smbd: fix wrong lock order in posix unlink
0001-s3-smbd-fix-wrong-lock-order-in-posix-unlink.patch (text/plain), 1.12 KB, created by
Pavel Shilovsky
on 2013-01-18 07:13:41 UTC
(
hide
)
Description:
s3:smbd: fix wrong lock order in posix unlink
Filename:
MIME Type:
Creator:
Pavel Shilovsky
Created:
2013-01-18 07:13:41 UTC
Size:
1.12 KB
patch
obsolete
>From b358d3d7fef37c7c86c0a501ab6c0ff4b8b7b1c5 Mon Sep 17 00:00:00 2001 >From: Pavel Shilovsky <piastry@etersoft.ru> >Date: Wed, 16 Jan 2013 15:02:26 +0400 >Subject: [PATCH] s3:smbd: fix wrong lock order in posix unlink > >Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> >--- > source3/smbd/trans2.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c >index 9b15698..893c6b2 100644 >--- a/source3/smbd/trans2.c >+++ b/source3/smbd/trans2.c >@@ -7662,12 +7662,14 @@ static NTSTATUS smb_posix_unlink(connection_struct *conn, > continue; > } > /* Fail with sharing violation. */ >- close_file(req, fsp, NORMAL_CLOSE); > TALLOC_FREE(lck); >+ close_file(req, fsp, NORMAL_CLOSE); > return NT_STATUS_SHARING_VIOLATION; > } > } > >+ TALLOC_FREE(lck); >+ > /* > * Set the delete on close. > */ >@@ -7679,10 +7681,8 @@ static NTSTATUS smb_posix_unlink(connection_struct *conn, > > if (!NT_STATUS_IS_OK(status)) { > close_file(req, fsp, NORMAL_CLOSE); >- TALLOC_FREE(lck); > return status; > } >- TALLOC_FREE(lck); > return close_file(req, fsp, NORMAL_CLOSE); > } > >-- >1.8.1.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 9571
:
8444
|
8445
|
8480
|
8481