/ 详情

UBSAN: Undefined behaviour in drivers/char/random.c

Fixing
Bug
Opened this issue  
2020-03-28 09:47

[20535.919065] ===========================================================================
[20535.919080] UBSAN: Undefined behaviour in drivers/char/random.c:705:19
[20535.919089] signed integer overflow:
[20535.919095] 1024 + 2147483568 cannot be represented in type 'int'
[20535.919109] CPU: 1 PID: 1476284 Comm: exe Kdump: loaded Tainted: G
[20535.919115] Hardware name: QEMU KVM Virtual Machine, BIOS 0.0.0 02/06/2015
[20535.919119] Call trace:
[20535.919139] dump_backtrace+0x0/0x310
[20535.919147] show_stack+0x28/0x38
[20535.919159] dump_stack+0xd8/0x108
[20535.919172] ubsan_epilogue+0x1c/0x94
[20535.919180] handle_overflow+0x14c/0x19c
[20535.919190] __ubsan_handle_add_overflow+0x34/0x44
[20535.919200] credit_entropy_bits+0x5d0/0x658
[20535.919207] _xfer_secondary_pool+0x120/0x3c0
[20535.919214] xfer_secondary_pool+0xb8/0xd0
[20535.919222] _random_read.part.13+0x10c/0x790
[20535.919229] random_read+0x68/0x88
[20535.919239] __vfs_read+0xe0/0x320
[20535.919247] vfs_read+0xbc/0x1c0
[20535.919255] ksys_read+0xdc/0x1b8
[20535.919263] __arm64_sys_read+0x50/0x60
[20535.919272] el0_svc_common+0xb4/0x1d8
[20535.919280] el0_svc_handler+0x50/0xa8
[20535.919287] el0_svc+0x8/0xc
[20535.919291] =============================================================================

Attachments

Comments (3)

Storage-X created缺陷
Storage-X set related repository to openEuler/kernel
展开全部操作日志

Hey @Storage-X , Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot .
That means the developpers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.

kernel version: 4.19.90

Please add the steps to reproduce it

Hexiaowen set assignee to XieXiuQi
XieXiuQi changed assignee from XieXiuQi to not set
yanzh_h set assignee to wangxiongfeng
yanzh_h assigned collaborator XieXiuQi
YangYingliang changed issue state from 待办的 to 修复中

Sign in to comment

状态
Assignees
Projects
Milestones
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(4)
5329419 openeuler ci bot 1578984659 5596086 wubo009 1600773431