函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_kasan.c Create Date:2022-07-27 07:26:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kasan_bitops

函数原型:static noinline void __init kasan_bitops(void)

返回类型:void

参数:

670  bits等于分配内存并置零
671  如果非bits则返回
679  打印信息("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  打印信息("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  打印信息("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  打印信息("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  打印信息("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  打印信息("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  打印信息("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  打印信息("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  打印信息("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  打印信息("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  打印信息("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  打印信息("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  打印信息("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  打印信息("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  打印信息("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  打印信息("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  打印信息("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)
调用者
名称描述
kmalloc_tests_init