Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2025 08:23:50 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        Eygene Ryabinkin <rea@freebsd.org>
Cc:        jsm@freebsd.org, dev-ci@freebsd.org
Subject:   Re: FreeBSD-main-amd64-gcc13_build - Build #2837 - Still Failing
Message-ID:  <CAJ-VmonyGxY73Mhcnfsp9av1n0y0nug%2Butzo4DOe6VReg5sw5A@mail.gmail.com>
In-Reply-To: <Z6ix343BygnVCJDb@light.codelabs.ru>
References:  <1655522310.793.1739106980888@jenkins.ci.freebsd.org> <761769956.791.1739106205086@jenkins.ci.freebsd.org> <Z6ix343BygnVCJDb@light.codelabs.ru>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
hi!

markj filed a review - https://reviews.freebsd.org/D48903

We're talking about what/how to fix

thanks!


-a


On Sun, 9 Feb 2025 at 05:47, Eygene Ryabinkin <rea@freebsd.org> wrote:

> Gentlemen, good day.
>
> Jenkins passed me the following build errors, since I had receintly
> committed to the HEAD (ports-committers.dot).  My commit was unrelated
> to those build failures, but attached is the patch that fixes
> the code of mtw_mcu_radio(): it passes wrond 3-rd argument to the
> mtw_mcu_cmd().  Also checked that other invocations of mtw_mcu_cmd()
> are fine.
>
> jenkins-admin@FreeBSD.org wrote at around Sun, Feb 09, 2025 at 01:03:21PM
> +0000:
> > FreeBSD-main-amd64-gcc13_build - Build #2837
> (c945a7832f94c6a46375596f298f6140640722cd) - Still Failing
> >
> > Build information:
> https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc13_build/2837/
> > Full change log:
> https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc13_build/2837/changes
> > Full build log:
> https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc13_build/2837/console
> >
> > Change summaries:
> > (Those commits are likely but not certainly responsible)
> >
> > c945a7832f94c6a46375596f298f6140640722cd by rea:
> > Ports committers: add myself
> >
> >
> >
> > The end of the build log:
> >
> > [...truncated 126.38 MiB...]
> [...]
> > --- all_subdir_usb/mtw ---
> > In file included from /workspace/src/sys/dev/usb/wlan/if_mtw.c:27:
> > In function 'mtw_mcu_cmd',
> >     inlined from 'mtw_mcu_radio' at
> /workspace/src/sys/dev/usb/wlan/if_mtw.c:4387:10,
> >     inlined from 'mtw_init_locked' at
> /workspace/src/sys/dev/usb/wlan/if_mtw.c:4513:2,
> >     inlined from 'mtw_parent' at
> /workspace/src/sys/dev/usb/wlan/if_mtw.c:3490:3:
> > /workspace/src/sys/sys/systm.h:283:33: warning: '__builtin_memcpy'
> forming offset [4, 15] is out of the bounds [0, 4] of object 'val' with
> type 'uint32_t' {aka 'unsigned int'} [-Warray-bounds=]
> >   283 | #define memcpy(to, from, len)   __builtin_memcpy((to), (from),
> (len))
> >       |
>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > /workspace/src/sys/dev/usb/wlan/if_mtw.c:1407:9: note: in expansion of
> macro 'memcpy'
> >  1407 |         memcpy(&sc->txd_fw[sc->sc_idx]->fw, buf, len);
> >       |         ^~~~~~
> > /workspace/src/sys/dev/usb/wlan/if_mtw.c: In function 'mtw_parent':
> > /workspace/src/sys/dev/usb/wlan/if_mtw.c:4390:1: note: 'val' declared
> here
> >  4390 | mtw_init_locked(struct mtw_softc *sc)
> >       | ^~~~~~~~~~~~~~~
>
>
> jenkins-admin@FreeBSD.org wrote at around Sun, Feb 09, 2025 at 01:16:17PM
> +0000:
> > FreeBSD-main-amd64-gcc12_build - Build #4957
> (c945a7832f94c6a46375596f298f6140640722cd) - Still Failing
> >
> > Build information:
> https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc12_build/4957/
> > Full change log:
> https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc12_build/4957/changes
> > Full build log:
> https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc12_build/4957/console
> >
> > Change summaries:
> > (Those commits are likely but not certainly responsible)
> >
> > c945a7832f94c6a46375596f298f6140640722cd by rea:
> > Ports committers: add myself
> >
> >
> >
> > The end of the build log:
> >
> > [...truncated 125.71 MiB...]
> [...]
> > --- all_subdir_usb/mtw ---
> > In file included from /workspace/src/sys/dev/usb/wlan/if_mtw.c:27:
> > In function 'mtw_mcu_cmd',
> >     inlined from 'mtw_mcu_radio' at
> /workspace/src/sys/dev/usb/wlan/if_mtw.c:4387:10,
> >     inlined from 'mtw_init_locked' at
> /workspace/src/sys/dev/usb/wlan/if_mtw.c:4513:2,
> >     inlined from 'mtw_parent' at
> /workspace/src/sys/dev/usb/wlan/if_mtw.c:3490:3:
> > /workspace/src/sys/sys/systm.h:283:33: warning: '__builtin_memcpy'
> forming offset [4, 15] is out of the bounds [0, 4] of object 'val' with
> type 'uint32_t' {aka 'unsigned int'} [-Warray-bounds]
> >   283 | #define memcpy(to, from, len)   __builtin_memcpy((to), (from),
> (len))
> >       |
>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > /workspace/src/sys/dev/usb/wlan/if_mtw.c:1407:9: note: in expansion of
> macro 'memcpy'
> >  1407 |         memcpy(&sc->txd_fw[sc->sc_idx]->fw, buf, len);
> >       |         ^~~~~~
> > /workspace/src/sys/dev/usb/wlan/if_mtw.c: In function 'mtw_parent':
>
> Please, review and, possibly, commit.
>
> Thank you.
> --
> rea
>

