Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp972491ybz; Fri, 17 Apr 2020 13:21:51 -0700 (PDT) X-Google-Smtp-Source: APiQypKLFyK+k1o3KXn/Jj1/poPEd1Gpa26UcFKTVCSPRSHALh+H5TsoUhfBpJJdyUtL3Psssuso X-Received: by 2002:aa7:c5d1:: with SMTP id h17mr2386727eds.109.1587154911043; Fri, 17 Apr 2020 13:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587154911; cv=none; d=google.com; s=arc-20160816; b=nps6vxO2vVZOk41upRC84nhVHeaNk6MJ4pEmHKRVXpfOsmAhswJnjpRNyvClrlStz2 oAjxo5L6ULO4c9NuoEEb8JaBSyXtqTriBy5ByXGdla0TYYPxkMB9mt6BnhkE7Hp+Vx9u nwpfo784lskvf/kD1oanuokMZaE4qGG/HhvdPsg3+WFyd+bYY757ILX1EFfvZnXTjWIz BB5/Qxa11/DK3Ul1ycJiehA/V9DAdNb+4WN95w3+PYN/6T35CCokNYnpS5HXKgw41+2l 4da6l2bIVrEm7OUn9/mYaGtdlo1hS9FRTxMKGdXdy6TEM84aF+BiO5un/VRbfekbsCLa vbxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=a1u4i9qCKl/LOyYn/BeRfknGYxmnO4PLWnrEBiyuaI4=; b=IDekFg41oaSMArnD1sWKXMnXTX/c1alvF/mkXt2InEMcntVPoGRiSGEBhS8tCKGz+A s3izGDtRe4S2Bc31/QBs7dt0GvtCqUdbXuW8t+9/9q1cR0U56BMVG/NaqNu3RKprC8qM C/2Nq/NV6yBZg5GZAOdQhKunsV1P4u5rbURO+qQ2xWJksiFiLkgC4iJemq+04WG76Jri 6+mFRtBzE07UlQgAE0rKdNcSVFXcIPPaIKNcY7y2G6rUXZnhVExittsIKZNye6Mu4xfA twkzmSExh+NhIuDZ+r0Vnj56a2H2EB/bs06FAIs7c6HOGzMtR2YlCYaLmm0jc4drKx13 8AmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=jFtvjFqh; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si952206edj.64.2020.04.17.13.21.27; Fri, 17 Apr 2020 13:21:51 -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=@oracle.com header.s=corp-2020-01-29 header.b=jFtvjFqh; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730981AbgDQUSX (ORCPT + 99 others); Fri, 17 Apr 2020 16:18:23 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:35934 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730573AbgDQUSX (ORCPT ); Fri, 17 Apr 2020 16:18:23 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03HKCxcb105139; Fri, 17 Apr 2020 20:17:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=a1u4i9qCKl/LOyYn/BeRfknGYxmnO4PLWnrEBiyuaI4=; b=jFtvjFqhcDYTbe1R1RSBsGw+s6Jc4uozlxlRCRSs3IiK1sQtLjNOEoCLDul817/pFF7s d9TL251sRmwjS1SqQni1RqsNwPs9C3ouO5HmKlYkNeizcWtfoOWx8a3Z7hz+fouALNHk Ma+YpkVhB3AWcD6nQHdL3vy30X4UqZPVsVxfrVMaLMTEhv1s9uYU2nVBBPbLElwcUaX2 Qf07Zpius1eJIitz1HLzErA5fB5BcC+fFdyleksVV36iZ+gA9QI9bDmMosXUiyOS4SuG Lv+z+65G9OVp0NRHAC6OUOOhssEyI9Qm2RrmAR5INpYJ2zsUS3fFH/y/y+Ey5G2qx9Yf Dw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2120.oracle.com with ESMTP id 30dn961420-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Apr 2020 20:17:58 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03HKHBhV008133; Fri, 17 Apr 2020 20:17:58 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userp3020.oracle.com with ESMTP id 30emerqsx7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Apr 2020 20:17:58 +0000 Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 03HKHuZW031756; Fri, 17 Apr 2020 20:17:57 GMT Received: from linux-1.home (/10.175.17.90) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 17 Apr 2020 13:17:56 -0700 Subject: Re: [PATCH v5 00/17] objtool: vmlinux.o and noinstr validation To: Peter Zijlstra , tglx@linutronix.de, jpoimboe@redhat.com Cc: linux-kernel@vger.kernel.org, x86@kernel.org, mhiramat@kernel.org, mbenes@suse.cz, jthierry@redhat.com References: <20200416114706.625340212@infradead.org> From: Alexandre Chartre Message-ID: <17f5217f-c09b-484d-daae-bb0aa54d6b9b@oracle.com> Date: Fri, 17 Apr 2020 22:22:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200416114706.625340212@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9594 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 suspectscore=0 mlxlogscore=999 phishscore=0 spamscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004170149 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9594 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 clxscore=1015 malwarescore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 mlxscore=0 phishscore=0 spamscore=0 impostorscore=0 suspectscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004170148 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/16/20 1:47 PM, Peter Zijlstra wrote: > As should be familiar by now; these patches implement the noinstr > (no-instrument) validation in objtool as requested by Thomas, to ensure > critical code (entry for now, idle later) run no unexpected code. > > Functions are marked with: noinstr, which implies notrace, noinline and sticks > things in the .noinstr.text section. Such functions can then use instr_begin() > and instr_end() to allow calls to code outside of this section in sanctioned > areas. > > On the way of getting there, it also fixes the x86/ftrace trampiline ORC > unwind. > I have sent a few very minor comments; you can add my review for all patches: Reviewed-by: Alexandre Chartre alex.