33ecf6f20c356face97cd934db55cd21afcd6dbb |
|
27-Jun-2017 |
Cyril Hrubis <chrubis@suse.cz> |
mmapstress01: Fix buffer overflow The testcase was causing buffer overflow on temporary file creation if the path to $PWD was long enough (limit was 64 characters). Moreover the test was using absolute path to create files in $PWD, which is not allowed in LTP, while it is even using tst_tmpdir()/tst_rmdir() to create unique test temporary directory. So the fix to the problem is to remove the code that constructs the path and change file to be created in $PWD which points to the temporary directory created by the test library. Fixes #170. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
343e81a6c396a51d3a1dd1d9c663e43dd446c56e |
|
19-May-2015 |
Zeng Linggang <zenglg.jy@cn.fujitsu.com> |
mmapstress01: Modify readbuf's type and define it to uchar_t readbuf is defined to char. That is different with the previous defined. If readbuf's value is more than 127, that would be regarded as negative number. And expbuf is uchar_t, the value is always nonegative. That will make the test fail because the different data type. Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com> Reviewed-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
cc57ee9b18dbbb4d7f98b3bc9475bd51a430e8ce |
|
12-May-2015 |
Wei,Jiangang <weijg.fnst@cn.fujitsu.com> |
kernel/mem/mmapstress: avoid resource leak * Avoid memory leak by allocate readbuf on the stack, not by malloc. * close file descriptor explicitly before return. Signed-off-by: Wei,Jiangang <weijg.fnst@cn.fujitsu.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
829ac9d177bb1c713f1fe4266bdc44792b8c556d |
|
08-Mar-2015 |
Mike Frysinger <vapier@gentoo.org> |
clean up some more old-style decls Signed-off-by: Mike Frysinger <vapier@gentoo.org>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
aabb8340f63ed31afe995fd97795e542dc68b93c |
|
04-Feb-2015 |
Cyril Hrubis <chrubis@suse.cz> |
Include usctest.h in test.h Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
9fa8ad01f33c6390cc08626a185111631c8df495 |
|
16-Dec-2014 |
Cyril Hrubis <chrubis@suse.cz> |
Change tst_resm() followed by tst_exit() to tst_brkm() Slightly different version of the previous cleanup. Created with coccinelle patch: @@ expression list L; expression C != {TINFO, TPASS}; identifier F; @@ - tst_resm + tst_brkm (C, + F, L); - F(); - tst_exit(); Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
526fdf8d8ea3b43b73de7cc25eb754f12702c8d2 |
|
04-Dec-2014 |
Cyril Hrubis <chrubis@suse.cz> |
Change tst_resm() followed by tst_exit() to tst_brkm() Created with coccinelle patch: @@ expression list L; expression C != {TINFO, TPASS}; @@ - tst_resm + tst_brkm (C, + NULL, L); - tst_exit(); Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
4e2bab8415bfd5ddd552220203ed22c93a4617e5 |
|
24-Sep-2014 |
Cyril Hrubis <chrubis@suse.cz> |
Make use of NULL Replace all (type *)0 with NULL Created with coccinelle patch: @@ type T; @@ -(T*)0 +NULL Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
371cf0a03162d0d1c2a9bb69a049a94b84312689 |
|
24-Sep-2014 |
Cyril Hrubis <chrubis@suse.cz> |
Remove returns that follows tst_exit() Removes dead code that is never executed. Created with coccinelle patch: @@ expression E; @@ tst_exit(); -return E; Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
d218f348c12b42a78fa0306d9a033bfa4f67238b |
|
23-Sep-2014 |
Cyril Hrubis <chrubis@suse.cz> |
Remove useless malloc() casts. Created with coccinelle patch: @@ expression E1, E2; type T; @@ - E1 = (T)malloc(E2) + E1 = malloc(E2) Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
354ebb48db8e66a853a58379a4808d5dcd1ceac3 |
|
07-Dec-2012 |
Wanlong Gao <gaowanlong@cn.fujitsu.com> |
cleanup code indent Cleanup the code indent using: find . -name *.c -exec Lindent {} \; It's really a big change, but can fix almost all of the indent problem in C code, although we can't ensure all of the changes are right, but the error changes are really few. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
4548c6cf9bcdd96d8303caa4130ab638b61f8a30 |
|
19-Oct-2012 |
Wanlong Gao <gaowanlong@cn.fujitsu.com> |
Update FSF address find . -type f -exec sed -i 's/675 Mass Ave, Cambridge, MA 02139, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \; find . -type f -exec sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \; Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
ec6edca7aa42b6affd989ef91b5897f96795e40f |
|
18-Oct-2012 |
Chris Dearman <chris@mips.com> |
Add missing newline at end of file This is a scripted change done using the following command: find . -type d -name .git -prune -o \ -type f \! -name \*\~ \! -name .\#\* \ \! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \ xargs -0 sed -i -e '$a\' Signed-off-by: Chris Dearman <chris@mips.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
72521cf0741034f67dd17107453cda9a9819264c |
|
18-Dec-2010 |
Garrett Cooper <yanegomi@gmail.com> |
Fix more tests; remove more Tst_count externs. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
2c28215423293e443469a07ae7011135d058b671 |
|
16-Dec-2010 |
Garrett Cooper <yanegomi@gmail.com> |
Style and conformance changes. 1. Strip all leading space. 2. Move tst_exit() to main(). 3. Remove tst_exit() from cleanup(). 4. Remove cluebat comments. 5. Reduce some unnecessary whitespace. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
76a720a381f351b33eb203c7c519e6f44bbe7219 |
|
03-Jul-2010 |
Subrata Modak <subratamodak@subratamodak.linux.ibm.com> |
While executing the ltp on an nfs root mounted system, I faced a problem with some of the ltp test cases. These tests either did not close their file descriptors or did no unmap the mmaped files. This results in a failures while trying to clean up the temporary directory of the testcase. I have fixed all of the above tests with the following patch. Signed-off-by: Darshak P Shah<darshaks@linux.vnet.ibm.com>,
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
88c166cc3a4f0720e3f723613789ced23db286c6 |
|
09-Jun-2009 |
subrata_modak <subrata_modak> |
Test library cleanups: Removing no longer used code from test.h eg. test_error.c is no longer in ltp, and the same for t_res.c so there is no need to include function prototypes for these. Adding void to functions that doesn't take any parameters; tst_exit() -> tst_exit(void); so code that pases parameters to these is not compileable any more. Also fixes all test broken by that change. As parameters passed to tst_exit() are ignored anyway it's quite safe to just remove them; but I'would rather see someone take a closer look. Code cleanups and fixes in tst_res.c: * removed trivial and useless comments, * cleaned coding style, * and much more, TODO: there is much redundant code in tst_res.c I'll eliminate that by static functions. Signed-off-by: chrubis@suse.cz.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
bdbaec51a423e715c2b03ed9e497e9a1fba6103e |
|
26-Feb-2009 |
subrata_modak <subrata_modak> |
Clean Trailing Tab: Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
4bb656a129f7507823e9e6d6b98b1a02fd80ef89 |
|
26-Feb-2009 |
subrata_modak <subrata_modak> |
Clear Trailing Whitespace. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
134e896cc5a60e96b32807f5be09e99099596f5d |
|
26-Feb-2009 |
subrata_modak <subrata_modak> |
fix return(1) -> return 1. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
43337a3cf6f8809647cf9fc6c0054241f44b1fb1 |
|
26-Feb-2009 |
subrata_modak <subrata_modak> |
Fix return(0) to return 0. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
ae1b395fd799ccc9b9fc153e043078bb415f823f |
|
30-Oct-2008 |
subrata_modak <subrata_modak> |
The following patch Integrates the remaining MMAPSTRESS into runltp. Signed-Off-By: Subrata Modak <subrata@linux.vnet.ibm.com>.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
97e67c9958a6063db21432c20646a81faebee378 |
|
18-Sep-2008 |
subrata_modak <subrata_modak> |
Here is some small correction in memory map stress testcases. Result before applying patch: # ./mmapstress01 -h ./mmapstress01: invalid option -- h usage: ./mmapstress01 -p nprocs [-t minutes -f filesize -S sparseoffset -r -o -m -l -d] mmapstress01 1 FAIL : Test failed Result after applying patch: # ./mmapstress01 -h ./mmapstress01: invalid option -- h usage: ./mmapstress01 -p nprocs [-t minutes -f filesize -S sparseoffset -r -o -m -l -d] Signed-off By: Rishikesh K Rajak <risrajak@in.ibm.com>
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
4be9098fe01462b9b79fb7ac54faee6a0663e6d3 |
|
31-Jul-2003 |
robbiew <robbiew> |
Added check to see if roundup() is defined, if so, undefine and use testcase definition.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
d1d12373bcaa81b9dbc069d68fbdae4bdf29c470 |
|
03-Apr-2003 |
robbiew <robbiew> |
warnings cleanup
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|
8445709ba82f1e90bde58aa07128ac5048ea0dae |
|
10-Jan-2003 |
robbiew <robbiew> |
Added mmapstress testsuite ported by Ananda Venkataraman.
/external/ltp/testcases/kernel/mem/mmapstress/mmapstress01.c
|