From nobody Sun May 19 07:11:53 2024 Received: from out0-219.mail.aliyun.com (out0-219.mail.aliyun.com [140.205.0.219]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D87A47E59F for ; Tue, 23 Apr 2024 11:25:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.219 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871523; cv=none; b=kqBrhPJt0A3k6KlZPtzBwdWp5w5ml0d1So8SGCwCjMv4MEKYPYZeDS5d3L5iYMb/LZ2GNWOKC+FmfK62guvFpfqau+4irtRLqlAtGyK62KFy1JbngecJG93zzNuNvNOK10Kwa/9NVHR9rZKl+4hS9oAoPLwAbwdFbXlQvmtTYhU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871523; c=relaxed/simple; bh=Ghj0/V/dH76APPyaKDAlG7P8Sbut9JOjTVMQKESCzlc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=tjHRDr9viNPBPKPv04gw7gvk+YZKRRolT3cPlCdWSFcAIEq+6dVeITPFumr1APERgNRQnvrv3Nzx0CahqvXR/kDyM75TirvXkfMX9vLZvZ4Nzhzl+Ve+Ut2F5Bin5wNHhw9QZyDHKvvCnOCCa8qH6L5b6yi+T79qqLWIpFh0S9g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=zpOORgxm; arc=none smtp.client-ip=140.205.0.219 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="zpOORgxm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1713871513; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; bh=35K+byay5rbsmnKXw4pAmKxWNtRGPhfuJu7mpbXe+7w=; b=zpOORgxm7y4rkGhVbqR04m2MFyKaDYASe2TUzeKv1mXU2S4H/xiRBR/iDPWdwYJQLJPGZMHKOZ5+q/CVn7q8e1PUDhYVU2OAdxGDX3+rlqE8JO1yEgssL7h4kzqiPK2YsW0Me4MDZKNDD0bb3Qp/24diOQW1WKS/lZK8VEi+K0w= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047212;MF=tiwei.btw@antgroup.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---.XJTUYhj_1713871512; Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.XJTUYhj_1713871512) by smtp.aliyun-inc.com; Tue, 23 Apr 2024 19:25:12 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 1/7] um: Fix -Wmissing-prototypes warnings for (rt_)sigreturn Date: Tue, 23 Apr 2024 19:24:51 +0800 Message-Id: <20240423112457.2409319-2-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423112457.2409319-1-tiwei.btw@antgroup.com> References: <20240423112457.2409319-1-tiwei.btw@antgroup.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Use SYSCALL_DEFINE0 to define (rt_)sigreturn. This will address below -Wmissing-prototypes warnings: arch/x86/um/signal.c:453:6: warning: no previous prototype for =E2=80=98sys= _sigreturn=E2=80=99 [-Wmissing-prototypes] arch/x86/um/signal.c:560:6: warning: no previous prototype for =E2=80=98sys= _rt_sigreturn=E2=80=99 [-Wmissing-prototypes] Signed-off-by: Tiwei Bie --- arch/x86/um/signal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/um/signal.c b/arch/x86/um/signal.c index 263e1d08f216..48e87b45adba 100644 --- a/arch/x86/um/signal.c +++ b/arch/x86/um/signal.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -450,7 +451,7 @@ int setup_signal_stack_si(unsigned long stack_top, stru= ct ksignal *ksig, return 0; } =20 -long sys_sigreturn(void) +SYSCALL_DEFINE0(sigreturn) { unsigned long sp =3D PT_REGS_SP(¤t->thread.regs); struct sigframe __user *frame =3D (struct sigframe __user *)(sp - 8); @@ -557,7 +558,7 @@ int setup_signal_stack_si(unsigned long stack_top, stru= ct ksignal *ksig, } #endif =20 -long sys_rt_sigreturn(void) +SYSCALL_DEFINE0(rt_sigreturn) { unsigned long sp =3D PT_REGS_SP(¤t->thread.regs); struct rt_sigframe __user *frame =3D --=20 2.34.1 From nobody Sun May 19 07:11:53 2024 Received: from out0-200.mail.aliyun.com (out0-200.mail.aliyun.com [140.205.0.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F37777E10B for ; Tue, 23 Apr 2024 11:25:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.200 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871523; cv=none; b=r/+JzP79OXEcTZuc+1IMO3X+uOFPq/cZi292KoulEPBqriZJZHS6E0Yy4WQQRRUfs8Adjrkw0L8FPrLZsPLYmlPlw0apZ6E9hWMkSIVki6uplV9ZRDyJzztRfjTi9ErSB7Zu8qilhKWFmXbf6RbdbzSjIppSGitW7vRmBw4faKA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871523; c=relaxed/simple; bh=vG4w4lm74pJtjt2dxWDDT7funVus0pgdkP3n6FI0+/8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MVXCgqRLY24slHbcJJkkbEe0RcE5WP5Be0bKNy/tq+al3uIGAIWLCEo0WBY5Emk+ppAJ+HLUC/PGp1zAZSpOa94Bv1nyMUUJ9N6JFoyg6gDNKUabLHafdfuh9WwVs1uWTwRBe6YwxWi3NLDyQzx1OfCtelgZUzDuIys74b0rxJM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=KbzSdeRd; arc=none smtp.client-ip=140.205.0.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="KbzSdeRd" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1713871513; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=CiQKB25MktD/QLDdLcPUH0+dexeuRZvHnI8X4wiFwkI=; b=KbzSdeRdhEqfTocRcD3qjnwWJWV0DEuvXT/AkDlAGaISR79UMbLn8BNrY9YTq1IeQsOsagA+pnqtq/lzvup3Dx0RaqVe/w64xFwBOpxhVt3UP+blgL+cd6NbzRxUE/4r3VEl1lsCG3Pj4d7dihytjL9R8NMXCrsHW5uPGNUvi7g= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047209;MF=tiwei.btw@antgroup.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---.XJTUYhm_1713871512; Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.XJTUYhm_1713871512) by smtp.aliyun-inc.com; Tue, 23 Apr 2024 19:25:12 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 2/7] um: Fix the -Wmissing-prototypes warning for __switch_mm Date: Tue, 23 Apr 2024 19:24:52 +0800 Message-Id: <20240423112457.2409319-3-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423112457.2409319-1-tiwei.btw@antgroup.com> References: <20240423112457.2409319-1-tiwei.btw@antgroup.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The __switch_mm function is defined in the user code, and is called by the kernel code. It should be declared in a shared header. Fixes: 4dc706c2f292 ("um: take um_mmu.h to asm/mmu.h, clean asm/mmu_context= .h a bit") Signed-off-by: Tiwei Bie --- arch/um/include/asm/mmu.h | 2 -- arch/um/include/shared/skas/mm_id.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/um/include/asm/mmu.h b/arch/um/include/asm/mmu.h index a7555e43ed14..f2923c767bb9 100644 --- a/arch/um/include/asm/mmu.h +++ b/arch/um/include/asm/mmu.h @@ -14,8 +14,6 @@ typedef struct mm_context { struct uml_arch_mm_context arch; } mm_context_t; =20 -extern void __switch_mm(struct mm_id * mm_idp); - /* Avoid tangled inclusion with asm/ldt.h */ extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from= _mm); extern void free_ldt(struct mm_context *mm); diff --git a/arch/um/include/shared/skas/mm_id.h b/arch/um/include/shared/s= kas/mm_id.h index e82e203f5f41..bdfab67174ff 100644 --- a/arch/um/include/shared/skas/mm_id.h +++ b/arch/um/include/shared/skas/mm_id.h @@ -15,4 +15,6 @@ struct mm_id { int kill; }; =20 +extern void __switch_mm(struct mm_id *mm_idp); + #endif --=20 2.34.1 From nobody Sun May 19 07:11:53 2024 Received: from out187-16.us.a.mail.aliyun.com (out187-16.us.a.mail.aliyun.com [47.90.187.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B76B183CCB for ; Tue, 23 Apr 2024 11:30:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=47.90.187.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871844; cv=none; b=jqBhvNodY0AHsg8EnJQpzVOfN0LuFzLYXgkNY7n4lzjev99pFKBsNttsO8WJQrbP/qb9nU+xY0ZJlupZ1nnpQic3PJzOamJKarXUW+PuEpRL6W2/iKkLyIHf4StzeyLWvDHjUdFF5DK09nxv7HF3qcZeS2CaRLF134OWdf1V53Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871844; c=relaxed/simple; bh=7WJ6yWctR6knaJVR4QUqBonQC0vgU1vFUiJZIqMjLAA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=C7bFBxUqkY8XjxfXBDuWG58Wg3yaHb4omVcAwcmYNo8OePFsVSxdWX5c5hJQl2n+xhJ2G8LueoKbrlOsDb9iN2wwmjnCg7ZiLP/IU5u64FEXhIsODW83IKYcrVvFlc1cnWJF+x4vCma1k8VW6wL+cf9rr5tyRwOmigyCFTMtzrE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=xSJOntVV; arc=none smtp.client-ip=47.90.187.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="xSJOntVV" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1713871829; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=4EXKiihVydLTnKmoFmv5QgTCQtRVg7rf+OIs/nHZkJ8=; b=xSJOntVV/uDCGgorf32VvI25PI8pFOL7vkKtVjr0o0exYqiqgl+f/733ZzKN8gDZWjdvUwrsrh2nvF2sYR3h7mpPkcJU2D8ByBDg21uhfFpLiXKwiF0M6LNd7Xlyia8Xh7sgiFy9iCDNW1SGjpnXfoSJMtTlUHDkj2n7m8ZhKd8= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R191e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047188;MF=tiwei.btw@antgroup.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---.XJTUYhr_1713871512; Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.XJTUYhr_1713871512) by smtp.aliyun-inc.com; Tue, 23 Apr 2024 19:25:12 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 3/7] um: Fix the -Wmissing-prototypes warning for get_thread_reg Date: Tue, 23 Apr 2024 19:24:53 +0800 Message-Id: <20240423112457.2409319-4-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423112457.2409319-1-tiwei.btw@antgroup.com> References: <20240423112457.2409319-1-tiwei.btw@antgroup.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The get_thread_reg function is defined in the user code, and is called by the kernel code. It should be declared in a shared header. Fixes: dbba7f704aa0 ("um: stop polluting the namespace with registers.h con= tents") Signed-off-by: Tiwei Bie --- arch/um/include/asm/processor-generic.h | 1 - arch/x86/um/shared/sysdep/archsetjmp.h | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/um/include/asm/processor-generic.h b/arch/um/include/asm/= processor-generic.h index 6c3779541845..5a7c05275aa7 100644 --- a/arch/um/include/asm/processor-generic.h +++ b/arch/um/include/asm/processor-generic.h @@ -94,7 +94,6 @@ extern struct cpuinfo_um boot_cpu_data; #define current_cpu_data boot_cpu_data #define cache_line_size() (boot_cpu_data.cache_alignment) =20 -extern unsigned long get_thread_reg(int reg, jmp_buf *buf); #define KSTK_REG(tsk, reg) get_thread_reg(reg, &tsk->thread.switch_buf) extern unsigned long __get_wchan(struct task_struct *p); =20 diff --git a/arch/x86/um/shared/sysdep/archsetjmp.h b/arch/x86/um/shared/sy= sdep/archsetjmp.h index 166cedbab926..15a75e01ce30 100644 --- a/arch/x86/um/shared/sysdep/archsetjmp.h +++ b/arch/x86/um/shared/sysdep/archsetjmp.h @@ -1,6 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __X86_UM_SYSDEP_ARCHSETJMP_H +#define __X86_UM_SYSDEP_ARCHSETJMP_H + #ifdef __i386__ #include "archsetjmp_32.h" #else #include "archsetjmp_64.h" #endif + +extern unsigned long get_thread_reg(int reg, jmp_buf *buf); + +#endif /* __X86_UM_SYSDEP_ARCHSETJMP_H */ --=20 2.34.1 From nobody Sun May 19 07:11:53 2024 Received: from out0-219.mail.aliyun.com (out0-219.mail.aliyun.com [140.205.0.219]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D875C7E58E for ; Tue, 23 Apr 2024 11:25:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.219 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871524; cv=none; b=QtnNTievPHxZub/n0CRnR6+l9/psI3MfrHKnf9lRaMwdDpnv7mtRaAN16IctAW2DAEI42I9zVudy9dyCbo11yPkhxr1jyrNGX6DDcxOKfMFliQhu/LAM4m16p0AtTii8jz+FIx//tphn8QTl7OW0WYpxks6E755lHCtjLsoUGog= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871524; c=relaxed/simple; bh=SBZ9bhy3FV5JlAyo/guuEZUQmwfsj3LdJnvdET7lW0Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Agin9Wb9TYav/TyckYv3oACGBFVQXZ3L0P14WzIZk1/PSxkFv2tUGfYhXNMe5p2cEHr4xfrlX17JaGSFN8eOSCQHxVQRQX2YC2AgVeH+oHDxLb/yVfHr0qOJ+ogy+vuOWAHl/6k1KvQYcPoIxIwqQRAuLecsIgm7Mfc/WvqtQEk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=qH5dWtNX; arc=none smtp.client-ip=140.205.0.219 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="qH5dWtNX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1713871513; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=N+epOjrcnscwevX+BkIMhVfG4/FidOuIEx8jyTdVre0=; b=qH5dWtNXtIiZ2tMCdMMsDisYaQ+nySGoXph66XctWWmL1f+tO9X/OFD7MWtR2M8sq1d1p5lyXlZC8q3bBkeNYorz5NCZ+/fk+Sz/RIm5fDqEtcCT8OuOAVpuVJdkgDh+UdYdKkBiqBGaMagPNmSbCQ4tA+A3oMtl0NdNu0/0zac= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R981e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047190;MF=tiwei.btw@antgroup.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---.XJTUYhx_1713871513; Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.XJTUYhx_1713871513) by smtp.aliyun-inc.com; Tue, 23 Apr 2024 19:25:13 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 4/7] um: Fix the declaration of kasan_map_memory Date: Tue, 23 Apr 2024 19:24:54 +0800 Message-Id: <20240423112457.2409319-5-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423112457.2409319-1-tiwei.btw@antgroup.com> References: <20240423112457.2409319-1-tiwei.btw@antgroup.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Make it match its definition (size_t vs unsigned long). And declare it in a shared header to fix the -Wmissing-prototypes warning, as it is defined in the user code and called in the kernel code. Fixes: 5b301409e8bc ("UML: add support for KASAN under x86_64") Signed-off-by: Tiwei Bie --- arch/um/include/asm/kasan.h | 1 - arch/um/include/shared/kern_util.h | 2 ++ arch/um/os-Linux/mem.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/um/include/asm/kasan.h b/arch/um/include/asm/kasan.h index 0d6547f4ec85..f97bb1f7b851 100644 --- a/arch/um/include/asm/kasan.h +++ b/arch/um/include/asm/kasan.h @@ -24,7 +24,6 @@ =20 #ifdef CONFIG_KASAN void kasan_init(void); -void kasan_map_memory(void *start, unsigned long len); extern int kasan_um_is_ready; =20 #ifdef CONFIG_STATIC_LINK diff --git a/arch/um/include/shared/kern_util.h b/arch/um/include/shared/ke= rn_util.h index 81bc38a2e3fc..1fa03499e1dc 100644 --- a/arch/um/include/shared/kern_util.h +++ b/arch/um/include/shared/kern_util.h @@ -37,6 +37,8 @@ extern void initial_thread_cb(void (*proc)(void *), void = *arg); =20 extern void timer_handler(int sig, struct siginfo *unused_si, struct uml_p= t_regs *regs); =20 +extern void kasan_map_memory(void *start, size_t len); + extern void uml_pm_wake(void); =20 extern int start_uml(void); diff --git a/arch/um/os-Linux/mem.c b/arch/um/os-Linux/mem.c index 8530b2e08604..c6c9495b1432 100644 --- a/arch/um/os-Linux/mem.c +++ b/arch/um/os-Linux/mem.c @@ -15,6 +15,7 @@ #include #include #include +#include #include =20 /* --=20 2.34.1 From nobody Sun May 19 07:11:53 2024 Received: from out0-209.mail.aliyun.com (out0-209.mail.aliyun.com [140.205.0.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A8007E792 for ; Tue, 23 Apr 2024 11:25:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.209 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871524; cv=none; b=N5YPlr37KZmnMH3IHxNiwt/q00Lsfkd8taCVRSdmJvDULmisAvhxfpo9olb9C+mePQd8jnDPAml0bXykfCB/v5DRtMpO6zcfqAOSWmBgxW3OP6hVAtMBNCw97RUbZCBBIULV0zOiIP/NS831wwesIRBgGlYQIMnnie1MeY0X/S8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871524; c=relaxed/simple; bh=ByGcHN025QjVD6T/SJkG5sopwNFERynJs9leJtwY110=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=AuIRLKboLOGm0T67G+M5KVf+Kcza/3MWDywTMwpGKOKSXDJNNyZEu9ljsezFPCqNRWhNKaPAeLolY+QcgontYD9ZEjMgbjx8e4venWbkVwCKDm+irgb6uWHfdhnLs5OlNLsDEKesM207sLy/485VaPiVsyuUfMg5goS1c+OwVVU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=WLc+f0Xw; arc=none smtp.client-ip=140.205.0.209 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="WLc+f0Xw" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1713871514; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; bh=f+7Dfcyc7ewnae17/TPs5HjFgj4pirZ9MfZiM8UFc54=; b=WLc+f0Xw7960Z1pHEPCoPQI+pbvtscvzUPc6zX+H9tGwQxHrrP16B8G6YBoRsMgILMB/DjhVwPDdDjNyeZ+S3nId+LpVlz43/OnuNqLhKoGDurb48Nw6YWJ2xmflF3apZs9njzw9CizTW7+JXj1FimkOrYkEnGpwsw1fINj93P4= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R571e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047211;MF=tiwei.btw@antgroup.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---.XJTUYi3_1713871513; Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.XJTUYi3_1713871513) by smtp.aliyun-inc.com; Tue, 23 Apr 2024 19:25:13 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 5/7] um: Add an internal header shared among the user code Date: Tue, 23 Apr 2024 19:24:55 +0800 Message-Id: <20240423112457.2409319-6-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423112457.2409319-1-tiwei.btw@antgroup.com> References: <20240423112457.2409319-1-tiwei.btw@antgroup.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Move relevant declarations to this header. This will address below -Wmissing-prototypes warnings: arch/um/os-Linux/elf_aux.c:26:13: warning: no previous prototype for =E2=80= =98scan_elf_aux=E2=80=99 [-Wmissing-prototypes] arch/um/os-Linux/mem.c:213:13: warning: no previous prototype for =E2=80=98= check_tmpexec=E2=80=99 [-Wmissing-prototypes] arch/um/os-Linux/skas/process.c:107:6: warning: no previous prototype for = =E2=80=98wait_stub_done=E2=80=99 [-Wmissing-prototypes] Signed-off-by: Tiwei Bie --- arch/um/os-Linux/internal.h | 20 ++++++++++++++++++++ arch/um/os-Linux/main.c | 2 -- arch/um/os-Linux/skas/mem.c | 2 -- arch/um/os-Linux/start_up.c | 2 -- arch/um/scripts/Makefile.rules | 3 ++- 5 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 arch/um/os-Linux/internal.h diff --git a/arch/um/os-Linux/internal.h b/arch/um/os-Linux/internal.h new file mode 100644 index 000000000000..2a0ea7853658 --- /dev/null +++ b/arch/um/os-Linux/internal.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __UM_OS_LINUX_INTERNAL_H +#define __UM_OS_LINUX_INTERNAL_H + +/* + * elf_aux.c + */ +extern void scan_elf_aux(char **envp); + +/* + * mem.c + */ +extern void check_tmpexec(void); + +/* + * skas/process.c + */ +extern void wait_stub_done(int pid); + +#endif /* __UM_OS_LINUX_INTERNAL_H */ diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c index e82164f90288..9880cfcb9b8a 100644 --- a/arch/um/os-Linux/main.c +++ b/arch/um/os-Linux/main.c @@ -102,8 +102,6 @@ static void setup_env_path(void) } } =20 -extern void scan_elf_aux( char **envp); - int __init main(int argc, char **argv, char **envp) { char **new_argv; diff --git a/arch/um/os-Linux/skas/mem.c b/arch/um/os-Linux/skas/mem.c index 953fb10f3f93..1b0502fb5c75 100644 --- a/arch/um/os-Linux/skas/mem.c +++ b/arch/um/os-Linux/skas/mem.c @@ -20,8 +20,6 @@ =20 extern char batch_syscall_stub[], __syscall_stub_start[]; =20 -extern void wait_stub_done(int pid); - static inline unsigned long *check_init_stack(struct mm_id * mm_idp, unsigned long *stack) { diff --git a/arch/um/os-Linux/start_up.c b/arch/um/os-Linux/start_up.c index 6b21061c431c..f920c837428e 100644 --- a/arch/um/os-Linux/start_up.c +++ b/arch/um/os-Linux/start_up.c @@ -222,8 +222,6 @@ static void __init check_ptrace(void) check_sysemu(); } =20 -extern void check_tmpexec(void); - static void __init check_coredump_limit(void) { struct rlimit lim; diff --git a/arch/um/scripts/Makefile.rules b/arch/um/scripts/Makefile.rules index a8b7d9dab0a6..b8ea5f3bb1fb 100644 --- a/arch/um/scripts/Makefile.rules +++ b/arch/um/scripts/Makefile.rules @@ -9,7 +9,8 @@ USER_OBJS +=3D $(filter %_user.o,$(obj-y) $(USER_SINGLE_OBJ= S)) USER_OBJS :=3D $(foreach file,$(USER_OBJS),$(obj)/$(file)) =20 $(USER_OBJS:.o=3D.%): \ - c_flags =3D -Wp,-MD,$(depfile) $(USER_CFLAGS) -include $(srctree)/include= /linux/kern_levels.h -include user.h $(CFLAGS_$(basetarget).o) + c_flags =3D -Wp,-MD,$(depfile) $(USER_CFLAGS) -include $(srctree)/include= /linux/kern_levels.h \ + -include user.h -include $(srctree)/arch/um/os-Linux/internal.h $(CFLAGS= _$(basetarget).o) =20 # These are like USER_OBJS but filter USER_CFLAGS through unprofile instea= d of # using it directly. --=20 2.34.1 From nobody Sun May 19 07:11:53 2024 Received: from out0-200.mail.aliyun.com (out0-200.mail.aliyun.com [140.205.0.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18FF813CAA9 for ; Tue, 23 Apr 2024 11:40:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.200 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713872451; cv=none; b=GQ5htI6h3fR2URUm1GIeBpwb61KywGIrTfUSTZx2+mWWJVE7oq9MUU8Gv9O7OXwJNjUdbVmcnfGeSLwfCPGfcAE2ZQE75CkDYB3xHFOYpR0wlu6wBs64H2upfdC342cDPJ75BP9AdiuxJzWqRlan2ig9BMuG3wcBW7zHxLB87jI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713872451; c=relaxed/simple; bh=9ZMqQqyu2e0uZqwNom9mTXgrUp5iks65fikGnwgJQtc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=ll/N6iCpFgEBlbMS3IO5hJsg4c5jY4yHQvu6xARgzIW0Vv2qM1vBX/ksvZ6gip34rrt5R9SEL0CmW5MrbnJW1kC376QL6Y804QtfzquG+iiLo251ZtD6CYxPNio5fpaJyPaeJLdKeS4xh4oJmhOtiRWwCv5XnN6+BvnFSGHPNyQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=MDga8oGh; arc=none smtp.client-ip=140.205.0.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="MDga8oGh" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1713872446; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; bh=gIvw0W9jwz4ek3Tvi63O6eytV7zW5ZlAtrTwF4fjS0o=; b=MDga8oGhwyrw1tJ0Gmx6FZaQvGnsdOnm1O9k4ikjLcYQEOKAIQPC9bL9+yHq9mPFEPXpC9JJONGPkXNj+GRKw+IAyZFgVZ/vdklzzQrhNxpDqu6utx99BdV7VK6FJcsUwdtLn/8DbQaq0A7HZR9HSfQXVfUj1pJRd35F2VNajjc= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R881e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047193;MF=tiwei.btw@antgroup.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---.XJTUYiD_1713871513; Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.XJTUYiD_1713871513) by smtp.aliyun-inc.com; Tue, 23 Apr 2024 19:25:13 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 6/7] um: Fix -Wmissing-prototypes warnings for __vdso_* Date: Tue, 23 Apr 2024 19:24:56 +0800 Message-Id: <20240423112457.2409319-7-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423112457.2409319-1-tiwei.btw@antgroup.com> References: <20240423112457.2409319-1-tiwei.btw@antgroup.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The VDSO functions are defined as globals and intended to be called from userspace. Let's just workaround the -Wmissing-prototypes warnings by declaring them locally. This will address below -Wmissing-prototypes warnings: arch/x86/um/vdso/um_vdso.c:16:5: warning: no previous prototype for =E2=80= =98__vdso_clock_gettime=E2=80=99 [-Wmissing-prototypes] arch/x86/um/vdso/um_vdso.c:30:5: warning: no previous prototype for =E2=80= =98__vdso_gettimeofday=E2=80=99 [-Wmissing-prototypes] arch/x86/um/vdso/um_vdso.c:44:21: warning: no previous prototype for =E2=80= =98__vdso_time=E2=80=99 [-Wmissing-prototypes] arch/x86/um/vdso/um_vdso.c:57:1: warning: no previous prototype for =E2=80= =98__vdso_getcpu=E2=80=99 [-Wmissing-prototypes] Meanwhile, also fix the "WARNING: Prefer 'unsigned int *' to bare use of 'unsigned *'" checkpatch warning. Signed-off-by: Tiwei Bie --- arch/x86/um/vdso/um_vdso.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/x86/um/vdso/um_vdso.c b/arch/x86/um/vdso/um_vdso.c index ff0f3b4b6c45..cbae2584124f 100644 --- a/arch/x86/um/vdso/um_vdso.c +++ b/arch/x86/um/vdso/um_vdso.c @@ -13,6 +13,12 @@ #include #include =20 +/* workaround for -Wmissing-prototypes warnings */ +int __vdso_clock_gettime(clockid_t clock, struct __kernel_old_timespec *ts= ); +int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *= tz); +__kernel_old_time_t __vdso_time(__kernel_old_time_t *t); +long __vdso_getcpu(unsigned int *cpu, unsigned int *node, struct getcpu_ca= che *unused); + int __vdso_clock_gettime(clockid_t clock, struct __kernel_old_timespec *ts) { long ret; @@ -54,7 +60,7 @@ __kernel_old_time_t __vdso_time(__kernel_old_time_t *t) __kernel_old_time_t time(__kernel_old_time_t *t) __attribute__((weak, alia= s("__vdso_time"))); =20 long -__vdso_getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *unused) +__vdso_getcpu(unsigned int *cpu, unsigned int *node, struct getcpu_cache *= unused) { /* * UML does not support SMP, we can cheat here. :) @@ -68,5 +74,5 @@ __vdso_getcpu(unsigned *cpu, unsigned *node, struct getcp= u_cache *unused) return 0; } =20 -long getcpu(unsigned *cpu, unsigned *node, struct getcpu_cache *tcache) +long getcpu(unsigned int *cpu, unsigned int *node, struct getcpu_cache *tc= ache) __attribute__((weak, alias("__vdso_getcpu"))); --=20 2.34.1 From nobody Sun May 19 07:11:53 2024 Received: from out0-210.mail.aliyun.com (out0-210.mail.aliyun.com [140.205.0.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B54B7C6DF for ; Tue, 23 Apr 2024 11:25:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.205.0.210 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871520; cv=none; b=XV00/SdU2ehdG7DamdOYT352de4hHAU5rYJGwPLDzgq7UTI/41AsWeGVIe/FDAFUzZ/s793BusE9c5mPv2mPHduvb0k88edLJDDl1oNBhQx+Q8ClBXdJvAnsLShrhjQmHc1cmXK2C+VyljfzcLU0J+4+751SojfdTWqh4M4WdVo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871520; c=relaxed/simple; bh=VUK1qW4vcuTcnbfvkh2ig+AROuk8bCOr9JBsTl9lZiI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=KAYY0oYYjURRjz09tu0OJsEnTMsWEAusOZu/PDyCFgj9y8XNiZ9NhR9EDAusbdaW7LBuwILkm+/18t7K+QWbrl4alVpAd03Hs+zRXPgoOYAGrHWO6yXPDFDLrjis1TAldLYR8WzysBhQdjCwTpngJTVHDFtXVIm5c/Z0KNBd6UU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com; spf=pass smtp.mailfrom=antgroup.com; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b=MpmH7SB5; arc=none smtp.client-ip=140.205.0.210 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=antgroup.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=antgroup.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=antgroup.com header.i=@antgroup.com header.b="MpmH7SB5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antgroup.com; s=default; t=1713871514; h=From:To:Subject:Date:Message-Id:MIME-Version:Content-Type; bh=lumfKnRDCzxzbmj8wJ/Hznk5zzPAE/pxByFtYHy06AQ=; b=MpmH7SB5+6BXEFfaDQ9mgGy6Dp764bxncYmjedGK55dqCZbDF676g0a+vZN7yo0K/xwB+YBXfiq8N5D0nPZJV/pkoBoeJAMrar6zpze5W4oPNFWPurKkP9a/mnsTmgYm+ManzYymshzvs6/h7Opt5cAx9/HEWIHLCYgi2+TlY3s= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R221e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018047203;MF=tiwei.btw@antgroup.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---.XJTUYiJ_1713871513; Received: from ubuntu..(mailfrom:tiwei.btw@antgroup.com fp:SMTPD_---.XJTUYiJ_1713871513) by smtp.aliyun-inc.com; Tue, 23 Apr 2024 19:25:14 +0800 From: "Tiwei Bie" To: richard@nod.at, anton.ivanov@cambridgegreys.com, johannes@sipsolutions.net Cc: , , "Tiwei Bie" Subject: [PATCH 7/7] um: Remove unused do_get_thread_area function Date: Tue, 23 Apr 2024 19:24:57 +0800 Message-Id: <20240423112457.2409319-8-tiwei.btw@antgroup.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423112457.2409319-1-tiwei.btw@antgroup.com> References: <20240423112457.2409319-1-tiwei.btw@antgroup.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable It's not used since it was introduced by commit aa6758d4867c ("[PATCH] uml: implement {get,set}_thread_area for i386"). Now, it's causing a -Wmissing-prototypes warning: arch/x86/um/tls_32.c:39:5: warning: no previous prototype for =E2=80=98do_g= et_thread_area=E2=80=99 [-Wmissing-prototypes] 39 | int do_get_thread_area(struct user_desc *info) | ^~~~~~~~~~~~~~~~~~ The original author also had doubts about whether it should be used. Considering that 18 years have passed, let's just remove it. Signed-off-by: Tiwei Bie --- arch/x86/um/tls_32.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/arch/x86/um/tls_32.c b/arch/x86/um/tls_32.c index ba40b1b8e179..d301deee041f 100644 --- a/arch/x86/um/tls_32.c +++ b/arch/x86/um/tls_32.c @@ -36,22 +36,6 @@ static int do_set_thread_area(struct user_desc *info) return ret; } =20 -int do_get_thread_area(struct user_desc *info) -{ - int ret; - u32 cpu; - - cpu =3D get_cpu(); - ret =3D os_get_thread_area(info, userspace_pid[cpu]); - put_cpu(); - - if (ret) - printk(KERN_ERR "PTRACE_GET_THREAD_AREA failed, err =3D %d, " - "index =3D %d\n", ret, info->entry_number); - - return ret; -} - /* * sys_get_thread_area: get a yet unused TLS descriptor index. * XXX: Consider leaving one free slot for glibc usage at first place. Thi= s must @@ -231,7 +215,6 @@ int arch_set_tls(struct task_struct *new, unsigned long= tls) return ret; } =20 -/* XXX: use do_get_thread_area to read the host value? I'm not at all sure= ! */ static int get_tls_entry(struct task_struct *task, struct user_desc *info, int idx) { --=20 2.34.1