[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250904113752.GDaLl6ELJRd3LZYBQl@fat_crate.local>
Date: Thu, 4 Sep 2025 13:37:52 +0200
From: Borislav Petkov <bp@...en8.de>
To: kernel test robot <oliver.sang@...el.com>,
Nathan Chancellor <nathan@...nel.org>
Cc: Borislav Petkov <bp@...nel.org>, oe-lkp@...ts.linux.dev, lkp@...el.com,
linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
X86 ML <x86@...nel.org>, "Chang S. Bae" <chang.seok.bae@...el.com>,
Sohil Mehta <sohil.mehta@...el.com>
Subject: Re: [PATCH -v1 1/2] x86/microcode: Add microcode= cmdline parsing
+ Nathan for the clang weirdness below...
On Tue, Sep 02, 2025 at 04:45:12PM +0800, kernel test robot wrote:
>
>
> Hello,
>
>
> this could be a noise, we didn't see the relation between the patch with the
> issue we observed. however, we rebuild the kernels for both this commit and
> parent 3 times.
> (
> our bot chose 894af4a1cde61c as the parent as below
> * 19f370d45aceea x86/microcode: Add microcode= cmdline parsing
> * 894af4a1cde61c (tip/x86/core, peterz-queue/x86/core) objtool: Validate kCFI calls
> )
>
> and for each rerun of both this commit and parent, we run more times, but the
> issue is still quite persistent while parent keeps clean:
>
> =========================================================================================
> tbox_group/testcase/rootfs/kconfig/compiler/runtime/group/nr_groups:
> vm-snb/trinity/debian-11.1-i386-20220923.cgz/x86_64-randconfig-006-20250826/clang-20/300s/group-01/5
>
> 894af4a1cde61c34 19f370d45aceea5ab4c52e3afa0
> ---------------- ---------------------------
> fail:runs %reproduction fail:runs
> | | |
> :200 74% 149:200 last_state.is_incomplete_run
> :200 74% 147:200 last_state.running
> :200 75% 150:200 dmesg.CFI_failure_at_kobj_attr_show
> :200 75% 150:200 dmesg.Kernel_panic-not_syncing:Fatal_exception
> :200 75% 150:200 dmesg.Oops:invalid_opcode:#[##]KASAN
> :200 75% 150:200 dmesg.RIP:kobj_attr_show
> :200 75% 150:200 dmesg.boot_failures
>
> so we just follow our report rule to still report this results FYI.
>
> if it's really irrelevant, sorry maybe our env issues (though we still cannot
> figure out for now). and if you can help us to figure out the potential problem
> from our dmesg in below link, it will be very apprecidated!
Yeah, I don't know what you did here but building with that .config, I can't
even boot that kernel in a VM because doing:
qemu-... -kernel bzImage ...
sends me into grub and asks me to select the default kernel.
And my qemu script boots arbitrary kernels just fine.
Also, I used clang-20 from here:
https://mirrors.edge.kernel.org/pub/tools/llvm/
and version 20.1.8 took something like ~10(!) minutes to link vmlinux with
that config. Just FYI for Nathan, maybe something's weird there.
> below is full report.
Leaving it in.
>
>
> kernel test robot noticed "CFI_failure_at_kobj_attr_show" on:
>
> commit: 19f370d45aceea5ab4c52e3afa00226fb99c3fc8 ("[PATCH -v1 1/2] x86/microcode: Add microcode= cmdline parsing")
> url: https://github.com/intel-lab-lkp/linux/commits/Borislav-Petkov/x86-microcode-Add-microcode-cmdline-parsing/20250820-215624
> base: https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git 894af4a1cde61c3401f237184fb770f72ff12df8
> patch link: https://lore.kernel.org/all/20250820135043.19048-2-bp@kernel.org/
> patch subject: [PATCH -v1 1/2] x86/microcode: Add microcode= cmdline parsing
>
> in testcase: trinity
> version: trinity-i386-abe9de86-1_20230429
> with following parameters:
>
> runtime: 300s
> group: group-01
> nr_groups: 5
>
>
>
> config: x86_64-randconfig-006-20250826
> compiler: clang-20
> test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G
>
> (please refer to attached dmesg/kmsg for entire log/backtrace)
>
>
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <oliver.sang@...el.com>
> | Closes: https://lore.kernel.org/oe-lkp/202509021646.bc78d9ef-lkp@intel.com
>
>
> The kernel config and materials to reproduce are available at:
> https://download.01.org/0day-ci/archive/20250902/202509021646.bc78d9ef-lkp@intel.com
>
>
> [ 453.382281][ T7761] CFI failure at kobj_attr_show+0x59/0x80 (target: nilfs_feature_revision_show+0x0/0x30; expected type: 0x1b8aae92)
> [ 453.386793][ T7761] Oops: invalid opcode: 0000 [#1] KASAN
> [ 453.388638][ T7761] CPU: 0 UID: 65534 PID: 7761 Comm: trinity-c2 Not tainted 6.17.0-rc2-00017-g19f370d45ace #1 NONE
> [ 453.391831][ T7761] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
> [ 453.395231][ T7761] RIP: 0010:kobj_attr_show+0x59/0x80
> [ 453.397175][ T7761] Code: 08 00 74 08 4c 89 e7 e8 75 90 d2 fb 4d 8b 1c 24 4d 85 db 74 1f 4c 89 ff 4c 89 f6 48 89 da 41 ba 6e 51 75 e4 45 03 53 f1 74 02 <0f> 0b 2e e8 ef d7 08 00 eb 07 48 c7 c0 fb ff ff ff 5b 41 5c 41 5e
> [ 453.403170][ T7761] RSP: 0018:ffffc90002b57a48 EFLAGS: 00010287
> [ 453.405399][ T7761] RAX: 1ffffffff11d2fe9 RBX: ffff8881255ce000 RCX: dffffc0000000000
> [ 453.408012][ T7761] RDX: ffff8881255ce000 RSI: ffffffff88e97f20 RDI: ffff888106a5e250
> [ 453.410593][ T7761] RBP: ffffc90002b57a68 R08: ffff8881255cefff R09: 0000000000000000
> [ 453.413717][ T7761] R10: 0000000082bfb03f R11: ffffffff82621360 R12: ffffffff88e97f48
> [ 453.416820][ T7761] R13: 1ffff110295a3e80 R14: ffffffff88e97f20 R15: ffff888106a5e250
> [ 453.419944][ T7761] FS: 0000000000000000(0000) GS:0000000000000000(0063) knlGS:00000000f7ed7280
> [ 453.422938][ T7761] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033
> [ 453.425060][ T7761] CR2: 00000000f7795414 CR3: 000000015b1cc000 CR4: 00000000000406b0
> [ 453.427781][ T7761] Call Trace:
> [ 453.429070][ T7761] <TASK>
> [ 453.430222][ T7761] sysfs_kf_seq_show+0x2a9/0x390
> [ 453.431885][ T7761] ? __cfi_kobj_attr_show+0x10/0x10
> [ 453.433693][ T7761] kernfs_seq_show+0x107/0x15b
> [ 453.435360][ T7761] seq_read_iter+0x55d/0xdeb
> [ 453.436971][ T7761] ? kernfs_fop_read_iter+0x14c/0x4a0
> [ 453.438770][ T7761] kernfs_fop_read_iter+0x14c/0x4a0
> [ 453.440385][ T7761] ? __import_iovec+0x31b/0x3db
> [ 453.441900][ T7761] do_iter_readv_writev+0x3de/0x590
> [ 453.443609][ T7761] vfs_readv+0x15d/0x3f5
> [ 453.445305][ T7761] ? trace_sys_enter+0x54/0xe5
> [ 453.447044][ T7761] do_readv+0xde/0x190
> [ 453.448551][ T7761] __ia32_sys_readv+0x80/0x90
> [ 453.450192][ T7761] ia32_sys_call+0x2dbd/0x2efb
> [ 453.451877][ T7761] __do_fast_syscall_32+0xaa/0x2a5
> [ 453.453640][ T7761] do_fast_syscall_32+0x36/0x8b
> [ 453.455342][ T7761] do_SYSENTER_32+0x1f/0x3b
> [ 453.456962][ T7761] entry_SYSENTER_compat_after_hwframe+0x78/0x82
> [ 453.459058][ T7761] RIP: 0023:0xf7ede539
> [ 453.460559][ T7761] Code: 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
> [ 453.466394][ T7761] RSP: 002b:00000000ffa4237c EFLAGS: 00000292 ORIG_RAX: 0000000000000091
> [ 453.469176][ T7761] RAX: ffffffffffffffda RBX: 00000000000000f5 RCX: 00000000571a6370
> [ 453.471897][ T7761] RDX: 00000000000000af RSI: 0000000000000013 RDI: 0000000000000002
> [ 453.474598][ T7761] RBP: 00000000201a2903 R08: 0000000000000000 R09: 0000000000000000
> [ 453.477296][ T7761] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
> [ 453.479969][ T7761] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
> [ 453.482612][ T7761] </TASK>
> [ 453.483846][ T7761] Modules linked in:
> [ 453.485501][ T7761] ---[ end trace 0000000000000000 ]---
> [ 453.487396][ T7761] RIP: 0010:kobj_attr_show+0x59/0x80
> [ 453.489298][ T7761] Code: 08 00 74 08 4c 89 e7 e8 75 90 d2 fb 4d 8b 1c 24 4d 85 db 74 1f 4c 89 ff 4c 89 f6 48 89 da 41 ba 6e 51 75 e4 45 03 53 f1 74 02 <0f> 0b 2e e8 ef d7 08 00 eb 07 48 c7 c0 fb ff ff ff 5b 41 5c 41 5e
> [ 453.495522][ T7761] RSP: 0018:ffffc90002b57a48 EFLAGS: 00010287
> [ 453.497663][ T7761] RAX: 1ffffffff11d2fe9 RBX: ffff8881255ce000 RCX: dffffc0000000000
> [ 453.500363][ T7761] RDX: ffff8881255ce000 RSI: ffffffff88e97f20 RDI: ffff888106a5e250
> [ 453.503133][ T7761] RBP: ffffc90002b57a68 R08: ffff8881255cefff R09: 0000000000000000
> [ 453.505897][ T7761] R10: 0000000082bfb03f R11: ffffffff82621360 R12: ffffffff88e97f48
> [ 453.508738][ T7761] R13: 1ffff110295a3e80 R14: ffffffff88e97f20 R15: ffff888106a5e250
> [ 453.511482][ T7761] FS: 0000000000000000(0000) GS:0000000000000000(0063) knlGS:00000000f7ed7280
> [ 453.514551][ T7761] CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033
> [ 453.516790][ T7761] CR2: 00000000f7795414 CR3: 000000015b1cc000 CR4: 00000000000406b0
> [ 453.519505][ T7761] Kernel panic - not syncing: Fatal exception
> [ 453.521564][ T7761] Kernel Offset: disabled
>
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
>
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists