Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp454870pxu; Thu, 3 Dec 2020 04:44:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrx2deRNT4sw9qpDLNpoxPVUq4awTc3tTyi2HXGKSKIVJhIVvtYlc8d8UwL75J8WIdSxG2 X-Received: by 2002:aa7:c886:: with SMTP id p6mr2671842eds.207.1606999440806; Thu, 03 Dec 2020 04:44:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606999440; cv=none; d=google.com; s=arc-20160816; b=ploOlKIyDyUpzLVYWpQd4isxz0DvriJGXjvAJPQ8J6fYvyEsEqF7rGNDFT3pf9ShNd GJHtG2ioXLhA8NFRI2ekFCzyt3m4UILnMb+RoBVOaup7lR75uF/sRxb1L4QLcL5dc/Mc gpnAzDamL/x5OONDc8mQlBpBwr+WrYc5Z+TIuw7cMYIDPz3CBeOkxpDygha3obpQtaWF ixGcUdBxBZOGM1dXQvl/RP0Yo+2JYXf7HCpsRCJNDfELwM+wlF+Va0NUI400afUJuX29 YB+7hxEnOtpSrAA3Eo+o168IxoeFbrCmyglzOiuP8gGCH4wwunT6kt2bU7pIjd3Zrv2P n8/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Wf9rO+JIQ7eg4Nwc/w2Qcb+USEcKwFctKt1LleGpRRU=; b=iMDRFMUhC8u2ThgDIolpw1gNnmK5uqCIf8fzHIZIxdjN/W5nryLX+pbVn7F8gBueAL z2uaTjzv/VvxSRh0oEJ0aR9eJpVrdY8TZCgb86dHc3C1QFhAtrG//2KU7YUs9PX59Z65 Wmup53hnPLPLeQe761F0GMdTRFRvQUDPpttrBm3s+GIpZkxt2k1OVjzJL6FVvzWR9FgN kVZTUmhjSNyRL3iuvPdEb5Oel8OxEDn66wPMfWLQ9RXIuKtOQw4X5uW7iu1YmUp1nkGS JNlIlvqjiStjtoilRFP2QsjNQv5LxECph389HQ9czUbgvfsyCIrQl+S5jrugbxbBVzV4 aVmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=LtKuqbmy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si890428edj.143.2020.12.03.04.43.36; Thu, 03 Dec 2020 04:44:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=LtKuqbmy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387778AbgLCMmD (ORCPT + 99 others); Thu, 3 Dec 2020 07:42:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730120AbgLCMmC (ORCPT ); Thu, 3 Dec 2020 07:42:02 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D544C061A4E for ; Thu, 3 Dec 2020 04:41:22 -0800 (PST) Received: from zn.tnic (p200300ec2f0dc500b89b6474ddf31320.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:c500:b89b:6474:ddf3:1320]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E702E1EC01A2; Thu, 3 Dec 2020 13:41:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1606999281; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=Wf9rO+JIQ7eg4Nwc/w2Qcb+USEcKwFctKt1LleGpRRU=; b=LtKuqbmyqVLyo1SL5GJ76z/TeRAX3KHjlcCw2ShBK/wBgVyxaLmKg8qT2OJU0JP1itdxUS aisGiLCR1PohC+P92+uj0Vc1YURGhSV/hj4JTy74/kds0fJ4oc07BT9LPSH0Wz4yNosw2k 8PVl/dY3tOHfu6e3A3X1bFC5y9eSAj0= Date: Thu, 3 Dec 2020 13:41:21 +0100 From: Borislav Petkov To: Masami Hiramatsu Cc: x86@kernel.org, Thomas Gleixner , Ingo Molnar , Kees Cook , "H . Peter Anvin" , Joerg Roedel , Tom Lendacky , "Gustavo A . R . Silva" , Jann Horn , Srikar Dronamraju , Ricardo Neri , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] x86/uprobes: Fix not using prefixes.nbytes for loop over prefixes.bytes Message-ID: <20201203124121.GI3059@zn.tnic> References: <160697102582.3146288.10127018634865687932.stgit@devnote2> <160697103739.3146288.7437620795200799020.stgit@devnote2> <20201203123757.GH3059@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201203123757.GH3059@zn.tnic> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 03, 2020 at 01:37:57PM +0100, Borislav Petkov wrote: > Btw, looking at the struct insn definition, that prefixes member should > have a comment above it that those are the legacy prefixes which can be > <= 4. But that's minor. And that naked 4 is poking my eye too - It'd be better if it were NUM_LEGACY_PREFIXES. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette