All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>
To: 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 10:57:34 +0900 (JST)	[thread overview]
Message-ID: <20210817.105734.909126742961678528.ryutaroh@ict.e.titech.ac.jp> (raw)
In-Reply-To: <20210817.093658.33467107987117119.ryutaroh@ict.e.titech.ac.jp>

[-- Attachment #1: Type: Text/Plain, Size: 2404 bytes --]

>>> I do not observe the following error if
>>> * kernel is compiled with gcc 10, or
>>> * kernel version is 5.13.9 or 5.14rc5.
>>> The reported UBSAN error is only seen with 5.10 series compiled with
>>> CLang 12.

Sorry, what I originally reported is partially wrong.
I also observe UBSAN with 5.13.11 compiled with CLang 11 as below,
which has the same pattern as 5.10:

Aug 17 10:22:19 raspi4b-router kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Aug 17 10:22:19 raspi4b-router systemd[1]: iwd_start_ap@Yamashita_guest.service: Succeeded.
Aug 17 10:22:19 raspi4b-router systemd[1]: Finished iwd starting Yamashita_guest access point.
Aug 17 10:22:19 raspi4b-router kernel: ================================================================================
Aug 17 10:22:19 raspi4b-router kernel: UBSAN: object-size-mismatch in ./include/linux/skbuff.h:2038:28
Aug 17 10:22:19 raspi4b-router kernel: member access within address 00000000eea757fb with insufficient space
Aug 17 10:22:19 raspi4b-router kernel: for an object of type 'struct sk_buff'
Aug 17 10:22:19 raspi4b-router kernel: CPU: 0 PID: 7 Comm: kworker/u8:0 Tainted: G         C        5.13.11-clang11 #1
Aug 17 10:22:19 raspi4b-router kernel: Hardware name: Raspberry Pi 4 Model B Rev 1.4 (DT)
Aug 17 10:22:19 raspi4b-router kernel: Workqueue: brcmf_wq/mmc0:0001:1 brcmf_sdio_dataworker [brcmfmac]
Aug 17 10:22:19 raspi4b-router kernel: Call trace:
Aug 17 10:22:19 raspi4b-router kernel:  dump_backtrace+0x0/0x2a4
Aug 17 10:22:19 raspi4b-router kernel:  dump_stack+0xc8/0x150
Aug 17 10:22:19 raspi4b-router kernel:  ubsan_type_mismatch_common+0x198/0x2a4
Aug 17 10:22:19 raspi4b-router kernel:  __ubsan_handle_type_mismatch_v1+0x40/0x50
Aug 17 10:22:19 raspi4b-router kernel:  brcmf_sdio_dpc+0x2078/0x28f0 [brcmfmac]
Aug 17 10:22:19 raspi4b-router kernel:  brcmf_sdio_dataworker+0x50/0x8c [brcmfmac]
Aug 17 10:22:19 raspi4b-router kernel:  process_one_work+0x318/0x4fc
Aug 17 10:22:19 raspi4b-router kernel:  worker_thread+0x2f0/0x660
Aug 17 10:22:19 raspi4b-router kernel:  kthread+0x304/0x340
Aug 17 10:22:19 raspi4b-router kernel:  ret_from_fork+0x10/0x18
Aug 17 10:22:19 raspi4b-router kernel: ================================================================================
Aug 17 10:22:19 raspi4b-router systemd[1]: Starting Network Service...

I attach full journalctl -b on kernel 5.13.11.

Best regards, Ryutaroh

[-- Attachment #2: journalctl-b-51311-brcmfmac.txt.gz --]
[-- Type: Application/Octet-Stream, Size: 21027 bytes --]

  reply	other threads:[~2021-08-17  1:58 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 [this message]
2021-08-17  5:42     ` Arend van Spriel
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=20210817.105734.909126742961678528.ryutaroh@ict.e.titech.ac.jp \
    --to=ryutaroh@ict.e.titech.ac.jp \
    --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=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.