Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4831641pxu; Thu, 10 Dec 2020 06:35:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyw9lmECrk5sLhFNOshvSGZBckDPPfNHW5frob5oSoU8CKYg4ELmEAJPSD3IRPoi5x5Ig7y X-Received: by 2002:a05:6402:37b:: with SMTP id s27mr6913086edw.266.1607610941172; Thu, 10 Dec 2020 06:35:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607610941; cv=none; d=google.com; s=arc-20160816; b=QPGSwcWOBImRQYIYsLyiqzoCwQxXKRidSH7e95v2+4AETxmMYTapwjGPYGK6VCJRR1 wQI/gT2lwhZPCbCHFDjyWmrvsPpfv8xx9tksQOiBI/VGIgSHt1KREV6Ffrs/F/ngxFoG RBja9npK91DAK7KsXccc9JI4x9QXWznUneg4HGpxwRcRREhLqNAioo/fbFfcrJ/jZefI f4uSmihoSKua+HPgdYVgG2p/BIHA9lYXx5dH5zoRMax6UgAMtM1Gl7QafvM3jjL1lA+8 XVpK3XOJoqUaeQkde7xsMN1VR+fThE7ykgpVSFytMQMejoz0w/DU35V5O6acsHlOzWDS 9nxw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=isWbQdIg8Uf/Hp+6kQMHaRiBMxKKu7JPrxAWtZWPduU=; b=eDeimS5VvCwYlONBXT+Yc1PdvEI6vNREfdBxns/jlauYdg3wJwtzr1PZIdcVY31byn lqDu4r90XAv+s1Pv0LmVPiy1D48mm8hrEQmLYnpOyi4IA84Fq3gQX3x4pNmI79Yvn6RB R+LxV75vpRdy9AH053/745xf3uLVhJJOzBliRckF/jXIY2KtnuNqLszc78jO5A3Glci+ pcpkRVuI3iLbDj5GLxV2fGbqnsNehBGg+yiaqb2FNPSxmzKWQWbybvuYVafCIKuiZwIL 292LOYsWVte3Is+sjXjjUDBrm22fBz4Jpe42h/bpR7l1lRIqrwJLUTg0ar2oMbe6ilcg f8bA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si2654454eja.511.2020.12.10.06.35.13; Thu, 10 Dec 2020 06:35:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388129AbgLJLlo (ORCPT + 99 others); Thu, 10 Dec 2020 06:41:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:43750 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbgLJLlc (ORCPT ); Thu, 10 Dec 2020 06:41:32 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id C73AAAE2B; Thu, 10 Dec 2020 11:40:49 +0000 (UTC) Date: Thu, 10 Dec 2020 11:36:07 +0100 From: Borislav Petkov To: Arnaldo Carvalho de Melo Cc: Masami Hiramatsu , linux-kernel@vger.kernel.org, tip-bot2 for Masami Hiramatsu , linux-tip-commits@vger.kernel.org, syzbot+9b64b619f10f19d19a7c@syzkaller.appspotmail.com, Srikar Dronamraju , x86@kernel.org Subject: Re: [tip: x86/urgent] x86/uprobes: Do not use prefixes.nbytes when looping over prefixes.bytes Message-ID: <20201210103607.GA26633@zn.tnic> References: <160697103739.3146288.7437620795200799020.stgit@devnote2> <160709424307.3364.5849503551045240938.tip-bot2@tip-bot2> <20201205091256.14161a2e1606c527131efc06@kernel.org> <20201205101704.GB26409@zn.tnic> <20201206125325.d676906774c2329742746005@kernel.org> <20201206090250.GA10741@zn.tnic> <20201209180147.GD185686@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201209180147.GD185686@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 09, 2020 at 03:01:47PM -0300, Arnaldo Carvalho de Melo wrote: > Trying to swap this back into my brain... I know *exactly* what you mean. :) > > Humm, if I'm building this on, say, aarch64 then asm/ will not be > pointing to x86, right? Intel PT needs the x86 instruction decoder, > right? Yeah. > I should've have wrote in the cset comment log if this was related to > cross build failures I encountered, can't remember now :-\ I think that is it. There's inat.h in tools/arch/x86/include/asm/ too so it needs to be exactly that one that gets included on other arches. > And also it would be interesting to avoid updating both the kernel and > the tools/ copy, otherwise one would have to test the tools build, which > may break with such updates. > > The whole point of the copy is to avoid that, otherwise we could just > use the kernel files directly. Well, there's this diff -u thing which makes sure both copies are in sync. Why did we ever copy the insn decoder to tools/? There must've been some reason because otherwise we could probably use the one in arch/x86/lib/, in tools/. Yeah, this whole copying of headers back'n'forth is turning out to be kinda hairy... -- Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg