Bug 1166979

Summary: modprobe mac80211_hwsim radios=2 leads to "Unable to handle kernel NULL pointer dereference at virtual address 0000000000000048"
Product: [openSUSE] openSUSE Tumbleweed Reporter: Guillaume GARDET <guillaume.gardet>
Component: KernelAssignee: E-mail List <kernel-maintainers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: afaerber, dmueller, guillaume.gardet, tiwai
Version: Current   
Target Milestone: ---   
Hardware: aarch64   
OS: Other   
URL: https://openqa.opensuse.org/tests/1206593/modules/hwsim_wpa2_enterprise_setup/steps/9
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Guillaume GARDET 2020-03-18 14:00:15 UTC
In openQA Tumbleweed, with kernel 5.5.9 'modprobe mac80211_hwsim radios=2' leads to the following kernel traces:

[  717.334214] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[  717.335819] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[  717.600348] mac80211_hwsim: initializing netlink
[  717.604035] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000048
[  717.605165] Mem abort info:
[  717.605519]   ESR = 0x96000004
[  717.605906]   EC = 0x25: DABT (current EL), IL = 32 bits
[  717.606655]   SET = 0, FnV = 0
[  717.607045]   EA = 0, S1PTW = 0
[  717.607442] Data abort info:
[  717.607807]   ISV = 0, ISS = 0x00000004
[  717.608306]   CM = 0, WnR = 0
[  717.608668] user pgtable: 4k pages, 48-bit VAs, pgdp=000000009989d000
[  717.609456] [0000000000000048] pgd=0000000000000000
[  717.610048] Internal error: Oops: 96000004 [#1] SMP
[  717.610636] Modules linked in: mac80211_hwsim(+) mac80211 cfg80211 libarc4 nls_utf8 isofs fuse af_packet xt_tcpudp ip6t_REJECT nf_reject_ipv6 ip6t_rpfilter ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_nat ebtable_broute ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 rfkill ip_set nfnetlink scsi_transport_iscsi ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables aes_ce_blk crypto_simd cryptd snd_hda_codec_generic aes_ce_cipher ledtrig_audio crct10dif_ce snd_hda_intel joydev snd_intel_dspcfg ghash_ce snd_hda_codec sha2_ce snd_hda_core sha256_arm64 snd_hwdep sha1_ce snd_pcm snd_timer snd soundcore nls_iso8859_1 nls_cp437 vfat fat btrfs blake2b_generic libcrc32c hid_generic xor usbhid xor_neon virtio_gpu xhci_pci raid6_pq drm_kms_helper xhci_hcd sr_mod syscopyarea sysfillrect sysimgblt fb_sys_fops cdrom virtio_blk drm usbcore virtio_net
[  717.610681]  virtio_scsi net_failover failover qemu_fw_cfg virtio_mmio sg dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua efivarfs virtio_rng
[  717.626615] CPU: 0 PID: 2540 Comm: modprobe Not tainted 5.5.9-1-default #1 openSUSE Tumbleweed (unreleased)
[  717.627942] Hardware name: QEMU KVM Virtual Machine, BIOS 0.0.0 02/06/2015
[  717.628875] pstate: 60000005 (nZCv daif -PAN -UAO)
[  717.629520] pc : device_links_flush_sync_list+0x60/0xd0
[  717.630214] lr : device_links_driver_bound+0x194/0x218
[  717.630895] sp : ffff8000124638c0
[  717.631335] x29: ffff8000124638c0 x28: ffffba2f67a16000 
[  717.632038] x27: 0000000000000000 x26: 0000000000000003 
[  717.632741] x25: ffff00007c2688a0 x24: ffffba2fca0d33c8 
[  717.633445] x23: ffff00007c268800 x22: ffff800012463948 
[  717.634149] x21: ffff00007c268800 x20: ffff800012463878 
[  717.634852] x19: ffff00007c268800 x18: 0000000000000000 
[  717.635559] x17: 0000000000000000 x16: ffffba2fc8f6dae8 
[  717.636264] x15: 0000000000000000 x14: 0000000000000000 
[  717.636966] x13: 0000000000000000 x12: 0000000000000030 
[  717.637668] x11: 0101010101010101 x10: 7f7f7f7f7f7f7f7f 
[  717.638369] x9 : ffffba2fc8f6936c x8 : ffffffffffffffff 
[  717.639077] x7 : fefefefefefefefe x6 : 0000000000008000 
[  717.639783] x5 : ffff00006a45ce98 x4 : ffff800012463948 
[  717.641621] x3 : ffff800012463948 x2 : ffff00007c2688d0 
[  717.643424] x1 : 0000000000000000 x0 : ffff800012463948 
[  717.645184] Call trace:
[  717.646562]  device_links_flush_sync_list+0x60/0xd0
[  717.648236]  device_links_driver_bound+0x194/0x218
[  717.649903]  driver_bound+0x50/0x108
[  717.651386]  device_bind_driver+0x58/0x68
[  717.652915]  mac80211_hwsim_new_radio+0x1a4/0xdb8 [mac80211_hwsim]
[  717.654705]  init_mac80211_hwsim+0x2d0/0x1000 [mac80211_hwsim]
[  717.656458]  do_one_initcall+0x4c/0x228
[  717.657952]  do_init_module+0x5c/0x248
[  717.659464]  load_module+0x1134/0x14b8
[  717.660960]  __do_sys_init_module+0x214/0x2c0
[  717.662534]  __arm64_sys_init_module+0x20/0x28
[  717.664120]  el0_svc_common.constprop.0+0x84/0x208
[  717.665757]  el0_svc_handler+0x28/0x88
[  717.667255]  el0_svc+0x14/0x40
[  717.668644]  el0_sync_handler+0xf8/0x28c
[  717.670162]  el0_sync+0x140/0x180
[  717.671556] Code: 54000060 91020260 940e1ca0 f9403261 (f9402422) 
[  717.673285] ---[ end trace a7ae25bc9b8c5bdb ]---


Serial output is available at: https://openqa.opensuse.org/tests/1206593/file/serial0.txt
openQA test is:
https://openqa.opensuse.org/tests/1206593/modules/hwsim_wpa2_enterprise_setup/steps/9
Comment 1 Takashi Iwai 2020-03-24 17:04:10 UTC
Not specific to aarch64.

*** This bug has been marked as a duplicate of bug 1167245 ***