Bug 210449 - acpi_device_add: buffer overflow in strcpy
Summary: acpi_device_add: buffer overflow in strcpy
Status: RESOLVED CODE_FIX
Alias: None
Product: ACPI
Classification: Unclassified
Component: Config-Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: acpi_config-other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-02 10:16 UTC by Jethro Beekman
Modified: 2021-01-18 08:19 UTC (History)
6 users (show)

See Also:
Kernel Version: next-20201201 5.11.0-rc2
Subsystem:
Regression: No
Bisected commit-id:


Attachments
ACPI tables dump (130.00 KB, application/x-tar)
2020-12-02 10:25 UTC, Jethro Beekman
Details
Oops on boot in acpi_device_add in 5.11-rc2 (3.66 KB, text/plain)
2021-01-08 19:21 UTC, Steve French
Details

Description Jethro Beekman 2020-12-02 10:16:17 UTC
[    0.000000] Linux version 5.10.0-rc6-next-20201201 (root@sgx-kernel-build) (gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609, GNU ld (GNU Binutils for Ubuntu) 2.26.1) #7 SMP Wed Dec 2 09:18:07 UTC 2020
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.10.0-rc6-next-20201201 root=UUID=4ec1dc08-af51-4080-b927-561417afaa77 ro console=tty1 console=ttyS0 earlyprintk=ttyS0
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   Hygon HygonGenuine
[    0.000000]   Centaur CentaurHauls
[    0.000000]   zhaoxin   Shanghai  
[    0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
[    0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
[    0.000000] x86/fpu: xstate_offset[2]:  576, xstate_sizes[2]:  256
[    0.000000] x86/fpu: xstate_offset[3]:  832, xstate_sizes[3]:   64
[    0.000000] x86/fpu: xstate_offset[4]:  896, xstate_sizes[4]:   64
[    0.000000] x86/fpu: Enabled xstate features 0x1f, context size is 960 bytes, using 'compacted' format.
[    0.000000] BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009ffff] usable
[    0.000000] BIOS-e820: [mem 0x00000000000c0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003ed4bfff] usable
[    0.000000] BIOS-e820: [mem 0x000000003ed4c000-0x000000003ed4cfff] ACPI data
[    0.000000] BIOS-e820: [mem 0x000000003ed4d000-0x000000003ee7afff] usable
[    0.000000] BIOS-e820: [mem 0x000000003ee7b000-0x000000003ee99fff] ACPI data
[    0.000000] BIOS-e820: [mem 0x000000003ee9a000-0x000000003eef1fff] usable
[    0.000000] BIOS-e820: [mem 0x000000003eef2000-0x000000003ef1afff] reserved
[    0.000000] BIOS-e820: [mem 0x000000003ef1b000-0x000000003ff9afff] usable
[    0.000000] BIOS-e820: [mem 0x000000003ff9b000-0x000000003fff2fff] reserved
[    0.000000] BIOS-e820: [mem 0x000000003fff3000-0x000000003fffafff] ACPI data
[    0.000000] BIOS-e820: [mem 0x000000003fffb000-0x000000003fffefff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x000000003ffff000-0x000000003fffffff] usable
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x00000001bfffffff] usable
[    0.000000] BIOS-e820: [mem 0x00000001c0200000-0x00000001c1bfffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000001c1e00000-0x00000001c1ffffff] reserved
[    0.000000] printk: bootconsole [earlyser0] enabled
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] efi: EFI v2.70 by Microsoft
[    0.000000] efi: ACPI=0x3fffa000 ACPI 2.0=0x3fffa014 SMBIOS=0x3ffd8000 SMBIOS 3.0=0x3ffd6000 MEMATTR=0x3f9e0218 RNG=0x3ffda818 
[    0.000000] efi: seeding entropy pool
[    0.000000] SMBIOS 3.1.0 present.
[    0.000000] DMI: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v4.1 06/17/2020
[    0.000000] Hypervisor detected: Microsoft Hyper-V
[    0.000000] Hyper-V: features 0x2e7f, hints 0x60c2c, misc 0xed7b2
[    0.000000] Hyper-V Host Build:18362-10.0-3-0.3186
[    0.000000] Hyper-V: LAPIC Timer Frequency: 0xc3500
[    0.000000] tsc: Marking TSC unstable due to running on Hyper-V
[    0.000000] Hyper-V: Using hypercall for remote TLB flush
[    0.000000] clocksource: hyperv_clocksource_tsc_page: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.000002] tsc: Detected 3696.012 MHz processor
[    0.002124] last_pfn = 0x1c0000 max_arch_pfn = 0x400000000
[    0.004543] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT  
Memory KASLR using RDRAND RDTSC...
[    0.008675] last_pfn = 0x40000 max_arch_pfn = 0x400000000
[    0.021667] check: Scanning 1 areas for low memory corruption
[    0.024119] Using GB pages for direct mapping
[    0.026644] Secure boot disabled
[    0.029161] RAMDISK: [mem 0x2c75c000-0x2f097fff]
[    0.033563] ACPI: Early table checksum verification disabled
[    0.037148] ACPI: RSDP 0x000000003FFFA014 000024 (v02 VRTUAL)
[    0.040591] ACPI: XSDT 0x000000003FFF90E8 00005C (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.044286] ACPI: FACP 0x000000003FFF8000 000114 (v06 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.048784] ACPI: DSDT 0x000000003EE7B000 01E184 (v02 MSFTVM DSDT01   00000001 MSFT 05000000)
[    0.052610] ACPI: FACS 0x000000003FFFE000 000040
[    0.054718] ACPI: OEM0 0x000000003FFF7000 000064 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.058583] ACPI: WAET 0x000000003FFF6000 000028 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.063415] ACPI: APIC 0x000000003FFF5000 000050 (v04 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.067570] ACPI: SRAT 0x000000003FFF4000 0001D0 (v02 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.073199] ACPI: BGRT 0x000000003FFF3000 000038 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.079622] ACPI: FPDT 0x000000003ED4C000 000034 (v01 VRTUAL MICROSFT 00000001 MSFT 00000001)
[    0.085486] SRAT: PXM 0 -> APIC 0x00 -> Node 0
[    0.087926] ACPI: SRAT: Node 0 PXM 0 [mem 0x00000000-0x3fffffff] hotplug
[    0.093171] ACPI: SRAT: Node 0 PXM 0 [mem 0x100000000-0x1bfffffff] hotplug
[    0.096744] ACPI: SRAT: Node 0 PXM 0 [mem 0x1c0200000-0x1c1bfffff] hotplug
[    0.100390] ACPI: SRAT: Node 0 PXM 0 [mem 0x1c1e00000-0x1c1ffffff] hotplug
[    0.103377] ACPI: SRAT: Node 0 PXM 0 [mem 0x1c2000000-0xfdfffffff] hotplug
[    0.107195] ACPI: SRAT: Node 0 PXM 0 [mem 0x1000000000-0xffffffffff] hotplug
[    0.111687] ACPI: SRAT: Node 0 PXM 0 [mem 0x10000200000-0x1ffffffffff] hotplug
[    0.115130] ACPI: SRAT: Node 0 PXM 0 [mem 0x20000200000-0x3ffffffffff] hotplug
[    0.118507] ACPI: SRAT: Node 0 PXM 0 [mem 0x40000200000-0x7ffffffffff] hotplug
[    0.121785] ACPI: SRAT: Node 0 PXM 0 [mem 0x80000200000-0xfffffffffff] hotplug
[    0.125707] NUMA: Node 0 [mem 0x00000000-0x3fffffff] + [mem 0x100000000-0x1bfffffff] -> [mem 0x00000000-0x1bfffffff]
[    0.131037] NODE_DATA(0) allocated [mem 0x1bffd5000-0x1bfffffff]
[    0.134643] Zone ranges:
[    0.136056]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.139374]   DMA32    [mem 0x0000000001000000-0x00000000ffffffff]
[    0.142758]   Normal   [mem 0x0000000100000000-0x00000001bfffffff]
[    0.145575]   Device   empty
[    0.147316] Movable zone start for each node
[    0.149727] Early memory node ranges
[    0.151185]   node   0: [mem 0x0000000000001000-0x000000000009ffff]
[    0.154043]   node   0: [mem 0x0000000000100000-0x000000003ed4bfff]
[    0.156924]   node   0: [mem 0x000000003ed4d000-0x000000003ee7afff]
[    0.159732]   node   0: [mem 0x000000003ee9a000-0x000000003eef1fff]
[    0.162220]   node   0: [mem 0x000000003ef1b000-0x000000003ff9afff]
[    0.165073]   node   0: [mem 0x000000003ffff000-0x000000003fffffff]
[    0.167650]   node   0: [mem 0x0000000100000000-0x00000001bfffffff]
[    0.170038] Zeroed struct page in unavailable ranges: 270 pages
[    0.170040] Initmem setup node 0 [mem 0x0000000000001000-0x00000001bfffffff]
[    0.185045] tboot: non-0 tboot_addr but it is not of type E820_TYPE_RESERVED
[    0.190108] ACPI: PM-Timer IO Port: 0x408
[    0.191916] ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
[    0.194264] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
[    0.196894] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.199432] Using ACPI (MADT) for SMP configuration information
[    0.201790] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[    0.203987] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[    0.207429] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000bffff]
[    0.210706] PM: hibernation: Registered nosave memory: [mem 0x000c0000-0x000fffff]
[    0.218676] PM: hibernation: Registered nosave memory: [mem 0x3ed4c000-0x3ed4cfff]
[    0.222254] PM: hibernation: Registered nosave memory: [mem 0x3ee7b000-0x3ee99fff]
[    0.226091] PM: hibernation: Registered nosave memory: [mem 0x3eef2000-0x3ef1afff]
[    0.229853] PM: hibernation: Registered nosave memory: [mem 0x3ff9b000-0x3fff2fff]
[    0.232710] PM: hibernation: Registered nosave memory: [mem 0x3fff3000-0x3fffafff]
[    0.237183] PM: hibernation: Registered nosave memory: [mem 0x3fffb000-0x3fffefff]
[    0.240665] PM: hibernation: Registered nosave memory: [mem 0x40000000-0xffffffff]
[    0.243469] [mem 0x40000000-0xffffffff] available for PCI devices
[    0.246209] Booting paravirtualized kernel on Hyper-V
[    0.248579] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[    0.253386] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
[    0.256881] percpu: Embedded 55 pages/cpu s188416 r8192 d28672 u2097152
[    0.259605] Hyper-V: PV spinlocks enabled
[    0.261610] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.265050] Built 1 zonelists, mobility grouping on.  Total pages: 1030580
[    0.269460] Policy zone: Normal
[    0.270834] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.10.0-rc6-next-20201201 root=UUID=4ec1dc08-af51-4080-b927-561417afaa77 ro console=tty1 console=ttyS0 earlyprintk=ttyS0
[    0.279471] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.284434] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.288417] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.301143] Memory: 3966860K/4193224K available (14346K kernel code, 3311K rwdata, 4592K rodata, 2244K init, 6596K bss, 226104K reserved, 0K cma-reserved)
[    0.309082] random: get_random_u64 called from __kmem_cache_create+0x32/0x480 with crng_init=0
[    0.309152] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.317745] Kernel/User page tables isolation: enabled
[    0.320049] ftrace: allocating 43490 entries in 170 pages
[    0.331826] ftrace: allocated 170 pages with 4 groups
[    0.334815] rcu: Hierarchical RCU implementation.
[    0.337496] rcu: 	RCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=1.
[    0.340690] 	Rude variant of Tasks RCU enabled.
[    0.344589] 	Tracing variant of Tasks RCU enabled.
[    0.346827] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.350645] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.355693] Using NULL legacy PIC
[    0.357032] NR_IRQS: 524544, nr_irqs: 256, preallocated irqs: 0
[    0.360578] Console: colour dummy device 80x25
[    0.363119] printk: console [tty1] enabled
[    0.365569] printk: console [ttyS0] enabled
[    0.365569] printk: console [ttyS0] enabled
[    0.370589] printk: bootconsole [earlyser0] disabled
[    0.370589] printk: bootconsole [earlyser0] disabled
[    0.375252] ACPI: Core revision 20200925
[    0.377028] Failed to register legacy timer interrupt
[    0.379501] APIC: Switch to symmetric I/O mode setup
[    0.381791] Hyper-V: Using IPI hypercalls
[    0.383640] Hyper-V: Using enlightened APIC (xapic mode)
[    0.383703] Calibrating delay loop (skipped), value calculated using timer frequency.. 7392.02 BogoMIPS (lpj=14784048)
[    0.391706] pid_max: default: 32768 minimum: 301
[    0.394396] LSM: Security Framework initializing
[    0.395713] Yama: becoming mindful.
[    0.397565] AppArmor: AppArmor initialized
[    0.399501] TOMOYO Linux initialized
[    0.399738] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.403711] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
Poking KASLR using RDRAND RDTSC...
[    0.409605] Last level iTLB entries: 4KB 128, 2MB 8, 4MB 8
[    0.411705] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0, 1GB 4
[    0.414453] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[    0.415713] Spectre V2 : Mitigation: Full generic retpoline
[    0.418480] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[    0.419703] Speculative Store Bypass: Vulnerable
[    0.422516] TAA: Mitigation: Clear CPU buffers
[    0.423703] SRBDS: Unknown: Dependent on hypervisor status
[    0.426287] MDS: Mitigation: Clear CPU buffers
[    0.430804] Freeing SMP alternatives memory: 40K
[    0.432315] smpboot: CPU0: Intel(R) Xeon(R) E-2288G CPU @ 3.70GHz (family: 0x6, model: 0x9e, stepping: 0xd)
[    0.435816] Performance Events: unsupported p6 CPU model 158 no PMU driver, software events only.
[    0.439749] rcu: Hierarchical SRCU implementation.
[    0.442301] NMI watchdog: Perf NMI watchdog permanently disabled
[    0.443739] smp: Bringing up secondary CPUs ...
[    0.445615] smp: Brought up 1 node, 1 CPU
[    0.447704] smpboot: Max logical packages: 1
[    0.450605] smpboot: Total of 1 processors activated (7392.02 BogoMIPS)
[    0.451888] devtmpfs: initialized
[    0.453639] x86/mm: Memory block size: 128MB
[    0.455919] PM: Registering ACPI NVS region [mem 0x3fffb000-0x3fffefff] (16384 bytes)
[    0.459758] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.463754] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.466884] pinctrl core: initialized pinctrl subsystem
[    0.468011] PM: RTC time: 10:07:38, date: 2020-12-02
[    0.471018] NET: Registered protocol family 16
[    0.471763] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.474696] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.475711] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.479694] audit: initializing netlink subsys (disabled)
[    0.479811] thermal_sys: Registered thermal governor 'fair_share'
[    0.479811] thermal_sys: Registered thermal governor 'bang_bang'
[    0.483709] audit: type=2000 audit(1606903658.096:1): state=initialized audit_enabled=0 res=1
[    0.487710] thermal_sys: Registered thermal governor 'step_wise'
[    0.487711] thermal_sys: Registered thermal governor 'user_space'
[    0.491673] cpuidle: using governor ladder
[    0.494158] cpuidle: using governor menu
[    0.495746] ACPI: bus type PCI registered
[    0.498396] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.500483] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.503708] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.507955] ACPI: Added _OSI(Module Device)
[    0.510343] ACPI: Added _OSI(Processor Device)
[    0.511707] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.513985] ACPI: Added _OSI(Processor Aggregator Device)
[    0.515744] ACPI: Added _OSI(Linux-Dell-Video)
[    0.517079] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.519735] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[    0.526442] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    0.528121] ACPI: Interpreter enabled
[    0.529015] ACPI: (supports S0 S5)
[    0.529916] ACPI: Using IOAPIC for interrupt routing
[    0.531111] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.531760] ACPI: Enabled 1 GPEs in block 00 to 0F
[    0.533991] detected buffer overflow in strcpy
[    0.535598] ------------[ cut here ]------------
[    0.535704] kernel BUG at lib/string.c:1149!
[    0.536784] invalid opcode: 0000 [#1] SMP PTI
[    0.539286] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.0-rc6-next-20201201 #7
[    0.539700] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v4.1 06/17/2020
[    0.539700] RIP: 0010:fortify_panic+0x13/0x15
[    0.539700] Code: 00 41 c7 47 34 00 00 00 00 5b 4c 89 f8 41 5c 41 5d 41 5e 41 5f 5d c3 55 48 89 fe 48 c7 c7 70 6e 76 a6 48 89 e5 e8 19 db ff ff <0f> 0b 55 48 89 e5 53 89 f3 48 89 de e8 46 bb ac ff 48 39 c3 0f 94
[    0.539700] RSP: 0000:ffffc09280043b38 EFLAGS: 00010282
[    0.539700] RAX: 0000000000000022 RBX: ffff9be00037f200 RCX: c0000000ffffdfff
[    0.539700] RDX: 0000000000000000 RSI: 00000000ffffdfff RDI: ffffffffa70058ac
[    0.539700] RBP: ffffc09280043b38 R08: 0000000000000003 R09: 0000000000000001
[    0.539700] R10: ffffc09280043b10 R11: ffffc09280043900 R12: ffff9be0002d4420
[    0.539700] R13: ffff9be00037f200 R14: ffffffffa6c437c8 R15: ffff9be00089b800
[    0.539700] FS:  0000000000000000(0000) GS:ffff9be0bbc00000(0000) knlGS:0000000000000000
[    0.539700] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.539700] CR2: 0000000000000000 CR3: 000000019040a001 CR4: 00000000003706f0
[    0.539700] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    0.539700] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    0.539700] Call Trace:
[    0.539700]  acpi_device_add+0x403/0x410
[    0.539700]  ? acpi_free_pnp_ids+0x60/0x60
[    0.539700]  acpi_add_single_object+0x27c/0x670
[    0.539700]  ? up+0x32/0x50
[    0.539700]  ? acpi_os_signal_semaphore+0x33/0x40
[    0.539700]  acpi_bus_check_add+0xc0/0x240
[    0.539700]  ? up+0x32/0x50
[    0.539700]  acpi_ns_walk_namespace+0xe4/0x196
[    0.539700]  ? acpi_add_single_object+0x670/0x670
[    0.539700]  ? acpi_add_single_object+0x670/0x670
[    0.539700]  acpi_walk_namespace+0x9c/0xd0
[    0.539700]  acpi_bus_scan+0x7f/0x90
[    0.539700]  acpi_scan_init+0x121/0x26f
[    0.539700]  acpi_init+0x2d9/0x339
[    0.539700]  ? acpi_sleep_proc_init+0x2a/0x2a
[    0.539700]  do_one_initcall+0x51/0x200
[    0.539700]  kernel_init_freeable+0x1ef/0x244
[    0.539700]  ? rest_init+0xe0/0xe0
[    0.539700]  kernel_init+0xe/0x110
[    0.539700]  ret_from_fork+0x22/0x30
[    0.539700] Modules linked in:
[    0.539707] ---[ end trace ad7eca24a28de399 ]---
[    0.541613] RIP: 0010:fortify_panic+0x13/0x15
[    0.543671] Code: 00 41 c7 47 34 00 00 00 00 5b 4c 89 f8 41 5c 41 5d 41 5e 41 5f 5d c3 55 48 89 fe 48 c7 c7 70 6e 76 a6 48 89 e5 e8 19 db ff ff <0f> 0b 55 48 89 e5 53 89 f3 48 89 de e8 46 bb ac ff 48 39 c3 0f 94
[    0.543709] RSP: 0000:ffffc09280043b38 EFLAGS: 00010282
[    0.546283] RAX: 0000000000000022 RBX: ffff9be00037f200 RCX: c0000000ffffdfff
[    0.547705] RDX: 0000000000000000 RSI: 00000000ffffdfff RDI: ffffffffa70058ac
[    0.550900] RBP: ffffc09280043b38 R08: 0000000000000003 R09: 0000000000000001
[    0.551704] R10: ffffc09280043b10 R11: ffffc09280043900 R12: ffff9be0002d4420
[    0.554852] R13: ffff9be00037f200 R14: ffffffffa6c437c8 R15: ffff9be00089b800
[    0.555704] FS:  0000000000000000(0000) GS:ffff9be0bbc00000(0000) knlGS:0000000000000000
[    0.559304] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.559704] CR2: 0000000000000000 CR3: 000000019040a001 CR4: 00000000003706f0
[    0.563106] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    0.563704] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    0.567006] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.567700] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]---
Comment 1 Jethro Beekman 2020-12-02 10:25:04 UTC
Created attachment 293905 [details]
ACPI tables dump
Comment 2 Jethro Beekman 2020-12-23 12:10:18 UTC
Issue remains in Torvalds's current master branch
Comment 3 Zhang Rui 2021-01-03 12:03:09 UTC
I see there are some ACPICA changes in upstream kernel recently, but I'm not sure if they're included in the 23th Dec' git tree.
Like the one below
32cf1a12cad43358e47dac8014379c2f33dfbed4
please check if the commit is included in your previous test.
and better to confirm if the problem still exists in the latest upstream kernel or not.
Comment 4 Jethro Beekman 2021-01-04 08:57:04 UTC
This is now in 5.11.0-rc2. Yes this includes the commit you mention.
Comment 5 Steve French 2021-01-05 19:15:45 UTC
I am seeing a similar oops in 5.10-rc2 kernel (Ubuntu mainline build)
Comment 6 Jethro Beekman 2021-01-05 19:19:01 UTC
Steve, is that a typo or are you actually testing 5.10-rc2 now (that's quite old)?
Comment 7 Steve French 2021-01-05 19:20:10 UTC
(In reply to Steve French from comment #5)
> I am seeing a similar oops in 5.10-rc2 kernel (Ubuntu mainline build)

  Sorry about the typo - "5.11-rc2" (installed today)
Comment 8 Steve French 2021-01-05 19:21:09 UTC
(In reply to Jethro Beekman from comment #6)
> Steve, is that a typo or are you actually testing 5.10-rc2 now (that's quite
> old)?

Yes - thanks for catching that. Was a typo.  Installed current mainline Ubuntu kernel (5.11-rc2) build, on an Ubuntu 19.04 VM in Azure.
Comment 9 Jethro Beekman 2021-01-05 19:34:00 UTC
So a common theme here appears to be Azure hypervisor.
Comment 10 Steve French 2021-01-08 19:21:56 UTC
Created attachment 294573 [details]
Oops on boot in acpi_device_add in 5.11-rc2

Oops info attached. Booted in Azure VM from Ubuntu's weekly mainline kernel build (5.11-rc2) crashes.  5.10 booted fine,
Comment 11 Dexuan Cui 2021-01-09 02:31:35 UTC
This is my v1 fix: https://lkml.org/lkml/2020/12/18/514

Yesterday Rafael J. Wysock sugested that I should make a new fix using kstrdup_const(): https://lkml.org/lkml/2021/1/8/48

So I posted v2 later yesterday: https://lkml.org/lkml/2021/1/8/53

So far, no comment yet. Let me ping the ACPI maintainers now since we know more people are being affected.
Comment 12 Dexuan Cui 2021-01-09 22:15:07 UTC
From "Rafael J. Wysocki", one of the ACPI maintainers: "I'm going to apply the v2 early next week." (see https://lkml.org/lkml/2021/1/9/218)

Thanks Jethro for your testing! (https://lkml.org/lkml/2021/1/9/30)
Comment 13 Dexuan Cui 2021-01-11 20:05:56 UTC
FYI:
Now the fix is in the linux-pm tree's branch bleeding-edge:

https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=bleeding-edge&id=a58015d638cd4e4555297b04bec9b49028369075
Comment 14 Jethro Beekman 2021-01-18 08:19:10 UTC
Fixed in 5.11-rc4

Note You need to log in before you can comment on or make changes to this bug.