From: Arend van Spriel <aspriel@gmail.com>
To: Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>,
<arend.vanspriel@broadcom.com>
Cc: <linux-rpi-kernel@lists.infradead.org>,
<linux-wireless@vger.kernel.org>,
<brcm80211-dev-list.pdl@broadcom.com>,
<SHA-cyfmac-dev-list@infineon.com>, <franky.lin@broadcom.com>,
<hante.meuleman@broadcom.com>, <chi-hsien.lin@infineon.com>,
<wright.feng@infineon.com>, <chung-hsien.hsu@infineon.com>
Subject: Re: 5.10.58 UBSAN from brcmf_sdio_dpc+0xa50/0x128c [brcmfmac]
Date: Tue, 17 Aug 2021 07:42:12 +0200 [thread overview]
Message-ID: <17b52a1ab20.279b.9696ff82abe5fb6502268bdc3b0467d4@gmail.com> (raw)
In-Reply-To: <20210817.093658.33467107987117119.ryutaroh@ict.e.titech.ac.jp>
Using different email to avoid disclaimers...
On August 17, 2021 2:39:56 AM Ryutaroh Matsumoto
<ryutaroh@ict.e.titech.ac.jp> wrote:
> Hi Arend, thank you for paying attention to this.
>
>> Line 2016 in skbuff.h is inline function __skb_queue_before() and as
>> far as I can tell brcmfmac is not using that direct or indirect. Maybe
>> I am reading the line info incorrectly?
>
> I am unsure of it. On the other hand, I have also seen somewhat similar
> UBSAN from a header file "include/net/flow.h" as reported at
> https://lore.kernel.org/netdev/20210813.081908.1574714532738245424.ryutaroh@ict.e.titech.ac.jp/
>
> All UBSANs that I have seen come from *.h compiled with clang...
>
>> Would you be able to provide information as to what line
>> brcmf_sdio_dpc+0xa50 refers to.
>
> I'd like to do, but I do not know how to let kernel UBSAN include a line
> number,
> though I know it with user-space applications...
If you enable CONFIG_DEBUG_INFO in your kernel .config and recompile
brcmfmac you can load the module in gdb:
gdb> add-symbol-file brcmfmac.ko [address]
gdb> l *brcmf_sdio_dpc+0xa50
The [address] is not very important so just fill in a nice value. The 'l'
command should provide the line number.
Regards,
Arend
next prev parent reply other threads:[~2021-08-17 5:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-15 23:42 5.10.58 UBSAN from brcmf_sdio_dpc+0xa50/0x128c [brcmfmac] Ryutaroh Matsumoto
2021-08-16 9:54 ` Arend van Spriel
2021-08-17 0:36 ` Ryutaroh Matsumoto
2021-08-17 1:57 ` Ryutaroh Matsumoto
2021-08-17 5:42 ` Arend van Spriel [this message]
2021-08-17 8:17 ` Arend van Spriel
2021-08-18 9:41 ` Ryutaroh Matsumoto
2021-08-19 16:40 ` Arend Van Spriel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17b52a1ab20.279b.9696ff82abe5fb6502268bdc3b0467d4@gmail.com \
--to=aspriel@gmail.com \
--cc=SHA-cyfmac-dev-list@infineon.com \
--cc=arend.vanspriel@broadcom.com \
--cc=brcm80211-dev-list.pdl@broadcom.com \
--cc=chi-hsien.lin@infineon.com \
--cc=chung-hsien.hsu@infineon.com \
--cc=franky.lin@broadcom.com \
--cc=hante.meuleman@broadcom.com \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=linux-wireless@vger.kernel.org \
--cc=ryutaroh@ict.e.titech.ac.jp \
--cc=wright.feng@infineon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.