Mediatek Wifi module mt76 creates UBSAN: invalid-load in ...drivers/net/wireless/mediatek/mt76/dma.c:162:13

Bug #1961466 reported by MichaelE
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Wifi works still, but something goes wrong when the module is being loaded

[ 3.422638] amdgpu 0000:03:00.0: amdgpu: PSP runtime database doesn't exist
[ 3.426874] [drm] Loading DMUB firmware via PSP: version=0x0101001C
[ 3.427406] [drm] Found VCN firmware Version ENC: 1.16 DEC: 5 VEP: 0 Revision: 3
[ 3.427413] amdgpu 0000:03:00.0: amdgpu: Will use PSP to load VCN firmware
[ 3.464860] ================================================================================
[ 3.464868] UBSAN: invalid-load in /build/linux-aa0B4d/linux-5.15.0/drivers/net/wireless/mediatek/mt76/dma.c:162:13
[ 3.464872] load of value 228 is not a valid value for type '_Bool'
[ 3.464875] CPU: 14 PID: 467 Comm: systemd-udevd Not tainted 5.15.0-18-generic #18-Ubuntu
[ 3.464877] Hardware name: LENOVO 82N7/LNVNB161216, BIOS H9CN25WW 11/12/2021
[ 3.464878] Call Trace:
[ 3.464879] <TASK>
[ 3.464882] show_stack+0x52/0x58
[ 3.464891] dump_stack_lvl+0x4a/0x5f
[ 3.464896] dump_stack+0x10/0x12
[ 3.464897] ubsan_epilogue+0x9/0x45
[ 3.464899] __ubsan_handle_load_invalid_value.cold+0x44/0x49
[ 3.464901] ? __iommu_dma_map+0x84/0xf0
[ 3.464905] mt76_dma_add_buf.constprop.0.cold+0x23/0x85 [mt76]
[ 3.464911] mt76_dma_rx_fill.isra.0+0x102/0x1f0 [mt76]
[ 3.464916] mt76_dma_init+0xc9/0x150 [mt76]
[ 3.464922] ? mt7921_dma_enable+0x110/0x110 [mt7921e]
[ 3.464929] mt7921_dma_init+0x1e3/0x260 [mt7921e]
[ 3.464934] mt7921_register_device+0x29d/0x510 [mt7921e]
[ 3.464938] mt7921_pci_probe.part.0+0x17f/0x1b0 [mt7921e]
[ 3.464943] mt7921_pci_probe+0x43/0x60 [mt7921e]
[ 3.464947] local_pci_probe+0x4b/0x90
[ 3.464950] pci_device_probe+0x115/0x1f0
[ 3.464952] really_probe+0x21e/0x420
[ 3.464955] __driver_probe_device+0x115/0x190
[ 3.464957] driver_probe_device+0x23/0xc0
[ 3.464959] __driver_attach+0xbd/0x1d0
[ 3.464961] ? __device_attach_driver+0x110/0x110
[ 3.464962] bus_for_each_dev+0x7e/0xc0
[ 3.464965] driver_attach+0x1e/0x20
[ 3.464966] bus_add_driver+0x135/0x200
[ 3.464968] driver_register+0x95/0xf0
[ 3.464970] ? 0xffffffffc0a5a000
[ 3.464971] __pci_register_driver+0x68/0x70
[ 3.464973] mt7921_pci_driver_init+0x23/0x1000 [mt7921e]
[ 3.464977] do_one_initcall+0x48/0x1d0
[ 3.464981] ? kmem_cache_alloc_trace+0x19e/0x2e0
[ 3.464985] do_init_module+0x62/0x280
[ 3.464987] load_module+0xac9/0xbb0
[ 3.464989] __do_sys_finit_module+0xbf/0x120
[ 3.464991] __x64_sys_finit_module+0x18/0x20
[ 3.464993] do_syscall_64+0x5c/0xc0
[ 3.464995] ? do_syscall_64+0x69/0xc0
[ 3.464997] ? syscall_exit_to_user_mode+0x27/0x50
[ 3.464999] ? __x64_sys_lseek+0x18/0x20
[ 3.465002] ? do_syscall_64+0x69/0xc0
[ 3.465003] ? switch_fpu_return+0x56/0xc0
[ 3.465006] ? exit_to_user_mode_prepare+0x92/0xb0
[ 3.465009] ? syscall_exit_to_user_mode+0x27/0x50
[ 3.465011] ? do_syscall_64+0x69/0xc0
[ 3.465012] ? sysvec_reschedule_ipi+0x78/0xe0
[ 3.465014] ? asm_sysvec_reschedule_ipi+0xa/0x20
[ 3.465017] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 3.465018] RIP: 0033:0x7fcf64d52a3d
[ 3.465021] Code: 5b 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d c3 53 0f 00 f7 d8 64 89 01 48
[ 3.465023] RSP: 002b:00007ffe34c1d228 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 3.465025] RAX: ffffffffffffffda RBX: 0000563057cff320 RCX: 00007fcf64d52a3d
[ 3.465026] RDX: 0000000000000000 RSI: 00007fcf64ee5441 RDI: 0000000000000013
[ 3.465027] RBP: 0000000000020000 R08: 0000000000000000 R09: 0000000000000002
[ 3.465028] R10: 0000000000000013 R11: 0000000000000246 R12: 00007fcf64ee5441
[ 3.465029] R13: 0000563057be23d0 R14: 0000563057d09640 R15: 0000563057d08b30
[ 3.465030] </TASK>
[ 3.465038] ================================================================================

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-5.15.0-18-generic 5.15.0-18.18
ProcVersionSignature: Ubuntu 5.15.0-18.18-generic 5.15.12
Uname: Linux 5.15.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu77
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sat Feb 19 08:45:39 2022
InstallationDate: Installed on 2022-02-11 (7 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
MachineType: LENOVO 82N7
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-5.15.0-18-generic root=UUID=d1796991-349c-4784-b8c3-e0a2eb2fc132 ro rootflags=subvol=@ quiet splash resume=UUID=34078276-40b3-44a8-95d9-2d9ff2caa568 mem_sleep_default=deep vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-18-generic N/A
 linux-backports-modules-5.15.0-18-generic N/A
 linux-firmware 20220217.git6342082c-0ubuntu1
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/12/2021
dmi.bios.release: 1.25
dmi.bios.vendor: LENOVO
dmi.bios.version: H9CN25WW
dmi.board.asset.tag: NO Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0T76463 WIN
dmi.chassis.asset.tag: NO Asset Tag
dmi.chassis.type: 31
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Yoga 7 14ACN6
dmi.ec.firmware.release: 1.25
dmi.modalias: dmi:bvnLENOVO:bvrH9CN25WW:bd11/12/2021:br1.25:efr1.25:svnLENOVO:pn82N7:pvrYoga714ACN6:rvnLENOVO:rnLNVNB161216:rvrSDK0T76463WIN:cvnLENOVO:ct31:cvrYoga714ACN6:skuLENOVO_MT_82N7_BU_idea_FM_Yoga714ACN6:
dmi.product.family: Yoga 7 14ACN6
dmi.product.name: 82N7
dmi.product.sku: LENOVO_MT_82N7_BU_idea_FM_Yoga 7 14ACN6
dmi.product.version: Yoga 7 14ACN6
dmi.sys.vendor: LENOVO

Revision history for this message
MichaelE (michael-eitelwein) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.