Public bug reported:
[ Impact ]
DKMS make.log for gost-crypto-0.3.5 for kernel 6.17.0-7-generic (x86_64)
Wed Dec 3 19:22:24 UTC 2025
make: Entering directory '/usr/src/linux-headers-6.17.0-7-generic'
make[1]: Entering directory '/var/lib/dkms/gost-crypto/0.3.5/build'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu
13.3.0-6ubuntu2~24.04) 13.3.0
You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
CC [M] gost28147_basic.o
CC [M] gost28147_modes.o
CC [M] gosthash94_generic.o
CC [M] kuznyechik_generic.o
gost28147_modes.c: In function ‘gost28147_cfb_final’:
gost28147_modes.c:143:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
143 | u8 *src = walk->src.virt.addr;
| ^~~~
gost28147_modes.c: In function ‘gost28147_cfb_encrypt_segment’:
gost28147_modes.c:157:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
157 | u8 *src = walk->src.virt.addr;
| ^~~~
gost28147_modes.c: In function ‘gost28147_cfb_encrypt_inplace’:
gost28147_modes.c:180:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
180 | u8 *src = walk->src.virt.addr;
| ^~~~
gost28147_modes.c: In function ‘gost28147_cfb_decrypt_segment’:
gost28147_modes.c:257:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
257 | u8 *src = walk->src.virt.addr;
| ^~~~
gost28147_modes.c: In function ‘gost28147_cfb_decrypt_inplace’:
gost28147_modes.c:280:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
280 | u8 *src = walk->src.virt.addr;
| ^~~~
gost28147_modes.c: In function ‘gost28147_cnt_final’:
gost28147_modes.c:388:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
388 | u8 *src = walk->src.virt.addr;
| ^~~~
gost28147_modes.c: In function ‘gost28147_cnt_crypt_segment’:
gost28147_modes.c:402:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
402 | u8 *src = walk->src.virt.addr;
| ^~~~
gost28147_modes.c: In function ‘gost28147_cnt_crypt_inplace’:
gost28147_modes.c:422:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
422 | u8 *src = walk->src.virt.addr;
| ^~~~
CC [M] magma_generic.o
CC [M] streebog_generic.o
CC [M] testmgr.o
CC [M] gost-test-main.o
streebog_generic.c: In function ‘streebog_pad’:
streebog_generic.c:970:16: error: ‘struct streebog_state’ has no member named
‘fillsize’
970 | if (ctx->fillsize >= STREEBOG_BLOCK_SIZE)
| ^~
In file included from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/string.h:382,
from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/bitmap.h:13,
from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/cpumask.h:12,
from
/usr/src/linux-headers-6.17.0-7-generic/arch/x86/include/asm/paravirt.h:21,
from
/usr/src/linux-headers-6.17.0-7-generic/arch/x86/include/asm/irqflags.h:102,
from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/irqflags.h:18,
from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/spinlock.h:59,
from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/swait.h:7,
from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/completion.h:12,
from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/crypto.h:15,
from
/usr/src/linux-headers-6.17.0-7-generic/include/crypto/algapi.h:13,
from
/usr/src/linux-headers-6.17.0-7-generic/include/crypto/internal/hash.h:11,
from streebog_generic.c:15:
streebog_generic.c:974:26: error: ‘struct streebog_state’ has no member named
‘buffer’
974 | sizeof(ctx->buffer) - ctx->fillsize);
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:502:42:
note: in definition of macro ‘__fortify_memset_chk’
502 | size_t __fortify_size = (size_t)(size);
\
| ^~~~
streebog_generic.c:973:9: note: in expansion of macro ‘memset’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~~~~~
streebog_generic.c:974:41: error: ‘struct streebog_state’ has no member named
‘fillsize’
974 | sizeof(ctx->buffer) - ctx->fillsize);
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:502:42:
note: in definition of macro ‘__fortify_memset_chk’
502 | size_t __fortify_size = (size_t)(size);
\
| ^~~~
streebog_generic.c:973:9: note: in expansion of macro ‘memset’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~~~~~
streebog_generic.c:973:19: error: ‘struct streebog_state’ has no member named
‘buffer’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:503:44:
note: in definition of macro ‘__fortify_memset_chk’
503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
| ^~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:513:17:
note: in expansion of macro ‘__struct_size’
513 | __struct_size(p), __member_size(p))
| ^~~~~~~~~~~~~
streebog_generic.c:973:9: note: in expansion of macro ‘memset’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~~~~~
streebog_generic.c:973:33: error: ‘struct streebog_state’ has no member named
‘fillsize’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:503:44:
note: in definition of macro ‘__fortify_memset_chk’
503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
| ^~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:513:17:
note: in expansion of macro ‘__struct_size’
513 | __struct_size(p), __member_size(p))
| ^~~~~~~~~~~~~
streebog_generic.c:973:9: note: in expansion of macro ‘memset’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~~~~~
streebog_generic.c:973:19: error: ‘struct streebog_state’ has no member named
‘buffer’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:503:52:
note: in definition of macro ‘__fortify_memset_chk’
503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
| ^~~~~~~~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:513:35:
note: in expansion of macro ‘__member_size’
513 | __struct_size(p), __member_size(p))
| ^~~~~~~~~~~~~
streebog_generic.c:973:9: note: in expansion of macro ‘memset’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~~~~~
streebog_generic.c:973:33: error: ‘struct streebog_state’ has no member named
‘fillsize’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:503:52:
note: in definition of macro ‘__fortify_memset_chk’
503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
| ^~~~~~~~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:513:35:
note: in expansion of macro ‘__member_size’
513 | __struct_size(p), __member_size(p))
| ^~~~~~~~~~~~~
streebog_generic.c:973:9: note: in expansion of macro ‘memset’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~~~~~
streebog_generic.c:973:19: error: ‘struct streebog_state’ has no member named
‘buffer’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:504:29:
note: in definition of macro ‘__fortify_memset_chk’
504 | __underlying_memset(p, c, __fortify_size);
\
| ^
streebog_generic.c:973:9: note: in expansion of macro ‘memset’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~~~~~
streebog_generic.c:973:33: error: ‘struct streebog_state’ has no member named
‘fillsize’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:504:29:
note: in definition of macro ‘__fortify_memset_chk’
504 | __underlying_memset(p, c, __fortify_size);
\
| ^
streebog_generic.c:973:9: note: in expansion of macro ‘memset’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:503:65:
warning: left-hand operand of comma expression has no effect [-Wunused-value]
503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
| ^
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:512:25:
note: in expansion of macro ‘__fortify_memset_chk’
512 | #define memset(p, c, s) __fortify_memset_chk(p, c, s,
\
| ^~~~~~~~~~~~~~~~~~~~
streebog_generic.c:973:9: note: in expansion of macro ‘memset’
973 | memset(ctx->buffer + ctx->fillsize, 0,
| ^~~~~~
streebog_generic.c:976:12: error: ‘struct streebog_state’ has no member named
‘buffer’
976 | ctx->buffer[ctx->fillsize] = 1;
| ^~
streebog_generic.c:976:24: error: ‘struct streebog_state’ has no member named
‘fillsize’
976 | ctx->buffer[ctx->fillsize] = 1;
| ^~
In file included from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/byteorder/little_endian.h:5,
from
/usr/src/linux-headers-6.17.0-7-generic/arch/x86/include/uapi/asm/byteorder.h:5,
from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/unaligned.h:10,
from
/usr/src/linux-headers-6.17.0-7-generic/include/crypto/utils.h:10,
from
/usr/src/linux-headers-6.17.0-7-generic/include/crypto/algapi.h:10:
streebog_generic.c: In function ‘streebog_stage3’:
streebog_generic.c:1034:39: error: ‘struct streebog_state’ has no member named
‘fillsize’
1034 | buf.qword[0] = cpu_to_le64(ctx->fillsize << 3);
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/uapi/linux/byteorder/little_endian.h:32:51:
note: in definition of macro ‘__cpu_to_le64’
32 | #define __cpu_to_le64(x) ((__force __le64)(__u64)(x))
| ^
streebog_generic.c:1034:24: note: in expansion of macro ‘cpu_to_le64’
1034 | buf.qword[0] = cpu_to_le64(ctx->fillsize << 3);
| ^~~~~~~~~~~
streebog_generic.c:1037:54: error: ‘struct streebog_state’ has no member named
‘buffer’
1037 | streebog_g(&ctx->h, &ctx->N, (const u8 *)&ctx->buffer);
| ^~
streebog_generic.c:1040:62: error: ‘struct streebog_state’ has no member named
‘buffer’
1040 | (const struct streebog_uint512
*)&ctx->buffer[0],
| ^~
streebog_generic.c: In function ‘streebog_update’:
streebog_generic.c:1053:16: error: ‘struct streebog_state’ has no member named
‘fillsize’
1053 | if (ctx->fillsize) {
| ^~
streebog_generic.c:1054:54: error: ‘struct streebog_state’ has no member named
‘fillsize’
1054 | chunksize = STREEBOG_BLOCK_SIZE - ctx->fillsize;
| ^~
streebog_generic.c:1057:28: error: ‘struct streebog_state’ has no member named
‘buffer’
1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:628:34:
note: in definition of macro ‘__fortify_memcpy_chk’
628 | const size_t __p_size = (p_size);
\
| ^~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:691:17:
note: in expansion of macro ‘__struct_size’
691 | __struct_size(p), __struct_size(q),
\
| ^~~~~~~~~~~~~
streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
| ^~~~~~
streebog_generic.c:1057:40: error: ‘struct streebog_state’ has no member named
‘fillsize’
1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:628:34:
note: in definition of macro ‘__fortify_memcpy_chk’
628 | const size_t __p_size = (p_size);
\
| ^~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:691:17:
note: in expansion of macro ‘__struct_size’
691 | __struct_size(p), __struct_size(q),
\
| ^~~~~~~~~~~~~
streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
| ^~~~~~
streebog_generic.c:1057:28: error: ‘struct streebog_state’ has no member named
‘buffer’
1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:630:40:
note: in definition of macro ‘__fortify_memcpy_chk’
630 | const size_t __p_size_field = (p_size_field);
\
| ^~~~~~~~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:692:17:
note: in expansion of macro ‘__member_size’
692 | __member_size(p), __member_size(q),
\
| ^~~~~~~~~~~~~
streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
| ^~~~~~
streebog_generic.c:1057:40: error: ‘struct streebog_state’ has no member named
‘fillsize’
1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:630:40:
note: in definition of macro ‘__fortify_memcpy_chk’
630 | const size_t __p_size_field = (p_size_field);
\
| ^~~~~~~~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:692:17:
note: in expansion of macro ‘__member_size’
692 | __member_size(p), __member_size(q),
\
| ^~~~~~~~~~~~~
streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
| ^~~~~~
streebog_generic.c:1057:28: error: ‘struct streebog_state’ has no member named
‘buffer’
1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:645:27:
note: in definition of macro ‘__fortify_memcpy_chk’
645 | __underlying_##op(p, q, __copy_size);
\
| ^
streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
| ^~~~~~
streebog_generic.c:1057:40: error: ‘struct streebog_state’ has no member named
‘fillsize’
1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:645:27:
note: in definition of macro ‘__fortify_memcpy_chk’
645 | __underlying_##op(p, q, __copy_size);
\
| ^
streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
| ^~~~~~
streebog_generic.c:1058:20: error: ‘struct streebog_state’ has no member named
‘fillsize’
1058 | ctx->fillsize += chunksize;
| ^~
streebog_generic.c:1062:24: error: ‘struct streebog_state’ has no member named
‘fillsize’
1062 | if (ctx->fillsize == STREEBOG_BLOCK_SIZE) {
| ^~
streebog_generic.c:1063:49: error: ‘struct streebog_state’ has no member named
‘buffer’
1063 | streebog_stage2(ctx, ctx->buffer);
| ^~
streebog_generic.c:1064:28: error: ‘struct streebog_state’ has no member named
‘fillsize’
1064 | ctx->fillsize = 0;
| ^~
streebog_generic.c:1075:28: error: ‘struct streebog_state’ has no member named
‘buffer’
1075 | memcpy(&ctx->buffer, data, len);
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:628:34:
note: in definition of macro ‘__fortify_memcpy_chk’
628 | const size_t __p_size = (p_size);
\
| ^~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:691:17:
note: in expansion of macro ‘__struct_size’
691 | __struct_size(p), __struct_size(q),
\
| ^~~~~~~~~~~~~
streebog_generic.c:1075:17: note: in expansion of macro ‘memcpy’
1075 | memcpy(&ctx->buffer, data, len);
| ^~~~~~
streebog_generic.c:1075:28: error: ‘struct streebog_state’ has no member named
‘buffer’
1075 | memcpy(&ctx->buffer, data, len);
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:630:40:
note: in definition of macro ‘__fortify_memcpy_chk’
630 | const size_t __p_size_field = (p_size_field);
\
| ^~~~~~~~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:692:17:
note: in expansion of macro ‘__member_size’
692 | __member_size(p), __member_size(q),
\
| ^~~~~~~~~~~~~
streebog_generic.c:1075:17: note: in expansion of macro ‘memcpy’
1075 | memcpy(&ctx->buffer, data, len);
| ^~~~~~
streebog_generic.c:1075:28: error: ‘struct streebog_state’ has no member named
‘buffer’
1075 | memcpy(&ctx->buffer, data, len);
| ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:645:27:
note: in definition of macro ‘__fortify_memcpy_chk’
645 | __underlying_##op(p, q, __copy_size);
\
| ^
streebog_generic.c:1075:17: note: in expansion of macro ‘memcpy’
1075 | memcpy(&ctx->buffer, data, len);
| ^~~~~~
streebog_generic.c:1076:20: error: ‘struct streebog_state’ has no member named
‘fillsize’
1076 | ctx->fillsize = len;
| ^~
streebog_generic.c: In function ‘streebog_final’:
streebog_generic.c:1086:12: error: ‘struct streebog_state’ has no member named
‘fillsize’
1086 | ctx->fillsize = 0;
| ^~
make[3]: ***
[/usr/src/linux-headers-6.17.0-7-generic/scripts/Makefile.build:287:
streebog_generic.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:2016: .] Error 2
make[1]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:248: __sub-make]
Error 2
make[1]: Leaving directory '/var/lib/dkms/gost-crypto/0.3.5/build'
make: *** [Makefile:248: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.17.0-7-generic'
[ Test case ]
Install the latest linux-6.17 kernel on Noble:
$ sudo add-apt-repository ppa:canonical-kernel-team/ppa3
$ sudo apt install linux-generic-hwe-24.04-edge
Install gost-crypto-dkms:
$ sudo apt install gost-crypto-dkms
Load the module:
$ sudo modprobe gost28147_generic
$ sudo modprobe gosthash94_generic
$ sudo modprobe kuznyechik_generic
$ sudo modprobe magma_generic
$ sudo modprobe streebog_generic
$ sudo modprobe gost-test
The same procedure can be repeated on linux-6.8 to test for possible
regressions.
[ Fix ]
Apply patches from gost-crypto-dkms from Questing release:
* debian/patches/
[ Regression potential ]
We may experience regressions in systems that are using the gost-crypto
drivers, especially with kernels >= 6.8 kernel.
** Affects: gost-crypto (Ubuntu)
Importance: Undecided
Status: New
** Affects: gost-crypto (Ubuntu Noble)
Importance: Undecided
Status: New
** Also affects: gost-crypto (Ubuntu Noble)
Importance: Undecided
Status: New
** Description changed:
[ Impact ]
DKMS make.log for gost-crypto-0.3.5 for kernel 6.17.0-7-generic (x86_64)
Wed Dec 3 19:22:24 UTC 2025
make: Entering directory '/usr/src/linux-headers-6.17.0-7-generic'
make[1]: Entering directory '/var/lib/dkms/gost-crypto/0.3.5/build'
warning: the compiler differs from the one used to build the kernel
- The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu
13.3.0-6ubuntu2~24.04) 13.3.0
- You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
- CC [M] gost28147_basic.o
- CC [M] gost28147_modes.o
- CC [M] gosthash94_generic.o
- CC [M] kuznyechik_generic.o
+ The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu
13.3.0-6ubuntu2~24.04) 13.3.0
+ You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
+ CC [M] gost28147_basic.o
+ CC [M] gost28147_modes.o
+ CC [M] gosthash94_generic.o
+ CC [M] kuznyechik_generic.o
gost28147_modes.c: In function ‘gost28147_cfb_final’:
gost28147_modes.c:143:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
- 143 | u8 *src = walk->src.virt.addr;
- | ^~~~
+ 143 | u8 *src = walk->src.virt.addr;
+ | ^~~~
gost28147_modes.c: In function ‘gost28147_cfb_encrypt_segment’:
gost28147_modes.c:157:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
- 157 | u8 *src = walk->src.virt.addr;
- | ^~~~
+ 157 | u8 *src = walk->src.virt.addr;
+ | ^~~~
gost28147_modes.c: In function ‘gost28147_cfb_encrypt_inplace’:
gost28147_modes.c:180:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
- 180 | u8 *src = walk->src.virt.addr;
- | ^~~~
+ 180 | u8 *src = walk->src.virt.addr;
+ | ^~~~
gost28147_modes.c: In function ‘gost28147_cfb_decrypt_segment’:
gost28147_modes.c:257:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
- 257 | u8 *src = walk->src.virt.addr;
- | ^~~~
+ 257 | u8 *src = walk->src.virt.addr;
+ | ^~~~
gost28147_modes.c: In function ‘gost28147_cfb_decrypt_inplace’:
gost28147_modes.c:280:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
- 280 | u8 *src = walk->src.virt.addr;
- | ^~~~
+ 280 | u8 *src = walk->src.virt.addr;
+ | ^~~~
gost28147_modes.c: In function ‘gost28147_cnt_final’:
gost28147_modes.c:388:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
- 388 | u8 *src = walk->src.virt.addr;
- | ^~~~
+ 388 | u8 *src = walk->src.virt.addr;
+ | ^~~~
gost28147_modes.c: In function ‘gost28147_cnt_crypt_segment’:
gost28147_modes.c:402:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
- 402 | u8 *src = walk->src.virt.addr;
- | ^~~~
+ 402 | u8 *src = walk->src.virt.addr;
+ | ^~~~
gost28147_modes.c: In function ‘gost28147_cnt_crypt_inplace’:
gost28147_modes.c:422:19: warning: initialization discards ‘const’ qualifier
from pointer target type [-Wdiscarded-qualifiers]
- 422 | u8 *src = walk->src.virt.addr;
- | ^~~~
- CC [M] magma_generic.o
- CC [M] streebog_generic.o
- CC [M] testmgr.o
- CC [M] gost-test-main.o
+ 422 | u8 *src = walk->src.virt.addr;
+ | ^~~~
+ CC [M] magma_generic.o
+ CC [M] streebog_generic.o
+ CC [M] testmgr.o
+ CC [M] gost-test-main.o
streebog_generic.c: In function ‘streebog_pad’:
streebog_generic.c:970:16: error: ‘struct streebog_state’ has no member named
‘fillsize’
- 970 | if (ctx->fillsize >= STREEBOG_BLOCK_SIZE)
- | ^~
+ 970 | if (ctx->fillsize >= STREEBOG_BLOCK_SIZE)
+ | ^~
In file included from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/string.h:382,
- from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/bitmap.h:13,
- from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/cpumask.h:12,
- from
/usr/src/linux-headers-6.17.0-7-generic/arch/x86/include/asm/paravirt.h:21,
- from
/usr/src/linux-headers-6.17.0-7-generic/arch/x86/include/asm/irqflags.h:102,
- from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/irqflags.h:18,
- from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/spinlock.h:59,
- from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/swait.h:7,
- from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/completion.h:12,
- from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/crypto.h:15,
- from
/usr/src/linux-headers-6.17.0-7-generic/include/crypto/algapi.h:13,
- from
/usr/src/linux-headers-6.17.0-7-generic/include/crypto/internal/hash.h:11,
- from streebog_generic.c:15:
+ from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/bitmap.h:13,
+ from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/cpumask.h:12,
+ from
/usr/src/linux-headers-6.17.0-7-generic/arch/x86/include/asm/paravirt.h:21,
+ from
/usr/src/linux-headers-6.17.0-7-generic/arch/x86/include/asm/irqflags.h:102,
+ from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/irqflags.h:18,
+ from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/spinlock.h:59,
+ from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/swait.h:7,
+ from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/completion.h:12,
+ from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/crypto.h:15,
+ from
/usr/src/linux-headers-6.17.0-7-generic/include/crypto/algapi.h:13,
+ from
/usr/src/linux-headers-6.17.0-7-generic/include/crypto/internal/hash.h:11,
+ from streebog_generic.c:15:
streebog_generic.c:974:26: error: ‘struct streebog_state’ has no member named
‘buffer’
- 974 | sizeof(ctx->buffer) - ctx->fillsize);
- | ^~
+ 974 | sizeof(ctx->buffer) - ctx->fillsize);
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:502:42:
note: in definition of macro ‘__fortify_memset_chk’
- 502 | size_t __fortify_size = (size_t)(size);
\
- | ^~~~
- streebog_generic.c:973:9: note: in expansion of macro ‘memset’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~~~~~
+ 502 | size_t __fortify_size = (size_t)(size);
\
+ | ^~~~
+ streebog_generic.c:973:9: note: in expansion of macro ‘memset’
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~~~~~
streebog_generic.c:974:41: error: ‘struct streebog_state’ has no member named
‘fillsize’
- 974 | sizeof(ctx->buffer) - ctx->fillsize);
- | ^~
+ 974 | sizeof(ctx->buffer) - ctx->fillsize);
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:502:42:
note: in definition of macro ‘__fortify_memset_chk’
- 502 | size_t __fortify_size = (size_t)(size);
\
- | ^~~~
- streebog_generic.c:973:9: note: in expansion of macro ‘memset’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~~~~~
+ 502 | size_t __fortify_size = (size_t)(size);
\
+ | ^~~~
+ streebog_generic.c:973:9: note: in expansion of macro ‘memset’
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~~~~~
streebog_generic.c:973:19: error: ‘struct streebog_state’ has no member named
‘buffer’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:503:44:
note: in definition of macro ‘__fortify_memset_chk’
- 503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
- | ^~~~~~
+ 503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
+ | ^~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:513:17:
note: in expansion of macro ‘__struct_size’
- 513 | __struct_size(p), __member_size(p))
- | ^~~~~~~~~~~~~
- streebog_generic.c:973:9: note: in expansion of macro ‘memset’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~~~~~
+ 513 | __struct_size(p), __member_size(p))
+ | ^~~~~~~~~~~~~
+ streebog_generic.c:973:9: note: in expansion of macro ‘memset’
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~~~~~
streebog_generic.c:973:33: error: ‘struct streebog_state’ has no member named
‘fillsize’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:503:44:
note: in definition of macro ‘__fortify_memset_chk’
- 503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
- | ^~~~~~
+ 503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
+ | ^~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:513:17:
note: in expansion of macro ‘__struct_size’
- 513 | __struct_size(p), __member_size(p))
- | ^~~~~~~~~~~~~
- streebog_generic.c:973:9: note: in expansion of macro ‘memset’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~~~~~
+ 513 | __struct_size(p), __member_size(p))
+ | ^~~~~~~~~~~~~
+ streebog_generic.c:973:9: note: in expansion of macro ‘memset’
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~~~~~
streebog_generic.c:973:19: error: ‘struct streebog_state’ has no member named
‘buffer’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:503:52:
note: in definition of macro ‘__fortify_memset_chk’
- 503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
- | ^~~~~~~~~~~~
+ 503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
+ | ^~~~~~~~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:513:35:
note: in expansion of macro ‘__member_size’
- 513 | __struct_size(p), __member_size(p))
- | ^~~~~~~~~~~~~
- streebog_generic.c:973:9: note: in expansion of macro ‘memset’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~~~~~
+ 513 | __struct_size(p), __member_size(p))
+ | ^~~~~~~~~~~~~
+ streebog_generic.c:973:9: note: in expansion of macro ‘memset’
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~~~~~
streebog_generic.c:973:33: error: ‘struct streebog_state’ has no member named
‘fillsize’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:503:52:
note: in definition of macro ‘__fortify_memset_chk’
- 503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
- | ^~~~~~~~~~~~
+ 503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
+ | ^~~~~~~~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:513:35:
note: in expansion of macro ‘__member_size’
- 513 | __struct_size(p), __member_size(p))
- | ^~~~~~~~~~~~~
- streebog_generic.c:973:9: note: in expansion of macro ‘memset’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~~~~~
+ 513 | __struct_size(p), __member_size(p))
+ | ^~~~~~~~~~~~~
+ streebog_generic.c:973:9: note: in expansion of macro ‘memset’
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~~~~~
streebog_generic.c:973:19: error: ‘struct streebog_state’ has no member named
‘buffer’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:504:29:
note: in definition of macro ‘__fortify_memset_chk’
- 504 | __underlying_memset(p, c, __fortify_size);
\
- | ^
- streebog_generic.c:973:9: note: in expansion of macro ‘memset’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~~~~~
+ 504 | __underlying_memset(p, c, __fortify_size);
\
+ | ^
+ streebog_generic.c:973:9: note: in expansion of macro ‘memset’
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~~~~~
streebog_generic.c:973:33: error: ‘struct streebog_state’ has no member named
‘fillsize’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:504:29:
note: in definition of macro ‘__fortify_memset_chk’
- 504 | __underlying_memset(p, c, __fortify_size);
\
- | ^
- streebog_generic.c:973:9: note: in expansion of macro ‘memset’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~~~~~
+ 504 | __underlying_memset(p, c, __fortify_size);
\
+ | ^
+ streebog_generic.c:973:9: note: in expansion of macro ‘memset’
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:503:65:
warning: left-hand operand of comma expression has no effect [-Wunused-value]
- 503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
- | ^
+ 503 | fortify_memset_chk(__fortify_size, p_size, p_size_field),
\
+ | ^
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:512:25:
note: in expansion of macro ‘__fortify_memset_chk’
- 512 | #define memset(p, c, s) __fortify_memset_chk(p, c, s,
\
- | ^~~~~~~~~~~~~~~~~~~~
- streebog_generic.c:973:9: note: in expansion of macro ‘memset’
- 973 | memset(ctx->buffer + ctx->fillsize, 0,
- | ^~~~~~
+ 512 | #define memset(p, c, s) __fortify_memset_chk(p, c, s,
\
+ | ^~~~~~~~~~~~~~~~~~~~
+ streebog_generic.c:973:9: note: in expansion of macro ‘memset’
+ 973 | memset(ctx->buffer + ctx->fillsize, 0,
+ | ^~~~~~
streebog_generic.c:976:12: error: ‘struct streebog_state’ has no member named
‘buffer’
- 976 | ctx->buffer[ctx->fillsize] = 1;
- | ^~
+ 976 | ctx->buffer[ctx->fillsize] = 1;
+ | ^~
streebog_generic.c:976:24: error: ‘struct streebog_state’ has no member named
‘fillsize’
- 976 | ctx->buffer[ctx->fillsize] = 1;
- | ^~
+ 976 | ctx->buffer[ctx->fillsize] = 1;
+ | ^~
In file included from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/byteorder/little_endian.h:5,
- from
/usr/src/linux-headers-6.17.0-7-generic/arch/x86/include/uapi/asm/byteorder.h:5,
- from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/unaligned.h:10,
- from
/usr/src/linux-headers-6.17.0-7-generic/include/crypto/utils.h:10,
- from
/usr/src/linux-headers-6.17.0-7-generic/include/crypto/algapi.h:10:
+ from
/usr/src/linux-headers-6.17.0-7-generic/arch/x86/include/uapi/asm/byteorder.h:5,
+ from
/usr/src/linux-headers-6.17.0-7-generic/include/linux/unaligned.h:10,
+ from
/usr/src/linux-headers-6.17.0-7-generic/include/crypto/utils.h:10,
+ from
/usr/src/linux-headers-6.17.0-7-generic/include/crypto/algapi.h:10:
streebog_generic.c: In function ‘streebog_stage3’:
streebog_generic.c:1034:39: error: ‘struct streebog_state’ has no member
named ‘fillsize’
- 1034 | buf.qword[0] = cpu_to_le64(ctx->fillsize << 3);
- | ^~
+ 1034 | buf.qword[0] = cpu_to_le64(ctx->fillsize << 3);
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/uapi/linux/byteorder/little_endian.h:32:51:
note: in definition of macro ‘__cpu_to_le64’
- 32 | #define __cpu_to_le64(x) ((__force __le64)(__u64)(x))
- | ^
+ 32 | #define __cpu_to_le64(x) ((__force __le64)(__u64)(x))
+ | ^
streebog_generic.c:1034:24: note: in expansion of macro ‘cpu_to_le64’
- 1034 | buf.qword[0] = cpu_to_le64(ctx->fillsize << 3);
- | ^~~~~~~~~~~
+ 1034 | buf.qword[0] = cpu_to_le64(ctx->fillsize << 3);
+ | ^~~~~~~~~~~
streebog_generic.c:1037:54: error: ‘struct streebog_state’ has no member
named ‘buffer’
- 1037 | streebog_g(&ctx->h, &ctx->N, (const u8 *)&ctx->buffer);
- | ^~
+ 1037 | streebog_g(&ctx->h, &ctx->N, (const u8 *)&ctx->buffer);
+ | ^~
streebog_generic.c:1040:62: error: ‘struct streebog_state’ has no member
named ‘buffer’
- 1040 | (const struct streebog_uint512
*)&ctx->buffer[0],
- | ^~
+ 1040 | (const struct streebog_uint512
*)&ctx->buffer[0],
+ | ^~
streebog_generic.c: In function ‘streebog_update’:
streebog_generic.c:1053:16: error: ‘struct streebog_state’ has no member
named ‘fillsize’
- 1053 | if (ctx->fillsize) {
- | ^~
+ 1053 | if (ctx->fillsize) {
+ | ^~
streebog_generic.c:1054:54: error: ‘struct streebog_state’ has no member
named ‘fillsize’
- 1054 | chunksize = STREEBOG_BLOCK_SIZE - ctx->fillsize;
- | ^~
+ 1054 | chunksize = STREEBOG_BLOCK_SIZE - ctx->fillsize;
+ | ^~
streebog_generic.c:1057:28: error: ‘struct streebog_state’ has no member
named ‘buffer’
- 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
- | ^~
+ 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:628:34:
note: in definition of macro ‘__fortify_memcpy_chk’
- 628 | const size_t __p_size = (p_size);
\
- | ^~~~~~
+ 628 | const size_t __p_size = (p_size);
\
+ | ^~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:691:17:
note: in expansion of macro ‘__struct_size’
- 691 | __struct_size(p), __struct_size(q),
\
- | ^~~~~~~~~~~~~
- streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
- 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
- | ^~~~~~
+ 691 | __struct_size(p), __struct_size(q),
\
+ | ^~~~~~~~~~~~~
+ streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
+ 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
+ | ^~~~~~
streebog_generic.c:1057:40: error: ‘struct streebog_state’ has no member
named ‘fillsize’
- 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
- | ^~
+ 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:628:34:
note: in definition of macro ‘__fortify_memcpy_chk’
- 628 | const size_t __p_size = (p_size);
\
- | ^~~~~~
+ 628 | const size_t __p_size = (p_size);
\
+ | ^~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:691:17:
note: in expansion of macro ‘__struct_size’
- 691 | __struct_size(p), __struct_size(q),
\
- | ^~~~~~~~~~~~~
- streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
- 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
- | ^~~~~~
+ 691 | __struct_size(p), __struct_size(q),
\
+ | ^~~~~~~~~~~~~
+ streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
+ 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
+ | ^~~~~~
streebog_generic.c:1057:28: error: ‘struct streebog_state’ has no member
named ‘buffer’
- 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
- | ^~
+ 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:630:40:
note: in definition of macro ‘__fortify_memcpy_chk’
- 630 | const size_t __p_size_field = (p_size_field);
\
- | ^~~~~~~~~~~~
+ 630 | const size_t __p_size_field = (p_size_field);
\
+ | ^~~~~~~~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:692:17:
note: in expansion of macro ‘__member_size’
- 692 | __member_size(p), __member_size(q),
\
- | ^~~~~~~~~~~~~
- streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
- 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
- | ^~~~~~
+ 692 | __member_size(p), __member_size(q),
\
+ | ^~~~~~~~~~~~~
+ streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
+ 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
+ | ^~~~~~
streebog_generic.c:1057:40: error: ‘struct streebog_state’ has no member
named ‘fillsize’
- 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
- | ^~
+ 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:630:40:
note: in definition of macro ‘__fortify_memcpy_chk’
- 630 | const size_t __p_size_field = (p_size_field);
\
- | ^~~~~~~~~~~~
+ 630 | const size_t __p_size_field = (p_size_field);
\
+ | ^~~~~~~~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:692:17:
note: in expansion of macro ‘__member_size’
- 692 | __member_size(p), __member_size(q),
\
- | ^~~~~~~~~~~~~
- streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
- 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
- | ^~~~~~
+ 692 | __member_size(p), __member_size(q),
\
+ | ^~~~~~~~~~~~~
+ streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
+ 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
+ | ^~~~~~
streebog_generic.c:1057:28: error: ‘struct streebog_state’ has no member
named ‘buffer’
- 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
- | ^~
+ 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:645:27:
note: in definition of macro ‘__fortify_memcpy_chk’
- 645 | __underlying_##op(p, q, __copy_size);
\
- | ^
- streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
- 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
- | ^~~~~~
+ 645 | __underlying_##op(p, q, __copy_size);
\
+ | ^
+ streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
+ 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
+ | ^~~~~~
streebog_generic.c:1057:40: error: ‘struct streebog_state’ has no member
named ‘fillsize’
- 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
- | ^~
+ 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:645:27:
note: in definition of macro ‘__fortify_memcpy_chk’
- 645 | __underlying_##op(p, q, __copy_size);
\
- | ^
- streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
- 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
- | ^~~~~~
+ 645 | __underlying_##op(p, q, __copy_size);
\
+ | ^
+ streebog_generic.c:1057:17: note: in expansion of macro ‘memcpy’
+ 1057 | memcpy(&ctx->buffer[ctx->fillsize], data, chunksize);
+ | ^~~~~~
streebog_generic.c:1058:20: error: ‘struct streebog_state’ has no member
named ‘fillsize’
- 1058 | ctx->fillsize += chunksize;
- | ^~
+ 1058 | ctx->fillsize += chunksize;
+ | ^~
streebog_generic.c:1062:24: error: ‘struct streebog_state’ has no member
named ‘fillsize’
- 1062 | if (ctx->fillsize == STREEBOG_BLOCK_SIZE) {
- | ^~
+ 1062 | if (ctx->fillsize == STREEBOG_BLOCK_SIZE) {
+ | ^~
streebog_generic.c:1063:49: error: ‘struct streebog_state’ has no member
named ‘buffer’
- 1063 | streebog_stage2(ctx, ctx->buffer);
- | ^~
+ 1063 | streebog_stage2(ctx, ctx->buffer);
+ | ^~
streebog_generic.c:1064:28: error: ‘struct streebog_state’ has no member
named ‘fillsize’
- 1064 | ctx->fillsize = 0;
- | ^~
+ 1064 | ctx->fillsize = 0;
+ | ^~
streebog_generic.c:1075:28: error: ‘struct streebog_state’ has no member
named ‘buffer’
- 1075 | memcpy(&ctx->buffer, data, len);
- | ^~
+ 1075 | memcpy(&ctx->buffer, data, len);
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:628:34:
note: in definition of macro ‘__fortify_memcpy_chk’
- 628 | const size_t __p_size = (p_size);
\
- | ^~~~~~
+ 628 | const size_t __p_size = (p_size);
\
+ | ^~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:691:17:
note: in expansion of macro ‘__struct_size’
- 691 | __struct_size(p), __struct_size(q),
\
- | ^~~~~~~~~~~~~
+ 691 | __struct_size(p), __struct_size(q),
\
+ | ^~~~~~~~~~~~~
streebog_generic.c:1075:17: note: in expansion of macro ‘memcpy’
- 1075 | memcpy(&ctx->buffer, data, len);
- | ^~~~~~
+ 1075 | memcpy(&ctx->buffer, data, len);
+ | ^~~~~~
streebog_generic.c:1075:28: error: ‘struct streebog_state’ has no member
named ‘buffer’
- 1075 | memcpy(&ctx->buffer, data, len);
- | ^~
+ 1075 | memcpy(&ctx->buffer, data, len);
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:630:40:
note: in definition of macro ‘__fortify_memcpy_chk’
- 630 | const size_t __p_size_field = (p_size_field);
\
- | ^~~~~~~~~~~~
+ 630 | const size_t __p_size_field = (p_size_field);
\
+ | ^~~~~~~~~~~~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:692:17:
note: in expansion of macro ‘__member_size’
- 692 | __member_size(p), __member_size(q),
\
- | ^~~~~~~~~~~~~
+ 692 | __member_size(p), __member_size(q),
\
+ | ^~~~~~~~~~~~~
streebog_generic.c:1075:17: note: in expansion of macro ‘memcpy’
- 1075 | memcpy(&ctx->buffer, data, len);
- | ^~~~~~
+ 1075 | memcpy(&ctx->buffer, data, len);
+ | ^~~~~~
streebog_generic.c:1075:28: error: ‘struct streebog_state’ has no member
named ‘buffer’
- 1075 | memcpy(&ctx->buffer, data, len);
- | ^~
+ 1075 | memcpy(&ctx->buffer, data, len);
+ | ^~
/usr/src/linux-headers-6.17.0-7-generic/include/linux/fortify-string.h:645:27:
note: in definition of macro ‘__fortify_memcpy_chk’
- 645 | __underlying_##op(p, q, __copy_size);
\
- | ^
+ 645 | __underlying_##op(p, q, __copy_size);
\
+ | ^
streebog_generic.c:1075:17: note: in expansion of macro ‘memcpy’
- 1075 | memcpy(&ctx->buffer, data, len);
- | ^~~~~~
+ 1075 | memcpy(&ctx->buffer, data, len);
+ | ^~~~~~
streebog_generic.c:1076:20: error: ‘struct streebog_state’ has no member
named ‘fillsize’
- 1076 | ctx->fillsize = len;
- | ^~
+ 1076 | ctx->fillsize = len;
+ | ^~
streebog_generic.c: In function ‘streebog_final’:
streebog_generic.c:1086:12: error: ‘struct streebog_state’ has no member
named ‘fillsize’
- 1086 | ctx->fillsize = 0;
- | ^~
+ 1086 | ctx->fillsize = 0;
+ | ^~
make[3]: ***
[/usr/src/linux-headers-6.17.0-7-generic/scripts/Makefile.build:287:
streebog_generic.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:2016: .] Error
2
make[1]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:248:
__sub-make] Error 2
make[1]: Leaving directory '/var/lib/dkms/gost-crypto/0.3.5/build'
make: *** [Makefile:248: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.17.0-7-generic'
[ Test case ]
- Install the latest linux-6.14 kernel on Noble:
+ Install the latest linux-6.17 kernel on Noble:
$ sudo add-apt-repository ppa:canonical-kernel-team/ppa3
$ sudo apt install linux-generic-hwe-24.04-edge
Install gost-crypto-dkms:
$ sudo apt install gost-crypto-dkms
Load the module:
$ sudo modprobe gost28147_generic
$ sudo modprobe gosthash94_generic
$ sudo modprobe kuznyechik_generic
$ sudo modprobe magma_generic
$ sudo modprobe streebog_generic
$ sudo modprobe gost-test
The same procedure can be repeated on linux-6.8 to test for possible
regressions.
[ Fix ]
Apply patches from gost-crypto-dkms from Questing release:
* debian/patches/
[ Regression potential ]
We may experience regressions in systems that are using the gost-crypto
drivers, especially with kernels >= 6.8 kernel.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2133819
Title:
gost-crypto-dkms FTBS in Noble with the linux-6.17-hwe kernel
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gost-crypto/+bug/2133819/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs