Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2882162pxk; Mon, 28 Sep 2020 02:38:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxS5UGXh8MfuRKkNwqJFPJnHklo5NY1GDws16zJu+dYla5CLKQuhTeNiEKhH+8G6Vu5E+I3 X-Received: by 2002:aa7:ce15:: with SMTP id d21mr713135edv.284.1601285891856; Mon, 28 Sep 2020 02:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601285891; cv=none; d=google.com; s=arc-20160816; b=uCUWveAw9wpYxcqQKfMqpdbHRPiOF3iyXwoGWdBRXkmMq7iFSvhcXZySlOsvzFyR0N QkG1Pc2zIEghXCTd5NN/yMvk/OcV7MsSaAlvikjBOeF7DSbwpjYbFTonQw6Z/WwEc72S kACIqwArJxzoXFns+X2BXg9FxfQ3X7M6WqJDSqQZegwaossdWA6bs7e/0J6IJZHhziGY MYHVDrtWVA0iEDzlkPyJOMNeDEMNRhXX2XspV4baN8t1HdO55/0yFfmVQ7tUy87UzRiu 4JXxgmCvbMsa5e285P28dZfpTKj7120MoIwiyoSsTzkqcboVwNIbcW1ylszAo3DXECrL wr6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vdgbob2/GE0armxfZu4qtsuYa9c1RgVn2ZfRSAximtk=; b=SmLE5t+7ouZZhA3eRomVs7aObkmFdDSAm7XOZsgk2hHvylvPAkQxKT23vihdrE7vjx XA8o5bw2FDcch4bDp18lIAiKI2uemNsA5cwRFFxx0f0gEMtBEULu8ThrT0Xi62Dp8Gnt 5vLBpRKk44plg9BE1bU48hciGgaDhrv3Vhi6smbmMm78hy0DGPcdFfHAK9W3mzDfPkdf 4ThcC9909mlgfvKsPLf2EjWq4caZidha1dNz4J29SUq6wLbgeZv74D6IUPZS/gf5Pjj5 wUkrfzbYCEAGOV4ezbvlqoAKK06GZwKasP4HCT64he+e9ccz5uvz2Sq9ryXEd8Fy799h xrOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TkHX7NKa; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b15si249419edy.258.2020.09.28.02.37.48; Mon, 28 Sep 2020 02:38:11 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=TkHX7NKa; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726559AbgI1Jgo (ORCPT + 99 others); Mon, 28 Sep 2020 05:36:44 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:52450 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726477AbgI1Jgo (ORCPT ); Mon, 28 Sep 2020 05:36:44 -0400 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601285803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=vdgbob2/GE0armxfZu4qtsuYa9c1RgVn2ZfRSAximtk=; b=TkHX7NKaiTzp9pqnkvqAlikfareB0WUgtrgpNIbGJhPZSQRSoiVLtTCxoloMkvtpsv+aUy vKn1LGZ1s2ZTGLSHqEkxJ03GHg4fKgVPmRE8U6axfj1NHW1JA8n4uWg0c6+O1P5WE/3H4B ktzRHfnAjhHElgN71T9qc/8Vj/+2qjo= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-444-xFdxArSZOtyU8NCVaaEv_g-1; Mon, 28 Sep 2020 05:36:39 -0400 X-MC-Unique: xFdxArSZOtyU8NCVaaEv_g-1 Received: by mail-wr1-f69.google.com with SMTP id a10so157737wrw.22 for ; Mon, 28 Sep 2020 02:36:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vdgbob2/GE0armxfZu4qtsuYa9c1RgVn2ZfRSAximtk=; b=oFN+Dliry1sb0iQbTyTJsqCv+2Jvq2/i2XwUdwrfeZFw/dyGRC5ZkZYEJTBRwQKcaJ 4lZfsjXlU2x7BgNwuB8/xL4+uQCThyy9hDyq1oygoAYTgU+GpjMwW/bWUp6cZyb62X9I b4ue7W5Dca77Av0r08O6K+Nh/ik/RJzcNENS9SIPB3oZQk81WorRDGprsdZjXYXjyg3K mDnjaRSwLq4X/3hg2qbaUXdFKLlDDy4ug6Ze9e0O0+N7egg0vbvZB85WGUcG0o/eNe0w lQztoR4jKtyjSsBmnTXn/tOY2yg/3+isYTzhQnZOKd7uQPSwtrKrDApAld/vx1b64vNB DlbA== X-Gm-Message-State: AOAM532aQgK5bmlIxTatvmnul2MTb47Rz3c4EcFF3iynBEG2mPdLhLB2 vfkLKJA5xJsxWwt+L7XkKE8qujBWuJANEqhMtTFnntbXKi5QETvz6wG/Cu7/WZJKECdWM5Kdi1V Kwi2eSvAdE+FCj2n46XtBBWnp X-Received: by 2002:adf:edcc:: with SMTP id v12mr672675wro.240.1601285798381; Mon, 28 Sep 2020 02:36:38 -0700 (PDT) X-Received: by 2002:adf:edcc:: with SMTP id v12mr672651wro.240.1601285798174; Mon, 28 Sep 2020 02:36:38 -0700 (PDT) Received: from redfedo.redhat.com ([2a01:cb14:499:3d00:cd47:f651:9d80:157a]) by smtp.gmail.com with ESMTPSA id y207sm495967wmc.17.2020.09.28.02.36.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Sep 2020 02:36:37 -0700 (PDT) From: Julien Thierry To: linux-kernel@vger.kernel.org Cc: jpoimboe@redhat.com, peterz@infradead.org, mbenes@suse.cz, raphael.gault@arm.com, benh@kernel.crashing.org, Julien Thierry Subject: [PATCH v2 0/3] objtool: Extend CFA updating/checking Date: Mon, 28 Sep 2020 10:36:28 +0100 Message-Id: <20200928093631.210610-1-jthierry@redhat.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The following patches are the result of limitation found on the CFA management code when trying to validate arm64 frames. I tried to keep things simple and not contradict current CFA management logic nor introduce too many corner cases. Changes since V1[1]: - Minor cleanups/rewording from discussion with Josh [1] https://www.spinics.net/lists/kernel/msg3662146.html Thanks, Julien --> Julien Thierry (3): objtool: check: Fully validate the stack frame objtool: check: Support addition to set CFA base objtool: check: Make SP memory operation match PUSH/POP semantics tools/objtool/arch/x86/include/cfi_regs.h | 3 ++ tools/objtool/cfi.h | 2 + tools/objtool/check.c | 54 +++++++++++++++++++++-- 3 files changed, 55 insertions(+), 4 deletions(-) -- 2.25.4