[LU-15545] lgss_sk crash because of freeing twice Created: 10/Feb/22 Updated: 02/Apr/22 Resolved: 02/Apr/22 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.15.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Li Xi | Assignee: | Feng Lei |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Severity: | 3 |
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
When a key "xxx" alreasy exists, following command would crash: # /usr/sbin/lgss_sk -t client -f lustre0 -w xxx Reading random data for shared key from '/dev/random' Generating DH parameters, this can take a while... error: opening 'xxx': File exists *** Error in `/usr/sbin/lgss_sk': free(): invalid size: 0x000000000226ff90 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x81329)[0x7fc28d9e4329] /lib64/libcrypto.so.10(CRYPTO_free+0x1d)[0x7fc28e51780d] /lib64/libcrypto.so.10(BN_clear_free+0x50)[0x7fc28e575a20] /lib64/libcrypto.so.10(DH_free+0x75)[0x7fc28e5ba125] /usr/sbin/lgss_sk[0x402caa] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7fc28d985555] /usr/sbin/lgss_sk[0x4031f3] ======= Memory map: ======== This is caused by calling DH_free() on the same address for twice. |
| Comments |
| Comment by Gerrit Updater [ 23/Feb/22 ] |
|
"Feng, Lei <flei@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/46594 |
| Comment by Gerrit Updater [ 02/Apr/22 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46594/ |
| Comment by Peter Jones [ 02/Apr/22 ] |
|
Landed for 2.15 |