[Bug 1231268] New: [Build 20241001] openQA test fails in cve-2017-17806
https://bugzilla.suse.com/show_bug.cgi?id=1231268 Bug ID: 1231268 Summary: [Build 20241001] openQA test fails in cve-2017-17806 Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other URL: https://openqa.opensuse.org/tests/4526310/modules/cve- 2017-17806/steps/8 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-bugs@opensuse.org Reporter: avinesh.kumar@suse.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: openQA Blocker: Yes ## Observation openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-ltp_cve_kotd@64bit fails in [cve-2017-17806](https://openqa.opensuse.org/tests/4526310/modules/cve-2017-17806/steps/8) ltp test: https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/crypt... /* * Regression test for commit af3ff8045bbf ("crypto: hmac - require that the * underlying hash algorithm is unkeyed"), or CVE-2017-17806. This test * verifies that the hmac template cannot be nested inside itself. */ ## Reproducible Fails since Build [20241001](https://openqa.opensuse.org/tests/4526310) (openSUSE Tumbleweed 20241001 - Kernel 6.12.0-rc1-1.gfcf4d55-default) ## Expected result Last good: [20240930](https://openqa.opensuse.org/tests/4523252) (openSUSE Tumbleweed 20240930 - Kernel 6.11.0-3.g746ccde-default) ## Further details Always latest result in this scenario: [latest](https://openqa.opensuse.org/tests/latest?arch=x86_64&distri=opensuse&flavor=DVD&machine=64bit&test=ltp_cve_kotd&version=Tumbleweed) -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1231268 https://bugzilla.suse.com/show_bug.cgi?id=1231268#c1 --- Comment #1 from Avinesh Kumar <avinesh.kumar@suse.com> ---
git show ce212d2afca47acd366a2e74c76fe82c31f785ab commit ce212d2afca47acd366a2e74c76fe82c31f785ab Author: Herbert Xu <herbert@gondor.apana.org.au> Date: Tue Sep 10 17:30:24 2024 +0800
crypto: n2 - Set err to EINVAL if snprintf fails for hmac Return EINVAL if the snprintf check fails when constructing the algorithm names. Fixes: 8c20982caca4 ("crypto: n2 - Silence gcc format-truncation false positive warnings") Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/r/202409090726.TP0WfY7p-lkp@intel.com/ Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c index 251e088a53df..b11545cc5cb7 100644 --- a/drivers/crypto/n2_core.c +++ b/drivers/crypto/n2_core.c @@ -1353,6 +1353,7 @@ static int __n2_register_one_hmac(struct n2_ahash_alg *n2ahash) ahash->setkey = n2_hmac_async_setkey; base = &ahash->halg.base; + err = -EINVAL; if (snprintf(base->cra_name, CRYPTO_MAX_ALG_NAME, "hmac(%s)", p->child_alg) >= CRYPTO_MAX_ALG_NAME) goto out_free_p; _______________ this commit might be related which went in 6.12-rc1 is related. Maybe test needs to be adapted for this change. -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1231268 https://bugzilla.suse.com/show_bug.cgi?id=1231268#c3 --- Comment #3 from Avinesh Kumar <avinesh.kumar@suse.com> --- After doing some bisecting, this is the commit which starts breaking the test - crypto: api - Fix generic algorithm self-test races https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i... But test hangs at this for forever if not timedout. And the next commit - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i... onwards, test fails with af_alg01.c:36: TFAIL: instantiated nested hmac algorithm ('hmac(hmac(md5))')! tst_af_alg.c:46: TBROK: unexpected error binding AF_ALG socket to hash algorithm 'hmac(hmac(md5))': EINVAL (22) -- You are receiving this mail because: You are the assignee for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1231268 https://bugzilla.suse.com/show_bug.cgi?id=1231268#c4 Avinesh Kumar <avinesh.kumar@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED --- Comment #4 from Avinesh Kumar <avinesh.kumar@suse.com> --- So this is expected and test needs to be updated to treat EINVAL as expected errno. https://lore.kernel.org/lkml/ZvK-_5QKQ2e0S2Sd@gondor.apana.org.au/ closing as invalid. -- You are receiving this mail because: You are the assignee for the bug.
participants (1)
-
bugzilla_noreply@suse.com