Bug#1014272: src:linux: sign-file: correct error handling

2022-07-05 Thread Salvatore Bonaccorso
Hi Ansgar, On Sun, Jul 03, 2022 at 11:47:51AM +0200, Ansgar wrote: > Source: linux > Version: 5.18.5-1 > Severity: normal > Tags: upstream > Control: found -1 4.19.208-1 5.10.84-1 > > The functions CMS_final, i2d_CMS_bio_stream, i2d_PKCS7_bio and > BIO_free all return 1 for success or 0 for

Bug#1014272: src:linux: sign-file: correct error handling

2022-07-03 Thread Daniel Lewart
On Sun, 03 Jul 2022 11:47:51 +0200, Ansgar wrote: > The functions CMS_final, i2d_CMS_bio_stream, i2d_PKCS7_bio and > BIO_free all return 1 for success or 0 for failure. The old check > for a value less than 0 would never catch an error. > I tried signing a kernel module with the patched

Bug#1014272: src:linux: sign-file: correct error handling

2022-07-03 Thread Ansgar
Source: linux Version: 5.18.5-1 Severity: normal Tags: upstream Control: found -1 4.19.208-1 5.10.84-1 The functions CMS_final, i2d_CMS_bio_stream, i2d_PKCS7_bio and BIO_free all return 1 for success or 0 for failure. The old check for a value less than 0 would never catch an error. I tried