https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292177
Bug ID: 292177
Summary: Assembly implementation of chacha20 on arm64 coredumps
Product: Base System
Version: 15.0-STABLE
Hardware: arm64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: arm
Assignee: [email protected]
Reporter: [email protected]
Running openssl speed test of chacha20 on arm64 coredumps at size 256. Using
lldb shows the issue to be inside the assembly language implementation of this.
$ openssl speed -evp chacha20-poly1305
Doing ChaCha20-Poly1305 ops for 3s on 16 size blocks: 58941245
ChaCha20-Poly1305 ops in 3.00s
Doing ChaCha20-Poly1305 ops for 3s on 64 size blocks: 22927279
ChaCha20-Poly1305 ops in 3.00s
Doing ChaCha20-Poly1305 ops for 3s on 256 size blocks: Segmentation fault
(core dumped) openssl speed -evp chacha20-poly1305
$ lldb /usr/bin/openssl --core openssl.core
(lldb) target create "/usr/bin/openssl" --core "openssl.core"
Core file '/home/webadmin/openssl.core' (aarch64) was loaded.
(lldb) bt
* thread #1, name = 'openssl', stop reason = signal SIGSEGV
* frame #0: 0x00003d417a892060 libcrypto.so.35`ChaCha20_ctr32_sve at
chacha-armv8-sve.S:1574
frame #1: 0x00003d417a88fc94 libcrypto.so.35`ChaCha20_ctr32 at
chacha-armv8.S:336
frame #2: 0x00003d417a9ad370
libcrypto.so.35`chacha20_cipher(bctx=0x00007c663e8ac0c0,
out="%.\x8f\xc9\xfb\xb6Ss\U00000011$[Z\xfaF\xc2g}ݘ\U00000001Zk\xdaww\xf3\xac+v\x80\xee\xf7\xfdk\xd9P\xf4\U00000002L\x8a\x81\U00000003\xe4\xe8\xfaA\U00000002\xb2\xd4\U00000010]\x9b\xe8\xd2\xfe\xaa\x92/]s\xbc\xb1\xaa\x84\xf7\U00000004U\xaeM\xf5\xf4\x9d(y\xf1)
\x85\xf2k?\xfe\U0000001fz\U0000001aW\x8a`\xff\xbeۓ\xcb\xddk\xb6\"\xfd\xf2\xc0\xf0Z6\xa2\U0000000f\xbf\xa3\xe9sX\xc2A\xa0\U00000002%M[\xbf\xe3)6\U000000143\U000000185T\x94'\xbfŕ:\U00000015\xf1\xc1\U00000003\xbaq\x94\U0000001e\xe0=\x8c\xd8\U00000011\b\x8e.\x84}P3\t\x96\xd9x\xecPh֣Q\xcc20>\x81\xde\U0000001f\xe2\xf9:\xb8\xac\U00000003`\xbdF@\x89,r\xfb\x86\U00000016\xa7}\x99;ș\x90\xb4\xfe\xc4hp٩m\xfc%,\f\x86\xe9\xef\U0000001bMd\xb7\xb3\x82Pq\x8f\U00000010\xd5\xf8\xa3F~ԅC\xb1\x80\fxtS\xeb-\x89\xf7ē\x895L\xb3\xc4\xfeѽ\x8c\x91\xb6\xbc",
in="%.\x8f\xc9\xfb\xb6Ss\U00000011$[Z\xfaF\xc2g}ݘ\U00000001Zk\xdaww\xf3\xac+v\x80\xee\xf7\xfdk\xd9P\xf4\U00000002L\x8a\x81\U00000003\xe4\xe8\xfaA\U00000002\xb2\xd4\U00000010]\x9b\xe8\xd2\xfe\xaa\x92/]s\xbc\xb1\xaa\x84\xf7\U00000004U\xaeM\xf5\xf4\x9d(y\xf1)
\x85\xf2k?\xfe\U0000001fz\U0000001aW\x8a`\xff\xbeۓ\xcb\xddk\xb6\"\xfd\xf2\xc0\xf0Z6\xa2\U0000000f\xbf\xa3\xe9sX\xc2A\xa0\U00000002%M[\xbf\xe3)6\U000000143\U000000185T\x94'\xbfŕ:\U00000015\xf1\xc1\U00000003\xbaq\x94\U0000001e\xe0=\x8c\xd8\U00000011\b\x8e.\x84}P3\t\x96\xd9x\xecPh֣Q\xcc20>\x81\xde\U0000001f\xe2\xf9:\xb8\xac\U00000003`\xbdF@\x89,r\xfb\x86\U00000016\xa7}\x99;ș\x90\xb4\xfe\xc4hp٩m\xfc%,\f\x86\xe9\xef\U0000001bMd\xb7\xb3\x82Pq\x8f\U00000010\xd5\xf8\xa3F~ԅC\xb1\x80\fxtS\xeb-\x89\xf7ē\x895L\xb3\xc4\xfeѽ\x8c\x91\xb6\xbc",
inl=256) at cipher_chacha20_hw.c:92:9
frame #3: 0x00003d417a9adf6c
libcrypto.so.35`chacha20_poly1305_aead_cipher(bctx=0x00007c663e8ac000,
out=<unavailable>, outl=0x00003d41788c9370, in=<unavailable>, inl=256) at
cipher_chacha20_poly1305_hw.c:323:17
frame #4: 0x00003d417a9ad7d8
libcrypto.so.35`chacha20_poly1305_cipher(vctx=0x00007c663e8ac000,
out="%.\x8f\xc9\xfb\xb6Ss\U00000011$[Z\xfaF\xc2g}ݘ\U00000001Zk\xdaww\xf3\xac+v\x80\xee\xf7\xfdk\xd9P\xf4\U00000002L\x8a\x81\U00000003\xe4\xe8\xfaA\U00000002\xb2\xd4\U00000010]\x9b\xe8\xd2\xfe\xaa\x92/]s\xbc\xb1\xaa\x84\xf7\U00000004U\xaeM\xf5\xf4\x9d(y\xf1)
\x85\xf2k?\xfe\U0000001fz\U0000001aW\x8a`\xff\xbeۓ\xcb\xddk\xb6\"\xfd\xf2\xc0\xf0Z6\xa2\U0000000f\xbf\xa3\xe9sX\xc2A\xa0\U00000002%M[\xbf\xe3)6\U000000143\U000000185T\x94'\xbfŕ:\U00000015\xf1\xc1\U00000003\xbaq\x94\U0000001e\xe0=\x8c\xd8\U00000011\b\x8e.\x84}P3\t\x96\xd9x\xecPh֣Q\xcc20>\x81\xde\U0000001f\xe2\xf9:\xb8\xac\U00000003`\xbdF@\x89,r\xfb\x86\U00000016\xa7}\x99;ș\x90\xb4\xfe\xc4hp٩m\xfc%,\f\x86\xe9\xef\U0000001bMd\xb7\xb3\x82Pq\x8f\U00000010\xd5\xf8\xa3F~ԅC\xb1\x80\fxtS\xeb-\x89\xf7ē\x895L\xb3\xc4\xfeѽ\x8c\x91\xb6\xbc",
outl=0x00003d41788c9370, outsize=256,
in="%.\x8f\xc9\xfb\xb6Ss\U00000011$[Z\xfaF\xc2g}ݘ\U00000001Zk\xdaww\xf3\xac+v\x80\xee\xf7\xfdk\xd9P\xf4\U00000002L\x8a\x81\U00000003\xe4\xe8\xfaA\U00000002\xb2\xd4\U00000010]\x9b\xe8\xd2\xfe\xaa\x92/]s\xbc\xb1\xaa\x84\xf7\U00000004U\xaeM\xf5\xf4\x9d(y\xf1)
\x85\xf2k?\xfe\U0000001fz\U0000001aW\x8a`\xff\xbeۓ\xcb\xddk\xb6\"\xfd\xf2\xc0\xf0Z6\xa2\U0000000f\xbf\xa3\xe9sX\xc2A\xa0\U00000002%M[\xbf\xe3)6\U000000143\U000000185T\x94'\xbfŕ:\U00000015\xf1\xc1\U00000003\xbaq\x94\U0000001e\xe0=\x8c\xd8\U00000011\b\x8e.\x84}P3\t\x96\xd9x\xecPh֣Q\xcc20>\x81\xde\U0000001f\xe2\xf9:\xb8\xac\U00000003`\xbdF@\x89,r\xfb\x86\U00000016\xa7}\x99;ș\x90\xb4\xfe\xc4hp٩m\xfc%,\f\x86\xe9\xef\U0000001bMd\xb7\xb3\x82Pq\x8f\U00000010\xd5\xf8\xa3F~ԅC\xb1\x80\fxtS\xeb-\x89\xf7ē\x895L\xb3\xc4\xfeѽ\x8c\x91\xb6\xbc",
inl=256) at cipher_chacha20_poly1305.c:320:10
frame #5: 0x00003d417a937de0
libcrypto.so.35`EVP_EncryptUpdate(ctx=0x00007c663e86f0c0, out=<unavailable>,
outl=0x00003d41788c93a4, in=<unavailable>, inl=<unavailable>) at
evp_enc.c:1012:11
frame #6: 0x00003d40f863e7fc
openssl`EVP_Update_loop(args=0x00003d41788c9448) at speed.c:898:18
frame #7: 0x00003d40f863d03c
openssl`run_benchmark(async_jobs=<unavailable>,
loop_function=(openssl`EVP_Update_loop at speed.c:882),
loopargs=0x00007c663e8ca840) at speed.c:1562:16
frame #8: 0x00003d40f8638750 openssl`speed_main(argc=<unavailable>,
argv=<unavailable>) at speed.c:3113:25
frame #9: 0x00003d40f8618544 openssl`do_cmd(prog=<unavailable>, argc=3,
argv=0x00003d41788c9b50) at openssl.c:428:16
frame #10: 0x00003d40f861828c openssl`main(argc=3, argv=<unavailable>) at
openssl.c:0
frame #11: 0x00003d417bea24bc libc.so.7`__libc_start1(argc=4,
argv=0x00003d41788c9b48, env=0x00003d41788c9b70, cleanup=<unavailable>,
mainX=(openssl`main at openssl.c:238)) at libc_start1.c:180:7
frame #12: 0x00003d40f85f2c90 openssl`_start at crt1_s.S:62
--
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.