ci starts bisection 2023-03-10 14:41:08.182112266 +0000 UTC m=+28102.641363922 bisecting fixing commit since 1fe4fd6f5cad346e598593af36caeadc4f5d4fa9 building syzkaller on 1dac8c7a01e2bdd35cb04eb4901ddb157291ac2d ensuring issue is reproducible on original commit 1fe4fd6f5cad346e598593af36caeadc4f5d4fa9 testing commit 1fe4fd6f5cad346e598593af36caeadc4f5d4fa9 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 24a63f0ff9c1a1f6f144294872359dccafc001a85f8afc6083b91f5cb63ec6cc all runs: crashed: unexpected kernel reboot testing current HEAD 44889ba56cbb3d51154660ccd15818bc77276696 testing commit 44889ba56cbb3d51154660ccd15818bc77276696 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: bd8d813c83138df816a05295578772923db6db5f9d296e257bbe15dba315dcfd all runs: OK # git bisect start 44889ba56cbb3d51154660ccd15818bc77276696 1fe4fd6f5cad346e598593af36caeadc4f5d4fa9 Bisecting: 7698 revisions left to test after this (roughly 13 steps) [d5176cdbf64ce7d4eebf339205f17c23118e9f72] Merge tag 'pinctrl-v6.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl testing commit d5176cdbf64ce7d4eebf339205f17c23118e9f72 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 30d55e854b1ea94e72b9994e6a34b4b5398aa295bfbb20ee535805fc17a907c2 all runs: OK # git bisect bad d5176cdbf64ce7d4eebf339205f17c23118e9f72 Bisecting: 3881 revisions left to test after this (roughly 12 steps) [056612fd41fef88eef22a032021cc15ef98cfc34] Merge tag 'x86-cleanups-2023-02-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 056612fd41fef88eef22a032021cc15ef98cfc34 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 115c5aa198c1312ea0a21004ef5f7a40260c0a82c7193889d27f3bb041ae2307 all runs: OK # git bisect bad 056612fd41fef88eef22a032021cc15ef98cfc34 Bisecting: 1956 revisions left to test after this (roughly 11 steps) [cd776a4342b322a9e3df59b2da949fac4db313a0] Merge tag 'fsnotify_for_v6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs testing commit cd776a4342b322a9e3df59b2da949fac4db313a0 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 99659d65668dcc48f51c2dd4974886f95ad04738c1e4fee30575392d19d4a97d all runs: crashed: unexpected kernel reboot # git bisect good cd776a4342b322a9e3df59b2da949fac4db313a0 Bisecting: 970 revisions left to test after this (roughly 10 steps) [fc54e13d712501cd2ad99ac015c5ff8a0c6ae184] Merge tag 'qcom-dts-for-6.3-2' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into arm/dt testing commit fc54e13d712501cd2ad99ac015c5ff8a0c6ae184 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 34eaa598c06f2183abe841c9bd4b6662b852c1b9006d3fa3906ea1ef2746acac all runs: crashed: unexpected kernel reboot # git bisect good fc54e13d712501cd2ad99ac015c5ff8a0c6ae184 Bisecting: 528 revisions left to test after this (roughly 9 steps) [5b0ed5964928b0aaf0d644c17c886c7f5ea4bb3f] Merge tag 'for-6.3/block-2023-02-16' of git://git.kernel.dk/linux testing commit 5b0ed5964928b0aaf0d644c17c886c7f5ea4bb3f gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 376ef38e944d5061d62c7d889ca7bdadd8d347e6601e6208923013254909f273 all runs: crashed: unexpected kernel reboot # git bisect good 5b0ed5964928b0aaf0d644c17c886c7f5ea4bb3f Bisecting: 246 revisions left to test after this (roughly 8 steps) [950b6662e26e381cf8834b9b78b08261890ee697] Merge tag 'soc-dt-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc testing commit 950b6662e26e381cf8834b9b78b08261890ee697 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f5fb3d12164e504892d8baf2e959be61febb4b9e120698d30b44223b3718e3a5 all runs: crashed: unexpected kernel reboot # git bisect good 950b6662e26e381cf8834b9b78b08261890ee697 Bisecting: 135 revisions left to test after this (roughly 7 steps) [7c4a5b89a0b5a57a64b601775b296abf77a9fe97] sched/rt: pick_next_rt_entity(): check list_entry testing commit 7c4a5b89a0b5a57a64b601775b296abf77a9fe97 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 76bc40e0aec15faba84a6bbe118ac339a15ab30e8f1f77bbd92531653d3ff62c all runs: crashed: unexpected kernel reboot # git bisect good 7c4a5b89a0b5a57a64b601775b296abf77a9fe97 Bisecting: 66 revisions left to test after this (roughly 6 steps) [0246725d7399d7d6acc8fd5a1a0a1ffce9a1eaa3] Merge tag 'ras_core_for_v6.3_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 0246725d7399d7d6acc8fd5a1a0a1ffce9a1eaa3 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 9bee22555c86e86a2de66d06e8b84e8c877b32a6f65dd6c631818c9609f12f7d all runs: OK # git bisect bad 0246725d7399d7d6acc8fd5a1a0a1ffce9a1eaa3 Bisecting: 40 revisions left to test after this (roughly 5 steps) [c828441f21ddc819a28b5723a72e3c840e9de1c6] perf/x86/intel/uncore: Add Meteor Lake support testing commit c828441f21ddc819a28b5723a72e3c840e9de1c6 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 06b0c99b4cc4af58df779173a59cbf34ab4c79459e084bc69d7dfdcef43cc898 all runs: crashed: unexpected kernel reboot # git bisect good c828441f21ddc819a28b5723a72e3c840e9de1c6 Bisecting: 21 revisions left to test after this (roughly 4 steps) [6be3dafc7c1d323debb5910d697c5cd2cb19825f] Merge tag 'x86-asm-2023-02-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 6be3dafc7c1d323debb5910d697c5cd2cb19825f gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c3719b04e262a27a27532022ba0b05cbed60369bf2fd254faf5115d9a21f6737 all runs: crashed: unexpected kernel reboot # git bisect good 6be3dafc7c1d323debb5910d697c5cd2cb19825f Bisecting: 11 revisions left to test after this (roughly 4 steps) [8a68bd3e9ff6f480fc03369023a1d981cb803079] Merge tag 'x86-core-2023-02-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 8a68bd3e9ff6f480fc03369023a1d981cb803079 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 38c3c3d7c4aedec5d171b2db0b2000a6f56b69431e4ed3a1b7c71c802313a682 all runs: OK # git bisect bad 8a68bd3e9ff6f480fc03369023a1d981cb803079 Bisecting: 5 revisions left to test after this (roughly 2 steps) [35011c67c8b7ff96c4e2dd892099ba643f9ae11e] Merge tag 'x86-boot-2023-02-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 35011c67c8b7ff96c4e2dd892099ba643f9ae11e gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c795a4d797380af30014a219ba70f3100054876513ee9d838f23cb8066beebde all runs: OK # git bisect bad 35011c67c8b7ff96c4e2dd892099ba643f9ae11e Bisecting: 1 revision left to test after this (roughly 1 step) [5353fff29e42d0efc844dcaf764336d20a7f6b44] scripts/head-object-list: Remove x86 from the list testing commit 5353fff29e42d0efc844dcaf764336d20a7f6b44 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c06f04d9f88579c2ac818c5ed19bd3de306118b5c5c9330116284711d3e87c70 all runs: OK # git bisect bad 5353fff29e42d0efc844dcaf764336d20a7f6b44 Bisecting: 0 revisions left to test after this (roughly 0 steps) [7734a0f31e99c433df3063bbb7e8ee5a16a2cb82] x86/boot: Robustify calling startup_{32,64}() from the decompressor code testing commit 7734a0f31e99c433df3063bbb7e8ee5a16a2cb82 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 85d3152b44f3e0d784f8da83f18a39f75301d4bff4090abc648c0d4e0a49a427 all runs: OK # git bisect bad 7734a0f31e99c433df3063bbb7e8ee5a16a2cb82 7734a0f31e99c433df3063bbb7e8ee5a16a2cb82 is the first bad commit commit 7734a0f31e99c433df3063bbb7e8ee5a16a2cb82 Author: Alexander Lobakin Date: Mon Jan 9 18:04:02 2023 +0100 x86/boot: Robustify calling startup_{32,64}() from the decompressor code After commit ce697ccee1a8 ("kbuild: remove head-y syntax"), I started digging whether x86 is ready for removing this old cruft. Removing its objects from the list makes the kernel unbootable. This applies only to bzImage, vmlinux still works correctly. The reason is that with no strict object order determined by the linker arguments, not the linker script, startup_64 can be placed not right at the beginning of the kernel. Here's vmlinux.map's beginning before removing: ffffffff81000000 vmlinux.o:(.head.text) ffffffff81000000 startup_64 ffffffff81000070 secondary_startup_64 ffffffff81000075 secondary_startup_64_no_verify ffffffff81000160 verify_cpu and after: ffffffff81000000 vmlinux.o:(.head.text) ffffffff81000000 pvh_start_xen ffffffff81000080 startup_64 ffffffff810000f0 secondary_startup_64 ffffffff810000f5 secondary_startup_64_no_verify Not a problem itself, but the self-extractor code has the address of that function hardcoded the beginning, not looking onto the ELF header, which always contains the address of startup_{32,64}(). So, instead of doing an "act of blind faith", just take the address from the ELF header and extract a relative offset to the entry point. The decompressor function already returns a pointer to the beginning of the kernel to the Asm code, which then jumps to it, so add that offset to the return value. This doesn't change anything for now, but allows to resign from the "head object list" for x86 and makes sure valid Kbuild or any other improvements won't break anything here in general. Signed-off-by: Alexander Lobakin Signed-off-by: Ingo Molnar Tested-by: Jiri Slaby Cc: "H. Peter Anvin" Cc: Linus Torvalds Link: https://lore.kernel.org/r/20230109170403.4117105-2-alexandr.lobakin@intel.com arch/x86/boot/compressed/head_32.S | 2 +- arch/x86/boot/compressed/head_64.S | 2 +- arch/x86/boot/compressed/misc.c | 18 +++++++++++------- 3 files changed, 13 insertions(+), 9 deletions(-) parent commit b7bfaa761d760e72a969d116517eaa12e404c262 wasn't tested testing commit b7bfaa761d760e72a969d116517eaa12e404c262 gcc compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 63dfd12008f17cd1cd2635aceb44f7e78318aa1743e755682310372fcbbd7f3d culprit signature: 85d3152b44f3e0d784f8da83f18a39f75301d4bff4090abc648c0d4e0a49a427 parent signature: 63dfd12008f17cd1cd2635aceb44f7e78318aa1743e755682310372fcbbd7f3d revisions tested: 16, total time: 6h11m11.905038803s (build: 4h6m47.138313371s, test: 2h1m37.790457491s) first good commit: 7734a0f31e99c433df3063bbb7e8ee5a16a2cb82 x86/boot: Robustify calling startup_{32,64}() from the decompressor code recipients (to): ["alexandr.lobakin@intel.com" "jirislaby@kernel.org" "mingo@kernel.org"] recipients (cc): []