diff for duplicates of <20170729010718.42236-1-ebiggers3@gmail.com> diff --git a/a/1.txt b/N1/1.txt index f0fab83..a65d275 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -102,7 +102,8 @@ index 000000000..502cea5a4 + * openssl req -x509 -newkey rsa:512 -batch -nodes -outform der \ + * | ~/linux/scripts/bin2c + */ -+static const char x509_cert[] + "\x30\x82\x01\xd3\x30\x82\x01\x7d\xa0\x03\x02\x01\x02\x02\x09\x00" ++static const char x509_cert[] = ++ "\x30\x82\x01\xd3\x30\x82\x01\x7d\xa0\x03\x02\x01\x02\x02\x09\x00" + "\x92\x2a\x76\xff\x0c\x00\xfb\x9a\x30\x0d\x06\x09\x2a\x86\x48\x86" + "\xf7\x0d\x01\x01\x0b\x05\x00\x30\x45\x31\x0b\x30\x09\x06\x03\x55" + "\x04\x06\x13\x02\x41\x55\x31\x13\x30\x11\x06\x03\x55\x04\x08\x0c" @@ -151,17 +152,17 @@ index 000000000..502cea5a4 + TEST(tst_syscall(__NR_add_key, type, "desc", payload, plen, + KEY_SPEC_SESSION_KEYRING)); + if (TEST_RETURN < 0) { -+ if (TEST_ERRNO = ENODEV) { ++ if (TEST_ERRNO == ENODEV) { + tst_res(TCONF, "kernel doesn't support key type '%s'", + type); + return; + } -+ if (TEST_ERRNO = EBADMSG && !strcmp(type, "asymmetric")) { ++ if (TEST_ERRNO == EBADMSG && !strcmp(type, "asymmetric")) { + tst_res(TCONF, "kernel is missing x509 cert parser " + "(CONFIG_X509_CERTIFICATE_PARSER)"); + return; + } -+ if (TEST_ERRNO = ENOENT && !strcmp(type, "asymmetric")) { ++ if (TEST_ERRNO == ENOENT && !strcmp(type, "asymmetric")) { + tst_res(TCONF, "kernel is missing crypto algorithms " + "needed to parse x509 cert (CONFIG_CRYPTO_RSA " + "and/or CONFIG_CRYPTO_SHA256)"); @@ -187,7 +188,7 @@ index 000000000..502cea5a4 + /* Try to update the key. This may crash on buggy kernels. */ + TEST(tst_syscall(__NR_keyctl, KEYCTL_UPDATE, keyid, payload, plen)); + if (TEST_RETURN < 0) { -+ if (TEST_ERRNO = EOPNOTSUPP) { ++ if (TEST_ERRNO == EOPNOTSUPP) { + tst_res(TPASS, + "updating '%s' key expectedly failed with EOPNOTSUPP", + type); @@ -222,7 +223,7 @@ index 000000000..502cea5a4 + return; + } + -+ if (TEST_RETURN = 0) { ++ if (TEST_RETURN == 0) { + uint32_t perm = KEY_POS_ALL; + + /* diff --git a/a/content_digest b/N1/content_digest index 0ed3483..05bf78f 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "From\0Eric Biggers <ebiggers3@gmail.com>\0" - "Subject\0[PATCH] syscalls/keyctl05: new test for key_update() crash\0" - "Date\0Sat, 29 Jul 2017 01:07:18 +0000\0" - "To\0keyrings@vger.kernel.org\0" + "Subject\0[LTP] [PATCH] syscalls/keyctl05: new test for key_update() crash\0" + "Date\0Fri, 28 Jul 2017 18:07:18 -0700\0" + "To\0ltp@lists.linux.it\0" "\00:1\0" "b\0" "From: Eric Biggers <ebiggers@google.com>\n" @@ -108,7 +108,8 @@ "+ *\topenssl req -x509 -newkey rsa:512 -batch -nodes -outform der \\\n" "+ *\t\t| ~/linux/scripts/bin2c\n" "+ */\n" - "+static const char x509_cert[] +\t\"\\x30\\x82\\x01\\xd3\\x30\\x82\\x01\\x7d\\xa0\\x03\\x02\\x01\\x02\\x02\\x09\\x00\"\n" + "+static const char x509_cert[] =\n" + "+\t\"\\x30\\x82\\x01\\xd3\\x30\\x82\\x01\\x7d\\xa0\\x03\\x02\\x01\\x02\\x02\\x09\\x00\"\n" "+\t\"\\x92\\x2a\\x76\\xff\\x0c\\x00\\xfb\\x9a\\x30\\x0d\\x06\\x09\\x2a\\x86\\x48\\x86\"\n" "+\t\"\\xf7\\x0d\\x01\\x01\\x0b\\x05\\x00\\x30\\x45\\x31\\x0b\\x30\\x09\\x06\\x03\\x55\"\n" "+\t\"\\x04\\x06\\x13\\x02\\x41\\x55\\x31\\x13\\x30\\x11\\x06\\x03\\x55\\x04\\x08\\x0c\"\n" @@ -157,17 +158,17 @@ "+\tTEST(tst_syscall(__NR_add_key, type, \"desc\", payload, plen,\n" "+\t\t\t KEY_SPEC_SESSION_KEYRING));\n" "+\tif (TEST_RETURN < 0) {\n" - "+\t\tif (TEST_ERRNO = ENODEV) {\n" + "+\t\tif (TEST_ERRNO == ENODEV) {\n" "+\t\t\ttst_res(TCONF, \"kernel doesn't support key type '%s'\",\n" "+\t\t\t\ttype);\n" "+\t\t\treturn;\n" "+\t\t}\n" - "+\t\tif (TEST_ERRNO = EBADMSG && !strcmp(type, \"asymmetric\")) {\n" + "+\t\tif (TEST_ERRNO == EBADMSG && !strcmp(type, \"asymmetric\")) {\n" "+\t\t\ttst_res(TCONF, \"kernel is missing x509 cert parser \"\n" "+\t\t\t\t\"(CONFIG_X509_CERTIFICATE_PARSER)\");\n" "+\t\t\treturn;\n" "+\t\t}\n" - "+\t\tif (TEST_ERRNO = ENOENT && !strcmp(type, \"asymmetric\")) {\n" + "+\t\tif (TEST_ERRNO == ENOENT && !strcmp(type, \"asymmetric\")) {\n" "+\t\t\ttst_res(TCONF, \"kernel is missing crypto algorithms \"\n" "+\t\t\t\t\"needed to parse x509 cert (CONFIG_CRYPTO_RSA \"\n" "+\t\t\t\t\"and/or CONFIG_CRYPTO_SHA256)\");\n" @@ -193,7 +194,7 @@ "+\t/* Try to update the key. This may crash on buggy kernels. */\n" "+\tTEST(tst_syscall(__NR_keyctl, KEYCTL_UPDATE, keyid, payload, plen));\n" "+\tif (TEST_RETURN < 0) {\n" - "+\t\tif (TEST_ERRNO = EOPNOTSUPP) {\n" + "+\t\tif (TEST_ERRNO == EOPNOTSUPP) {\n" "+\t\t\ttst_res(TPASS,\n" "+\t\t\t\t\"updating '%s' key expectedly failed with EOPNOTSUPP\",\n" "+\t\t\t\ttype);\n" @@ -228,7 +229,7 @@ "+\t\treturn;\n" "+\t}\n" "+\n" - "+\tif (TEST_RETURN = 0) {\n" + "+\tif (TEST_RETURN == 0) {\n" "+\t\tuint32_t perm = KEY_POS_ALL;\n" "+\n" "+\t\t/*\n" @@ -289,4 +290,4 @@ "-- \n" 2.14.0.rc0.400.g1c36432dff-goog -59c24bdb32663b56fc123cc02c65ceb2b01931f456eb0b0cd5fe17d5ddff1b55 +a66e324a4a5d84280c9f7c2f338c6878ce5bb7d6aa7b073bd9c5dd54ea1b24e7
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.