Bug 1822731 - Computer won't boot with kernel 5.7.0-0.rc0.git6.1.fc33.x86_64
Summary: Computer won't boot with kernel 5.7.0-0.rc0.git6.1.fc33.x86_64
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-09 17:54 UTC by Mikhail
Modified: 2020-04-20 13:15 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-20 13:15:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Photo with all messages that I see after start booting kernel (3.39 MB, image/jpeg)
2020-04-09 17:54 UTC, Mikhail
no flags Details
1-9-efi-cper-Use-scnprintf-for-avoiding-potential-buffer-overflow.patch (4.13 KB, application/mbox)
2020-04-16 06:38 UTC, Mikhail
no flags Details
2-9-efi-libstub-x86-remove-redundant-assignment-to-pointer-hdr.patch (4.31 KB, application/mbox)
2020-04-16 06:39 UTC, Mikhail
no flags Details
3-9-efi-x86-Move-efi-stub-globals-from-.bss-to-.data.patch (6.05 KB, application/mbox)
2020-04-16 06:39 UTC, Mikhail
no flags Details
4-9-efi-x86-Always-relocate-the-kernel-for-EFI-handover-entry.patch (6.26 KB, application/mbox)
2020-04-16 06:39 UTC, Mikhail
no flags Details
5-9-efi-arm-Deal-with-ADR-going-out-of-range-in-efi_enter_kernel.patch (4.73 KB, application/mbox)
2020-04-16 06:39 UTC, Mikhail
no flags Details
6-9-Documentation-efi-x86-clarify-EFI-handover-protocol-and-its-requirements.patch (6.75 KB, application/mbox)
2020-04-16 06:40 UTC, Mikhail
no flags Details
7-9-efi-libstub-file-merge-filename-buffers-to-reduce-stack-usage.patch (6.25 KB, application/mbox)
2020-04-16 06:40 UTC, Mikhail
no flags Details
8-9-efi-x86-Fix-the-deletion-of-variables-in-mixed-mode.patch (4.83 KB, application/mbox)
2020-04-16 06:40 UTC, Mikhail
no flags Details
9-9-efi-x86-Don-t-remap-text---rodata-gap-read-only-for-mixed-mode.patch (6.80 KB, application/mbox)
2020-04-16 06:40 UTC, Mikhail
no flags Details

Description Mikhail 2020-04-09 17:54:55 UTC
Created attachment 1677613 [details]
Photo with all messages that I see after start booting kernel

Today the new kernel 5.7.0-0.rc0.git6.1.fc33.x86_64 was installed.
With this kernel, my two computers won't boot.
Symptoms:
Instead of showing boot messages, I see the black screen and some times see messages:
exit_boot() failed!
efi_main() failed!

Last working kernel is kernel-core-5.7.0-0.rc0.git2.1.fc33.x86_64.

Unfortunately, kernel bisecting not telling exactly which commit are blame:

