zhongjiang
4ea77014af
kernel/signal.c: avoid undefined behaviour in kill_something_info
When running kill(72057458746458112, 0) in userspace I hit the following
issue.
UBSAN: Undefined behaviour in kernel/signal.c:1462:11
negation of -2147483648 cannot be represented in type 'int':
CPU: 226 PID: 9849 Comm: test Tainted: G B ---- ------- 3.10.0-327.53.58.70.x86_64_ubsan+ #116
Hardware name: Huawei Technologies Co., Ltd. RH8100 V3/BC61PBIA, BIOS BLHSV028 11/11/2014
Call Trace:
dump_stack+0x19/0x1b
ubsan_epilogue+0xd/0x50
__ubsan_handle_negate_overflow+0x109/0x14e
SYSC_kill+0x43e/0x4d0
SyS_kill+0xe/0x10
system_call_fastpath+0x16/0x1b
Add code to avoid the UBSAN detection.
[akpm@linux-foundation.org: tweak comment]
Link: http://lkml.kernel.org/r/1496670008-59084-1-git-send-email-zhongjiang@huawei.com
Signed-off-by: zhongjiang <zhongjiang@huawei.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Xishi Qiu <qiuxishi@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-07-10 16:32:36 -07:00
..
2017-07-05 16:05:24 -07:00
2017-07-06 16:24:34 -07:00
2017-06-09 11:47:38 +02:00
2017-03-02 08:42:34 +01:00
2017-07-05 12:31:59 -07:00
2017-05-12 15:57:15 -07:00
2017-07-09 10:24:46 -07:00
2017-06-20 10:42:19 +02:00
2017-07-09 10:47:50 -07:00
2017-07-06 16:24:30 -07:00
2017-07-05 11:11:26 -07:00
2017-06-08 18:52:45 -07:00
2017-07-05 16:28:48 +02:00
2017-07-05 15:34:35 -07:00
2017-07-09 10:49:47 -07:00
2017-03-02 08:42:39 +01:00
2017-05-23 10:01:37 +02:00
2017-05-03 11:05:15 -07:00
2017-05-03 11:05:15 -07:00
2017-05-03 11:05:15 -07:00
2017-07-05 11:24:05 -07:00
2017-06-12 18:07:43 -04:00
2017-05-02 10:16:05 -04:00
2017-07-05 11:24:05 -07:00
2017-01-12 07:01:56 -07:00
2017-07-06 20:57:13 -07:00
2016-12-24 11:46:01 -08:00
2017-07-06 10:55:10 +02:00
2017-05-08 17:15:11 -07:00
2017-05-18 10:30:19 -06:00
2017-03-02 08:42:39 +01:00
2017-07-08 11:26:39 -04:00
2017-07-10 16:32:35 -07:00
2017-07-09 10:52:16 -07:00
2016-12-24 11:46:01 -08:00
2017-07-03 21:13:25 -07:00
2017-07-10 16:32:34 -07:00
2017-05-08 17:15:10 -07:00
2017-05-26 10:10:45 +02:00
2017-07-10 16:32:34 -07:00
2016-10-25 11:31:51 +02:00
2017-05-08 17:15:12 -07:00
2017-06-30 10:19:19 +02:00
2017-06-30 02:04:10 -04:00
2017-03-10 20:55:09 +01:00
2017-03-02 08:42:39 +01:00
2017-07-08 11:05:35 +02:00
2017-07-10 16:32:34 -07:00
2017-03-17 10:18:47 -04:00
2017-03-02 08:42:39 +01:00
2017-05-08 17:15:11 -07:00
2017-01-23 11:32:16 -08:00
2017-07-06 16:24:32 -07:00
2017-07-10 16:32:35 -07:00
2017-02-24 17:46:56 -08:00
2017-03-13 15:57:41 -03:00
2017-05-26 10:10:37 +02:00
2017-03-02 08:42:34 +01:00
2017-04-18 10:37:13 +02:00
2017-05-13 17:26:01 -05:00
2017-07-06 16:24:33 -07:00
2017-03-02 08:42:39 +01:00
2017-05-23 07:40:44 -05:00
2017-05-02 11:38:06 -07:00
2017-06-26 09:24:00 -07:00
2017-07-10 16:32:36 -07:00
2017-05-23 10:01:32 +02:00
2017-03-02 08:42:35 +01:00
2017-04-11 09:06:32 +02:00
2017-03-08 09:18:02 +01:00
2017-05-26 10:10:36 +02:00
2016-12-22 22:58:37 -05:00
2017-07-10 16:32:31 -07:00
2017-06-05 16:59:15 +02:00
2017-05-08 17:15:10 -07:00
2017-05-08 17:15:12 -07:00
2017-03-02 08:42:27 +01:00
2017-03-02 08:42:35 +01:00
2017-03-02 08:42:39 +01:00
2017-03-06 15:26:37 -06:00
2017-03-02 08:42:31 +01:00
2016-09-05 13:52:39 +02:00
2017-03-02 08:42:29 +01:00
2017-03-02 08:42:29 +01:00
2017-03-03 01:45:36 +01:00
2017-03-02 08:42:38 +01:00
2017-03-02 08:42:34 +01:00
2017-03-02 08:42:34 +01:00
2017-06-20 12:18:27 +02:00