[Fuego] Fuego hackathon results

Daniel Sangorrin daniel.sangorrin at toshiba.co.jp
Fri Dec 8 05:42:35 UTC 2017


Hi Tim,

Thanks a lot to you, Frank, Fukuchi-san, Sony for the venue and all participants who made 
possible the Fuego hackathon on Dec 2nd.

Sorry for the delay. Here are the two patches that I managed to do during the hackathon.
The first one adds a test for checking if your system is vulnerable to the year 20138 issue. Note 
that this is probably not a very thorough test. I am not an expert on the topic.

The second one is related to ftc run-test and is a small fix.

I put both inline for your comments if any. The test code inside the tarball 
was copied from 
https://askubuntu.com/questions/299475/will-the-linux-clock-fail-at-january-19-2038-31408

#!/usr/bin/perl
use POSIX;
$ENV{'TZ'} = "GMT";
for ($clock = 2147483641; $clock < 2147483651; $clock++) {
    print ctime($clock);
}

We checked that an old debian (oldoldstable) was vulnerable, and that ubuntu 16 wasnt but that's all.
Also I am not sure what it is actually testing, because we run it with the same kernel. Probably it has
to do with perl/glibc.

Best regards,
Daniel

>From 40b2609697036eefe44e583073271bbac30d9024 Mon Sep 17 00:00:00 2001
From: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
Date: Fri, 8 Dec 2017 14:22:50 +0900
Subject: [PATCH 1/2] y2038: add a test for the year 2038 issue

Note: this test was quickly created during the Fuego
hackathon at Sony (Shinagawa) on Dec 2017. At the moment
it requires perl on the target which is quite a big requirement.

Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
 engine/tests/Functional.year2038/fuego_test.sh   |  20 ++++++++++++++++++++
 engine/tests/Functional.year2038/year2038.tar.gz | Bin 0 -> 266 bytes
 2 files changed, 20 insertions(+)
 create mode 100755 engine/tests/Functional.year2038/fuego_test.sh
 create mode 100644 engine/tests/Functional.year2038/year2038.tar.gz

diff --git a/engine/tests/Functional.year2038/fuego_test.sh b/engine/tests/Functional.year2038/fuego_test.sh
new file mode 100755
index 0000000..80077e3
--- /dev/null
+++ b/engine/tests/Functional.year2038/fuego_test.sh
@@ -0,0 +1,20 @@
+tarball=year2038.tar.gz
+
+function test_pre_check {
+    is_on_target perl PROGRAM_PERL /usr/bin
+    assert_define PROGRAM_PERL
+}
+
+function test_deploy {
+    put test.pl  $BOARD_TESTDIR/fuego.$TESTDIR/
+}
+
+function test_run {
+    report "cd $BOARD_TESTDIR/fuego.$TESTDIR; perl test.pl"
+}
+
+function test_processing {
+    log_compare "$TESTDIR" "1" "1901" "n"
+}
+
+
diff --git a/engine/tests/Functional.year2038/year2038.tar.gz b/engine/tests/Functional.year2038/year2038.tar.gz
new file mode 100644
index 0000000000000000000000000000000000000000..d156e7cd42672c81d2a40b24bf0454ec4c964008
GIT binary patch
literal 266
zcmb2|=3wZtQi at _=etYq}_hADO_7C$uhub_)=xaRdJ-IBvwyWX;yM at c1vqB4R<f{7e
zC%>sTZ(iH6U|tu`{`seyr at MbTQJ(wU?_`RU``?L<(`Lp#J#*sxSA|C|8?SUeG&!>|
z<*49Hx$;+Adgog&%1ErA_xtT1kG1?it8f4KyzABD-q-_~tM;Fb_q_a6KUC~fx-8d8
zyJ<gP&3|5BCA7V_JN|TPOmukXwvAs3{#SgS)BW)3-OFhv)snd{C$U}MzS&XlURd9`
zHrK6M_nd<_p8I0rY5IIieq4#~WmEOZhPf=PTeYXp<BHdN^KV+A-nK{U?HL)+zypt3
OhC8|kcQ9x$FaQ8{0)b)x

literal 0
HcmV?d00001

-- 
2.7.4


>From 7c7adb7761d43a0c6aa0bda119ec1491a6f4b44d Mon Sep 17 00:00:00 2001
From: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
Date: Fri, 8 Dec 2017 14:25:32 +0900
Subject: [PATCH 2/2] ftc: fix mispelling on run-test

This was the first error I found but run-test is still
unstable as far as I can see.

Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
 engine/scripts/ftc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/engine/scripts/ftc b/engine/scripts/ftc
index 7662030..7baad67 100755
--- a/engine/scripts/ftc
+++ b/engine/scripts/ftc
@@ -2506,7 +2506,7 @@ def do_run_test(conf, options):
 
     if '-s' in options:
         try:
-            spec_names = options[options.index('-s') + 1]
+            spec_name = options[options.index('-s') + 1]
         except IndexError:
             error_out('Testspec not provided after -s.')
         spec_list = get_specs(conf, test_name)
-- 
2.7.4


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-y2038-add-a-test-for-the-year-2038-issue.patch
Type: application/octet-stream
Size: 2054 bytes
Desc: not available
URL: <http://lists.linuxfoundation.org/pipermail/fuego/attachments/20171208/3f55c7ad/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ftc-fix-mispelling-on-run-test.patch
Type: application/octet-stream
Size: 939 bytes
Desc: not available
URL: <http://lists.linuxfoundation.org/pipermail/fuego/attachments/20171208/3f55c7ad/attachment-0001.obj>


More information about the Fuego mailing list