$ git bisect log
git bisect start
# good: [cad18da0afb1bc7b37d73a74067ab7ff5974897c] Merge tag 'please-pull-ia64_for_5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux
git bisect good cad18da0afb1bc7b37d73a74067ab7ff5974897c
# bad: [a10c9c710f9ecea87b9f4bbb837467893b4bef01] Merge tag 'for-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply
git bisect bad a10c9c710f9ecea87b9f4bbb837467893b4bef01
# bad: [f365ab31efacb70bed1e821f7435626e0b2528a6] Merge tag 'drm-next-2020-04-01' of git://anongit.freedesktop.org/drm/drm
git bisect bad f365ab31efacb70bed1e821f7435626e0b2528a6
# good: [7f80ccfe996871ca69648efee74a60ae7ad0dcd9] net: ipv6: rpl_iptunnel: Fix potential memory leak in rpl_do_srh_inline
git bisect good 7f80ccfe996871ca69648efee74a60ae7ad0dcd9
# good: [9001b17698d86f842e2b13e0cafe8021d43209e9] Merge tag 'drm-intel-next-2020-03-13' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
git bisect good 9001b17698d86f842e2b13e0cafe8021d43209e9
# bad: [dfabb077d62552797ca0ae7756cb30d3e195ead5] Merge tag 'mmc-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
git bisect bad dfabb077d62552797ca0ae7756cb30d3e195ead5
# bad: [15c981d16d70e8a5be297fa4af07a64ab7e080ed] Merge tag 'for-5.7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
git bisect bad 15c981d16d70e8a5be297fa4af07a64ab7e080ed
# good: [dc9492c14c758639d7b2468d4ed3c77e785c1a35] btrfs: hold a ref on the root on the dead roots list
git bisect good dc9492c14c758639d7b2468d4ed3c77e785c1a35
# good: [3cd86a58f7734bf9cef38f6f899608ebcaa3da13] Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
git bisect good 3cd86a58f7734bf9cef38f6f899608ebcaa3da13
# bad: [fdf5563a720004199324371c08071b8ea27bd994] Merge branch 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad fdf5563a720004199324371c08071b8ea27bd994
# skip: [cf122cfba5b1d9daf64009d143f51dfec4b1705a] kill uaccess_try()
git bisect skip cf122cfba5b1d9daf64009d143f51dfec4b1705a
# skip: [4dd2a1b92b91b5f2acf853ee1dc0df135054698f] x86: Replace setup_irq() by request_irq()
git bisect skip 4dd2a1b92b91b5f2acf853ee1dc0df135054698f
# skip: [5c1f178094631e8b9acc67e4a9b6e03abfbc2529] x86: __setup_frame(): consolidate uaccess areas
git bisect skip 5c1f178094631e8b9acc67e4a9b6e03abfbc2529
# skip: [3add42c29cebb1d5f83c6205c59466a06ccf8da1] x86: get rid of get_user_ex() in restore_sigcontext()
git bisect skip 3add42c29cebb1d5f83c6205c59466a06ccf8da1
# skip: [ead8e4e7e2c75ced6fcd9a53d3e9a2ecd7368553] x86: __setup_rt_frame(): consolidate uaccess areas
git bisect skip ead8e4e7e2c75ced6fcd9a53d3e9a2ecd7368553
# skip: [31a9122058bc5f042cb04bcdb8cd9e6c77fdae8d] x86/mm: Drop pud_mknotpresent()
git bisect skip 31a9122058bc5f042cb04bcdb8cd9e6c77fdae8d
# skip: [791612e9668cecbf5dd24d13400ac74e099f005c] x86: x32_setup_rt_frame(): consolidate uaccess areas
git bisect skip 791612e9668cecbf5dd24d13400ac74e099f005c
# skip: [77f3c6166ddc7567455b244074b3ebb63862b56f] x86: kill get_user_{try,catch,ex}
git bisect skip 77f3c6166ddc7567455b244074b3ebb63862b56f
# skip: [b00d8f8f0b2b39223c3fd6713d318aba95420264] x86: setup_sigcontext(): list user_access_{begin,end}() into callers
git bisect skip b00d8f8f0b2b39223c3fd6713d318aba95420264
# skip: [0e79ad863df43b01090ae18c97de5c3787f069c6] x86/cpu: Fix a -Wmissing-prototypes warning for init_ia32_feat_ctl()
git bisect skip 0e79ad863df43b01090ae18c97de5c3787f069c6
# skip: [b87df6594486626a9ae5944807307f2604cea3e2] x86: unsafe_put-style macro for sigmask
git bisect skip b87df6594486626a9ae5944807307f2604cea3e2
# skip: [a37d01ead405e3aa14d72d284721fe46422b3b63] x86: switch save_v86_state() to unsafe_put_user()
git bisect skip a37d01ead405e3aa14d72d284721fe46422b3b63
# skip: [119cd59fcfbe70fb3fcab4e64cd232bcc3807585] x86: get rid of put_user_try in __setup_rt_frame() (both 32bit and 64bit)
git bisect skip 119cd59fcfbe70fb3fcab4e64cd232bcc3807585
# skip: [119cd59fcfbe70fb3fcab4e64cd232bcc3807585] x86: get rid of put_user_try in __setup_rt_frame() (both 32bit and 64bit)
git bisect skip 119cd59fcfbe70fb3fcab4e64cd232bcc3807585
# bad: [9589351ccf47a85a75180a430627c16bc28da929] Merge branch 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad 9589351ccf47a85a75180a430627c16bc28da929
# skip: [003602ad5516e59940de42e44c8d8033387bb363] x86/*/Makefile: Use -fno-asynchronous-unwind-tables to suppress .eh_frame sections
git bisect skip 003602ad5516e59940de42e44c8d8033387bb363
# skip: [0eea39a234dc52063d14541fabcb2c64516a2328] x86/boot/compressed: Remove .eh_frame section from bzImage
git bisect skip 0eea39a234dc52063d14541fabcb2c64516a2328
# skip: [bac59d18c7018a2fd5e800a1e72a8271bf404977] x86/setup: Fix static memory detection
git bisect skip bac59d18c7018a2fd5e800a1e72a8271bf404977
# skip: [3ee372ccce4d4e7c610748d0583979d3ed3a0cf4] x86/boot/compressed/64: Remove .bss/.pgtable from bzImage
git bisect skip 3ee372ccce4d4e7c610748d0583979d3ed3a0cf4
# skip: [a86255fe5258714e1f7c1bdfe95f08e4d098d450] x86/boot/compressed/64: Use 32-bit (zero-extended) MOV for z_output_len
git bisect skip a86255fe5258714e1f7c1bdfe95f08e4d098d450
# skip: [6f8f0dc980028e98ae339876a8403edae4d20e39] x86/vmlinux: Drop unneeded linker script discard of .eh_frame
git bisect skip 6f8f0dc980028e98ae339876a8403edae4d20e39
# skip: [48bfdb9deffdc6b683feb25e15f4f26aac503501] x86/boot/compressed/64: Use LEA to initialize boot stack pointer
git bisect skip 48bfdb9deffdc6b683feb25e15f4f26aac503501
# skip: [c90beea22a2bece4b0bbb39789bf835504421594] x86/boot/compressed: Fix debug_puthex() parameter type
git bisect skip c90beea22a2bece4b0bbb39789bf835504421594
# only skipped commits left to test
# possible first bad commit: [9589351ccf47a85a75180a430627c16bc28da929] Merge branch 'x86-boot-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
# possible first bad commit: [c90beea22a2bece4b0bbb39789bf835504421594] x86/boot/compressed: Fix debug_puthex() parameter type
# possible first bad commit: [bac59d18c7018a2fd5e800a1e72a8271bf404977] x86/setup: Fix static memory detection
# possible first bad commit: [6f8f0dc980028e98ae339876a8403edae4d20e39] x86/vmlinux: Drop unneeded linker script discard of .eh_frame
# possible first bad commit: [003602ad5516e59940de42e44c8d8033387bb363] x86/*/Makefile: Use -fno-asynchronous-unwind-tables to suppress .eh_frame sections
# possible first bad commit: [0eea39a234dc52063d14541fabcb2c64516a2328] x86/boot/compressed: Remove .eh_frame section from bzImage
# possible first bad commit: [3ee372ccce4d4e7c610748d0583979d3ed3a0cf4] x86/boot/compressed/64: Remove .bss/.pgtable from bzImage
# possible first bad commit: [a86255fe5258714e1f7c1bdfe95f08e4d098d450] x86/boot/compressed/64: Use 32-bit (zero-extended) MOV for z_output_len
# possible first bad commit: [48bfdb9deffdc6b683feb25e15f4f26aac503501] x86/boot/compressed/64: Use LEA to initialize boot stack pointer


