<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in .gitignore</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>bdb8bf7d - objtool: Install libsubcmd in build</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/objtool/.gitignore#bdb8bf7d</link>
        <description>objtool: Install libsubcmd in buildIncluding from tools/lib can create inadvertent dependencies. Installlibsubcmd in the objtool build and then include the headers fromthere.Signed-off-by: Ian Rogers &lt;irogers@google.com&gt;Link: https://lore.kernel.org/r/20230126190606.40739-2-irogers@google.comSigned-off-by: Josh Poimboeuf &lt;jpoimboe@kernel.org&gt;

            List of files:
            /linux-6.15/tools/objtool/.gitignore</description>
        <pubDate>Thu, 26 Jan 2023 19:06:04 +0000</pubDate>
        <dc:creator>Ian Rogers &lt;irogers@google.com&gt;</dc:creator>
    </item>
<item>
        <title>7786032e - objtool: Rework header include paths</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/objtool/.gitignore#7786032e</link>
        <description>objtool: Rework header include pathsCurrently objtool headers are being included either by their base nameor included via ../ from a parent directory. In case of a base name usage: #include &quot;warn.h&quot; #include &quot;arch_elf.h&quot;it does not make it apparent from which directory the file comes from.To make it slightly better, and actually to avoid name clashes some archspecific files have &quot;arch_&quot; suffix. And files from an arch folder haveto revert to including via ../ e.g: #include &quot;../../elf.h&quot;With additional architectures support and the code base growth there isa need for clearer headers naming scheme for multiple reasons:1. to make it instantly obvious where these files come from (objtool   itself / objtool arch|generic folders / some other external files),2. to avoid name clashes of objtool arch specific headers, potential   obtool arch generic headers and the system header files (there is   /usr/include/elf.h already),3. to avoid ../ includes and improve code readability.4. to give a warm fuzzy feeling to developers who are mostly kernel   developers and are accustomed to linux kernel headers arranging   scheme.Doesn&apos;t this make it instantly obvious where are these files come from? #include &lt;objtool/warn.h&gt; #include &lt;arch/elf.h&gt;And doesn&apos;t it look nicer to avoid ugly ../ includes? Which alsoguarantees this is elf.h from the objtool and not /usr/include/elf.h. #include &lt;objtool/elf.h&gt;This patch defines and implements new objtool headers arrangingscheme. Which is:- all generic headers go to include/objtool (similar to include/linux)- all arch headers go to arch/$(SRCARCH)/include/arch (to get arch  prefix). This is similar to linux arch specific &quot;asm/*&quot; headers but we  are not abusing &quot;asm&quot; name and calling it what it is. This also helps  to prevent name clashes (arch is not used in system headers or kernel  exports).To bring objtool to this state the following things are done:1. current top level tools/objtool/ headers are moved into   include/objtool/ subdirectory,2. arch specific headers, currently only arch/x86/include/ are moved into   arch/x86/include/arch/ and were stripped of &quot;arch_&quot; suffix,3. new -I$(srctree)/tools/objtool/include include path to make   includes like &lt;objtool/warn.h&gt; possible,4. rewriting file includes,5. make git not to ignore include/objtool/ subdirectory.Signed-off-by: Vasily Gorbik &lt;gor@linux.ibm.com&gt;Acked-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;Acked-by: Masami Hiramatsu &lt;mhiramat@kernel.org&gt;Signed-off-by: Josh Poimboeuf &lt;jpoimboe@redhat.com&gt;

            List of files:
            /linux-6.15/tools/objtool/.gitignore</description>
        <pubDate>Thu, 12 Nov 2020 23:03:32 +0000</pubDate>
        <dc:creator>Vasily Gorbik &lt;gor@linux.ibm.com&gt;</dc:creator>
    </item>
<item>
        <title>d198b34f - .gitignore: add SPDX License Identifier</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/objtool/.gitignore#d198b34f</link>
        <description>.gitignore: add SPDX License IdentifierAdd SPDX License Identifier to all .gitignore files.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/tools/objtool/.gitignore</description>
        <pubDate>Tue, 03 Mar 2020 13:35:59 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>6a77cff8 - objtool: Move synced files to their original relative locations</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/objtool/.gitignore#6a77cff8</link>
        <description>objtool: Move synced files to their original relative locationsThis will enable more straightforward comparisons, and it also makes thefiles 100% identical.Suggested-by: Ingo Molnar &lt;mingo@kernel.org&gt;Signed-off-by: Josh Poimboeuf &lt;jpoimboe@redhat.com&gt;Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;Link: http://lkml.kernel.org/r/407b2aaa317741f48fcf821592c0e96ab3be1890.1509974346.git.jpoimboe@redhat.comSigned-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;

            List of files:
            /linux-6.15/tools/objtool/.gitignore</description>
        <pubDate>Mon, 06 Nov 2017 13:21:50 +0000</pubDate>
        <dc:creator>Josh Poimboeuf &lt;jpoimboe@redhat.com&gt;</dc:creator>
    </item>
