1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/smbd
Ralph Boehme 19b938e1fa s3/smbd: fix exclusive lease optimisation
We need to expect any amount of "stat" opens on the file without
triggering an assert.

This is the correct fix for bug #11844. I guess we haven't seens this
very often before bug #12766 got fixed, because most clients were using
LEASES instead of OPLOCKS.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12798

See also:
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11844
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12766

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2017-05-28 14:50:18 +02:00
..
notifyd notify: Fix ordering of events in notifyd 2017-04-26 17:02:58 +02:00
aio.c s3: smbd: Use common function setup_readX_header() in aio read code. 2016-06-18 15:32:18 +02:00
avahi_register.c
blocking.c dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
close.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
conn_idle.c
conn_msg.c
conn.c
connection.c
dfree.c smbd: get a valid file stat to disk_quotas 2016-08-13 01:53:15 +02:00
dir.c CVE-2017-2619: s3: smbd: Correctly fallback to open_dir_safely if FDOPENDIR not supported on system. 2017-03-23 19:10:19 +01:00
dmapi.c Convert all uses of uint8/16/32 to _t in source3/smbd. 2015-05-06 04:14:14 +02:00
dnsregister.c
dosmode.c s3/smbd: fix the last resort check that sets the file type attribute 2016-11-19 11:55:35 +01:00
durable.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
error.c Convert all uses of uint8/16/32 to _t in source3/smbd. 2015-05-06 04:14:14 +02:00
fake_file.c Convert three include files from uint32/16/8 to _t types as well as the source that includes them. 2015-05-01 19:15:10 +02:00
file_access.c s3: Filenames: Add uint32_t flags parameter to synthetic_smb_fname(). 2016-03-24 22:57:16 +01:00
fileio.c smbd: Fix line length & whitespace in write_file 2016-02-23 22:03:16 +01:00
filename.c s3: smbd: Correctly identify a snapshot path using UCF_GMT_PATHNAME. 2017-05-22 22:49:17 +02:00
files.c s3: locking: Move two leases functions into a new file. 2017-03-15 16:14:08 +01:00
globals.c printing: use housekeeping period that matches cache time 2016-04-19 09:37:14 +02:00
globals.h s3/smbd: enable processing SMB2 requests async internally 2017-04-18 22:54:16 +02:00
ipc.c Convert all uses of uint8/16/32 to _t in source3/smbd. 2015-05-06 04:14:14 +02:00
lanman.c rpc: Always supply both the remote and local address to the auth subsystem 2017-03-29 02:37:27 +02:00
mangle_hash2.c
mangle_hash.c smbd: Convert valid.dat to C code 2015-03-24 00:00:20 +01:00
mangle.c s3/smbd: convert "mangled names" option to an enum 2017-01-09 19:31:20 +01:00
message.c Update smbrun to allow for settings environment variables. 2016-10-13 04:26:26 +02:00
msdfs.c s3: smbd: Remove bool dfs_pathnames paramter from resolve_dfspath_wcard(). 2017-05-22 18:41:15 +02:00
negprot.c auth: Always supply both the remote and local address to the auth subsystem 2017-03-29 02:37:26 +02:00
notify_fam.c smbd: Allow passing notify filter from inotify and fam 2016-07-18 15:14:11 +02:00
notify_inotify.c s3: smbd: inotify_map_mask_to_filter incorrectly indexes an array. 2017-04-28 03:18:23 +02:00
notify_msg.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
notify.c smbd: Re-register notify requests 2016-07-20 05:21:07 +02:00
ntquotas.c Correct "allready" typos. 2017-02-22 08:26:24 +01:00
nttrans.c s3: smbd: We can now remove the 'bool dfs_path' parameter from filename_convert(). 2017-05-22 18:41:16 +02:00
open.c s3: smbd: We can now remove the 'bool dfs_path' parameter from filename_convert(). 2017-05-22 18:41:16 +02:00
oplock_irix.c
oplock_linux.c
oplock.c s3/smbd: fix exclusive lease optimisation 2017-05-28 14:50:18 +02:00
password.c
perfcount.c
pipes.c rpc_server: Re-order and rename remote and local address in np_open() 2017-03-29 02:37:29 +02:00
posix_acls.c posix_acls: Use talloc_zero_array 2017-03-01 20:33:18 +01:00
process.c s3: server: s3_tevent_context_init() -> samba_tevent_context_init() 2016-09-24 19:52:08 +02:00
proto.h s3: smbd: We can now remove the 'bool dfs_path' parameter from filename_convert(). 2017-05-22 18:41:16 +02:00
pysmbd.c s3: Filenames: Add uint32_t flags parameter to synthetic_smb_fname(). 2016-03-24 22:57:16 +01:00
quotas.c smbd: use owner uid for free disk calculation if owner is inherited 2016-08-13 01:53:15 +02:00
reply.c s3: smbd: We can now remove the 'bool dfs_path' parameter from filename_convert(). 2017-05-22 18:41:16 +02:00
scavenger.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
scavenger.h
seal.c auth: Always supply both the remote and local address to the auth subsystem 2017-03-29 02:37:26 +02:00
sec_ctx.c s3:smbd: Fix incorrect use of sys_getgroups() 2017-04-18 15:43:02 +02:00
server_exit.c Revert "s3: smbd: Tear down global_smbXsrv_client in the correct order." 2015-12-07 21:09:04 +01:00
server_reload.c s3:smbd: use lp_load_with_shares() in reload_services(). 2015-04-22 13:57:29 +02:00
server.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
service.c s3: smbd: Make set_conn_connectpath() call canonicalize_absolute_path(). 2017-01-30 18:39:18 +01:00
session.c
sesssetup.c source3 smdb: fix null pointer dereference 2017-04-28 07:18:54 +02:00
share_access.c smbd: remove redundant comment (with typo) from token_contains_name() 2016-08-04 18:26:07 +02:00
signing.c
smb2_break.c smbXsrv: rename smb2srv_session_lookup -> smb2srv_session_lookup_conn 2015-07-29 18:26:07 +02:00
smb2_close.c smbd:smb2_close: remove an irritating blank line 2016-01-22 01:55:09 +01:00
smb2_create.c s3: smbd: Add UCF_GMT_PATHNAME, which represents FLAGS2_REPARSE_PATH. 2017-05-22 18:41:16 +02:00
smb2_flush.c s3/vfs: wrap async io function args inside struct vfs_aio_state 2016-03-02 01:22:13 +01:00
smb2_getinfo.c s3:smbd: mask security_information input values with SMB_SUPPORTED_SECINFO_FLAGS 2014-08-22 00:28:08 +02:00
smb2_glue.c smbd: allow reading files based on FILE_EXECUTE access right 2016-08-18 18:58:22 +02:00
smb2_ioctl_dfs.c s3/smbd: allow GET_DFS_REFERRAL fsctl on any smb2 connexion 2017-02-25 02:38:28 +01:00
smb2_ioctl_filesys.c smbd/smb2_ioctl: check for NULL dst_fsp before use 2017-05-17 01:46:52 +02:00
smb2_ioctl_named_pipe.c
smb2_ioctl_network_fs.c vfs: add parameter to copy chunk VFS function to handle dup_extents 2017-05-10 08:22:18 +02:00
smb2_ioctl_private.h
smb2_ioctl.c
smb2_keepalive.c
smb2_lock.c smbd: Fix CID 1273096 Dereference before null check 2015-06-23 22:12:09 +02:00
smb2_negprot.c s3/smbd: ensure global "smb encrypt = off" is effective for SMB 3.1.1 clients 2017-01-27 22:00:17 +01:00
smb2_notify.c s3:smb2_server: use async smbprofile macros 2014-11-19 20:51:37 +01:00
smb2_query_directory.c s3: smbd: We can now remove the 'bool dfs_path' parameter from filename_convert(). 2017-05-22 18:41:16 +02:00
smb2_read.c s3/smb2_read: Better fallback for incorrectly configured sendfile setups 2017-01-11 00:49:22 +01:00
smb2_server.c s3/smbd: enable processing SMB2 requests async internally 2017-04-18 22:54:16 +02:00
smb2_sesssetup.c auth: Log the transport connection for the authorization 2017-03-29 02:37:27 +02:00
smb2_setinfo.c smbd: Convert locking.tdb to new dbwrap_watch 2016-07-15 16:56:13 +02:00
smb2_tcon.c s3/smbd: ensure global "smb encrypt = off" is effective for share with "smb encrypt = desired" 2017-01-27 22:00:17 +01:00
smb2_write.c s3:smb2_write: add simplified support for SMB2_WRITEFLAG_WRITE_UNBUFFERED 2015-05-08 13:00:28 +02:00
smbd_cleanupd.c s3/smbd: remove a misleading error message 2016-09-16 16:43:16 +02:00
smbd_cleanupd.h smbd: Implement a cleanup daemon 2015-11-16 14:51:33 +01:00
smbd.h s3: smbd: Add UCF_GMT_PATHNAME, which represents FLAGS2_REPARSE_PATH. 2017-05-22 18:41:16 +02:00
smbXsrv_client.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
smbXsrv_open.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
smbXsrv_session.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
smbXsrv_tcon.c lib: Add lib/util/server_id.h 2017-01-22 18:30:11 +01:00
smbXsrv_version.c smbXsrv: don't leak lock_path onto talloc tos 2014-11-03 23:46:05 +01:00
srvstr.c Convert all uses of uint8/16/32 to _t in source3/smbd. 2015-05-06 04:14:14 +02:00
statcache.c lib: Move "message_send_all" to serverid.c 2016-07-28 05:00:19 +02:00
statvfs.c s3/statvfs: expose FILE_SUPPORTS_SPARSE_FILES capability 2015-03-09 21:27:07 +01:00
trans2.c s3: smbd: Fix up the ucf_flags correctly in smb_file_rename_information(). 2017-05-22 18:41:16 +02:00
uid.c
utmp.c
vfs.c vfs: add parameter to copy chunk VFS function to handle dup_extents 2017-05-10 08:22:18 +02:00