[-- Attachment #2 --]
<div dir="ltr">hi!<div><br></div><div>markj filed a review - <a href="https://reviews.freebsd.org/D48903">https://reviews.freebsd.org/D48903</a></div><div><br></div><div>We&#39;re talking about what/how to fix</div><div><br></div><div>thanks!</div><div><br></div><div><br></div><div>-a</div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, 9 Feb 2025 at 05:47, Eygene Ryabinkin &lt;<a href="mailto:rea@freebsd.org">rea@freebsd.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Gentlemen, good day.<br>
<br>
Jenkins passed me the following build errors, since I had receintly<br>
committed to the HEAD (ports-committers.dot).  My commit was unrelated<br>
to those build failures, but attached is the patch that fixes<br>
the code of mtw_mcu_radio(): it passes wrond 3-rd argument to the<br>
mtw_mcu_cmd().  Also checked that other invocations of mtw_mcu_cmd()<br>
are fine.<br>
<br>
jenkins-admin@FreeBSD.org wrote at around Sun, Feb 09, 2025 at 01:03:21PM +0000:<br>
&gt; FreeBSD-main-amd64-gcc13_build - Build #2837 (c945a7832f94c6a46375596f298f6140640722cd) - Still Failing<br>
&gt; <br>
&gt; Build information: <a href="https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc13_build/2837/" rel="noreferrer" target="_blank">https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc13_build/2837/</a><br>;
&gt; Full change log: <a href="https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc13_build/2837/changes" rel="noreferrer" target="_blank">https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc13_build/2837/changes</a><br>;
&gt; Full build log: <a href="https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc13_build/2837/console" rel="noreferrer" target="_blank">https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc13_build/2837/console</a><br>;
&gt; <br>
&gt; Change summaries:<br>
&gt; (Those commits are likely but not certainly responsible)<br>
&gt; <br>
&gt; c945a7832f94c6a46375596f298f6140640722cd by rea:<br>
&gt; Ports committers: add myself<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; The end of the build log:<br>
&gt; <br>
&gt; [...truncated 126.38 MiB...]<br>
[...]<br>
&gt; --- all_subdir_usb/mtw ---<br>
&gt; In file included from /workspace/src/sys/dev/usb/wlan/if_mtw.c:27:<br>
&gt; In function &#39;mtw_mcu_cmd&#39;,<br>
&gt;     inlined from &#39;mtw_mcu_radio&#39; at /workspace/src/sys/dev/usb/wlan/if_mtw.c:4387:10,<br>
&gt;     inlined from &#39;mtw_init_locked&#39; at /workspace/src/sys/dev/usb/wlan/if_mtw.c:4513:2,<br>
&gt;     inlined from &#39;mtw_parent&#39; at /workspace/src/sys/dev/usb/wlan/if_mtw.c:3490:3:<br>
&gt; /workspace/src/sys/sys/systm.h:283:33: warning: &#39;__builtin_memcpy&#39; forming offset [4, 15] is out of the bounds [0, 4] of object &#39;val&#39; with type &#39;uint32_t&#39; {aka &#39;unsigned int&#39;} [-Warray-bounds=]<br>
&gt;   283 | #define memcpy(to, from, len)   __builtin_memcpy((to), (from), (len))<br>
&gt;       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
&gt; /workspace/src/sys/dev/usb/wlan/if_mtw.c:1407:9: note: in expansion of macro &#39;memcpy&#39;<br>
&gt;  1407 |         memcpy(&amp;sc-&gt;txd_fw[sc-&gt;sc_idx]-&gt;fw, buf, len);<br>
&gt;       |         ^~~~~~<br>
&gt; /workspace/src/sys/dev/usb/wlan/if_mtw.c: In function &#39;mtw_parent&#39;:<br>
&gt; /workspace/src/sys/dev/usb/wlan/if_mtw.c:4390:1: note: &#39;val&#39; declared here<br>
&gt;  4390 | mtw_init_locked(struct mtw_softc *sc)<br>
&gt;       | ^~~~~~~~~~~~~~~<br>
<br>
<br>
jenkins-admin@FreeBSD.org wrote at around Sun, Feb 09, 2025 at 01:16:17PM +0000:<br>
&gt; FreeBSD-main-amd64-gcc12_build - Build #4957 (c945a7832f94c6a46375596f298f6140640722cd) - Still Failing<br>
&gt; <br>
&gt; Build information: <a href="https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc12_build/4957/" rel="noreferrer" target="_blank">https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc12_build/4957/</a><br>;
&gt; Full change log: <a href="https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc12_build/4957/changes" rel="noreferrer" target="_blank">https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc12_build/4957/changes</a><br>;
&gt; Full build log: <a href="https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc12_build/4957/console" rel="noreferrer" target="_blank">https://ci.FreeBSD.org/job/FreeBSD-main-amd64-gcc12_build/4957/console</a><br>;
&gt; <br>
&gt; Change summaries:<br>
&gt; (Those commits are likely but not certainly responsible)<br>
&gt; <br>
&gt; c945a7832f94c6a46375596f298f6140640722cd by rea:<br>
&gt; Ports committers: add myself<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; The end of the build log:<br>
&gt; <br>
&gt; [...truncated 125.71 MiB...]<br>
[...]<br>
&gt; --- all_subdir_usb/mtw ---<br>
&gt; In file included from /workspace/src/sys/dev/usb/wlan/if_mtw.c:27:<br>
&gt; In function &#39;mtw_mcu_cmd&#39;,<br>
&gt;     inlined from &#39;mtw_mcu_radio&#39; at /workspace/src/sys/dev/usb/wlan/if_mtw.c:4387:10,<br>
&gt;     inlined from &#39;mtw_init_locked&#39; at /workspace/src/sys/dev/usb/wlan/if_mtw.c:4513:2,<br>
&gt;     inlined from &#39;mtw_parent&#39; at /workspace/src/sys/dev/usb/wlan/if_mtw.c:3490:3:<br>
&gt; /workspace/src/sys/sys/systm.h:283:33: warning: &#39;__builtin_memcpy&#39; forming offset [4, 15] is out of the bounds [0, 4] of object &#39;val&#39; with type &#39;uint32_t&#39; {aka &#39;unsigned int&#39;} [-Warray-bounds]<br>
&gt;   283 | #define memcpy(to, from, len)   __builtin_memcpy((to), (from), (len))<br>
&gt;       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
&gt; /workspace/src/sys/dev/usb/wlan/if_mtw.c:1407:9: note: in expansion of macro &#39;memcpy&#39;<br>
&gt;  1407 |         memcpy(&amp;sc-&gt;txd_fw[sc-&gt;sc_idx]-&gt;fw, buf, len);<br>
&gt;       |         ^~~~~~<br>
&gt; /workspace/src/sys/dev/usb/wlan/if_mtw.c: In function &#39;mtw_parent&#39;:<br>
<br>
Please, review and, possibly, commit.<br>
<br>
Thank you.<br>
-- <br>
rea<br>
</blockquote></div>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmonyGxY73Mhcnfsp9av1n0y0nug%2Butzo4DOe6VReg5sw5A>