Skip to content

sol nonfunctional with clang's -ftrivial-auto-init=zero #341

Open
lattera opened this issue Apr 12, 2022 · 1 comment
Open

sol nonfunctional with clang's -ftrivial-auto-init=zero #341

lattera opened this issue Apr 12, 2022 · 1 comment

Comments

@lattera
Copy link

lattera commented Apr 12, 2022

When building ipmitool on HardenedBSD 14-CURRENT/amd64 with -ftrivial-var-auto-init=zero, the following command results in zero output from the system:

ipmitool -I lanplus -H IPv4_address_sanitized -U adminuser_sanitized -P adminpassword_sanitized sol activate

Effectively, sol activate becomes non-functional.

To test: Install the latest HardenedBSD 14-CURRENT/amd64 build, then run pkg install ipmitool and use ipmitool like usual.

Additional info:

$ uname -a
FreeBSD hbsd-laptop-02 14.0-CURRENT-HBSD FreeBSD 14.0-CURRENT-HBSD #0 : Wed Apr  6 18:06:21 UTC 2022     root@ci-06.md.hardenedbsd.lan:/usr/obj/usr/src/amd64.amd64/sys/HARDENEDBSD amd64
$ pkg info ipmitool
ipmitool-1.8.18_3
Name           : ipmitool
Version        : 1.8.18_3
Installed on   : Tue Apr 12 09:50:05 2022 EDT
Origin         : sysutils/ipmitool
Architecture   : FreeBSD:14:amd64
Prefix         : /usr/local
Categories     : sysutils
Licenses       : BSD3CLAUSE
Maintainer     : zi@FreeBSD.org
WWW            : https://sourceforge.net/projects/ipmitool/
Comment        : CLI to manage IPMI systems
Options        :
        DOCS           : on
        FREEIPMI       : off
        PIE            : on
        RELRO          : on
        RETPOLINE      : on
        SAFESTACK      : on
        SLH            : off
Shared Libs required:
        libreadline.so.8
Annotations    :
        FreeBSD_version: 1400056
        cpe            : cpe:2.3:a:sun:ipmitool:1.8.18:::::freebsd14:x64:3
Flat size      : 1.56MiB
Description    :
Quoting IPMItool homepage:

"IPMItool is a utility for managing and configuring devices that
support the Intelligent Platform Management Interface (IPMI) version
1.5 and version 2.0 specifications. IPMI is an open standard for
monitoring, logging, recovery, inventory, and control of hardware that
is implemented independent of the main CPU, BIOS, and OS."

FreeBSD has OpenIPMI-compatible ipmi(4) driver for in-band IPMI
operations in the base system starting from 6.2 release. On older
systems sysutils/ipmi-kmod port is available.

WWW: https://sourceforge.net/projects/ipmitool/
@AlexanderAmelkin
Copy link
Contributor

Does it happen only with 1.18 or is the current version from github sources is also affected?

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

No branches or pull requests

2 participants