dda4c39752Fix new snsecprintf for secure testing
Scott Haseley
2017-02-18 23:53:32 -05:00
675f1e0f91Split ASST2 into ASST2.1 and ASST2.2 subtargets.
Scott Haseley
2017-02-18 23:32:39 -05:00
a65ddfdc81Beefed up consoletest for new ASST2.1. In its former incarnation, there is an easy hack to pass the test. This new version checks a little more of the write() spec and prevents the known exploitation.
Scott Haseley
2017-02-18 23:11:29 -05:00
dbb57b2826Added snsecprintf function that writes the secprintf message into the buffer provided.
Scott Haseley
2017-02-18 22:58:35 -05:00
4298d0634falignment
Zachary Moore
2017-02-16 18:30:51 -05:00
7f40aaa461alignment
Zachary Moore
2017-02-16 18:30:16 -05:00
2be98d540eFormatted code to align tabs
Zachary Moore
2017-02-16 18:18:00 -05:00
434a8856c6Added more functionality to lock test 4 to also make sure release functions properly
zsmoore
2017-02-16 18:15:14 -05:00
694062537dswitched string from lt1 to lt4
Zachary Moore
2017-02-16 12:32:34 -05:00
b8b57b14a6Changed spaces to tabs in menu.c
Zachary Moore
2017-02-16 12:20:47 -05:00
8eb6dc55dfChanged spaces to tabs on synch.c
Zachary Moore
2017-02-16 12:19:53 -05:00
b51f2a88deadded new lock test to check do i hold functionality. tested on incorrect implementation, fails. tested on correct implementation, passed.
zsmoore
2017-02-16 01:41:05 -05:00
398e4eb90aMerge branch 'master' of github.com:ops-class/os161
Geoffrey Challen
2017-02-10 15:29:07 -05:00
39516c2f86Adding misc. commands that test161 didn't know about and tag descriptions
Scott Haseley
2017-02-09 13:56:21 -05:00
160b83330eChanged the stats resolution and monitor windows for the swapping tests. The size of the stats slice (test161) that was being persisted in mongo was > the 16M mongo document limit.
Scott Haseley
2016-05-02 15:23:53 -04:00
ac901b2a49triplehuge -> quinthuge
Scott Haseley
2016-05-02 12:01:16 -04:00
5d7e9ac785Changed quintsort swap test timeout to 1100, which is 2x our 90th percentile
Scott Haseley
2016-04-29 13:17:43 -04:00
8d456c5e6eFixed target comment
Scott Haseley
2016-04-27 19:31:10 -04:00
026e450680Preliminary asst3 target
Scott Haseley
2016-04-27 19:29:12 -04:00
f46f7395a1New ASST3.3 tests (swapping)
Scott Haseley
2016-04-27 18:48:21 -04:00
153c0267b6Changes to userland progress to tweak progress output for test161. We needed more periodic progress in some cases due to the large slow down that happens when swapping is implemented (ASST3.3).
Scott Haseley
2016-04-27 18:46:44 -04:00
4e93e0b105Forkbomb changes. First, use a local success string and make sure to access it early so a page gets allocated. Second, change the timeout for the vm stability test to 20s. It looks like some students are right up on this boundary.
Scott Haseley
2016-04-22 14:54:10 -04:00
4bfe7afef3Increased the progress timeout to 15s for quinthuge and sbrktest. If your VM takes a long time to clean up when processes exit, the default 10s timeout might be too short.
Scott Haseley
2016-04-18 15:19:14 -04:00
4472cbaed0Bumped up memory configuration for quint tests
Scott Haseley
2016-04-15 16:24:03 -04:00
e21c37b14fAdded a secprintf message to the beginning of forkbomb so it causes page faults and allocates pages that we'll need later to print success.
Scott Haseley
2016-04-15 14:13:48 -04:00
105fbc5dddAdd stacktest to testbin Makefile
Scott Haseley
2016-04-15 12:09:21 -04:00
0207e6b066More tests for ASST3.2
Scott Haseley
2016-04-14 17:47:54 -04:00
6d0d7c9230Fixed unused label in change to kmalloctest
Scott Haseley
2016-04-11 17:02:51 -04:00
ec1c1de132km1 and km2 need to panic on failure, not print just print failed.
Scott Haseley
2016-04-08 16:04:11 -04:00
dc1a1949a6Fix ctest compile issue
Scott Haseley
2016-04-08 15:55:48 -04:00
26b75349bdAdd memory leak deductions to asst3.2
Scott Haseley
2016-04-08 15:49:20 -04:00
388e6388a9Added thread_wait_for_count() which allows the menu to wait for all (new) threads to exit before continuing. We need this for khu testing because we have to make sure cleanup is done before getting the used byte count.
Scott Haseley
2016-04-07 14:35:09 -04:00
854931ea44ASST3 test cleanup; added forkbomb
Scott Haseley
2016-04-07 14:10:47 -04:00
a56bf008baChange forkbomb to print progress
Scott Haseley
2016-04-07 13:17:23 -04:00
1600e40d22Initial tests and target for ASST3, checkpoint 2.
Scott Haseley
2016-04-07 10:16:33 -04:00
5821a085bfRemoved disk configuration, test161 now has a larger default disk. Also, added not-dumbvm tag to not-dumbvm.t.
Scott Haseley
2016-04-07 10:14:58 -04:00
fedf80f599Userland changes for test161/assignment 3.
Scott Haseley
2016-04-06 13:53:21 -04:00
194f76ef70The "huge positive" number being tested wasn't big enough. Now using a number that would cause the heap to bleed into the stack.
Scott Haseley
2016-04-06 13:33:28 -04:00
b488b7dceaAdded a test.h file for userland.
Scott Haseley
2016-04-06 13:29:48 -04:00
16bfdcf406Added new line before printing secured messages. For quint/triple tests, the secured message might print on a progress line, which makes test161 fail.
Scott Haseley
2016-04-06 13:27:51 -04:00
e0fc622e00Added progress functions that print '.'. There are versions that are always loud or only loud during automated testing.
Scott Haseley
2016-04-06 13:26:05 -04:00
76672bd17bwhitespace
Scott Haseley
2016-03-30 17:16:24 -04:00
177821c2f3Put asst3 back on the leaderboard
Scott Haseley
2016-03-30 17:12:12 -04:00
2873c513d4Assignment 3 target will now be cumulative instead of split into subparts
Scott Haseley
2016-03-30 17:11:41 -04:00
eede850f54The km4 thread was checking the correct magic value, but printing the one on the first page. The test result is correct, but might look like it is failing when it shouldn't.
Scott Haseley
2016-03-30 16:09:24 -04:00
78265c6da4Set leaderboard to false for ASST3 coremap target. We'll work on aggregating multi-part targets, but for now, don't show subparts. Also, explicitly set userland to false.
Scott Haseley
2016-03-30 14:58:59 -04:00
7f3f686b1aUpdated km4 to write to, and check, each page allocated in the multi-page allocation. This should find cases where students ignore npages and just allocate one page, which would previously work.
Scott Haseley
2016-03-28 15:43:39 -04:00
afcb45766eSmall changes to targets.
Geoffrey Challen
2016-03-25 15:33:29 -04:00
b4bcf45932Initial tests, commands, and target for asst3.1
Scott Haseley
2016-03-25 11:13:31 -04:00
8380115efaAdded new kmalloc test (km5) that tests various coremap properties. Also, km1-km4 were cleaned up for test161.
Scott Haseley
2016-03-25 11:12:09 -04:00
501773f90eAdded a global variable for the number of cpus
Scott Haseley
2016-03-25 11:11:08 -04:00
25a1d7debcChanged kheap_getused so that it doesn't double-count the pages it's using for subpage allocation. We run into problems in determining memory leaks due to kmalloc framgmentation, which can happen because of delayed thread cleanup.
Scott Haseley
2016-03-25 11:09:15 -04:00
922370ebd4Changed forkbomb to only print one success message
Scott Haseley
2016-03-11 14:56:01 -05:00
bfa901ed0bUpdated forkbomb so only the parent prints success messages
Guru Prasad Srinivasa
2016-03-10 19:00:31 -05:00
7a63861e81Updated forkbomb monitor kernel cycles min value
Guru Prasad Srinivasa
2016-03-10 18:45:35 -05:00
03f484ff21Merge branch 'master' of gitlab.ops-class.org:staff/os161
Guru Prasad Srinivasa
2016-03-10 17:30:37 -05:00
c9c9e50155Updated forkbomb to better detect success
Guru Prasad Srinivasa
2016-03-10 17:28:47 -05:00
d322a01342Adding function to get used bytes.
Geoffrey Challen
2016-03-10 11:29:38 -05:00
44d53d9306Fixed a bug in bad_waitpid.c
Guru Prasad Srinivasa
2016-03-09 12:44:58 -05:00
eb7ad5609dMake forktest fail if waitpid() fails
Guru Prasad Srinivasa
2016-03-08 18:53:33 -05:00
aa4c87a2faNew ASST2 single submitter target and hard linking fix.
Geoffrey Challen
2016-03-08 15:44:02 -05:00
196bb3b684Now using static buffers (and protecting with a semaphore) for kernel secprintf. We have to do this because we need secure output in kmalloc.
Scott Haseley
2016-03-07 15:05:58 -05:00
2cb47cb4c8Removed all instances of crash_prog()
Guru Prasad Srinivasa
2016-03-07 10:55:20 -05:00