]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
LoongArch: Give more information if kmem access failed
authorTiezhu Yang <yangtiezhu@loongson.cn>
Mon, 16 Mar 2026 02:36:01 +0000 (10:36 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Mon, 16 Mar 2026 02:36:01 +0000 (10:36 +0800)
commita47f0754bdd01f971c9715acdbdd3a07515c8f83
tree64f09178ae9366c7bfac74f2f89b1da1f216903a
parent8a69d02481ff97683952e94b9d1eae29b45f88fd
LoongArch: Give more information if kmem access failed

If memory access such as copy_{from, to}_kernel_nofault() failed, its
users do not know what happened, so it is very useful to print the
exception code for such cases. Furthermore, it is better to print the
caller function to know where is the entry.

Here are the low level call chains:

  copy_from_kernel_nofault()
    copy_from_kernel_nofault_loop()
      __get_kernel_nofault()

  copy_to_kernel_nofault()
    copy_to_kernel_nofault_loop()
      __put_kernel_nofault()

Cc: stable@vger.kernel.org
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/uaccess.h