aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib
AgeCommit message (Expand)AuthorFilesLines
2023-10-25lib/Kconfig.debug: do not enable DEBUG_PREEMPT by defaultHyeonggon Yoo1-1/+4
2023-10-19lib/test_meminit: fix off-by-one error in test_pages()Greg Kroah-Hartman1-1/+1
2023-09-23kobject: Add sanity check for kset->kobj.ktype in kset_register()Zhen Lei1-0/+5
2023-09-23crypto: lib/mpi - avoid null pointer deref in mpi_cmp_ui()Mark O'Donovan1-2/+6
2023-09-19lib: test_scanf: Add explicit type cast to result initialization in test_numb...Nathan Chancellor1-1/+1
2023-09-19idr: fix param name in idr_alloc_cyclic() docAriel Marcovitch1-1/+1
2023-09-19lib/test_meminit: allocate pages up to order MAX_ORDERAndrew Donnellan1-1/+1
2023-08-30radix tree: remove unused variableArnd Bergmann1-1/+0
2023-08-30lib/clz_ctz.c: Fix __clzdi2() and __ctzdi2() for 32-bit kernelsHelge Deller1-26/+6
2023-07-23test_firmware: return ENOMEM instead of ENOSPC on failed memory allocationMirsad Goran Todorovac1-6/+6
2023-07-23lib/ts_bm: reset initial match offset for every block of textJeremy Sowden1-1/+3
2023-06-21test_firmware: fix a memory leak with reqs bufferMirsad Goran Todorovac1-0/+10
2023-06-21test_firmware: prevent race conditions by a correct implementation of lockingMirsad Goran Todorovac1-17/+35
2023-06-21test_firmware: Use kstrtobool() instead of strtobool()Christophe JAILLET1-1/+2
2023-06-14Revert "debugobject: Ensure pool refill (again)"Greg Kroah-Hartman1-15/+6
2023-06-14lib: cpu_rmap: Fix potential use-after-free in irq_cpu_rmap_release()Ben Hutchings1-1/+1
2023-06-09test_firmware: fix the memory leak of the allocated firmware bufferMirsad Goran Todorovac1-1/+18
2023-05-30debugobjects: Don't wake up kswapd from fill_pool()Tetsuo Handa1-1/+1
2023-05-24lib: cpu_rmap: Avoid use after free on rmap->obj array entriesEli Cohen1-1/+4
2023-05-24linux/dim: Do nothing if no time delta between samplesRoy Novich3-4/+7
2023-05-11debugobject: Ensure pool refill (again)Thomas Gleixner1-6/+15
2023-05-11debugobject: Prevent init race with static objectsThomas Gleixner1-59/+66
2023-03-10kobject: Fix slab-out-of-bounds in fill_kobj_path()Wang Hai1-2/+10
2023-03-10kobject: modify kobject_get_path() to take a const *Greg Kroah-Hartman1-5/+5
2023-03-10printf: fix errname.c listArnd Bergmann1-8/+14
2023-03-10lib/mpi: Fix buffer overrun when SG is too longHerbert Xu1-1/+2
2023-02-25lib/Kconfig.debug: Allow BTF + DWARF5 with pahole 1.21+Nathan Chancellor1-1/+1
2023-02-25lib/Kconfig.debug: Use CONFIG_PAHOLE_VERSIONNathan Chancellor1-1/+1
2023-02-25uaccess: Add speculation barrier to copy_from_user()Dave Hansen1-0/+7
2023-02-01netlink: prevent potential spectre v1 gadgetsEric Dumazet1-0/+3
2023-02-01panic: Consolidate open-coded panic_on_warn checksKees Cook1-2/+1
2023-02-01ubsan: no need to unset panic_on_warn in ubsan_epilogue()Tiezhu Yang1-9/+1
2023-02-01lockref: stop doing cpu_relax in the cmpxchg loopMateusz Guzik1-1/+0
2022-12-31overflow: Implement size_t saturating arithmetic helpersKees Cook1-0/+98
2022-12-31test_firmware: fix memory leak in test_firmware_init()Zhengchao Shao1-0/+1
2022-12-31lib/notifier-error-inject: fix error when writing -errno to debugfs fileAkinobu Mita1-1/+1
2022-12-31lib/fonts: fix undefined behavior in bit shift for get_default_fontGaosheng Cui1-2/+2
2022-12-31lib/debugobjects: fix stat count and optimize debug_objects_mem_initwuchi1-0/+10
2022-12-08Kconfig.debug: provide a little extra FRAME_WARN leeway when KASAN is enabledLee Jones1-0/+1
2022-12-08parisc: Increase FRAME_WARN to 2048 bytes on pariscHelge Deller1-2/+3
2022-12-08error-injection: Add prompt for function error injectionSteven Rostedt (Google)1-1/+7
2022-12-02lib/vdso: use "grep -E" instead of "egrep"Greg Kroah-Hartman1-1/+1
2022-10-26lib/Kconfig.debug: Add check for non-constant .{s,u}leb128 support to DWARF5Nathan Chancellor1-2/+7
2022-10-26Kconfig.debug: add toolchain checks for DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULTMasahiro Yamada1-0/+1
2022-10-26Kconfig.debug: simplify the dependency of DEBUG_INFO_DWARF4/5Masahiro Yamada1-1/+1
2022-10-26dyndbg: drop EXPORTed dynamic_debug_exec_queriesJim Cromie1-29/+0
2022-10-26dyndbg: let query-modname override actual module nameJim Cromie1-4/+7
2022-10-26dyndbg: fix static_branch manipulationJim Cromie1-2/+3
2022-10-26once: add DO_ONCE_SLOW() for sleepable contextsEric Dumazet1-0/+30
2022-09-05crypto: lib - remove unneeded selection of XOR_BLOCKSEric Biggers1-1/+0
2022-08-31ratelimit: Fix data-races in ___ratelimit().Kuniyuki Iwashima1-3/+9
2022-08-25lib/list_debug.c: Detect uninitialized listsGuenter Roeck1-2/+10
2022-08-17crypto: lib/blake2s - reduce stack frame usage in self testJason A. Donenfeld1-3/+3
2022-08-17crypto: blake2s - remove shash moduleJason A. Donenfeld2-7/+71
2022-08-17lib/smp_processor_id: fix imbalanced instrumentation_end() callTetsuo Handa1-1/+1
2022-08-17selftests/livepatch: better synchronize test_klp_callbacks_busyJoe Lawrence1-0/+8
2022-08-17lib/test_hmm: avoid accessing uninitialized pagesMiaohe Lin1-2/+8
2022-08-17test_bpf: fix incorrect netdev featuresJian Shen1-2/+2
2022-08-17kasan: test: Silence GCC 12 warningsKees Cook1-0/+10
2022-08-17fix short copy handling in copy_mc_pipe_to_iter()Al Viro1-4/+11
2022-07-12ida: don't use BUG_ON() for debuggingLinus Torvalds1-1/+2
2022-06-22crypto: memneq - move into lib/Jason A. Donenfeld4-0/+173
2022-06-14iov_iter: fix build issue due to possible type mis-matchLinus Torvalds1-2/+2
2022-06-14nodemask: Fix return values to be unsignedKees Cook1-2/+2
2022-06-14iov_iter: Fix iter_xarray_get_pages{,_alloc}()David Howells1-16/+4
2022-06-14bootconfig: Make the bootconfig.o as a normal object fileMasami Hiramatsu1-1/+1
2022-06-09list: test: Add a test for list_is_head()David Gow1-0/+19
2022-06-09kunit: fix debugfs code to use enum kunit_status, not boolDaniel Latypov1-1/+1
2022-06-06lib/crypto: add prompts back to crypto librariesJustin M. Forbes2-5/+14
2022-06-06assoc_array: Fix BUG_ON during garbage collectStephen Brennan1-0/+8
2022-06-06percpu_ref_init(): clean ->percpu_count_ref on failureAl Viro1-0/+1
2022-05-30random: remove ratelimiting for in-kernel unseeded randomnessJason A. Donenfeld1-2/+1
2022-05-30siphash: use one source of truth for siphash permutationsJason A. Donenfeld1-22/+10
2022-05-30random: replace custom notifier chain with standard oneJason A. Donenfeld2-9/+14
2022-05-30random: remove unused tracepointsJason A. Donenfeld1-2/+1
2022-05-30lib/crypto: blake2s: avoid indirect calls to compression function for Clang CFIJason A. Donenfeld1-2/+2
2022-05-30lib/crypto: sha1: re-roll loops to reduce code sizeJason A. Donenfeld1-81/+14
2022-05-30lib/crypto: blake2s: move hmac construction into wireguardJason A. Donenfeld2-68/+0
2022-05-30lib/crypto: blake2s: include as built-inJason A. Donenfeld4-29/+15
2022-05-18dim: initialize all struct fieldsJesse Brandeburg1-22/+22
2022-05-09hex2bin: fix access beyond string endMikulas Patocka1-3/+6
2022-05-09hex2bin: make the function hex_to_bin constant-timeMikulas Patocka1-7/+25
2022-05-01iov_iter: Introduce nofault flag to disable page faultsAndreas Gruenbacher1-5/+15
2022-05-01iov_iter: Introduce fault_in_iov_iter_writeableAndreas Gruenbacher1-0/+39
2022-05-01iov_iter: Turn iov_iter_fault_in_readable into fault_in_iov_iter_readableAndreas Gruenbacher1-12/+21
2022-05-01gup: Turn fault_in_pages_{readable,writeable} into fault_in_{readable,writeable}Andreas Gruenbacher1-6/+4
2022-04-13stacktrace: move filter_irq_stacks() to kernel/stacktrace.cMarco Elver1-24/+0
2022-04-13ubsan: remove CONFIG_UBSAN_OBJECT_SIZEKees Cook2-35/+0
2022-04-13lz4: fix LZ4_decompress_safe_partial read out of boundGuo Xuenan1-2/+6
2022-04-13lib/Kconfig.debug: add ARCH dependency for FUNCTION_ALIGN optionFeng Tang1-1/+2
2022-04-13lib/logic_iomem: correct fallback config referencesJohannes Berg1-4/+4
2022-04-08XArray: Update the LRU list in xas_split()Matthew Wilcox (Oracle)1-0/+2
2022-04-08XArray: Fix xas_create_range() when multi-order entry presentMatthew Wilcox (Oracle)2-0/+24
2022-04-08lib/test_lockup: fix kernel pointer check for separate address spacesArnd Bergmann1-3/+8
2022-04-08uaccess: fix type mismatch warnings from access_ok()Arnd Bergmann1-2/+2
2022-04-08lib/raid6/test/Makefile: Use $(pound) instead of \# for Make 4.3Paul Menzel1-1/+3
2022-04-08lib/test: use after free in register_test_dev_kmod()Dan Carpenter1-0/+1
2022-04-08vsprintf: Fix %pK with kptr_restrict == 0Christophe Leroy1-15/+21
2022-04-08lib: uninline simple_strntoull() as wellAlexey Dobriyan1-2/+1
2022-04-08vsprintf: Fix potential unaligned accessAndy Shevchenko1-5/+7
2022-04-08kunit: make kunit_test_timeout compatible with commentPeng Liu1-1/+1
2022-04-08lib/raid6/test: fix multiple definition linking errorDirk Müller1-1/+0
2022-03-19ARM: 9178/1: fix unmet dependency on BITREVERSE for HAVE_ARCH_BITREVERSEJulian Braha1-1/+0
2022-02-23lib/iov_iter: initialize "flags" in new pipe_bufferMax Kellermann1-0/+2
2022-01-27lib/test_meminit: destroy cache in kmem_cache_alloc_bulk() testAndrey Konovalov1-0/+1
2022-01-27mm/hmm.c: allow VM_MIXEDMAP to work with hmm_range_faultAlistair Popple1-0/+24
2022-01-27kunit: Don't crash if no parameters are generatedDavid Gow1-8/+10
2022-01-27lib/mpi: Add the return value check of kcalloc()Zizhuang Deng1-0/+2
2022-01-27lib/logic_iomem: Fix operation on 32-bitJohannes Berg1-3/+3
2022-01-27lib/logic_iomem: Fix 32-bit buildJohannes Berg1-6/+7
2021-12-08siphash: use _unaligned version by defaultArnd Bergmann1-6/+6
2021-11-25printk: restore flushing of NMI buffers on remote CPUs after NMI backtracesNicholas Piggin1-0/+6
2021-11-21string: uninline memcpy_and_padGuenter Roeck1-0/+20
2021-11-18dyndbg: make dyndbg a known cli paramAndrew Halaney1-0/+12
2021-11-18bpf/tests: Fix error in tail call limit testsJohan Almbladh1-10/+27
2021-11-18crypto: sm4 - Do not change section of ck and sboxNathan Chancellor1-2/+2
2021-11-18lib/xz: Validate the value before assigning it to an enum variableLasse Collin1-3/+3
2021-11-18lib/xz: Avoid overlapping memcpy() with invalid input with in-place decompres...Lasse Collin2-3/+20
2021-11-18iov_iter: Fix iov_iter_get_pages{,_alloc} page fault return valueAndreas Gruenbacher1-2/+3
2021-11-12kfence: default to dynamic branch instead of static keys modeMarco Elver1-11/+15
2021-10-11Merge tag 'linux-kselftest-kunit-fixes-5.15-rc6' of git://git.kernel.org/pub/...Linus Torvalds2-3/+3
2021-10-06bitfield: build kunit tests without structleak pluginArnd Bergmann1-1/+1
2021-10-01kunit: fix reference count leak in kfree_at_endXiyu Yang1-2/+2
2021-09-24lib/zlib_inflate/inffast: check config in C to avoid unused function warningPaul Menzel1-7/+6
2021-09-24xtensa: increase size of gcc stack frame checkGuenter Roeck1-1/+1
2021-09-24kasan: fix Kconfig check of CC_HAS_WORKING_NOSANITIZE_ADDRESSMarco Elver1-0/+2
2021-09-23Merge tag 'net-5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-1/+1
2021-09-19pci_iounmap'2: Electric Boogaloo: try to make sense of it allLinus Torvalds1-0/+43
2021-09-17Merge tag 'iov_iter.3-5.15-2021-09-17' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+36
2021-09-17net: update NXP copyright textVladimir Oltean1-1/+1
2021-09-14memblock: introduce saner 'memblock_free_ptr()' interfaceLinus Torvalds1-1/+1
2021-09-14iov_iter: add helper to save iov_iter stateJens Axboe1-0/+36
2021-09-13Merge branch 'gcc-min-version-5.1' (make gcc-5.1 the minimum version)Linus Torvalds1-1/+1
2021-09-13Kconfig.debug: drop GCC 5+ version check for DWARF5Nick Desaulniers1-1/+1
2021-09-11Merge tag 'trace-v5.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/ro...Linus Torvalds1-4/+4
2021-09-09bootconfig: Rename xbc_node_find_child() to xbc_node_find_subkey()Masami Hiramatsu1-4/+4
2021-09-09Merge tag 'for-linus-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-7/+9
2021-09-08Merge branch 'akpm' (patches from Andrew)Linus Torvalds8-32/+37
2021-09-08Kconfig.debug: drop selecting non-existing HARDLOCKUP_DETECTOR_ARCHLukas Bulwahn1-1/+0
2021-09-08lib/iov_iter.c: fix kernel-doc warningsRandy Dunlap1-2/+6
2021-09-08lib/dump_stack: correct kernel-doc notationRandy Dunlap1-1/+2
2021-09-08lib/test: convert test_sort.c to use KUnitDaniel Latypov2-23/+22
2021-09-08math: RATIONAL_KUNIT_TEST should depend on RATIONAL instead of selecting itGeert Uytterhoeven1-2/+1
2021-09-08math: make RATIONAL tristateGeert Uytterhoeven2-1/+4
2021-09-08mm: introduce PAGEFLAGS_MASK to replace ((1UL << NR_PAGEFLAGS) - 1)Muchun Song2-2/+2
2021-09-06lib/test_scanf: split up number parsing test routinesLinus Torvalds1-8/+71
2021-09-04Merge tag 'denywrite-for-5.15' of git://github.com/davidhildenbrand/linuxLinus Torvalds1-3/+2
2021-09-03Merge tag 'kbuild-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds5-5/+6
2021-09-03Merge branch 'akpm' (patches from Andrew)Linus Torvalds4-38/+72
2021-09-03kasan: test: avoid corrupting memory in kasan_rcu_uafAndrey Konovalov1-1/+1
2021-09-03kasan: test: avoid corrupting memory in copy_user_testAndrey Konovalov1-10/+8
2021-09-03kasan: test: clean up ksize_uafAndrey Konovalov1-2/+2
2021-09-03kasan: test: only do kmalloc_uaf_memset for generic modeAndrey Konovalov1-0/+6
2021-09-03kasan: test: disable kmalloc_memmove_invalid_size for HW_TAGSAndrey Konovalov1-1/+7
2021-09-03kasan: test: avoid corrupting memory via memsetAndrey Konovalov1-11/+17
2021-09-03kasan: test: avoid writing invalid memoryAndrey Konovalov1-7/+7
2021-09-03kasan: test: rework kmalloc_oob_rightAndrey Konovalov1-2/+18
2021-09-03lib/test_vmalloc.c: add a new 'nr_pages' parameterUladzislau Rezki (Sony)1-1/+4
2021-09-03scatterlist: replace flush_kernel_dcache_page with flush_dcache_pageChristoph Hellwig1-3/+2
2021-09-03mm: remove VM_DENYWRITEDavid Hildenbrand1-3/+2
2021-09-03Makefile: remove stale cc-option checksNick Desaulniers1-0/+2
2021-09-02Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdmaLinus Torvalds2-63/+95
2021-09-02Merge tag 'for-5.15/parisc' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+1
2021-09-02Merge tag 'locking-debug-2021-09-01' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-12/+30
2021-09-02Merge tag 'hardening-v5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-67/+186
2021-09-02Merge tag 'linux-kselftest-kunit-5.15-rc1' of git://git.kernel.org/pub/scm/li...Linus Torvalds2-0/+112
2021-09-01Merge tag 'printk-for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds4-15/+20
2021-09-01Merge tag 'asm-generic-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-2/+8
2021-09-01Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds1-2/+0
2021-09-01Merge tag 'driver-core-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds2-0/+271
2021-08-31Merge tag 'net-next-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/ne...Linus Torvalds1-50/+2282
2021-08-31Merge tag 'nfsd-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linuxLinus Torvalds1-0/+7
2021-08-31Merge remote-tracking branch 'tip/sched/arm64' into for-next/coreCatalin Marinas4-7/+12
2021-08-30Merge tag 'for-5.15/block-2021-08-30' of git://git.kernel.dk/linux-blockLinus Torvalds1-27/+0
2021-08-30Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-2/+2
2021-08-30Merge tag 'locking-core-2021-08-30' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds2-9/+10
2021-08-30Merge tag 'core-debugobjects-2021-08-30' of git://git.kernel.org/pub/scm/linu...Linus Torvalds1-1/+6
2021-08-30Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds7-13/+195
2021-08-30Merge tag 'for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/li...Linus Torvalds1-0/+31
2021-08-30string: improve default out-of-line memcmp() implementationLinus Torvalds1-0/+16
2021-08-30Merge branch 'rework/printk_safe-removal' into for-linusPetr Mladek1-6/+7
2021-08-30Merge branch 'for-5.15-printk-index' into for-linusPetr Mladek69-1030/+2122
2021-08-30parisc: Increase size of gcc stack frame checkHelge Deller1-1/+1
2021-08-26lib/logic_iomem: fix sparse warningsJohannes Berg1-7/+9
2021-08-24lib/scatterlist: Fix wrong update of orig_nentsMaor Gottlieb2-51/+79
2021-08-24lib/scatterlist: Provide a dedicated function to support table appendMaor Gottlieb1-16/+20
2021-08-24block: remove CONFIG_DEBUG_BLOCK_EXT_DEVTChristoph Hellwig1-27/+0
2021-08-22lib/test_stackinit: Add assigned initializersKees Cook1-55/+114
2021-08-22lib/test_stackinit: Allow building stand-aloneKees Cook1-3/+69
2021-08-20SUNRPC: Add a /sys/kernel/debug/fail_sunrpc/ directoryChuck Lever1-0/+7
2021-08-19Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski1-1/+1
2021-08-19isystem: ship and use stdarg.hAlexey Dobriyan4-5/+4
2021-08-18Merge branch 'kcsan' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck...Ingo Molnar1-12/+30
2021-08-17lib/test_lockup: Adapt to changed variablesSebastian Andrzej Siewior1-3/+3
2021-08-17locking/rtmutex: Add mutex variant for RTThomas Gleixner1-5/+6
2021-08-17locking/mutex: Make mutex::wait_lock rawThomas Gleixner1-1/+1
2021-08-17bpf: Refactor BPF_PROG_RUN into a functionAndrii Nakryiko1-1/+1
2021-08-16bpf, tests: Fix spelling mistake "shoft" -> "shift"Colin Ian King1-1/+1
2021-08-13lib: use PFN_PHYS() in devmem_is_allowed()Liang Wang1-1/+1
2021-08-13kunit: Print test statistics on failureDavid Gow1-0/+109