<item>
        <title>5cada174 - objtool: Add &apos;fixdep&apos; to objtool/.gitignore</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/objtool/.gitignore#5cada174</link>
        <description>objtool: Add &apos;fixdep&apos; to objtool/.gitignoreTo fix:   Untracked files:     (use &quot;git add &lt;file&gt;...&quot; to include in what will be committed)           tools/objtool/fixdepSigned-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;Signed-off-by: Josh Poimboeuf &lt;jpoimboe@redhat.com&gt;Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;Link: http://lkml.kernel.org/r/a4571f6893caf737d05524cfa3829c2abc1fb240.1469452729.git.jpoimboe@redhat.comSigned-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;

            List of files:
            /linux-6.15/tools/objtool/.gitignore</description>
        <pubDate>Mon, 25 Jul 2016 13:19:31 +0000</pubDate>
        <dc:creator>Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;</dc:creator>
    </item>
<item>
        <title>442f04c3 - objtool: Add tool to perform compile-time stack metadata validation</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/objtool/.gitignore#442f04c3</link>
        <description>objtool: Add tool to perform compile-time stack metadata validationThis adds a host tool named objtool which has a &quot;check&quot; subcommand whichanalyzes .o files to ensure the validity of stack metadata.  It enforcesa set of rules on asm code and C inline assembly code so that stacktraces can be reliable.For each function, it recursively follows all possible code paths andvalidates the correct frame pointer state at each instruction.It also follows code paths involving kernel special sections, like.altinstructions, __jump_table, and __ex_table, which can addalternative execution paths to a given instruction (or set ofinstructions).  Similarly, it knows how to follow switch statements, forwhich gcc sometimes uses jump tables.Here are some of the benefits of validating stack metadata:a) More reliable stack traces for frame pointer enabled kernels   Frame pointers are used for debugging purposes.  They allow runtime   code and debug tools to be able to walk the stack to determine the   chain of function call sites that led to the currently executing   code.   For some architectures, frame pointers are enabled by   CONFIG_FRAME_POINTER.  For some other architectures they may be   required by the ABI (sometimes referred to as &quot;backchain pointers&quot;).   For C code, gcc automatically generates instructions for setting up   frame pointers when the -fno-omit-frame-pointer option is used.   But for asm code, the frame setup instructions have to be written by   hand, which most people don&apos;t do.  So the end result is that   CONFIG_FRAME_POINTER is honored for C code but not for most asm code.   For stack traces based on frame pointers to be reliable, all   functions which call other functions must first create a stack frame   and update the frame pointer.  If a first function doesn&apos;t properly   create a stack frame before calling a second function, the *caller*   of the first function will be skipped on the stack trace.   For example, consider the following example backtrace with frame   pointers enabled:     [&lt;ffffffff81812584&gt;] dump_stack+0x4b/0x63     [&lt;ffffffff812d6dc2&gt;] cmdline_proc_show+0x12/0x30     [&lt;ffffffff8127f568&gt;] seq_read+0x108/0x3e0     [&lt;ffffffff812cce62&gt;] proc_reg_read+0x42/0x70     [&lt;ffffffff81256197&gt;] __vfs_read+0x37/0x100     [&lt;ffffffff81256b16&gt;] vfs_read+0x86/0x130     [&lt;ffffffff81257898&gt;] SyS_read+0x58/0xd0     [&lt;ffffffff8181c1f2&gt;] entry_SYSCALL_64_fastpath+0x12/0x76   It correctly shows that the caller of cmdline_proc_show() is   seq_read().   If we remove the frame pointer logic from cmdline_proc_show() by   replacing the frame pointer related instructions with nops, here&apos;s   what it looks like instead:     [&lt;ffffffff81812584&gt;] dump_stack+0x4b/0x63     [&lt;ffffffff812d6dc2&gt;] cmdline_proc_show+0x12/0x30     [&lt;ffffffff812cce62&gt;] proc_reg_read+0x42/0x70     [&lt;ffffffff81256197&gt;] __vfs_read+0x37/0x100     [&lt;ffffffff81256b16&gt;] vfs_read+0x86/0x130     [&lt;ffffffff81257898&gt;] SyS_read+0x58/0xd0     [&lt;ffffffff8181c1f2&gt;] entry_SYSCALL_64_fastpath+0x12/0x76   Notice that cmdline_proc_show()&apos;s caller, seq_read(), has been   skipped.  Instead the stack trace seems to show that   cmdline_proc_show() was called by proc_reg_read().   The benefit of &quot;objtool check&quot; here is that because it ensures that   *all* functions honor CONFIG_FRAME_POINTER, no functions will ever[*]   be skipped on a stack trace.   [*] unless an interrupt or exception has occurred at the very       beginning of a function before the stack frame has been created,       or at the very end of the function after the stack frame has been       destroyed.  This is an inherent limitation of frame pointers.b) 100% reliable stack traces for DWARF enabled kernels   This is not yet implemented.  For more details about what is planned,   see tools/objtool/Documentation/stack-validation.txt.c) Higher live patching compatibility rate   This is not yet implemented.  For more details about what is planned,   see tools/objtool/Documentation/stack-validation.txt.To achieve the validation, &quot;objtool check&quot; enforces the following rules:1. Each callable function must be annotated as such with the ELF   function type.  In asm code, this is typically done using the   ENTRY/ENDPROC macros.  If objtool finds a return instruction   outside of a function, it flags an error since that usually indicates   callable code which should be annotated accordingly.   This rule is needed so that objtool can properly identify each   callable function in order to analyze its stack metadata.2. Conversely, each section of code which is *not* callable should *not*   be annotated as an ELF function.  The ENDPROC macro shouldn&apos;t be used   in this case.   This rule is needed so that objtool can ignore non-callable code.   Such code doesn&apos;t have to follow any of the other rules.3. Each callable function which calls another function must have the   correct frame pointer logic, if required by CONFIG_FRAME_POINTER or   the architecture&apos;s back chain rules.  This can by done in asm code   with the FRAME_BEGIN/FRAME_END macros.   This rule ensures that frame pointer based stack traces will work as   designed.  If function A doesn&apos;t create a stack frame before calling   function B, the _caller_ of function A will be skipped on the stack   trace.4. Dynamic jumps and jumps to undefined symbols are only allowed if:   a) the jump is part of a switch statement; or   b) the jump matches sibling call semantics and the frame pointer has      the same value it had on function entry.   This rule is needed so that objtool can reliably analyze all of a   function&apos;s code paths.  If a function jumps to code in another file,   and it&apos;s not a sibling call, objtool has no way to follow the jump   because it only analyzes a single file at a time.5. A callable function may not execute kernel entry/exit instructions.   The only code which needs such instructions is kernel entry code,   which shouldn&apos;t be be in callable functions anyway.   This rule is just a sanity check to ensure that callable functions   return normally.It currently only supports x86_64.  I tried to make the code generic sothat support for other architectures can hopefully be plugged inrelatively easily.On my Lenovo laptop with a i7-4810MQ 4-core/8-thread CPU, building thekernel with objtool checking every .o file adds about three seconds oftotal build time.  It hasn&apos;t been optimized for performance yet, sothere are probably some opportunities for better build performance.Signed-off-by: Josh Poimboeuf &lt;jpoimboe@redhat.com&gt;Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;Cc: Andy Lutomirski &lt;luto@kernel.org&gt;Cc: Arnaldo Carvalho de Melo &lt;acme@kernel.org&gt;Cc: Bernd Petrovitsch &lt;bernd@petrovitsch.priv.at&gt;Cc: Borislav Petkov &lt;bp@alien8.de&gt;Cc: Chris J Arges &lt;chris.j.arges@canonical.com&gt;Cc: Jiri Slaby &lt;jslaby@suse.cz&gt;Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;Cc: Michal Marek &lt;mmarek@suse.cz&gt;Cc: Namhyung Kim &lt;namhyung@gmail.com&gt;Cc: Pedro Alves &lt;palves@redhat.com&gt;Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;Cc: live-patching@vger.kernel.orgLink: http://lkml.kernel.org/r/f3efb173de43bd067b060de73f856567c0fa1174.1456719558.git.jpoimboe@redhat.comSigned-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;

            List of files:
            /linux-6.15/tools/objtool/.gitignore</description>
        <pubDate>Mon, 29 Feb 2016 04:22:41 +0000</pubDate>
        <dc:creator>Josh Poimboeuf &lt;jpoimboe@redhat.com&gt;</dc:creator>
    </item>
</channel>
</rss>
