Xingxing Su
5868347a19
MIPS: Do not use smp_processor_id() in preemptible code
Use preempt_disable() to fix the following bug under CONFIG_DEBUG_PREEMPT.
[ 21.915305] BUG: using smp_processor_id() in preemptible [00000000] code: qemu-system-mip/1056
[ 21.923996] caller is do_ri+0x1d4/0x690
[ 21.927921] CPU: 0 PID: 1056 Comm: qemu-system-mip Not tainted 5.8.0-rc2 #3
[ 21.934913] Stack : 0000000000000001 ffffffff81370000 ffffffff8071cd60 a80f926d5ac95694
[ 21.942984] a80f926d5ac95694 0000000000000000 98000007f0043c88 ffffffff80f2fe40
[ 21.951054] 0000000000000000 0000000000000000 0000000000000001 0000000000000000
[ 21.959123] ffffffff802d60cc 98000007f0043dd8 ffffffff81f4b1e8 ffffffff81f60000
[ 21.967192] ffffffff81f60000 ffffffff80fe0000 ffff000000000000 0000000000000000
[ 21.975261] fffffffff500cce1 0000000000000001 0000000000000002 0000000000000000
[ 21.983331] ffffffff80fe1a40 0000000000000006 ffffffff8077f940 0000000000000000
[ 21.991401] ffffffff81460000 98000007f0040000 98000007f0043c80 000000fffba8cf20
[ 21.999471] ffffffff8071cd60 0000000000000000 0000000000000000 0000000000000000
[ 22.007541] 0000000000000000 0000000000000000 ffffffff80212ab4 a80f926d5ac95694
[ 22.015610] ...
[ 22.018086] Call Trace:
[ 22.020562] [<ffffffff80212ab4>] show_stack+0xa4/0x138
[ 22.025732] [<ffffffff8071cd60>] dump_stack+0xf0/0x150
[ 22.030903] [<ffffffff80c73f5c>] check_preemption_disabled+0xf4/0x100
[ 22.037375] [<ffffffff80213b84>] do_ri+0x1d4/0x690
[ 22.042198] [<ffffffff8020b828>] handle_ri_int+0x44/0x5c
[ 24.359386] BUG: using smp_processor_id() in preemptible [00000000] code: qemu-system-mip/1072
[ 24.368204] caller is do_ri+0x1a8/0x690
[ 24.372169] CPU: 4 PID: 1072 Comm: qemu-system-mip Not tainted 5.8.0-rc2 #3
[ 24.379170] Stack : 0000000000000001 ffffffff81370000 ffffffff8071cd60 a80f926d5ac95694
[ 24.387246] a80f926d5ac95694 0000000000000000 98001007ef06bc88 ffffffff80f2fe40
[ 24.395318] 0000000000000000 0000000000000000 0000000000000001 0000000000000000
[ 24.403389] ffffffff802d60cc 98001007ef06bdd8 ffffffff81f4b818 ffffffff81f60000
[ 24.411461] ffffffff81f60000 ffffffff80fe0000 ffff000000000000 0000000000000000
[ 24.419533] fffffffff500cce1 0000000000000001 0000000000000002 0000000000000000
[ 24.427603] ffffffff80fe0000 0000000000000006 ffffffff8077f940 0000000000000020
[ 24.435673] ffffffff81460020 98001007ef068000 98001007ef06bc80 000000fffbbbb370
[ 24.443745] ffffffff8071cd60 0000000000000000 0000000000000000 0000000000000000
[ 24.451816] 0000000000000000 0000000000000000 ffffffff80212ab4 a80f926d5ac95694
[ 24.459887] ...
[ 24.462367] Call Trace:
[ 24.464846] [<ffffffff80212ab4>] show_stack+0xa4/0x138
[ 24.470029] [<ffffffff8071cd60>] dump_stack+0xf0/0x150
[ 24.475208] [<ffffffff80c73f5c>] check_preemption_disabled+0xf4/0x100
[ 24.481682] [<ffffffff80213b58>] do_ri+0x1a8/0x690
[ 24.486509] [<ffffffff8020b828>] handle_ri_int+0x44/0x5c
Signed-off-by: Xingxing Su <suxingxing@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2020-07-05 11:43:52 +02:00
..
2020-05-14 16:44:25 +02:00
2020-03-25 11:50:48 +01:00
2018-11-09 10:23:19 -08:00
2019-11-15 14:38:29 +01:00
2019-11-15 14:38:29 +01:00
2018-11-08 11:20:57 -08:00
2016-05-09 12:00:01 +02:00
2020-05-07 11:55:47 +02:00
2019-11-26 10:33:08 -08:00
2020-03-05 16:47:35 +01:00
2020-03-05 16:47:35 +01:00
2020-03-05 16:47:35 +01:00
2020-05-22 09:14:32 +02:00
2020-03-05 16:47:35 +01:00
2020-03-05 16:47:35 +01:00
2019-05-30 11:26:32 -07:00
2020-05-22 09:12:52 +02:00
2019-05-30 11:26:32 -07:00
2020-06-04 13:51:53 -04:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:37 -07:00
2020-05-22 09:14:06 +02:00
2019-05-30 11:26:37 -07:00
2019-05-21 11:28:39 +02:00
2018-07-17 09:40:17 -07:00
2019-05-30 11:26:32 -07:00
2020-05-22 09:09:01 +02:00
2019-06-11 15:46:21 -07:00
2020-05-27 13:11:49 +02:00
2019-06-19 17:09:55 +02:00
2020-04-24 18:37:23 +02:00
2020-03-05 16:47:35 +01:00
2020-05-07 11:55:47 +02:00
2019-05-21 11:28:39 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-02-19 12:45:01 -08:00
2019-04-09 16:21:30 -07:00
2019-03-28 11:35:58 -07:00
2019-07-16 19:23:22 -07:00
2018-08-01 13:20:27 -07:00
2019-06-19 17:09:06 +02:00
2020-05-17 10:25:26 +02:00
2018-06-19 15:00:12 -07:00
2019-06-19 17:09:55 +02:00
2020-05-07 13:11:38 +02:00
2020-01-06 09:45:59 +01:00
2019-06-03 11:49:37 +02:00
2018-11-26 22:49:14 -08:00
2020-05-07 11:55:47 +02:00
2020-06-09 09:39:13 -07:00
2018-06-14 12:21:18 +09:00
2020-05-02 13:21:09 +02:00
2019-06-19 17:09:55 +02:00
2019-10-07 09:42:17 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2020-05-22 09:09:01 +02:00
2020-06-09 09:39:13 -07:00
2019-06-19 17:09:55 +02:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:13 -07:00
2020-05-22 09:09:01 +02:00
2018-06-14 12:21:18 +09:00
2019-10-07 09:38:54 -07:00
2018-11-09 10:23:13 -08:00
2018-06-14 12:21:18 +09:00
2019-06-19 17:09:06 +02:00
2018-08-31 11:49:20 -07:00
2018-03-09 11:22:43 +00:00
2020-03-05 16:47:35 +01:00
2018-02-11 14:34:03 -08:00
2019-07-30 10:50:30 -07:00
2019-07-30 10:50:30 -07:00
2019-07-30 10:50:30 -07:00
2020-05-07 13:20:05 +02:00
2019-01-22 11:17:20 -08:00
2020-05-19 17:36:04 +02:00
2019-01-03 18:57:57 -08:00
2019-07-08 21:48:15 -07:00
2019-05-27 09:36:28 -05:00
2015-09-03 12:07:59 +02:00
2020-05-08 12:01:02 +02:00
2020-06-09 09:39:13 -07:00
2019-05-30 11:29:20 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:29:20 -07:00
2017-08-30 00:57:27 +02:00
2020-03-31 08:51:45 -07:00
2019-01-22 11:17:20 -08:00
2020-05-22 09:12:22 +02:00
2019-05-21 10:50:45 +02:00
2020-01-22 10:16:18 -08:00
2019-10-07 09:43:05 -07:00
2020-05-15 14:53:19 +02:00
2020-05-22 09:13:32 +02:00
2017-11-02 11:10:55 +01:00
2020-07-05 11:43:52 +02:00
2020-05-30 10:58:30 +02:00
2019-05-29 13:20:30 -07:00
2020-06-09 09:39:14 -07:00
2020-05-07 10:31:01 +02:00
2020-02-15 12:44:03 -08:00
2020-05-07 11:55:47 +02:00