<?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 error-inject.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>71e193d7 - csky: Add support for function error injection</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/arch/csky/lib/error-inject.c#71e193d7</link>
        <description>csky: Add support for function error injectionInspired by the commit 42d038c4fb00 (&quot;arm64: Add support for functionerror injection&quot;), this patch supports function error injection forcsky.This patch mainly support two functions: one is regs_set_return_value()which is used to overwrite the return value; the another function isoverride_function_with_return() which is to override the probedfunction returning and jump to its caller.Test log: cd /sys/kernel/debug/fail_function/ echo sys_clone &gt; inject echo 100 &gt; probability echo 1 &gt; interval ls /[  108.644163] FAULT_INJECTION: forcing a failure.[  108.644163] name fail_function, interval 1, probability 100, space 0, times 1[  108.647799] CPU: 0 PID: 104 Comm: sh Not tainted 5.8.0-rc5+ #46[  108.648384] Call Trace:[  108.649339] [&lt;8005eed4&gt;] walk_stackframe+0x0/0xf0[  108.649679] [&lt;8005f16a&gt;] show_stack+0x32/0x5c[  108.649927] [&lt;8040f9d2&gt;] dump_stack+0x6e/0x9c[  108.650271] [&lt;80406f7e&gt;] should_fail+0x15e/0x1ac[  108.650720] [&lt;80118ba8&gt;] fei_kprobe_handler+0x28/0x5c[  108.651519] [&lt;80754110&gt;] kprobe_breakpoint_handler+0x144/0x1cc[  108.652289] [&lt;8005d6da&gt;] trap_c+0x8e/0x110[  108.652816] [&lt;8005ce8c&gt;] csky_trap+0x5c/0x70-sh: can&apos;t fork: Invalid argumentSigned-off-by: Guo Ren &lt;guoren@linux.alibaba.com&gt;Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;

            List of files:
            /linux-6.15/arch/csky/lib/error-inject.c</description>
        <pubDate>Tue, 28 Jul 2020 16:30:46 +0000</pubDate>
        <dc:creator>Guo Ren &lt;guoren@linux.alibaba.com&gt;</dc:creator>
    </item>
</channel>
</rss>
