All of lore.kernel.org
 help / color / mirror / Atom feed
* 5.10.58 UBSAN from brcmf_sdio_dpc+0xa50/0x128c [brcmfmac]
@ 2021-08-15 23:42 Ryutaroh Matsumoto
  2021-08-16  9:54 ` Arend van Spriel
  0 siblings, 1 reply; 8+ messages in thread
From: Ryutaroh Matsumoto @ 2021-08-15 23:42 UTC (permalink / raw)
  To: linux-rpi-kernel, linux-wireless, brcm80211-dev-list.pdl,
	SHA-cyfmac-dev-list, arend.vanspriel, franky.lin, hante.meuleman,
	chi-hsien.lin, wright.feng, chung-hsien.hsu

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

Dear Maintainers of the drivers/net/wireless/broadcom/brcm80211/brcmfmac driver,

I found the following UBSAN error in kernel 5.10.58 compiled with CLang 12.0.1
with integrated assembler (make LLVM=1 LLVM_IAS=1).
It always happens when iwd starts an access point, where /etc/iwd/main.conf
looks as follows:
[General]
UseDefaultInterface=true
DisableANQP=false

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.
UBSAN looks as follows. The hardware is Raspberry Pi 4B with 8GB RAM.

Aug 16 08:11:21 raspi4b-router systemd[1]: systemd-rfkill.service: Succeeded.
Aug 16 08:11:21 raspi4b-router kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Aug 16 08:11:21 raspi4b-router systemd[1]: iwd_start_ap@Yamashita_guest.service: Succeeded.
Aug 16 08:11:21 raspi4b-router systemd[1]: Finished iwd starting Yamashita_guest access point.
Aug 16 08:11:21 raspi4b-router kernel: ================================================================================
Aug 16 08:11:21 raspi4b-router kernel: UBSAN: object-size-mismatch in ./include/linux/skbuff.h:2016:28
Aug 16 08:11:21 raspi4b-router kernel: member access within address 000000002d0b610c with insufficient space
Aug 16 08:11:21 raspi4b-router kernel: for an object of type 'struct sk_buff'
Aug 16 08:11:21 raspi4b-router kernel: CPU: 1 PID: 295 Comm: kworker/u8:3 Tainted: G         C        5.10.58-clang12a #1
Aug 16 08:11:21 raspi4b-router kernel: Hardware name: Raspberry Pi 4 Model B Rev 1.4 (DT)
Aug 16 08:11:21 raspi4b-router kernel: Workqueue: brcmf_wq/mmc0:0001:1 brcmf_sdio_dataworker [brcmfmac]
Aug 16 08:11:21 raspi4b-router kernel: Call trace:
Aug 16 08:11:21 raspi4b-router kernel:  dump_backtrace+0x0/0x1e4
Aug 16 08:11:21 raspi4b-router kernel:  show_stack+0x18/0x24
Aug 16 08:11:21 raspi4b-router kernel:  dump_stack+0xac/0x104
Aug 16 08:11:21 raspi4b-router kernel:  ubsan_type_mismatch_common+0x198/0x298
Aug 16 08:11:21 raspi4b-router kernel:  __ubsan_handle_type_mismatch_v1+0x40/0x50
Aug 16 08:11:21 raspi4b-router kernel:  brcmf_sdio_dpc+0xa50/0x128c [brcmfmac]
Aug 16 08:11:21 raspi4b-router kernel:  brcmf_sdio_dataworker+0x48/0x80 [brcmfmac]
Aug 16 08:11:21 raspi4b-router kernel:  process_one_work+0x1c4/0x2e0
Aug 16 08:11:21 raspi4b-router kernel:  worker_thread+0x1f4/0x2e0
Aug 16 08:11:21 raspi4b-router kernel:  kthread+0x140/0x168
Aug 16 08:11:21 raspi4b-router kernel:  ret_from_fork+0x10/0x18
Aug 16 08:11:21 raspi4b-router kernel: ================================================================================
Aug 16 08:11:21 raspi4b-router systemd[1]: Starting Network Service...
Aug 16 08:11:21 raspi4b-router systemd-networkd[643]: Enumeration completed

I attach dmesg by journalctl and .config of the kernel.

Best regards, Ryutaroh Matsumoto

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

[-- Attachment #3: last-build-config-5.10.58.txt.gz --]
[-- Type: Application/Octet-Stream, Size: 46470 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-08-19 16:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2021-08-17  8:17       ` Arend van Spriel
2021-08-18  9:41         ` Ryutaroh Matsumoto
2021-08-19 16:40           ` Arend Van Spriel

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.