openbmc / linux

OpenBMC Linux kernel source tree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UBSAN: Undefined behaviour cgroup_mkdir

shenki opened this issue · comments

4.18.8-00344-gbb5e0c8 with UBSAN enabled on ast2400

[  413.072688] ================================================================================
[  413.081278] UBSAN: Undefined behaviour in ./arch/arm/include/asm/bitops.h:297:17
[  413.088780] negation of -2147483648 cannot be represented in type 'int':
[  413.095627] CPU: 0 PID: 1 Comm: systemd Tainted: G                T 4.18.8-00344-gbb5e0c8-dirty #21
[  413.104749] Hardware name: Generic DT based system
[  413.109796] [<8010c2cc>] (unwind_backtrace) from [<80108d70>] (show_stack+0x28/0x2c)
[  413.117768] [<80108d70>] (show_stack) from [<8088a518>] (dump_stack+0x24/0x2c)
[  413.125207] [<8088a518>] (dump_stack) from [<804852a0>] (ubsan_epilogue+0x18/0x4c)
[  413.133003] [<804852a0>] (ubsan_epilogue) from [<80485a48>] (__ubsan_handle_negate_overflow+0xc8/0xd8)
[  413.142528] [<80485a48>] (__ubsan_handle_negate_overflow) from [<80897614>] (idr_get_free+0x464/0x570)
[  413.152049] [<80897614>] (idr_get_free) from [<8088ef94>] (idr_alloc_u32+0xa4/0x21c)
[  413.160014] [<8088ef94>] (idr_alloc_u32) from [<8088f180>] (idr_alloc+0x74/0x114)
[  413.167720] [<8088f180>] (idr_alloc) from [<801a28f8>] (cgroup_mkdir+0x298/0x640)
[  413.175455] [<801a28f8>] (cgroup_mkdir) from [<8033e3b0>] (kernfs_iop_mkdir+0xe0/0x120)
[  413.183700] [<8033e3b0>] (kernfs_iop_mkdir) from [<802c245c>] (vfs_mkdir+0xfc/0x154)
[  413.191665] [<802c245c>] (vfs_mkdir) from [<802c2560>](do_mkdirat+0xac/0x12c)
[  413.199096] [<802c2560>] (do_mkdirat) from [<802c2650>] (sys_mkdir+0x34/0x38)
[  413.206439] [<802c2650>] (sys_mkdir) from [<80101000>] (ret_fast_syscall+0x0/0x54)
[  413.214108] Exception stack(0x9d477fa8 to 0x9d477ff0)
[  413.219345] 7fa0:                   00000000 00000000 020381a0 000001ed a1373500 a1373500
[  413.227719] 7fc0: 00000000 00000000 76fbf900 00000027 02002fd8 00000001 00000000 7ee397c4
[  413.236034] 7fe0: 76f8b470 7ee3969c 76e5b588 76bf44cc
[  413.241171] ================================================================================