From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 783132853F7 for ; Wed, 28 Jan 2026 10:36:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=209.85.221.52 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769596583; cv=pass; b=hWE2lpCugJneEz9E3c2TtTHR4u8EI29nhp9d1CoTAoTcE+oK7l4MqjgCFqfecqnKxYDxNIRCYQceKVDcu72SKp6b5DhDUeJNo+y13wdJ3qzDrbC0/EZUyGmN2SIU2B80hNfpZTZEDlR9TY/vEX22yhMjj9kxMTRqhQCjGY7j+3M= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769596583; c=relaxed/simple; bh=QNt/4nb1yOfc10K+3rEYQyzDAJIynIp+UYo/ZIosCME=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=k98RQXB6bfHAClDVv7/yGYUdxi6T8BxgAvBLo8ysQnpLBdofEtkrYcFxCIo9K+MFQqGssLs4S0dpniANlKsP6+b8zSYblI9LuO2AORsqA6JmzzCIMwolqGfII7pJv2mtKG9Uf33flwLXWAtE30DlsZsd78SWAhhFGa9DSTyAVKA= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TISllSFY; arc=pass smtp.client-ip=209.85.221.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TISllSFY" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-42fb2314f52so4053066f8f.0 for ; Wed, 28 Jan 2026 02:36:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1769596579; cv=none; d=google.com; s=arc-20240605; b=P53OEedbVwmPHCCdAnO84bkELXd04vhot64/soKPV+AbmX8gPYoRYsECl36lssS4CP uuxUCZmAqvbR8Di0y8e7nKvEmSxcTNa/4NIGfrDjhEPedD77e042t53MfMqAuLDiYmyj csV2kd+Q/L5sHqFafjVr3dPqgfuetL58qZ02h+qjFFh/tsp+YWs1yZqgDhH6LYYV9/HX mOPVwt4LPRy+SPcmVluLnIrUmAr2c0fjN2kAo7+CxumKVFi2bU53O1WgNZYyzT+eO7i3 VtysBPHcjHpizXxxeg8NUP95keoiFTPiQ1hYRmVjVwRnF+x4EkR0hfV+fsrrFZa8vMe+ jTBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aNGz1NdF+1GC7KQl+abP/x/JCTd+vu3I0VioJLZrLJA=; fh=AAiJX/uH6zvAU+pL0mmNd9gTKbDN8aKSXt6pWDrWPZM=; b=ILFNyngm60X1AhbA3OQndPA0e3SqvewK8IffhXOo2jYlW9tlkSltNJKn8qjcT+VjQo WgsOJtSGKxYSqzSaWjmpQfn1Ozuea3dEdhLlY4lwJoh2GKh/3iXE/uToXBjoU2jZ+Lmg RB4LhriTRpkb2H5E/NwCyzVLOlWw9AkqO2ZmAfBxahKQKBCl8HfYcLBcoPyLrNULNKAP 22T1ieZ6KLTzSKsIuQQIB/NqYz9r8kom086pOqbeJne/sf0Suw6XzqU71frwkum4qhzO l/sAG0yO4VETiuIcVAfR/DXd3ZjPLUpuD3CXqPuCuBSfj9xaVYlWrj6t0bhiG/JmaJhf Y17w==; darn=vger.kernel.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769596579; x=1770201379; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=aNGz1NdF+1GC7KQl+abP/x/JCTd+vu3I0VioJLZrLJA=; b=TISllSFYvWvtMCWK0JpJ4v7oOSdZkX7kOFON7nLqa4OK/Gpa/NZ961KlE3IPXaZfA5 nMpPCOG99kH77od7Ikw40UtXpmHLD5lUkPxM1UbwqlIcgOPfoonSZqW9NAn7qJV7OhDO NRVDjAlIJDFKVmBl81d/hdwval4qHCSZibygJcbppkt/3RGzCaQa0swwlDZLkFl8HGGy u7/9puRuqzbnfmfxPAd5oRVNdoZFalhFGOJpiwjauxLxuTfYrB/LAuF5s2MhPpxyBJGg 9ExKdAdB5A8AfHtiYnml+w+NM2m/jH7wDqAS9uthCK81A1O7QsWoe57mJ3zYqps4Zk89 wu+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769596579; x=1770201379; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=aNGz1NdF+1GC7KQl+abP/x/JCTd+vu3I0VioJLZrLJA=; b=QbjpKqV1PI44xg4yfY0KAKcW7mG+J71At4h3DXoPhlJkCPhP7jMBpqQ5wBHFOr0u24 3FtholnOAxa3jq15XNhXgcXVDE43O9h11jVqp4l15HlEqVQQ7oYbN4dK1eGDNN8K70Ak M4O8vqyZdgQVOOcS6MkVmjOFgSvr71uvJbJYYqpxVVQlVp7QPEpvSTRB842/JhgSfOS1 Fxyl0dOJJLIxU+XlslGGchZdKD52hh/kuX97eMQ+/MPSOliDMl59EcZ6/NZ7C3HLJR2+ 0lRhhVepcxrTmUm3Nts5Luc0WqRcb5Tt5jNulgFCa3YUVAsfKxYr6BenhFJBfm2IjUZY 6Vxg== X-Forwarded-Encrypted: i=1; AJvYcCVya9CoRPk9JVgqPqvvTohavax2C0waIkLVP/0GW2P9Dkb+OzJgGbjmPp8i8yf+VAMGxJwd+yWpH5IrRLY=@vger.kernel.org X-Gm-Message-State: AOJu0YzOjI9/ed7ch0C058gxroQef/koLNBXvIwSsY0wFRp3v/KCLmjR GT4T2jb1Hl00VhOTRX0GxjaiIqNxbOO95SyhxzeePgXLIpI8CKNuLbtLBdvTJqAr/XO0FVRLzLK aMsjrSWWh/GSWL6gAknZTyrCqKhsYlh8= X-Gm-Gg: AZuq6aKCMDWKzacbmxMCPdEXGr6zSvOUp1WKA5r5eETEtXbVP12HOPaLe2N8Qubx9BI SJ+DvJSuPgquh/R4qrmcpXLp2agsaL+hYMuV2DcFIiokpXOzSTGUsj/ZTYNrTrvDPgWIZm8xwWt ZKjlmFcYxsd5rSdaipbUN4wtyIoRXc0UcZa6Otjz+GAq4k4GcHM7QZaYdCAYEpL++TZeSU2GAJ/ 8IFX9tM4TTcdDTEotwi+hx0S8nbJXocFMpwbWxKk8QuFaETuqnJASWEPIKTrbtKHHS09so= X-Received: by 2002:a05:6000:4282:b0:435:a3b9:9b8 with SMTP id ffacd0b85a97d-435dd05aeb9mr7009532f8f.24.1769596578375; Wed, 28 Jan 2026 02:36:18 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <202601272006.NUdRcAIi-lkp@intel.com> In-Reply-To: <202601272006.NUdRcAIi-lkp@intel.com> From: Austin Kim Date: Wed, 28 Jan 2026 19:36:06 +0900 X-Gm-Features: AZwV_Qj7MERsWUr2UR9-7KGxNj314Bp7cMumeTxY5gnB1yiNhAliYiHPNAkx7jk Message-ID: Subject: Re: [PATCH] riscv: export kaslr offset and satp in VMCOREINFO ELF notes To: kernel test robot Cc: Paul Walmsley , Palmer Dabbelt , Alexandre Ghiti , Albert Ou , oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, 2026=EB=85=84 1=EC=9B=94 28=EC=9D=BC (=EC=88=98) AM 4:14, kernel test robot= =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > Hi Austin, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on linus/master] > [also build test ERROR on v6.16-rc1 next-20260127] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > url: https://github.com/intel-lab-lkp/linux/commits/Austin-Kim/riscv-e= xport-kaslr-offset-and-satp-in-VMCOREINFO-ELF-notes/20260127-173528 > base: linus/master > patch link: https://lore.kernel.org/r/aXiF55y5D49gcpUg%40adminpc-Power= Edge-R7525 > patch subject: [PATCH] riscv: export kaslr offset and satp in VMCOREINFO = ELF notes > config: riscv-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20= 260127/202601272006.NUdRcAIi-lkp@intel.com/config) > compiler: riscv64-linux-gcc (GCC) 15.1.0 > reproduce (this is a W=3D1 build): (https://download.01.org/0day-ci/archi= ve/20260127/202601272006.NUdRcAIi-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new vers= ion of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202601272006.NUdRcAIi-lkp= @intel.com/ > > All errors (new ones prefixed by >>): > > riscv64-linux-ld: arch/riscv/kernel/vmcore_info.o: in function `arch_c= rash_save_vmcoreinfo': > >> arch/riscv/kernel/vmcore_info.c:23:(.text+0x240): undefined reference = to `kaslr_offset' > First, I apologize for the inconvenience. This link error occurs when CONFIG_RANDOMIZE_BASE is disabled. In the RISC-V kernel, kaslr_offset() is only defined under CONFIG_RANDOMIZE_BASE. I will submit a new patch shortly to avoid this kind of error. BR, Austin Kim > > vim +23 arch/riscv/kernel/vmcore_info.c > > cfe94d456775a4 arch/riscv/kernel/vmcore_info.c Austin Kim 2026-01-27= 10 > 649d6b1019a2f2 arch/riscv/kernel/crash_core.c Xianting Tian 2022-10-26= 11 void arch_crash_save_vmcoreinfo(void) > 649d6b1019a2f2 arch/riscv/kernel/crash_core.c Xianting Tian 2022-10-26= 12 { > 649d6b1019a2f2 arch/riscv/kernel/crash_core.c Xianting Tian 2022-10-26= 13 VMCOREINFO_NUMBER(phys_ram_base); > 649d6b1019a2f2 arch/riscv/kernel/crash_core.c Xianting Tian 2022-10-26= 14 > 649d6b1019a2f2 arch/riscv/kernel/crash_core.c Xianting Tian 2022-10-26= 15 vmcoreinfo_append_str("NUMBER(PAGE_OFFSET)=3D0x%lx\n", PAGE_OFFSET); > 649d6b1019a2f2 arch/riscv/kernel/crash_core.c Xianting Tian 2022-10-26= 16 vmcoreinfo_append_str("NUMBER(VMALLOC_END)=3D0x%lx\n", VMALLOC_END); > c41bd2514184d7 arch/riscv/kernel/crash_core.c Ignat Korchagin 2023-11-29= 17 #ifdef CONFIG_MMU > c41bd2514184d7 arch/riscv/kernel/crash_core.c Ignat Korchagin 2023-11-29= 18 VMCOREINFO_NUMBER(VA_BITS); > 649d6b1019a2f2 arch/riscv/kernel/crash_core.c Xianting Tian 2022-10-26= 19 vmcoreinfo_append_str("NUMBER(VMEMMAP_START)=3D0x%lx\n", VMEMMAP_STA= RT); > 649d6b1019a2f2 arch/riscv/kernel/crash_core.c Xianting Tian 2022-10-26= 20 vmcoreinfo_append_str("NUMBER(VMEMMAP_END)=3D0x%lx\n", VMEMMAP_END); > 649d6b1019a2f2 arch/riscv/kernel/crash_core.c Xianting Tian 2022-10-26= 21 #ifdef CONFIG_64BIT > 649d6b1019a2f2 arch/riscv/kernel/crash_core.c Xianting Tian 2022-10-26= 22 vmcoreinfo_append_str("NUMBER(MODULES_VADDR)=3D0x%lx\n", MODULES_VAD= DR); > 649d6b1019a2f2 arch/riscv/kernel/crash_core.c Xianting Tian 2022-10-26= @23 vmcoreinfo_append_str("NUMBER(MODULES_END)=3D0x%lx\n", MODULES_END); > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki