rfkill hangs when turn on/off bluetooth

Bug #1895789 reported by Taiten Peng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OEM Priority Project
New
Undecided
Unassigned

Bug Description

Turn on/off leads to a kernel panic related to rfkill

Hardware ID: 201712-26024

OS: 20.04 Desktop
Kernel: 5.4.0-48-generic

Step to reproduce:
1. Click on/off in the bluetooth settings for a few time
2. Oberserve kernel message as following

[ 126.914032] ------------[ cut here ]------------
[ 126.914034] kernel BUG at mm/slub.c:306!
[ 126.914041] invalid opcode: 0000 [#1] SMP PTI
[ 126.914044] CPU: 6 PID: 4741 Comm: gsd-rfkill Tainted: P OE 5.4.0-48-generic #52-Ubuntu
[ 126.914045] Hardware name: Dell Inc. XPS 13 9370/0173S1, BIOS 1.13.1 07/08/2020
[ 126.914050] RIP: 0010:__slab_free+0x189/0x330
[ 126.914052] Code: 00 48 89 c7 fa 66 0f 1f 44 00 00 f0 49 0f ba 2c 24 00 72 65 4d 3b 6c 24 20 74 11 49 0f ba 34 24 00 57 9d 0f 1f 44 00 00 eb 9f <0f> 0b 49 3b 5c 24 28 75 e8 48 8b 44 24 28 49 89 4c 24 28 49 89 44
[ 126.914054] RSP: 0018:ffffb46f42d73c90 EFLAGS: 00010246
[ 126.914056] RAX: ffff9c6931960a00 RBX: 0000000080200015 RCX: ffff9c6931960a00
[ 126.914057] RDX: ffff9c6931960a00 RSI: ffffe19511c65800 RDI: ffff9c695bff9340
[ 126.914058] RBP: ffffb46f42d73d28 R08: 0000000000000001 R09: ffffffffa4d1b6be
[ 126.914059] R10: ffff9c6931960a00 R11: 0000000000000001 R12: ffffe19511c65800
[ 126.914060] R13: ffff9c6931960a00 R14: ffff9c695bff9340 R15: ffff9c695bff9340
[ 126.914062] FS: 00007fbd905bf840(0000) GS:ffff9c695e580000(0000) knlGS:0000000000000000
[ 126.914063] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 126.914064] CR2: 00007fc51ed20000 CR3: 00000003e6012002 CR4: 00000000003606e0
[ 126.914066] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 126.914067] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 126.914068] Call Trace:
[ 126.914072] ? finish_wait+0x59/0x70
[ 126.914075] ? wait_woken+0x80/0x80
[ 126.914078] ? kfree_skbmem+0x4e/0x60
[ 126.914080] kmem_cache_free+0x288/0x2b0
[ 126.914085] ? btusb_shutdown_intel_new+0x36/0x60 [btusb]
[ 126.914087] kfree_skbmem+0x4e/0x60
[ 126.914089] kfree_skb+0x3a/0xa0
[ 126.914092] btusb_shutdown_intel_new+0x36/0x60 [btusb]
[ 126.914108] hci_dev_do_close+0x40c/0x520 [bluetooth]
[ 126.914121] hci_rfkill_set_block+0x56/0xa0 [bluetooth]
[ 126.914124] rfkill_set_block+0x9b/0x150
[ 126.914127] rfkill_fop_write+0x136/0x1e0
[ 126.914130] __vfs_write+0x1b/0x40
[ 126.914131] vfs_write+0xb9/0x1a0
[ 126.914134] ksys_write+0xb1/0xe0
[ 126.914136] __x64_sys_write+0x1a/0x20
[ 126.914139] do_syscall_64+0x57/0x190
[ 126.914142] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 126.914144] RIP: 0033:0x7fbd9097021f
[ 126.914146] Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 59 65 f8 ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 2d 44 89 c7 48 89 44 24 08 e8 8c 65 f8 ff 48
[ 126.914147] RSP: 002b:00007fffd6047f00 EFLAGS: 00000293 ORIG_RAX: 0000000000000001
[ 126.914149] RAX: ffffffffffffffda RBX: 00007fbd905bf7c0 RCX: 00007fbd9097021f
[ 126.914150] RDX: 0000000000000008 RSI: 00005581c4fe4dd0 RDI: 0000000000000008
[ 126.914151] RBP: 00007fffd6047f50 R08: 0000000000000000 R09: 000000000000000b
[ 126.914152] R10: 00005581c4fd3dc8 R11: 0000000000000293 R12: 0000000000000001
[ 126.914153] R13: 00007fffd6047fb0 R14: 0000000000000000 R15: 00005581c4fd6020
[ 126.914155] Modules linked in: thunderbolt veth nft_masq nft_chain_nat uhid rfcomm vboxnetadp(OE) xt_CHECKSUM vboxnetflt(OE) xt_MASQUERADE xt_tcpudp vboxdrv(OE) bridge stp llc zfs(PO) zunicode(PO) zavl(PO) icp(PO) zcommon(PO) znvpair(PO) spl(O) zlua(PO) ebtable_filter ebtables ip6table_raw ip6table_mangle ip6table_nat ip6table_filter ip6_tables iptable_raw iptable_mangle iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_filter bpfilter nf_tables nfnetlink ccm aufs cmac algif_hash algif_skcipher af_alg overlay bnep hid_logitech_hidpp typec_displayport hid_logitech_dj hid_apple binfmt_misc ftdi_sio usbserial snd_usb_audio snd_usbmidi_lib mei_hdcp intel_rapl_msr snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_core dell_laptop ledtrig_audio snd_hwdep kvm_intel joydev snd_pcm snd_seq_midi snd_seq_midi_event dell_wmi kvm crct10dif_pclmul dell_smbios
[ 126.914188] dcdbas snd_rawmidi nls_iso8859_1 cdc_ether ghash_clmulni_intel usbnet aesni_intel r8152 crypto_simd mii snd_seq iwlmvm cryptd glue_helper snd_seq_device intel_wmi_thunderbolt wmi_bmof dell_wmi_descriptor rapl snd_timer intel_cstate mac80211 btusb btrtl btbcm uvcvideo input_leds btintel libarc4 videobuf2_vmalloc bluetooth serio_raw videobuf2_memops videobuf2_v4l2 videobuf2_common videodev iwlwifi ecdh_generic cdc_acm mc ecc i915 snd cfg80211 soundcore rtsx_pci_ms mei_me memstick drm_kms_helper hid_multitouch mei ucsi_acpi typec_ucsi i2c_algo_bit fb_sys_fops processor_thermal_device intel_xhci_usb_role_switch syscopyarea intel_rapl_common roles sysfillrect typec intel_pch_thermal intel_soc_dts_iosf sysimgblt int3400_thermal mac_hid intel_hid acpi_thermal_rel int3403_thermal int340x_thermal_zone acpi_pad sparse_keymap sch_fq_codel parport_pc ppdev lp parport drm ip_tables x_tables autofs4 usbhid hid_generic rtsx_pci_sdmmc crc32_pclmul nvme nvme_core i2c_i801 rtsx_pci
[ 126.914220] intel_lpss_pci intel_lpss idma64 virt_dma wmi i2c_hid hid pinctrl_sunrisepoint pinctrl_intel video
[ 126.914227] ---[ end trace c7c2031a2314d2ea ]---

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: rfkill 2.34-0.1ubuntu9.1
ProcVersionSignature: Ubuntu 5.4.0-48.52-generic 5.4.60
Uname: Linux 5.4.0-48-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu27.9
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Wed Sep 16 14:49:31 2020
InstallationDate: Installed on 2019-04-26 (508 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
SourcePackage: util-linux
UpgradeStatus: Upgraded to focal on 2020-04-27 (141 days ago)

Revision history for this message
Taiten Peng (taitenpeng) wrote :
affects: util-linux (Ubuntu) → linux (Ubuntu)
Taiten Peng (taitenpeng)
affects: linux (Ubuntu) → oem-priority
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.