Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp905252ybi; Sat, 15 Jun 2019 14:48:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxM531jcVtE2i86RRwK06I+yRBdNaK3YwadrsdwUYKQCbR96GxV0c0Iw60HV27/a9ASNq12 X-Received: by 2002:a65:4c4c:: with SMTP id l12mr39161328pgr.404.1560635292892; Sat, 15 Jun 2019 14:48:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560635292; cv=none; d=google.com; s=arc-20160816; b=UmpjkM169+KWTox23qAKzcphMdBbYctqG7qcTZd1+d0o+6njGyXIaVtd5kAUUUcZr3 QtfCVOZDSw3kp7qCJLcXVfRG5NgH+c/NbVz90vdEqDNseKo47n1Ew9aFn2jPYyWAAKSB ekckJ/aLZgEOK6JzgN84aTp7+eA0eb6zjc32zVaG4rtP2mng+H0MD+C9WbXm0d7/N/kw R4ahnHt4xeLS9Qklrq7TlMnyoxCmdN1pfTMqgIn4jUZ+M+YkqDTKifHeO76qincz2Oq9 E2Q0g+rRAQ7lpVOyxRYJg8Zyk7LoW1rEcNHc/JuJeude84w4uzrSvH8exr6NpXIr7MpV PATw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hYTYW6IZAeP4tQBXMbfaMW4PaVUM/8gJ0AvydW6uNfY=; b=fGoTABLfBUC/hNIM3lm7ZRtA/GQpyc197+cuQZsIB4t2N3Ux+1zH+oJJnTOLy0DHV9 radH4X2cUnhduqrZg1ZQpNpx03nFIB6awaCie2818xRfx8JSEh6Y6SR1jRDKLCEEjIjO gwLw/3x3oDiuYO3ptwCggPP4072Cs5fODj4XMLGwuryb0ka7hr6zV3lKBXp7M0BwgebU hCV+3PXbgGeZQMMHQI3xMkc9uZrv+MYZyoL3YTKa1Ipf1e2Mp5zU7EwRp1Ldpvx3m5dW eiB0cLlkqi8JBBOwsMsqa8iD+xsM16Np7dWKq8aiYQMy1vIpfbxQjNHgbN1O49XitTOw Ys+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CuJVuDGg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g17si6163288plo.69.2019.06.15.14.47.58; Sat, 15 Jun 2019 14:48:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CuJVuDGg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727056AbfFOVqR (ORCPT + 99 others); Sat, 15 Jun 2019 17:46:17 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:45992 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbfFOVqR (ORCPT ); Sat, 15 Jun 2019 17:46:17 -0400 Received: by mail-lj1-f196.google.com with SMTP id m23so5716579lje.12; Sat, 15 Jun 2019 14:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hYTYW6IZAeP4tQBXMbfaMW4PaVUM/8gJ0AvydW6uNfY=; b=CuJVuDGgH2o7twgGYU5eLOv7aiye65VapfBq209uyPNpBXrLGyglJJDBJOy2O5gNX2 AGGP6ddGEtp75ofVP67AhoiUaJZZU+WlPk/BIGALYxeZDMhJBUaxQ0DgXCLo+J+5QD8a 9tEu3lFaHjllVgYAHteH8HandSMpSHWSYva4jxccu8bpyYWqeLojbAHaHFNwTn4Z87zC vQd0dD6KrUWEQGWPY0Ua73WHa38+0RUn220nq6iaBKBb300fOxnuoeVJh5d1oS5K5UAM xEEX7iQGb1lo/6nmBbvBEDb4fqS/chL5Rx68q6QpPuNJBkGvNQC6b9dNtpR9wWNljWyF Nc+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hYTYW6IZAeP4tQBXMbfaMW4PaVUM/8gJ0AvydW6uNfY=; b=F+k8UA41/Fafy57QnL5HWfMQnAvu7qiYAueXR7Eyz0NavnSmU3zSiUSvGan6dVb37N THscOtBOfBFOQ5ESvimCQuO4A8IYRFzOtb7POUqZVwlHCL6j6Np/rc+PLtbtoNkNnsy2 +IkId+LxxFwaN1hRpe6qKOtfLDsxGdWkA87JWUkGN6RNh8LauahkNN67WGr5K2TrKRmD Byds+j6MDnEP38Fnubt+oMthCURSoLJ1TpgUsraQwKLgxvh6J2Vw8dNtmFHL2+UXseoj ZV9aEWQiA7kdlAmdobjcLgswJS3OkUAe2mapKJNczyU9ejq/KasQicHp1A/q78cPy7AT UbmQ== X-Gm-Message-State: APjAAAXtbgJAc5zzSdAAM+MCO5rTOVc8k0ItHQS/1lwKalmG9QLO9AAv 4FAxwQ7ARC7QhXu6PFv7P+ifiOteayK3HWQLgOc= X-Received: by 2002:a2e:9dca:: with SMTP id x10mr23318282ljj.17.1560635174630; Sat, 15 Jun 2019 14:46:14 -0700 (PDT) MIME-Version: 1.0 References: <20190614230821.3146272-1-ast@kernel.org> In-Reply-To: <20190614230821.3146272-1-ast@kernel.org> From: Alexei Starovoitov Date: Sat, 15 Jun 2019 14:46:03 -0700 Message-ID: Subject: Re: [PATCH bpf] bpf, x64: fix stack layout of JITed bpf code To: Alexei Starovoitov Cc: "David S. Miller" , Daniel Borkmann , X86 ML , LKML , Network Development , bpf Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 14, 2019 at 4:10 PM Alexei Starovoitov wrote: > > Since commit 177366bf7ceb the %rbp stopped pointing to %rbp of the > previous stack frame. That broke frame pointer based stack unwinding. > This commit is a partial revert of it. > Note that the location of tail_call_cnt is fixed, since the verifier > enforces MAX_BPF_STACK stack size for programs with tail calls. > > Fixes: 177366bf7ceb ("bpf: change x86 JITed program stack layout") > Signed-off-by: Alexei Starovoitov Applied to bpf tree.