lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZCDc0zPtPSyDgOaF@fedora>
Date:   Sun, 26 Mar 2023 20:01:23 -0400
From:   William Breathitt Gray <william.gray@...aro.org>
To:     Johannes Berg <johannes.berg@...el.com>,
        Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
        Al Viro <viro@...iv.linux.org.uk>
Cc:     linux-iio@...r.kernel.org, Jonathan Cameron <jic23@...nel.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 2/3] counter: 104-quad-8: Refactor to buffer states
 for CMR, IOR, and IDR

On Fri, Mar 24, 2023 at 11:35:02AM -0400, William Breathitt Gray wrote:
> There are eight calls to quad8_control_register_update() in 104-quad-8:
> 
>         quad8_control_register_update(priv, priv->idr, id, DISABLE_INDEX_MODE, INDEX_MODE);
>         quad8_control_register_update(priv, priv->cmr, id, mode_cfg, QUADRATURE_MODE);
>         quad8_control_register_update(priv, priv->ior, event_node->channel, flg_pins, FLG_PINS);
>         quad8_control_register_update(priv, priv->idr, channel_id, index_polarity, INDEX_POLARITY);
>         quad8_control_register_update(priv, priv->idr, channel_id, synchronous_mode, INDEX_MODE);
>         quad8_control_register_update(priv, priv->cmr, count->id, count_mode, COUNT_MODE);
>         quad8_control_register_update(priv, priv->ior, count->id, enable, AB_GATE);
>         quad8_control_register_update(priv, priv->ior, count->id, !preset_enable, LOAD_PIN);

I attempted the cross-compiling using an x86-64 system and I was able to
recreate the build error. I tried to isolate the problem line by
commenting out quad8_control_register_update() calls and discover that
this appears to be an inline issue after all: if there are more than six
calls to quad8_control_register_update() are in the code, then the
'__bad_mask' build error occurs.

The build error doesn't occur if I force the inline via __always_inline,
so I'll add that to quad8_control_register_update() to resolve this
issue and submit a v3 patchset later this week.

William Breathitt Gray

Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