Kernel panic with the latest 5.15 serie
by camerabambai from LinuxQuestions.org on (#5RMT1)
With the 5.14* no problem, after update to 5.15 and try to start a virtual machine with vfio enabled..
Code:[lun nov 8 07:53:55 2021] BUG: kernel NULL pointer dereference, address: 0000000000000120
[lun nov 8 07:53:55 2021] #PF: supervisor read access in kernel mode
[lun nov 8 07:53:55 2021] #PF: error_code(0x0000) - not-present page
[lun nov 8 07:53:55 2021] PGD 0 P4D 0
[lun nov 8 07:53:55 2021] Oops: 0000 [#1] PREEMPT SMP NOPTI
[lun nov 8 07:53:55 2021] CPU: 1 PID: 26131 Comm: qemu-system-x86 Tainted: G O 5.15.1 #1
[lun nov 8 07:53:55 2021] Hardware name: To be filled by O.E.M. To be filled by O.E.M./M5A97 R2.0, BIOS 2603 06/26/2015
[lun nov 8 07:53:55 2021] RIP: 0010:vfio_pci_core_match+0x34/0x3f0 [vfio_pci_core]
[lun nov 8 07:53:55 2021] Code: 57 41 56 41 55 49 89 fd 41 54 53 48 89 f3 48 83 e4 f0 48 83 ec 30 4c 8b 67 68 65 48 8b 04 25 28 00 00 00 48 89 44 24 28 31 c0 <4d> 8b bc 24 20 01 00 00 4d 85 ff 0f 84 dd 00 00 00 4c 89 ff e8 73
[lun nov 8 07:53:55 2021] RSP: 0018:ffffb5ed415efe50 EFLAGS: 00010246
[lun nov 8 07:53:55 2021] RAX: 0000000000000000 RBX: ffff8bae0f858600 RCX: 0000000000000032
[lun nov 8 07:53:55 2021] RDX: 0000000000000000 RSI: ffff8bae0f858600 RDI: ffff8bade6936000
[lun nov 8 07:53:55 2021] RBP: ffffb5ed415efeb0 R08: 0000000000000001 R09: 00000000ffffffea
[lun nov 8 07:53:55 2021] R10: 0000000000000000 R11: 8080808080808080 R12: 0000000000000000
[lun nov 8 07:53:55 2021] R13: ffff8bade6936000 R14: ffff8badc3392830 R15: 0000000000000000
[lun nov 8 07:53:55 2021] FS: 00007fe65b264600(0000) GS:ffff8bb0efc80000(0000) knlGS:0000000000000000
[lun nov 8 07:53:55 2021] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[lun nov 8 07:53:55 2021] CR2: 0000000000000120 CR3: 000000014f80a000 CR4: 00000000000006e0
[lun nov 8 07:53:55 2021] Call Trace:
[lun nov 8 07:53:55 2021] ? vfio_group_get_device+0xa0/0xa0 [vfio]
[lun nov 8 07:53:55 2021] ? iommu_group_for_each_dev+0x58/0x70
[lun nov 8 07:53:55 2021] vfio_group_fops_unl_ioctl+0x273/0x5c0 [vfio]
[lun nov 8 07:53:55 2021] __x64_sys_ioctl+0x82/0xb0
[lun nov 8 07:53:55 2021] do_syscall_64+0x3b/0xc0
[lun nov 8 07:53:55 2021] entry_SYSCALL_64_after_hwframe+0x44/0xae
[lun nov 8 07:53:55 2021] RIP: 0033:0x7fe65bf25007
[lun nov 8 07:53:55 2021] Code: 3c 1c e8 2c ff ff ff 85 c0 79 97 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 31 2e 0d 00 f7 d8 64 89 01 48
[lun nov 8 07:53:55 2021] RSP: 002b:00007ffde5902ff8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[lun nov 8 07:53:55 2021] RAX: ffffffffffffffda RBX: 00007fe6547ab160 RCX: 00007fe65bf25007
[lun nov 8 07:53:55 2021] RDX: 00007fe653faee70 RSI: 0000000000003b6a RDI: 0000000000000014
[lun nov 8 07:53:55 2021] RBP: 00007fe6541ffb40 R08: 00007fe653faee70 R09: 0000000000000010
[lun nov 8 07:53:55 2021] R10: 00007fe65b0008c0 R11: 0000000000000246 R12: 00007fe6547aa800
[lun nov 8 07:53:55 2021] R13: 00007fe653faee70 R14: 00007ffde5904240 R15: 00007fe6541ffb40
[lun nov 8 07:53:55 2021] Modules linked in: vfio_pci vfio_pci_core vfio_virqfd vfio_iommu_type1 vfio dahdi_transcode(O) wcb4xxp(O) dahdi(O) crc_ccitt cfg80211 8021q garp mrp xt_CHECKSUM ip6table_mangle ip6table_nat ip6table_filter ip6_tables vhost_net vhost vhost_iotlb tap tun autofs4 nfsd ipt_REJECT nf_reject_ipv4 xt_NFLOG nfnetlink_log nft_counter ebt_nflog ebt_ip nft_compat xt_MASQUERADE xt_pkttype bridge stp llc xt_tcpudp xt_state xt_conntrack nf_tables nfnetlink iptable_mangle iptable_nat nf_nat iptable_filter ip_tables x_tables nf_conntrack_ftp nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 efivarfs ipv6 nls_iso8859_1 nls_cp437 it87 hwmon_vid eeepc_wmi asus_wmi platform_profile battery sparse_keymap rfkill video wmi_bmof mxm_wmi evdev edac_mce_amd kvm_amd radeon drm_ttm_helper ccp ttm kvm uhci_hcd drm_kms_helper irqbypass drm snd_hda_codec_realtek xhci_pci xhci_pci_renesas snd_hda_codec_generic agpgart xhci_hcd i2c_algo_bit k10temp fb_sys_fops r8169 ledtrig_audio syscopyarea sysfillrect
[lun nov 8 07:53:55 2021] snd_hda_codec_hdmi realtek sysimgblt snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec mdio_devres snd_hda_core snd_hwdep snd_pcm libphy snd_timer wmi snd i2c_piix4 button i2c_core soundcore acpi_cpufreq loop dm_snapshot dm_bufio vfat fat algif_skcipher af_alg ansi_cprng sha256_ssse3 hid_generic ext4 mbcache jbd2 usbhid hid ohci_pci ohci_hcd ehci_pci ehci_hcd [last unloaded: dahdi]
[lun nov 8 07:53:55 2021] CR2: 0000000000000120
[lun nov 8 07:53:55 2021] ---[ end trace af7fea169bd7cb01 ]---
[lun nov 8 07:53:55 2021] RIP: 0010:vfio_pci_core_match+0x34/0x3f0 [vfio_pci_core]
[lun nov 8 07:53:55 2021] Code: 57 41 56 41 55 49 89 fd 41 54 53 48 89 f3 48 83 e4 f0 48 83 ec 30 4c 8b 67 68 65 48 8b 04 25 28 00 00 00 48 89 44 24 28 31 c0 <4d> 8b bc 24 20 01 00 00 4d 85 ff 0f 84 dd 00 00 00 4c 89 ff e8 73
[lun nov 8 07:53:55 2021] RSP: 0018:ffffb5ed415efe50 EFLAGS: 00010246
[lun nov 8 07:53:55 2021] RAX: 0000000000000000 RBX: ffff8bae0f858600 RCX: 0000000000000032
[lun nov 8 07:53:55 2021] RDX: 0000000000000000 RSI: ffff8bae0f858600 RDI: ffff8bade6936000
[lun nov 8 07:53:55 2021] RBP: ffffb5ed415efeb0 R08: 0000000000000001 R09: 00000000ffffffea
[lun nov 8 07:53:55 2021] R10: 0000000000000000 R11: 8080808080808080 R12: 0000000000000000
[lun nov 8 07:53:55 2021] R13: ffff8bade6936000 R14: ffff8badc3392830 R15: 0000000000000000
[lun nov 8 07:53:55 2021] FS: 00007fe65b264600(0000) GS:ffff8bb0efc80000(0000) knlGS:0000000000000000
[lun nov 8 07:53:55 2021] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[lun nov 8 07:53:55 2021] CR2: 0000000000000120 CR3: 000000014f80a000 CR4: 00000000000006e0
Code:[lun nov 8 07:53:55 2021] BUG: kernel NULL pointer dereference, address: 0000000000000120
[lun nov 8 07:53:55 2021] #PF: supervisor read access in kernel mode
[lun nov 8 07:53:55 2021] #PF: error_code(0x0000) - not-present page
[lun nov 8 07:53:55 2021] PGD 0 P4D 0
[lun nov 8 07:53:55 2021] Oops: 0000 [#1] PREEMPT SMP NOPTI
[lun nov 8 07:53:55 2021] CPU: 1 PID: 26131 Comm: qemu-system-x86 Tainted: G O 5.15.1 #1
[lun nov 8 07:53:55 2021] Hardware name: To be filled by O.E.M. To be filled by O.E.M./M5A97 R2.0, BIOS 2603 06/26/2015
[lun nov 8 07:53:55 2021] RIP: 0010:vfio_pci_core_match+0x34/0x3f0 [vfio_pci_core]
[lun nov 8 07:53:55 2021] Code: 57 41 56 41 55 49 89 fd 41 54 53 48 89 f3 48 83 e4 f0 48 83 ec 30 4c 8b 67 68 65 48 8b 04 25 28 00 00 00 48 89 44 24 28 31 c0 <4d> 8b bc 24 20 01 00 00 4d 85 ff 0f 84 dd 00 00 00 4c 89 ff e8 73
[lun nov 8 07:53:55 2021] RSP: 0018:ffffb5ed415efe50 EFLAGS: 00010246
[lun nov 8 07:53:55 2021] RAX: 0000000000000000 RBX: ffff8bae0f858600 RCX: 0000000000000032
[lun nov 8 07:53:55 2021] RDX: 0000000000000000 RSI: ffff8bae0f858600 RDI: ffff8bade6936000
[lun nov 8 07:53:55 2021] RBP: ffffb5ed415efeb0 R08: 0000000000000001 R09: 00000000ffffffea
[lun nov 8 07:53:55 2021] R10: 0000000000000000 R11: 8080808080808080 R12: 0000000000000000
[lun nov 8 07:53:55 2021] R13: ffff8bade6936000 R14: ffff8badc3392830 R15: 0000000000000000
[lun nov 8 07:53:55 2021] FS: 00007fe65b264600(0000) GS:ffff8bb0efc80000(0000) knlGS:0000000000000000
[lun nov 8 07:53:55 2021] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[lun nov 8 07:53:55 2021] CR2: 0000000000000120 CR3: 000000014f80a000 CR4: 00000000000006e0
[lun nov 8 07:53:55 2021] Call Trace:
[lun nov 8 07:53:55 2021] ? vfio_group_get_device+0xa0/0xa0 [vfio]
[lun nov 8 07:53:55 2021] ? iommu_group_for_each_dev+0x58/0x70
[lun nov 8 07:53:55 2021] vfio_group_fops_unl_ioctl+0x273/0x5c0 [vfio]
[lun nov 8 07:53:55 2021] __x64_sys_ioctl+0x82/0xb0
[lun nov 8 07:53:55 2021] do_syscall_64+0x3b/0xc0
[lun nov 8 07:53:55 2021] entry_SYSCALL_64_after_hwframe+0x44/0xae
[lun nov 8 07:53:55 2021] RIP: 0033:0x7fe65bf25007
[lun nov 8 07:53:55 2021] Code: 3c 1c e8 2c ff ff ff 85 c0 79 97 49 c7 c4 ff ff ff ff 5b 5d 4c 89 e0 41 5c c3 66 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 31 2e 0d 00 f7 d8 64 89 01 48
[lun nov 8 07:53:55 2021] RSP: 002b:00007ffde5902ff8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[lun nov 8 07:53:55 2021] RAX: ffffffffffffffda RBX: 00007fe6547ab160 RCX: 00007fe65bf25007
[lun nov 8 07:53:55 2021] RDX: 00007fe653faee70 RSI: 0000000000003b6a RDI: 0000000000000014
[lun nov 8 07:53:55 2021] RBP: 00007fe6541ffb40 R08: 00007fe653faee70 R09: 0000000000000010
[lun nov 8 07:53:55 2021] R10: 00007fe65b0008c0 R11: 0000000000000246 R12: 00007fe6547aa800
[lun nov 8 07:53:55 2021] R13: 00007fe653faee70 R14: 00007ffde5904240 R15: 00007fe6541ffb40
[lun nov 8 07:53:55 2021] Modules linked in: vfio_pci vfio_pci_core vfio_virqfd vfio_iommu_type1 vfio dahdi_transcode(O) wcb4xxp(O) dahdi(O) crc_ccitt cfg80211 8021q garp mrp xt_CHECKSUM ip6table_mangle ip6table_nat ip6table_filter ip6_tables vhost_net vhost vhost_iotlb tap tun autofs4 nfsd ipt_REJECT nf_reject_ipv4 xt_NFLOG nfnetlink_log nft_counter ebt_nflog ebt_ip nft_compat xt_MASQUERADE xt_pkttype bridge stp llc xt_tcpudp xt_state xt_conntrack nf_tables nfnetlink iptable_mangle iptable_nat nf_nat iptable_filter ip_tables x_tables nf_conntrack_ftp nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 efivarfs ipv6 nls_iso8859_1 nls_cp437 it87 hwmon_vid eeepc_wmi asus_wmi platform_profile battery sparse_keymap rfkill video wmi_bmof mxm_wmi evdev edac_mce_amd kvm_amd radeon drm_ttm_helper ccp ttm kvm uhci_hcd drm_kms_helper irqbypass drm snd_hda_codec_realtek xhci_pci xhci_pci_renesas snd_hda_codec_generic agpgart xhci_hcd i2c_algo_bit k10temp fb_sys_fops r8169 ledtrig_audio syscopyarea sysfillrect
[lun nov 8 07:53:55 2021] snd_hda_codec_hdmi realtek sysimgblt snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec mdio_devres snd_hda_core snd_hwdep snd_pcm libphy snd_timer wmi snd i2c_piix4 button i2c_core soundcore acpi_cpufreq loop dm_snapshot dm_bufio vfat fat algif_skcipher af_alg ansi_cprng sha256_ssse3 hid_generic ext4 mbcache jbd2 usbhid hid ohci_pci ohci_hcd ehci_pci ehci_hcd [last unloaded: dahdi]
[lun nov 8 07:53:55 2021] CR2: 0000000000000120
[lun nov 8 07:53:55 2021] ---[ end trace af7fea169bd7cb01 ]---
[lun nov 8 07:53:55 2021] RIP: 0010:vfio_pci_core_match+0x34/0x3f0 [vfio_pci_core]
[lun nov 8 07:53:55 2021] Code: 57 41 56 41 55 49 89 fd 41 54 53 48 89 f3 48 83 e4 f0 48 83 ec 30 4c 8b 67 68 65 48 8b 04 25 28 00 00 00 48 89 44 24 28 31 c0 <4d> 8b bc 24 20 01 00 00 4d 85 ff 0f 84 dd 00 00 00 4c 89 ff e8 73
[lun nov 8 07:53:55 2021] RSP: 0018:ffffb5ed415efe50 EFLAGS: 00010246
[lun nov 8 07:53:55 2021] RAX: 0000000000000000 RBX: ffff8bae0f858600 RCX: 0000000000000032
[lun nov 8 07:53:55 2021] RDX: 0000000000000000 RSI: ffff8bae0f858600 RDI: ffff8bade6936000
[lun nov 8 07:53:55 2021] RBP: ffffb5ed415efeb0 R08: 0000000000000001 R09: 00000000ffffffea
[lun nov 8 07:53:55 2021] R10: 0000000000000000 R11: 8080808080808080 R12: 0000000000000000
[lun nov 8 07:53:55 2021] R13: ffff8bade6936000 R14: ffff8badc3392830 R15: 0000000000000000
[lun nov 8 07:53:55 2021] FS: 00007fe65b264600(0000) GS:ffff8bb0efc80000(0000) knlGS:0000000000000000
[lun nov 8 07:53:55 2021] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[lun nov 8 07:53:55 2021] CR2: 0000000000000120 CR3: 000000014f80a000 CR4: 00000000000006e0