1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source4/torture/raw
Noel Power 2a06c992c8 s4:torture:raw: fix 'Syscall param writev(vector[...])' valgrind error
running smbtorture test raw.open.chained-ntcreatex.chained-ntcreatex results
in the following valgrind trace

==30405== Syscall param writev(vector[...]) points to uninitialised byte(s)
==30405==    at 0xFBA2C87: writev (in /lib64/libc-2.19.so)
==30405==    by 0x106CB033: writev_handler (async_sock.c:340)
==30405==    by 0xF67812A: ??? (in /usr/lib64/libtevent.so.0.9.26)
==30405==    by 0xF6765F6: ??? (in /usr/lib64/libtevent.so.0.9.26)
==30405==    by 0xF6727FC: _tevent_loop_once (in /usr/lib64/libtevent.so.0.9.26)
==30405==    by 0x5AE3400: smbcli_request_receive (rawrequest.c:416)
==30405==    by 0x5AE343E: smbcli_request_simple_recv (rawrequest.c:430)
==30405==    by 0x5ADC8BC: smb_raw_close (rawfile.c:847)
==30405==    by 0x9BE60B4: smbcli_close (clifile.c:316)
==30405==    by 0x1A66B4: test_chained_ntcreatex_readx (open.c:1735)
==30405==    by 0x16B21D: wrap_simple_1smb_test (util_smb.c:856)
==30405==    by 0x955368F: internal_torture_run_test (torture.c:442)
==30405==    by 0x9553A6B: torture_run_test_restricted (torture.c:542)
==30405==    by 0x2600A4: run_matching (smbtorture.c:110)
==30405==    by 0x25FF66: run_matching (smbtorture.c:95)
==30405==    by 0x25FF66: run_matching (smbtorture.c:95)
==30405==    by 0x2601C5: torture_run_named_tests (smbtorture.c:143)
==30405==    by 0x261E44: main (smbtorture.c:665)
==30405==  Address 0x187e1196 is 598 bytes inside a block of size 1,325 alloc'd
==30405==    at 0x4C29110: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==30405==    by 0xF464A73: _talloc_pooled_object (in /usr/lib64/libtalloc.so.2.1.5)
==30405==    by 0xF67366D: _tevent_req_create (in /usr/lib64/libtevent.so.0.9.26)
==30405==    by 0xB0D49FF: smb1cli_req_create (smbXcli_base.c:1322)
==30405==    by 0x5ADFAB7: smbcli_transport_setup_subreq (clitransport.c:254)
==30405==    by 0x5ADFC37: smbcli_transport_send (clitransport.c:326)
==30405==    by 0x5AE33C3: smbcli_request_send (rawrequest.c:400)
==30405==    by 0x5ADC869: smb_raw_close_send (rawfile.c:832)
==30405==    by 0x5ADC8AC: smb_raw_close (rawfile.c:846)
==30405==    by 0x9BE60B4: smbcli_close (clifile.c:316)
==30405==    by 0x1A66B4: test_chained_ntcreatex_readx (open.c:1735)
==30405==    by 0x16B21D: wrap_simple_1smb_test (util_smb.c:856)
==30405==    by 0x955368F: internal_torture_run_test (torture.c:442)
==30405==    by 0x9553A6B: torture_run_test_restricted (torture.c:542)
==30405==    by 0x2600A4: run_matching (smbtorture.c:110)
==30405==    by 0x25FF66: run_matching (smbtorture.c:95)
==30405==    by 0x25FF66: run_matching (smbtorture.c:95)
==30405==    by 0x2601C5: torture_run_named_tests (smbtorture.c:143)
==30405==    by 0x261E44: main (smbtorture.c:665)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2016-04-25 10:35:15 +02:00
..
acls.c s4-smbtorture: Set result message when failing the inheritance test. 2013-05-09 06:18:21 +02:00
chkpath.c s4-torture: Improve torture test boilerplate, use torture_assert() 2012-05-18 09:35:13 +02:00
close.c
composite.c s4-torture: never return false in the raw.composite torture test 2012-04-26 04:00:16 +02:00
context.c s4:torture: send the TCONX_FLAG_EXTENDED_RESPONSE flag 2012-08-02 10:54:18 +02:00
eas.c s4-torture: fix gcc6 build warning. 2016-02-06 21:48:18 +01:00
ioctl.c s4-torture: Improve torture test boilerplate, use torture_assert() 2012-05-18 09:35:13 +02:00
lock.c s4: torture: Add a new lock test to show that the Samba SMB1 multi-lock implementation is (currently) correct. 2014-07-08 10:16:59 +02:00
lockbench.c s4:libcli/raw: implement on top of smbXcli_conn/req 2011-11-30 15:13:36 +01:00
lookuprate.c s4:torture: fix use of non-existent word (existant) 2012-06-12 07:21:45 +02:00
missing.txt
mkdir.c s4-torture: Improve torture test boilerplate, use torture_assert() 2012-05-18 09:35:13 +02:00
mux.c torture: convert raw.mux to use torture_comment() macros instead of printf() 2014-06-23 23:30:13 +02:00
notify.c torture-notify: Give nonrecursive updates 200ms 2015-07-13 15:00:25 +02:00
offline.c
open.c s4:torture:raw: fix 'Syscall param writev(vector[...])' valgrind error 2016-04-25 10:35:15 +02:00
openbench.c s4:libcli/raw: implement on top of smbXcli_conn/req 2011-11-30 15:13:36 +01:00
oplock.c s4:torture: Add smb2.oplock test batch9a and raw.oplock test batch9a 2014-11-07 20:13:09 +01:00
pingpong.c Fix various spelling errors 2015-11-06 13:43:45 +01:00
qfileinfo.c s4:torture/raw: fix debug message in torture_raw_qfileinfo_pipe() 2014-03-25 00:45:29 +01:00
qfsinfo.c
raw.c Add samba3.samba3badnameblob test to check regressions in bug #9215. 2012-10-01 23:29:25 +02:00
read.c torture: Use torture_assert macro for value check in raw.read 2014-08-30 00:27:13 +02:00
rename.c s4-torture: Improve torture test boilerplate, use torture_assert() 2012-05-18 09:35:13 +02:00
samba3hide.c s4-torture: Move various samba3 tests to the torture_suite_add_1smb_test wrapper 2012-04-30 07:00:05 +02:00
samba3misc.c CVE-2016-2111: s4:torture/raw: don't use ntlmv2 for dos connection in raw.samba3badpath 2016-04-12 19:25:24 +02:00
search.c s4:torture/raw: avoid compiler warnings 2015-03-20 20:43:13 +01:00
seek.c
session.c Make libcli-smb-raw private, for now. 2016-01-13 04:43:23 +01:00
setfileinfo.c s4-torture: Use talloc for asprintf. 2013-12-06 01:14:09 +01:00
streams.c s4:torture/raw: avoid compiler warnings 2015-03-20 20:43:13 +01:00
tconrate.c
unlink.c s3-torture: Remove (incorrect) samba3-specific behavior in samba3.raw.unlink now the server is correct 2015-10-21 08:25:26 +02:00
write.c