1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3
Andreas Schneider a89a714656 s3:smbd: Do not crash if we fail to init the session table
This should the following segfault with SMB1:

  #6  sig_fault (sig=<optimized out>) at ../lib/util/fault.c:94
  #7  <signal handler called>
  #8  smbXsrv_session_create (conn=conn@entry=0x5654d3512af0, now=now@entry=131594481900356690, _session=_session@entry=0x7ffc93a778e8)
      at ../source3/smbd/smbXsrv_session.c:1212
  #9  0x00007f7618aa21ef in reply_sesssetup_and_X (req=req@entry=0x5654d35174b0) at ../source3/smbd/sesssetup.c:961
  #10 0x00007f7618ae17b0 in switch_message (type=<optimized out>, req=req@entry=0x5654d35174b0) at ../source3/smbd/process.c:1726
  #11 0x00007f7618ae3550 in construct_reply (deferred_pcd=0x0, encrypted=false, seqnum=0, unread_bytes=0, size=140, inbuf=0x0, xconn=0x5654d35146d0)
      at ../source3/smbd/process.c:1762
  #12 process_smb (xconn=xconn@entry=0x5654d3512af0, inbuf=<optimized out>, nread=140, unread_bytes=0, seqnum=0, encrypted=<optimized out>,
      deferred_pcd=deferred_pcd@entry=0x0) at ../source3/smbd/process.c:2008
  #13 0x00007f7618ae4c41 in smbd_server_connection_read_handler (xconn=0x5654d3512af0, fd=40) at ../source3/smbd/process.c:2608
  #14 0x00007f761587eedb in epoll_event_loop_once () from /lib64/libtevent.so.0

Inspection the core shows that:
  conn->client-session_table is NULL
  conn->protocol is PROTOCOL_NONE

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2018-03-02 00:39:59 +01:00
..
auth s3:auth: Add FALL_THROUGH statements in pampass.c 2018-03-01 04:37:42 +01:00
build
client util/rfc1738_unescape(): return end pointer or NULL on error 2018-02-22 01:04:18 +01:00
exports
groupdb Correct "errror" typos. 2017-02-22 08:26:22 +01:00
include s3:smb_macros.h: add IS_AD_DC as addition to IS_DC 2018-02-23 12:47:25 +01:00
intl lib: Give util_paths.c its own header 2017-06-24 01:21:10 +02:00
lib s3:lib: Add FALL_THROUGH statements in util_sd.c 2018-03-01 04:37:42 +01:00
libads libads: Fix the build --without-ads 2018-02-06 02:47:43 +01:00
libgpo/gpext gpo: fix the building of gpext to only once 2017-11-20 21:41:14 +01:00
libnet s3:libnet: Add FALL_THROUGH statements in libnet_join.c 2018-03-01 04:37:43 +01:00
librpc smbd: remove "id" from share_mode_entry 2018-02-13 05:01:38 +01:00
libsmb libsmb: Use smb2 tcon if conn_protocol >= SMB2_02 2018-03-02 00:39:58 +01:00
locale pam_winbind: initial Turkish translation 2017-11-15 13:52:05 +01:00
locking smbd: remove "id" from share_mode_entry 2018-02-13 05:01:38 +01:00
modules s3:modules: Add FALL_THROUGH statements in getdate.c 2018-03-01 04:37:43 +01:00
nmbd libnmb: Move "read_packet" to nmbd 2018-01-24 05:48:19 +01:00
param s3/smbd: fix handling of delete-on-close on directories 2018-02-03 23:42:16 +01:00
passdb pdb: Fix CID 1427620 Resource leak 2018-01-17 19:24:11 +01:00
printing lib: Remove unused serverid.tdb 2017-12-05 04:58:26 +01:00
profile s3-profile: reduce dependencies of smbprofile.h 2016-03-28 20:45:16 +02:00
registry s3-rpc_cli: add winreg_add_core_driver() 2017-05-09 16:43:13 +02:00
rpc_client s3:cli_lsarpc: use talloc_zero_array() in dcerpc_lsa_lookup_names_generic() 2018-02-21 14:19:17 +01:00
rpc_server s3:spoolss: Remove incorrect fall through comment in srv_spoolss_nt.c 2018-03-01 04:37:44 +01:00
rpcclient s3:rpcclient: Add FALL_THROUGH statements in rpcclient.c 2018-03-01 04:37:43 +01:00
script Remove some bashisms from the test scripts 2018-02-19 07:36:23 +01:00
selftest s3:selftest: Run the smbtorture3 TLDAP test 2018-02-24 10:54:07 +01:00
services srcctl3: Improve debug messages 2018-01-16 02:43:03 +01:00
smbd s3:smbd: Do not crash if we fail to init the session table 2018-03-02 00:39:59 +01:00
torture s3:auth: Pass mem_ctx to init_guest_session_info() 2018-02-20 21:55:13 +01:00
utils s3:utils: Add FALL_THROUGH statements in ntlm_auth.c 2018-03-01 04:37:43 +01:00
web
winbindd winbind: Fix --ping-dc error handling 2018-03-01 14:48:19 +01:00
.clang_complete
.dmallocrc
.indent.pro
Doxyfile
mainpage.dox
smbadduser.in
wscript build: fix libceph-common detection 2018-02-22 19:30:12 +01:00
wscript_build tests: Add tests for parsing LDAPv3 and LDAPv2 filter strings 2018-02-19 23:47:08 +01:00
wscript_configure_system_ncurses