<?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 ubsan.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>ed2b548f - ubsan/overflow: Rework integer overflow sanitizer option to turn on everything</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#ed2b548f</link>
        <description>ubsan/overflow: Rework integer overflow sanitizer option to turn on everythingSince we&apos;re going to approach integer overflow mitigation a type at atime, we need to enable all of the associated sanitizers, and then optinto types one at a time.Rename the existing &quot;signed wrap&quot; sanitizer to just the entire topic area:&quot;integer wrap&quot;. Enable the implicit integer truncation sanitizers, withrequired callbacks and tests.Notably, this requires features (currently) only available in Clang,so we can depend on the cc-option tests to determine availabilityinstead of doing version tests.Link: https://lore.kernel.org/r/20250307041914.937329-1-kees@kernel.orgSigned-off-by: Kees Cook &lt;kees@kernel.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Fri, 07 Mar 2025 04:19:09 +0000</pubDate>
        <dc:creator>Kees Cook &lt;kees@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>f4626c12 - ubsan: Add awareness of signed integer overflow traps</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#f4626c12</link>
        <description>ubsan: Add awareness of signed integer overflow trapsOn arm64, UBSAN traps can be decoded from the trap instruction. Add theadd, sub, and mul overflow trap codes now that CONFIG_UBSAN_SIGNED_WRAPexists. Seen under clang 19:  Internal error: UBSAN: unrecognized failure code: 00000000f2005515 [#1] PREEMPT SMPReported-by: Nathan Chancellor &lt;nathan@kernel.org&gt;Closes: https://lore.kernel.org/lkml/20240411-fix-ubsan-in-hardening-config-v1-0-e0177c80ffaa@kernel.orgFixes: 557f8c582a9b (&quot;ubsan: Reintroduce signed overflow sanitizer&quot;)Tested-by: Nathan Chancellor &lt;nathan@kernel.org&gt;Link: https://lore.kernel.org/r/20240415182832.work.932-kees@kernel.orgSigned-off-by: Kees Cook &lt;keescook@chromium.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Mon, 15 Apr 2024 18:28:35 +0000</pubDate>
        <dc:creator>Kees Cook &lt;keescook@chromium.org&gt;</dc:creator>
    </item>
<item>
        <title>557f8c58 - ubsan: Reintroduce signed overflow sanitizer</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#557f8c58</link>
        <description>ubsan: Reintroduce signed overflow sanitizerIn order to mitigate unexpected signed wrap-around[1], bring back thesigned integer overflow sanitizer. It was removed in commit 6aaa31aeb9cf(&quot;ubsan: remove overflow checks&quot;) because it was effectively a no-opwhen combined with -fno-strict-overflow (which correctly changes signedoverflow from being &quot;undefined&quot; to being explicitly &quot;wrap around&quot;).Compilers are adjusting their sanitizers to trap wrap-around and todetecting common code patterns that should not be instrumented(e.g. &quot;var + offset &lt; var&quot;). Prepare for this and explicitly renamethe option from &quot;OVERFLOW&quot; to &quot;WRAP&quot; to more accurately describe thebehavior.To annotate intentional wrap-around arithmetic, the helperswrapping_add/sub/mul_wrap() can be used for individual statements. Atthe function level, the __signed_wrap attribute can be used to mark anentire function as expecting its signed arithmetic to wrap around. For asingle object file the Makefile can use &quot;UBSAN_SIGNED_WRAP_target.o := n&quot;to mark it as wrapping, and for an entire directory, &quot;UBSAN_SIGNED_WRAP :=n&quot; can be used.Additionally keep these disabled under CONFIG_COMPILE_TEST for now.Link: https://github.com/KSPP/linux/issues/26 [1]Cc: Miguel Ojeda &lt;ojeda@kernel.org&gt;Cc: Nathan Chancellor &lt;nathan@kernel.org&gt;Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;Cc: Hao Luo &lt;haoluo@google.com&gt;Reviewed-by: Marco Elver &lt;elver@google.com&gt;Reviewed-by: Justin Stitt &lt;justinstitt@google.com&gt;Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Thu, 18 Jan 2024 23:06:05 +0000</pubDate>
        <dc:creator>Kees Cook &lt;keescook@chromium.org&gt;</dc:creator>
    </item>
<item>
        <title>ffda6556 - UBSAN: use the kernel panic message markers</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#ffda6556</link>
        <description>UBSAN: use the kernel panic message markersUse the same splat markers as panic does for easier matching by externaltools scanning kernel dmesg for splats.Link: https://lkml.kernel.org/r/20231218135339.23209-1-bp@alien8.deSigned-off-by: Borislav Petkov (AMD) &lt;bp@alien8.de&gt;Cc: Andrey Ryabinin &lt;ryabinin.a.a@gmail.com&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Mon, 18 Dec 2023 13:53:39 +0000</pubDate>
        <dc:creator>Borislav Petkov (AMD) &lt;bp@alien8.de&gt;</dc:creator>
    </item>
<item>
        <title>26f15e5d - ubsan: add prototypes for internal functions</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#26f15e5d</link>
        <description>ubsan: add prototypes for internal functionsMost of the functions in ubsan that are only called from generatedcode don&apos;t have a prototype, which W=1 builds warn about:lib/ubsan.c:226:6: error: no previous prototype for &apos;__ubsan_handle_divrem_overflow&apos; [-Werror=missing-prototypes]lib/ubsan.c:307:6: error: no previous prototype for &apos;__ubsan_handle_type_mismatch&apos; [-Werror=missing-prototypes]lib/ubsan.c:321:6: error: no previous prototype for &apos;__ubsan_handle_type_mismatch_v1&apos; [-Werror=missing-prototypes]lib/ubsan.c:335:6: error: no previous prototype for &apos;__ubsan_handle_out_of_bounds&apos; [-Werror=missing-prototypes]lib/ubsan.c:352:6: error: no previous prototype for &apos;__ubsan_handle_shift_out_of_bounds&apos; [-Werror=missing-prototypes]lib/ubsan.c:394:6: error: no previous prototype for &apos;__ubsan_handle_builtin_unreachable&apos; [-Werror=missing-prototypes]lib/ubsan.c:404:6: error: no previous prototype for &apos;__ubsan_handle_load_invalid_value&apos; [-Werror=missing-prototypes]Add prototypes for all of these to lib/ubsan.h, and remove theone that was already present in ubsan.c.Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;Reviewed-by: Fangrui Song &lt;maskray@google.com&gt;Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;Link: https://lore.kernel.org/r/20230517125102.930491-1-arnd@kernel.org

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Wed, 17 May 2023 12:50:34 +0000</pubDate>
        <dc:creator>Arnd Bergmann &lt;arnd@arndb.de&gt;</dc:creator>
    </item>
<item>
        <title>25b84002 - arm64: Support Clang UBSAN trap codes for better reporting</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#25b84002</link>
        <description>arm64: Support Clang UBSAN trap codes for better reportingWhen building with CONFIG_UBSAN_TRAP=y on arm64, Clang encodes the UBSANcheck (handler) type in the esr. Extract this and actually report thesetraps as coming from the specific UBSAN check that tripped.Before:  Internal error: BRK handler: 00000000f20003e8 [#1] PREEMPT SMPAfter:  Internal error: UBSAN: shift out of bounds: 00000000f2005514 [#1] PREEMPT SMPAcked-by: Mark Rutland &lt;mark.rutland@arm.com&gt;Reviewed-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;Acked-by: Mukesh Ojha &lt;quic_mojha@quicinc.com&gt;Reviewed-by: Fangrui Song &lt;maskray@google.com&gt;Cc: Catalin Marinas &lt;catalin.marinas@arm.com&gt;Cc: Will Deacon &lt;will@kernel.org&gt;Cc: John Stultz &lt;jstultz@google.com&gt;Cc: Yongqin Liu &lt;yongqin.liu@linaro.org&gt;Cc: Sami Tolvanen &lt;samitolvanen@google.com&gt;Cc: Yury Norov &lt;yury.norov@gmail.com&gt;Cc: Andrey Konovalov &lt;andreyknvl@gmail.com&gt;Cc: Marco Elver &lt;elver@google.com&gt;Cc: linux-arm-kernel@lists.infradead.orgCc: llvm@lists.linux.devSigned-off-by: Kees Cook &lt;keescook@chromium.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Thu, 02 Feb 2023 22:07:49 +0000</pubDate>
        <dc:creator>Kees Cook &lt;keescook@chromium.org&gt;</dc:creator>
    </item>
<item>
        <title>f18b0d7e - ubsan: Fix objtool UACCESS warns</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#f18b0d7e</link>
        <description>ubsan: Fix objtool UACCESS warnsclang-14 allyesconfig gives:  vmlinux.o: warning: objtool: emulator_cmpxchg_emulated+0x705: call to __ubsan_handle_load_invalid_value() with UACCESS enabled  vmlinux.o: warning: objtool: paging64_update_accessed_dirty_bits+0x39e: call to __ubsan_handle_load_invalid_value() with UACCESS enabled  vmlinux.o: warning: objtool: paging32_update_accessed_dirty_bits+0x390: call to __ubsan_handle_load_invalid_value() with UACCESS enabled  vmlinux.o: warning: objtool: ept_update_accessed_dirty_bits+0x43f: call to __ubsan_handle_load_invalid_value() with UACCESS enabledAdd the required eflags save/restore and whitelist the thing.Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;Tested-by: Tony Lindgren &lt;tony@atomide.com&gt;Tested-by: Ulf Hansson &lt;ulf.hansson@linaro.org&gt;Acked-by: Rafael J. Wysocki &lt;rafael.j.wysocki@intel.com&gt;Acked-by: Frederic Weisbecker &lt;frederic@kernel.org&gt;Link: https://lore.kernel.org/r/20230112195541.906007455@infradead.org

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Thu, 12 Jan 2023 19:43:56 +0000</pubDate>
        <dc:creator>Peter Zijlstra &lt;peterz@infradead.org&gt;</dc:creator>
    </item>
<item>
        <title>79cc1ba7 - panic: Consolidate open-coded panic_on_warn checks</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#79cc1ba7</link>
        <description>panic: Consolidate open-coded panic_on_warn checksSeveral run-time checkers (KASAN, UBSAN, KFENCE, KCSAN, sched) rolltheir own warnings, and each check &quot;panic_on_warn&quot;. Consolidate thisinto a single function so that future instrumentation can be added ina single location.Cc: Marco Elver &lt;elver@google.com&gt;Cc: Dmitry Vyukov &lt;dvyukov@google.com&gt;Cc: Ingo Molnar &lt;mingo@redhat.com&gt;Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;Cc: Juri Lelli &lt;juri.lelli@redhat.com&gt;Cc: Vincent Guittot &lt;vincent.guittot@linaro.org&gt;Cc: Dietmar Eggemann &lt;dietmar.eggemann@arm.com&gt;Cc: Steven Rostedt &lt;rostedt@goodmis.org&gt;Cc: Ben Segall &lt;bsegall@google.com&gt;Cc: Mel Gorman &lt;mgorman@suse.de&gt;Cc: Daniel Bristot de Oliveira &lt;bristot@redhat.com&gt;Cc: Valentin Schneider &lt;vschneid@redhat.com&gt;Cc: Andrey Ryabinin &lt;ryabinin.a.a@gmail.com&gt;Cc: Alexander Potapenko &lt;glider@google.com&gt;Cc: Andrey Konovalov &lt;andreyknvl@gmail.com&gt;Cc: Vincenzo Frascino &lt;vincenzo.frascino@arm.com&gt;Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;Cc: David Gow &lt;davidgow@google.com&gt;Cc: tangmeng &lt;tangmeng@uniontech.com&gt;Cc: Jann Horn &lt;jannh@google.com&gt;Cc: Shuah Khan &lt;skhan@linuxfoundation.org&gt;Cc: Petr Mladek &lt;pmladek@suse.com&gt;Cc: &quot;Paul E. McKenney&quot; &lt;paulmck@kernel.org&gt;Cc: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;Cc: &quot;Guilherme G. Piccoli&quot; &lt;gpiccoli@igalia.com&gt;Cc: Tiezhu Yang &lt;yangtiezhu@loongson.cn&gt;Cc: kasan-dev@googlegroups.comCc: linux-mm@kvack.orgReviewed-by: Luis Chamberlain &lt;mcgrof@kernel.org&gt;Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;Reviewed-by: Marco Elver &lt;elver@google.com&gt;Reviewed-by: Andrey Konovalov &lt;andreyknvl@gmail.com&gt;Link: https://lore.kernel.org/r/20221117234328.594699-4-keescook@chromium.org

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Thu, 17 Nov 2022 23:43:24 +0000</pubDate>
        <dc:creator>Kees Cook &lt;keescook@chromium.org&gt;</dc:creator>
    </item>
<item>
        <title>d83ce027 - ubsan: no need to unset panic_on_warn in ubsan_epilogue()</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#d83ce027</link>
        <description>ubsan: no need to unset panic_on_warn in ubsan_epilogue()panic_on_warn is unset inside panic(), so no need to unset it beforecalling panic() in ubsan_epilogue().Link: https://lkml.kernel.org/r/1644324666-15947-5-git-send-email-yangtiezhu@loongson.cnSigned-off-by: Tiezhu Yang &lt;yangtiezhu@loongson.cn&gt;Reviewed-by: Marco Elver &lt;elver@google.com&gt;Cc: Andrey Ryabinin &lt;ryabinin.a.a@gmail.com&gt;Cc: Baoquan He &lt;bhe@redhat.com&gt;Cc: Jonathan Corbet &lt;corbet@lwn.net&gt;Cc: Xuefeng Li &lt;lixuefeng@loongson.cn&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Wed, 23 Mar 2022 23:06:54 +0000</pubDate>
        <dc:creator>Tiezhu Yang &lt;yangtiezhu@loongson.cn&gt;</dc:creator>
    </item>
<item>
        <title>1195505f - kunit: ubsan integration</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#1195505f</link>
        <description>kunit: ubsan integrationIntegrates UBSAN into the KUnit testing framework. It fails KUnit testswhenever it reports undefined behavior.When CONFIG_KUNIT=n, nothing is printed or even formatted, so this hasno behavioral impact outside of tests.kunit_fail_current_test() effectively does a pr_err() as well, sothere&apos;s some slight duplication, but it also ensures an error isrecorded in the debugfs entry for the running KUnit test.Print a shorter version of the message to make it less spammy.Co-developed-by: Daniel Latypov &lt;dlatypov@google.com&gt;Signed-off-by: Daniel Latypov &lt;dlatypov@google.com&gt;Signed-off-by: Uriel Guajardo &lt;urielguajardo@google.com&gt;Reviewed-by: Alan Maguire &lt;alan.maguire@oracle.com&gt;Signed-off-by: Shuah Khan &lt;skhan@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Fri, 02 Apr 2021 21:21:31 +0000</pubDate>
        <dc:creator>Uriel Guajardo &lt;urielguajardo@google.com&gt;</dc:creator>
    </item>
<item>
        <title>6aaa31ae - ubsan: remove overflow checks</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#6aaa31ae</link>
        <description>ubsan: remove overflow checksSince GCC 8.0 -fsanitize=signed-integer-overflow doesn&apos;t work with-fwrapv.  -fwrapv makes signed overflows defines and GCC essentiallydisables ubsan checks.  On GCC &lt; 8.0 -fwrapv doesn&apos;t have influence on-fsanitize=signed-integer-overflow setting, so it kinda works butgenerates false-positves and violates uaccess rules:lib/iov_iter.o: warning: objtool: iovec_from_user()+0x22d: call to__ubsan_handle_add_overflow() with UACCESS enabledDisable signed overflow checks to avoid these problems.  Remove unsignedoverflow checks as well.  Unsigned overflow appeared as side effect ofcommit cdf8a76fda4a (&quot;ubsan: move cc-option tests into Kconfig&quot;), but itnever worked (kernel doesn&apos;t boot).  And unsigned overflows are allowed byC standard, so it just pointless.Link: https://lkml.kernel.org/r/20210209232348.20510-1-ryabinin.a.a@gmail.comSigned-off-by: Andrey Ryabinin &lt;ryabinin.a.a@gmail.com&gt;Acked-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;Cc: Josh Poimboeuf &lt;jpoimboe@redhat.com&gt;Cc: Randy Dunlap &lt;rdunlap@infradead.org&gt;Cc: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;Cc: Dmitry Vyukov &lt;dvyukov@google.com&gt;Cc: Kees Cook &lt;keescook@chromium.org&gt;Cc: Alexander Viro &lt;viro@zeniv.linux.org.uk&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Fri, 26 Feb 2021 01:22:42 +0000</pubDate>
        <dc:creator>Andrey Ryabinin &lt;ryabinin.a.a@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>28abcc96 - ubsan: implement __ubsan_handle_alignment_assumption</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#28abcc96</link>
        <description>ubsan: implement __ubsan_handle_alignment_assumptionWhen building ARCH=mips 32r2el_defconfig with CONFIG_UBSAN_ALIGNMENT:  ld.lld: error: undefined symbol: __ubsan_handle_alignment_assumption     referenced by slab.h:557 (include/linux/slab.h:557)                   main.o:(do_initcalls) in archive init/built-in.a     referenced by slab.h:448 (include/linux/slab.h:448)                   do_mounts_rd.o:(rd_load_image) in archive init/built-in.a     referenced by slab.h:448 (include/linux/slab.h:448)                   do_mounts_rd.o:(identify_ramdisk_image) in archive init/built-in.a     referenced 1579 more timesImplement this for the kernel based on LLVM&apos;shandleAlignmentAssumptionImpl because the kernel is not linked againstthe compiler runtime.Link: https://github.com/ClangBuiltLinux/linux/issues/1245Link: https://github.com/llvm/llvm-project/blob/llvmorg-11.0.1/compiler-rt/lib/ubsan/ubsan_handlers.cpp#L151-L190Link: https://lkml.kernel.org/r/20210127224451.2587372-1-nathan@kernel.orgSigned-off-by: Nathan Chancellor &lt;nathan@kernel.org&gt;Acked-by: Kees Cook &lt;keescook@chromium.org&gt;Reviewed-by: Nick Desaulniers &lt;ndesaulniers@google.com&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Fri, 05 Feb 2021 02:32:57 +0000</pubDate>
        <dc:creator>Nathan Chancellor &lt;nathan@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>d3c22797 - lib/ubsan.c: mark type_check_kinds with static keyword</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#d3c22797</link>
        <description>lib/ubsan.c: mark type_check_kinds with static keywordFix the following sparse warning:  lib/ubsan.c:20:12: warning: symbol &apos;type_check_kinds&apos; was not declared. Should it be static?[akpm@linux-foundation.org: make it `static const char * const&apos; while we&apos;re in there]Link: https://lkml.kernel.org/r/1607602638-79584-1-git-send-email-zou_wei@huawei.comSigned-off-by: Zou Wei &lt;zou_wei@huawei.com&gt;Reviewed-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;Reviewed-by: Kees Cook &lt;keescook@chromium.org&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Wed, 16 Dec 2020 04:46:50 +0000</pubDate>
        <dc:creator>Zou Wei &lt;zou_wei@huawei.com&gt;</dc:creator>
    </item>
<item>
        <title>469cbd01 - lib/ubsan.c: fix gcc-10 warnings</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#469cbd01</link>
        <description>lib/ubsan.c: fix gcc-10 warningsThe latest compiler expects slightly different function prototypesfor the ubsan helpers:  lib/ubsan.c:192:6: error: conflicting types for built-in function &apos;__ubsan_handle_add_overflow&apos;; expected &apos;void(void *, void *, void *)&apos; [-Werror=builtin-declaration-mismatch]    192 | void __ubsan_handle_add_overflow(struct overflow_data *data,        |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~  lib/ubsan.c:200:6: error: conflicting types for built-in function &apos;__ubsan_handle_sub_overflow&apos;; expected &apos;void(void *, void *, void *)&apos; [-Werror=builtin-declaration-mismatch]    200 | void __ubsan_handle_sub_overflow(struct overflow_data *data,        |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~  lib/ubsan.c:207:6: error: conflicting types for built-in function &apos;__ubsan_handle_mul_overflow&apos;; expected &apos;void(void *, void *, void *)&apos; [-Werror=builtin-declaration-mismatch]    207 | void __ubsan_handle_mul_overflow(struct overflow_data *data,        |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~  lib/ubsan.c:214:6: error: conflicting types for built-in function &apos;__ubsan_handle_negate_overflow&apos;; expected &apos;void(void *, void *)&apos; [-Werror=builtin-declaration-mismatch]    214 | void __ubsan_handle_negate_overflow(struct overflow_data *data,        |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  lib/ubsan.c:234:6: error: conflicting types for built-in function &apos;__ubsan_handle_divrem_overflow&apos;; expected &apos;void(void *, void *, void *)&apos; [-Werror=builtin-declaration-mismatch]    234 | void __ubsan_handle_divrem_overflow(struct overflow_data *data,        |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Change the Linux implementation to match these, using a local typedpointer.Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;Reviewed-by: Kees Cook &lt;keescook@chromium.org&gt;Cc: Andrey Ryabinin &lt;aryabinin@virtuozzo.com&gt;Cc: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;Cc: Julien Grall &lt;julien.grall@arm.com&gt;Link: http://lkml.kernel.org/r/20200429185948.4189600-1-arnd@arndb.deSigned-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Thu, 04 Jun 2020 23:53:00 +0000</pubDate>
        <dc:creator>Arnd Bergmann &lt;arnd@arndb.de&gt;</dc:creator>
    </item>
<item>
        <title>ef065653 - ubsan: include bug type in report header</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#ef065653</link>
        <description>ubsan: include bug type in report headerWhen syzbot tries to figure out how to deduplicate bug reports, it prefersseeing a hint about a specific bug type (we can do better than just&quot;UBSAN&quot;).  This lifts the handler reason into the UBSAN report line thatincludes the file path that tripped a check.  Unfortunately, UBSAN doesnot provide function names.Suggested-by: Dmitry Vyukov &lt;dvyukov@google.com&gt;Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;Cc: Alexander Potapenko &lt;glider@google.com&gt;Cc: Andrey Konovalov &lt;andreyknvl@google.com&gt;Cc: Andrey Ryabinin &lt;aryabinin@virtuozzo.com&gt;Cc: Ard Biesheuvel &lt;ard.biesheuvel@linaro.org&gt;Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;Cc: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;Cc: Elena Petrova &lt;lenaptr@google.com&gt;Cc: &quot;Gustavo A. R. Silva&quot; &lt;gustavo@embeddedor.com&gt;Link: http://lkml.kernel.org/r/20200227193516.32566-7-keescook@chromium.orgLink: https://lore.kernel.org/lkml/CACT4Y+bsLJ-wFx_TaXqax3JByUOWB3uk787LsyMVcfW6JzzGvg@mail.gmail.comSigned-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Tue, 07 Apr 2020 03:12:45 +0000</pubDate>
        <dc:creator>Kees Cook &lt;keescook@chromium.org&gt;</dc:creator>
    </item>
<item>
        <title>1d28c8d6 - ubsan: check panic_on_warn</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#1d28c8d6</link>
        <description>ubsan: check panic_on_warnSyzkaller expects kernel warnings to panic when the panic_on_warn sysctlis set.  More work is needed here to have UBSan reuse the WARNinfrastructure, but for now, just check the flag manually.Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;Cc: Alexander Potapenko &lt;glider@google.com&gt;Cc: Andrey Konovalov &lt;andreyknvl@google.com&gt;Cc: Andrey Ryabinin &lt;aryabinin@virtuozzo.com&gt;Cc: Ard Biesheuvel &lt;ard.biesheuvel@linaro.org&gt;Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;Cc: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;Cc: Dmitry Vyukov &lt;dvyukov@google.com&gt;Cc: Elena Petrova &lt;lenaptr@google.com&gt;Cc: &quot;Gustavo A. R. Silva&quot; &lt;gustavo@embeddedor.com&gt;Link: https://lore.kernel.org/lkml/CACT4Y+bsLJ-wFx_TaXqax3JByUOWB3uk787LsyMVcfW6JzzGvg@mail.gmail.comLink: http://lkml.kernel.org/r/20200227193516.32566-5-keescook@chromium.orgSigned-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Tue, 07 Apr 2020 03:12:38 +0000</pubDate>
        <dc:creator>Kees Cook &lt;keescook@chromium.org&gt;</dc:creator>
    </item>
<item>
        <title>ce5c31db - lib/ubsan: don&apos;t serialize UBSAN report</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#ce5c31db</link>
        <description>lib/ubsan: don&apos;t serialize UBSAN reportAt the moment, UBSAN report will be serialized using a spin_lock().  OnRT-systems, spinlocks are turned to rt_spin_lock and may sleep.  Thiswill result to the following splat if the undefined behavior is in acontext that can sleep:  BUG: sleeping function called from invalid context at /src/linux/kernel/locking/rtmutex.c:968  in_atomic(): 1, irqs_disabled(): 128, pid: 3447, name: make  1 lock held by make/3447:   #0: 000000009a966332 (&amp;mm-&gt;mmap_sem){++++}, at: do_page_fault+0x140/0x4f8  irq event stamp: 6284  hardirqs last  enabled at (6283): [&lt;ffff000011326520&gt;] _raw_spin_unlock_irqrestore+0x90/0xa0  hardirqs last disabled at (6284): [&lt;ffff0000113262b0&gt;] _raw_spin_lock_irqsave+0x30/0x78  softirqs last  enabled at (2430): [&lt;ffff000010088ef8&gt;] fpsimd_restore_current_state+0x60/0xe8  softirqs last disabled at (2427): [&lt;ffff000010088ec0&gt;] fpsimd_restore_current_state+0x28/0xe8  Preemption disabled at:  [&lt;ffff000011324a4c&gt;] rt_mutex_futex_unlock+0x4c/0xb0  CPU: 3 PID: 3447 Comm: make Tainted: G        W         5.2.14-rt7-01890-ge6e057589653 #911  Call trace:    dump_backtrace+0x0/0x148    show_stack+0x14/0x20    dump_stack+0xbc/0x104    ___might_sleep+0x154/0x210    rt_spin_lock+0x68/0xa0    ubsan_prologue+0x30/0x68    handle_overflow+0x64/0xe0    __ubsan_handle_add_overflow+0x10/0x18    __lock_acquire+0x1c28/0x2a28    lock_acquire+0xf0/0x370    _raw_spin_lock_irqsave+0x58/0x78    rt_mutex_futex_unlock+0x4c/0xb0    rt_spin_unlock+0x28/0x70    get_page_from_freelist+0x428/0x2b60    __alloc_pages_nodemask+0x174/0x1708    alloc_pages_vma+0x1ac/0x238    __handle_mm_fault+0x4ac/0x10b0    handle_mm_fault+0x1d8/0x3b0    do_page_fault+0x1c8/0x4f8    do_translation_fault+0xb8/0xe0    do_mem_abort+0x3c/0x98    el0_da+0x20/0x24The spin_lock() will protect against multiple CPUs to output a reporttogether, I guess to prevent them from being interleaved.  However, theycan still interleave with other messages (and even splat from__might_sleep).So the lock usefulness seems pretty limited.  Rather than trying toaccomodate RT-system by switching to a raw_spin_lock(), the lock is nowcompletely dropped.Link: http://lkml.kernel.org/r/20190920100835.14999-1-julien.grall@arm.comSigned-off-by: Julien Grall &lt;julien.grall@arm.com&gt;Reported-by: Andre Przywara &lt;andre.przywara@arm.com&gt;Acked-by: Andrey Ryabinin &lt;aryabinin@virtuozzo.com&gt;Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;Cc: Sebastian Andrzej Siewior &lt;bigeasy@linutronix.de&gt;Cc: Steven Rostedt &lt;rostedt@goodmis.org&gt;Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Thu, 05 Dec 2019 00:52:53 +0000</pubDate>
        <dc:creator>Julien Grall &lt;julien.grall@arm.com&gt;</dc:creator>
    </item>
<item>
        <title>c12d3362 - int128: move __uint128_t compiler test to Kconfig</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#c12d3362</link>
        <description>int128: move __uint128_t compiler test to KconfigIn order to use 128-bit integer arithmetic in C code, the architectureneeds to have declared support for it by setting ARCH_SUPPORTS_INT128,and it requires a version of the toolchain that supports this at buildtime. This is why all existing tests for ARCH_SUPPORTS_INT128 also testwhether __SIZEOF_INT128__ is defined, since this is only the case forcompilers that can support 128-bit integers.Let&apos;s fold this additional test into the Kconfig declaration ofARCH_SUPPORTS_INT128 so that we can also use the symbol in Makefiles,e.g., to decide whether a certain object needs to be included in thefirst place.Cc: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;Signed-off-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Fri, 08 Nov 2019 12:22:27 +0000</pubDate>
        <dc:creator>Ard Biesheuvel &lt;ardb@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>9a50dcaf - ubsan, x86: Annotate and allow __ubsan_handle_shift_out_of_bounds() in uaccess regions</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#9a50dcaf</link>
        <description>ubsan, x86: Annotate and allow __ubsan_handle_shift_out_of_bounds() in uaccess regionsThe new check_zeroed_user() function uses variable shifts inside of auser_access_begin()/user_access_end() section and that results in GCCemitting __ubsan_handle_shift_out_of_bounds() calls, even thoughthrough value range analysis it would be able to see that the UB inquestion is impossible.Annotate and whitelist this UBSAN function; continued use ofuser_access_begin()/user_access_end() will undoubtedly result infurther uses of function.Reported-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;Tested-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;Acked-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;Acked-by: Christian Brauner &lt;christian.brauner@ubuntu.com&gt;Cc: 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: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;Cc: cyphar@cyphar.comCc: keescook@chromium.orgCc: linux@rasmusvillemoes.dkFixes: f5a1a536fa14 (&quot;lib: introduce copy_struct_from_user() helper&quot;)Link: https://lkml.kernel.org/r/20191021131149.GA19358@hirez.programming.kicks-ass.netSigned-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Mon, 21 Oct 2019 13:11:49 +0000</pubDate>
        <dc:creator>Peter Zijlstra &lt;peterz@infradead.org&gt;</dc:creator>
    </item>
<item>
        <title>d2912cb1 - treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/lib/ubsan.c#d2912cb1</link>
        <description>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500Based on 2 normalized pattern(s):  this program is free software you can redistribute it and or modify  it under the terms of the gnu general public license version 2 as  published by the free software foundation  this program is free software you can redistribute it and or modify  it under the terms of the gnu general public license version 2 as  published by the free software foundation #extracted by the scancode license scanner the SPDX license identifier  GPL-2.0-onlyhas been chosen to replace the boilerplate/reference in 4122 file(s).Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;Reviewed-by: Enrico Weigelt &lt;info@metux.net&gt;Reviewed-by: Kate Stewart &lt;kstewart@linuxfoundation.org&gt;Reviewed-by: Allison Randal &lt;allison@lohutok.net&gt;Cc: linux-spdx@vger.kernel.orgLink: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.deSigned-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/lib/ubsan.c</description>
        <pubDate>Tue, 04 Jun 2019 08:11:33 +0000</pubDate>
        <dc:creator>Thomas Gleixner &lt;tglx@linutronix.de&gt;</dc:creator>
    </item>
</channel>
</rss>
