Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1508032imm; Tue, 22 May 2018 05:18:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrMoaPM7JnZOznZP1dujXzYFyWM3/RUPvXmX38uxFt9SExfvPRbRrF5BM6txtyse++pXa5R X-Received: by 2002:a65:56cb:: with SMTP id w11-v6mr18549873pgs.175.1526991505336; Tue, 22 May 2018 05:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526991505; cv=none; d=google.com; s=arc-20160816; b=McDx3/e/JwZYnE+cQ5OhqwYpSY5YTY0OygBH5ln3LWo3ZKP7Vrini9OK4X55fHzzca HWQmkWHjVgX+3zyIjMx3ZbqDvEOaSHpzd2516aQJFyfvD2StIj+EhAgYxk3uQSxNpaPP c0pxbi9voSXKRhVmgKM77NOJErA2lvYyCEfOyEb73xbSOD1A/jWMJ9lFE6m33Pb/zvkj 8y+mLdCnJIzI+RxQIZleyYrfyPdivb706V7MtPY0i5cZQwqbAFY/1iFQosnK6yhO9k1A yCIb+xNKdNdFoVtPpZD2uVN0S36VUHt3NoDQaWJU56cUQzE8oEm7Z1JD9pSkahR1GkPO 7pYg== 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 :references:in-reply-to:reply-to:mime-version:dkim-signature :arc-authentication-results; bh=+Cz3l1o7DZKCkXx44IAse18r/M82zOJjj1IyGEFmbWY=; b=ZdTofwHDzDVO2YNp1pTF3ufyeUodKSLgUStR+BmW3V1SGQNlxNK6Q1SkRwMd5J7FUv +JbrfBq7OFpITTG+toZGCoJjLQ1dKOYzS1GVO//ibSEuH/cnsrsBKJWPYrwdskEOv9er oncpheAZyNSYNv5Amaf36G35rIEx0HnWOKX7TDj++qAHjuLymimooFVJpwti3GapBg7i 9H2cIzZDJL2Qqxw8YJ6YogoYjpr/sKgIjRMrn9lngzXHt8d92ezhPst2MDVHG3xvcQUN xW/1T4Zhb/Usguh0OMxOnXEiO+hsXBj5r34U4GsIUU/5s1R5hE66gqrMHLFJnh/iAxSZ qvkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Q6yDKhxc; 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 z21-v6si15604309pfn.31.2018.05.22.05.18.01; Tue, 22 May 2018 05:18:25 -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=Q6yDKhxc; 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 S1752240AbeEVMRu (ORCPT + 99 others); Tue, 22 May 2018 08:17:50 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:53597 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751514AbeEVMRq (ORCPT ); Tue, 22 May 2018 08:17:46 -0400 Received: by mail-wm0-f48.google.com with SMTP id a67-v6so31134828wmf.3 for ; Tue, 22 May 2018 05:17:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=+Cz3l1o7DZKCkXx44IAse18r/M82zOJjj1IyGEFmbWY=; b=Q6yDKhxcCsWXX7uvgu4zv6aIHy26EYIVsYnQRpV9LFhENCVqe337ObdtyeDQYkVBOx lPyl7Beo6pUyGEVMjpJnChUx/7s3ivqSH3sWT/xj0RhYPCtQDBtxgSvmYOBuJQqFR6tX JLp654h8JkbZbHsUsBAwHwOANZ6XLImfZiexlib30C8eKX/UIWk9A73vaxC2QZ7dE0Mg jb+MfBBN4/JeCCZ8idE49PlXkXdPHvGIzm3HdeSRgd/ss5tD4Xxv0Ts733x4OPNVTXBD v2gWdN3Y0dnE3kYvL/2aSWmXZEGzEu0vvStXY0zBZN/UF66enkehoCDu3Yo3iIprCUdO /81g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=+Cz3l1o7DZKCkXx44IAse18r/M82zOJjj1IyGEFmbWY=; b=IMAq1wWLHLXYjiKUQnwB8Gqno0ROHanrqNNg7X+Y8ld07QH57EFcb+oYFGIQ7U6fvn 1FR1vTWXUp1WDltHfM5UCiV0w4dd5EXEBAtg7rb0JAZstfUPWwNzJCgxct+gLfKoHhHI zjrB1fh211LKi4saQeiS/87sTkOUA/lIOlJAfgNeP1HJJdOqgXWHiBTSkt0UHEYHQOqJ cfhB1eHp7IJNruhk7Nea+f4zhzIFn3YxC0LXANS4pdJ/6SDxCHTXyQEVn+RyUu1KMoTq 6zS0p51oGyitDSTLr0zKXrosCdxJbrkau58DchnNI+DrfHbQ+P2s5n3eIAZjjs77xBAX MVqg== X-Gm-Message-State: ALKqPwfX5UjrttL8a+/P5yYWe+XApFyeMQ8jZ/9wv78L+9GovNWto1zn /K7jCMnRCMpU8rFbjXNlxxBrOb8yeb1AvDsYJ2Y= X-Received: by 2002:a2e:7a0c:: with SMTP id v12-v6mr14276798ljc.79.1526991465778; Tue, 22 May 2018 05:17:45 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:ce89:0:0:0:0:0 with HTTP; Tue, 22 May 2018 05:17:45 -0700 (PDT) Reply-To: sedat.dilek@gmail.com In-Reply-To: References: <20180423174224.GA243180@google.com> <20180424230645.GB243180@google.com> <20180507174909.GF19594@google.com> From: Sedat Dilek Date: Tue, 22 May 2018 14:17:45 +0200 Message-ID: Subject: Re: Clang patch stacks for LTS kernels (v4.4 and v4.9) and status update To: Nick Desaulniers Cc: Matthias Kaehlcke , lkml , Arnd Bergmann , Manoj Gupta , AlistairStrachan , "Steven Rostedt (VMware)" 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 For the sake of completeness... [ CLANG VERSION ] # dpkg -l | grep clang-7 ii clang-7 1:7~svn332830-1~exp1+0~20180521091322.1776~1.gbp198359 amd64 C, C++ and Objective-C compiler [ OBJDUMP native_save_fl() ] $ objdump -d -S --start-address=0x$(grep native_save_fl System.map | sed -e "s/ \+.*//") vmlinux | less vmlinux: file format elf64-x86-64 Disassembly of section .text: ffffffff810633a0 : /* * Interrupt control: */ static inline __nostackprotector unsigned long native_save_fl(void) { ffffffff810633a0: 55 push %rbp ffffffff810633a1: 48 89 e5 mov %rsp,%rbp ffffffff810633a4: 50 push %rax /* * "=rm" is safe here, because "pop" adjusts the stack before * it evaluates its effective address -- this is part of the * documented behavior of the "pop" instruction. */ asm volatile("# __raw_save_flags\n\t" ffffffff810633a5: 9c pushfq ffffffff810633a6: 8f 45 f8 popq -0x8(%rbp) "pushf ; pop %0" : "=rm" (flags) : /* no input */ : "memory"); return flags; ffffffff810633a9: 48 8b 45 f8 mov -0x8(%rbp),%rax ffffffff810633ad: 48 83 c4 08 add $0x8,%rsp ffffffff810633b1: 5d pop %rbp ffffffff810633b2: c3 retq ffffffff810633b3: 0f 1f 00 nopl (%rax) ffffffff810633b6: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) ffffffff810633bd: 00 00 00 ffffffff810633c0 : } static inline void native_restore_fl(unsigned long flags) { ... - Sedat -