The NetBSD Project

CVS log for src/tests/lib/libc/sys/t_mmap.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / lib / libc / sys

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.18 / (download) - annotate - [select for diffs], Sat Jun 4 23:09:18 2022 UTC (22 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.17: +68 -2 lines
Diff to previous 1.17 (colored) to selected 1.6 (colored)

tests/lib/libc: Test mmap(2) with bad hints.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Apr 6 10:02:55 2022 UTC (2 years ago) by gson
Branch: MAIN
Changes since 1.16: +63 -2 lines
Diff to previous 1.16 (colored) to selected 1.6 (colored)

Add a regression test for PR kern/52239, "Changing protections of
already mmap'ed region can fail", based on the test program in the PR.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Apr 5 15:59:22 2022 UTC (2 years ago) by gson
Branch: MAIN
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored) to selected 1.6 (colored)

In the mmap_err test case, mmap the address, not the address of the address.
Should fix PR kern/56780.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Apr 5 13:09:54 2022 UTC (2 years ago) by gson
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored) to selected 1.6 (colored)

When the t_mmap:mmap_err test fails due to errno not having the expected
value of EINVAL, print the actual value.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jun 26 07:50:11 2020 UTC (3 years, 9 months ago) by jruoho
Branch: MAIN
CVS Tags: thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.13: +4 -3 lines
Diff to previous 1.13 (colored) to selected 1.6 (colored)

Reference PRs consistently.

Revision 1.13 / (download) - annotate - [select for diffs], Tue May 23 13:04:29 2017 UTC (6 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, is-mlppp-base, is-mlppp
Changes since 1.12: +10 -5 lines
Diff to previous 1.12 (colored) to selected 1.6 (colored)

Handle dk disks and print errors.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:11 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) next main 1.12 (colored) to selected 1.6 (colored)

Sync with HEAD

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:59 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.9: +7 -3 lines
Diff to previous 1.9 (colored) next main 1.10 (colored) to selected 1.6 (colored)

Sync with HEAD

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 16 16:31:05 2017 UTC (7 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, bouyer-socketcan-base1
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.6 (colored)

PR/51891: Ngie Cooper: use sys/disklabel.h instead of machine/disklabel.h

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jan 13 20:43:11 2017 UTC (7 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.10: +5 -2 lines
Diff to previous 1.10 (colored) to selected 1.6 (colored)

PR/51855: Ngie Cooper: fix leaks

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jan 10 22:36:29 2017 UTC (7 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored) to selected 1.6 (colored)

more tests needing <sys/stat.h>

Revision 1.9 / (download) - annotate - [select for diffs], Sat Feb 28 13:57:08 2015 UTC (9 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.8: +10 -2 lines
Diff to previous 1.8 (colored) to selected 1.6 (colored)

Make sure to use the values calculated in the loop that is supposed to crash
the client process - so the compiler does not optimize it all away.
Also improve diagnostic in case of common bug: SIGSEGV instead of SIGBUS.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Feb 27 16:09:19 2015 UTC (9 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.7: +57 -2 lines
Diff to previous 1.7 (colored) to selected 1.6 (colored)

add truncate causing signal test

Revision 1.2.2.3 / (download) - annotate - [select for diffs], Tue Oct 30 19:00:02 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.2.2.2: +3 -3 lines
Diff to previous 1.2.2.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored) to selected 1.6 (colored)

sync with head

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Fri Jun 15 08:53:32 2012 UTC (11 years, 10 months ago) by sborrill
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.2.4.1: +3 -4 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored) to selected 1.6 (colored)

Pull up the following revisions(s) (requested by bouyer in ticket #345):
	tests/lib/libc/sys/t_mmap.c:	revision 1.7

Disable the mmap_block test again. It is only by accident that it doesn't
panic when mmaping /dev/wd0d. PR kern/46592

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 14 17:47:58 2012 UTC (11 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, agc-symver-base, agc-symver
Changes since 1.6: +3 -4 lines
Diff to previous 1.6 (colored)

Disable the mmap_block test again, it doesn't panic when mmaping /dev/wd0d
only by accident. PR kern/46592.

Revision 1.2.4.1 / (download) - annotate - [select for diffs], Mon Jun 11 21:25:02 2012 UTC (11 years, 10 months ago) by riz
Branch: netbsd-6
Changes since 1.2: +52 -2 lines
Diff to previous 1.2 (colored) to selected 1.6 (colored)

Pull up following revision(s) (requested by martin in ticket #301):
	sys/uvm/uvm_vnode.c: revision 1.98
	tests/lib/libc/sys/t_mmap.c: revision 1.3
	tests/lib/libc/sys/t_mmap.c: revision 1.4
	tests/lib/libc/sys/t_mmap.c: revision 1.5
	tests/lib/libc/sys/t_mmap.c: revision 1.6
Only use generic readahead on VREG vnodes, the space used to store the
context is not valid on other types.
Prevents the crash reported in PR kern/38889, but does not fix the
mmap of block devices, more work is needed (no size on VBLK vnodes).
Do not skip the block device mmap test, as it does not crash
the kernel any more. Mark it as expected failure instead.
mmap_block:
do not use a hardcoded block device list, but query the kernel for attached
disks instead, then try to mmap the raw partition.
Use atf_tc_skip().
A test case for serious PR kern/38889: crash on open/mmap/close of block
device. The test case is skipped for the time being as it replicates the
panic described in the PR (tested on NetBSD/amd64 6.0 BETA).

Revision 1.6 / (download) - annotate - [selected], Fri Jun 1 15:59:21 2012 UTC (11 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

Do not skip the block device mmap test, as it does not crash
the kernel any more. Mark it as expected failure instead.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Wed May 23 10:08:21 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.2.2.1: +21 -10 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) to selected 1.6 (colored)

sync with head.

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 16 19:12:59 2012 UTC (11 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base5
Changes since 1.4: +21 -10 lines
Diff to previous 1.4 (colored) to selected 1.6 (colored)

mmap_block:
do not use a hardcoded block device list, but query the kernel for attached
disks instead, then try to mmap the raw partition.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:09:12 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.2: +40 -2 lines
Diff to previous 1.2 (colored) to selected 1.6 (colored)

sync with head

Revision 1.4 / (download) - annotate - [select for diffs], Tue Mar 13 06:37:03 2012 UTC (12 years, 1 month ago) by jruoho
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored) to selected 1.6 (colored)

Use atf_tc_skip().

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 6 11:02:55 2012 UTC (12 years, 1 month ago) by jruoho
Branch: MAIN
Changes since 1.2: +40 -2 lines
Diff to previous 1.2 (colored) to selected 1.6 (colored)

A test case for serious PR kern/38889: crash on open/mmap/close of block
device. The test case is skipped for the time being as it replicates the
panic described in the PR (tested on NetBSD/amd64 6.0 BETA).

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jul 14 11:08:45 2011 UTC (12 years, 9 months ago) by jruoho
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.1: +138 -4 lines
Diff to previous 1.1 (colored) to selected 1.6 (colored)

Move the uvm "loan" test to tests(7).

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jul 7 06:57:54 2011 UTC (12 years, 9 months ago) by jruoho
Branch: MAIN
Diff to selected 1.6 (colored)

Add the syscall tests back. Couple of files and tests were also renamed for
consistency. All of these now mimic the libc structure.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>