Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_kasan.c Create Date:2022-07-28 06:29:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kasan_bitops

Proto:static noinline void __init kasan_bitops(void)

Type:void

Parameter:Nothing

670  bits = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
671  If Not bits Then Return
679  pr_info("out-of-bounds in set_bit\n")
680  set_bit - Atomically set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* This is a relaxed atomic operation (no implied memory barriers).* Note that @nr may be almost arbitrarily large; this function is not
682  pr_info("out-of-bounds in __set_bit\n")
683  __set_bit - Set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* Unlike set_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation* succeeds.
685  pr_info("out-of-bounds in clear_bit\n")
686  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
688  pr_info("out-of-bounds in __clear_bit\n")
689  __clear_bit - Clears a bit in memory*@nr: the bit to clear*@addr: the address to start counting from* Unlike clear_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation
691  pr_info("out-of-bounds in clear_bit_unlock\n")
692  lear_bit_unlock - Clear a bit in memory, for unlock*@nr: the bit to set*@addr: the address to start counting from* This operation is atomic and provides release barrier semantics.
694  pr_info("out-of-bounds in __clear_bit_unlock\n")
695  __clear_bit_unlock - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a non-atomic operation but implies a release barrier before the* memory operation. It can be used for an unlock if no other CPUs can
697  pr_info("out-of-bounds in change_bit\n")
698  hange_bit - Toggle a bit in memory*@nr: Bit to change*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).* Note that @nr may be almost arbitrarily large; this function is not
700  pr_info("out-of-bounds in __change_bit\n")
701  __change_bit - Toggle a bit in memory*@nr: the bit to change*@addr: the address to start counting from* Unlike change_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation
706  pr_info("out-of-bounds in test_and_set_bit\n")
707  st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier).
709  pr_info("out-of-bounds in __test_and_set_bit\n")
710  __test_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This operation is non-atomic. If two instances of this operation race, one* can appear to succeed but actually fail.
712  pr_info("out-of-bounds in test_and_set_bit_lock\n")
713  st_and_set_bit_lock - Set a bit and return its old value, for lock*@nr: Bit to set*@addr: Address to count from* This operation is atomic and provides acquire barrier semantics if* the returned value is 0.* It can be used to implement bit locks.
715  pr_info("out-of-bounds in test_and_clear_bit\n")
716  st_and_clear_bit - Clear a bit and return its old value*@nr: Bit to clear*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier).
718  pr_info("out-of-bounds in __test_and_clear_bit\n")
719  __test_and_clear_bit - Clear a bit and return its old value*@nr: Bit to clear*@addr: Address to count from* This operation is non-atomic. If two instances of this operation race, one* can appear to succeed but actually fail.
721  pr_info("out-of-bounds in test_and_change_bit\n")
722  st_and_change_bit - Change a bit and return its old value*@nr: Bit to change*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier).
724  pr_info("out-of-bounds in __test_and_change_bit\n")
725  __test_and_change_bit - Change a bit and return its old value*@nr: Bit to change*@addr: Address to count from* This operation is non-atomic. If two instances of this operation race, one* can appear to succeed but actually fail.
727  pr_info("out-of-bounds in test_bit\n")
728  st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
731  pr_info("out-of-bounds in clear_bit_unlock_is_negative_byte\n")
732  lear_bit_unlock_is_negative_byte - Clear a bit in memory and test if bottom* byte is negative, for unlock
734  kfree(bits)
Caller
NameDescribe
kmalloc_tests_init