In my bisecting a lot of skipping commits because of the unsuccessful build:
ld: arch/x86/boot/compressed/pgtable_64.o:(.bss+0x0): multiple definition of `__force_order'; arch/x86/boot/compressed/kaslr_64.o:(.bss+0x0): first defined here
make[2]: *** [arch/x86/boot/compressed/Makefile:120: arch/x86/boot/compressed/vmlinux] Error 1
make[1]: *** [arch/x86/boot/Makefile:114: arch/x86/boot/compressed/vmlinux] Error 2
make: *** [arch/x86/Makefile:283: bzImage] Error 2

Comment 1 Mikhail 2020-04-09 20:12:42 UTC
Issue demonstration: https://youtu.be/Vy4jBWDIL1Y

Comment 2 Mikhail 2020-04-16 06:36:15 UTC
This patchset https://lore.kernel.org/patchwork/patch/1222109/ should fix the issue.

Comment 3 Mikhail 2020-04-16 06:38:42 UTC
Created attachment 1679234 [details]
1-9-efi-cper-Use-scnprintf-for-avoiding-potential-buffer-overflow.patch

Comment 4 Mikhail 2020-04-16 06:39:03 UTC
Created attachment 1679235 [details]
2-9-efi-libstub-x86-remove-redundant-assignment-to-pointer-hdr.patch

Comment 5 Mikhail 2020-04-16 06:39:21 UTC
Created attachment 1679236 [details]
3-9-efi-x86-Move-efi-stub-globals-from-.bss-to-.data.patch

Comment 6 Mikhail 2020-04-16 06:39:37 UTC
Created attachment 1679237 [details]
4-9-efi-x86-Always-relocate-the-kernel-for-EFI-handover-entry.patch

Comment 7 Mikhail 2020-04-16 06:39:52 UTC
Created attachment 1679238 [details]
5-9-efi-arm-Deal-with-ADR-going-out-of-range-in-efi_enter_kernel.patch

Comment 8 Mikhail 2020-04-16 06:40:10 UTC
Created attachment 1679239 [details]
6-9-Documentation-efi-x86-clarify-EFI-handover-protocol-and-its-requirements.patch

Comment 9 Mikhail 2020-04-16 06:40:23 UTC
Created attachment 1679240 [details]
7-9-efi-libstub-file-merge-filename-buffers-to-reduce-stack-usage.patch

Comment 10 Mikhail 2020-04-16 06:40:36 UTC
Created attachment 1679241 [details]
8-9-efi-x86-Fix-the-deletion-of-variables-in-mixed-mode.patch

Comment 11 Mikhail 2020-04-16 06:40:50 UTC
Created attachment 1679242 [details]
9-9-efi-x86-Don-t-remap-text---rodata-gap-read-only-for-mixed-mode.patch

Comment 12 Mikhail 2020-04-20 13:15:01 UTC
Fixed in 5.7.0-0.rc1.20200416git9786cab67457.1.fc33.x86_64


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