Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipmitool crashed #3271

Open
jclulow opened this issue Jun 30, 2023 · 1 comment
Open

ipmitool crashed #3271

jclulow opened this issue Jun 30, 2023 · 1 comment

Comments

@jclulow
Copy link

jclulow commented Jun 30, 2023

I was trying to paste a few text files into the ipmitool serial-over-LAN console facility. It seems that pasting too much data too quickly causes our current ipmitool to crash, at least when using the -C 17 cipher/authentication mode.

The stack is:

$ pstack core
core 'core' of 9898:    ipmitool -C 17 -e # -I lanplus -H ... -U ...
 fffffc7feef3440a realfree (9d0760) + 4a
 fffffc7feef34cb2 cleanfree (0) + 42
 fffffc7feef33e4f _malloc_unlocked (30) + ff
 fffffc7feef33d1b malloc (30) + 3b
 fffffc7feec20112 CRYPTO_zalloc () + 12
 fffffc7feec19295 HMAC_CTX_reset () + 55
 fffffc7feec19380 HMAC_CTX_new () + 30
 fffffc7feec194d7 HMAC () + 37
 00000000004830f6 lanplus_has_valid_auth_code () + 116
 000000000047de5d ipmi_lan_poll_single () + 9d
 0000000000480958 ipmi_lanplus_recv_sol () + 18
 000000000047fed7 ipmi_lanplus_send_payload () + e7
 0000000000481b8d ipmi_lanplus_send_sol () + fd
 000000000042a2d7 ipmi_sol_red_pill () + 4e7
 000000000042a7a3 ipmi_sol_activate () + 283
 000000000042aff0 ipmi_sol_main () + 730
 0000000000455ae2 ipmi_main () + 10b2
 0000000000418250 main () + 10
 0000000000418177 _start_crt () + 87
 00000000004180d8 _start () + 18
$ pldd core
core 'core' of 9898:    ipmitool -C 17 -e # -I lanplus -H ... -U ...
/lib/amd64/libm.so.2
/lib/amd64/libsocket.so.1
/lib/amd64/libnsl.so.1
/lib/amd64/libcrypto.so.1.1
/lib/amd64/libc.so.1
/lib/amd64/libz.so.1.2.13
/lib/amd64/libmd.so.1
/lib/amd64/libmp.so.2
$ cat /etc/release
  OmniOS v11 r151038cl
  Copyright (c) 2012-2017 OmniTI Computer Consulting, Inc.
  Copyright (c) 2017-2023 OmniOS Community Edition (OmniOSce) Association.
  All rights reserved. Use is subject to licence terms.
$ pkg info ipmitool
             Name: system/management/ipmitool
          Summary: IPMI management tool
      Description: A utility for managing and configuring devices that support
                   the Intelligent Platform Management Interface
            State: Installed (Manually installed)
        Publisher: omnios
          Version: 1.8.18
           Branch: 151038.0
   Packaging Date: April 27, 2021 at 09:18:11 PM
Last Install Time: March 22, 2023 at 06:11:40 PM
             Size: 1.71 MB
             FMRI: pkg://omnios/system/management/[email protected]:20210427T211811Z

It seems like the ipmitool project has moved around a bit in the last couple of years. The current home appears to be: https://codeberg.org/IPMITool/ipmitool

There is at least a tag there for a new version (1.8.19) that we might upgrade to see if this goes away.

@citrus-it
Copy link
Member

I've queued up the update for the next release. In the meantime, if you'd like to test it I have uploaded a signed hotfix bundle to https://hf.omnios.org/r38/ipmitool-1.8.19.p5p which you can install with pkg apply-hot-fix or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants