Bart Van Assche
fc42a689c4
lib/test_rhashtable: Make test_insert_dup() allocate its hash table dynamically
...
The test_insert_dup() function from lib/test_rhashtable.c passes a
pointer to a stack object to rhltable_init(). Allocate the hash table
dynamically to avoid that the following is reported with object
debugging enabled:
ODEBUG: object (ptrval) is on stack (ptrval), but NOT annotated.
WARNING: CPU: 0 PID: 1 at lib/debugobjects.c:368 __debug_object_init+0x312/0x480
Modules linked in:
EIP: __debug_object_init+0x312/0x480
Call Trace:
? debug_object_init+0x1a/0x20
? __init_work+0x16/0x30
? rhashtable_init+0x1e1/0x460
? sched_clock_cpu+0x57/0xe0
? rhltable_init+0xb/0x20
? test_insert_dup+0x32/0x20f
? trace_hardirqs_on+0x38/0xf0
? ida_dump+0x10/0x10
? jhash+0x130/0x130
? my_hashfn+0x30/0x30
? test_rht_init+0x6aa/0xab4
? ida_dump+0x10/0x10
? test_rhltable+0xc5c/0xc5c
? do_one_initcall+0x67/0x28e
? trace_hardirqs_off+0x22/0xe0
? restore_all_kernel+0xf/0x70
? trace_hardirqs_on_thunk+0xc/0x10
? restore_all_kernel+0xf/0x70
? kernel_init_freeable+0x142/0x213
? rest_init+0x230/0x230
? kernel_init+0x10/0x110
? schedule_tail_wrapper+0x9/0xc
? ret_from_fork+0x19/0x24
Cc: Thomas Graf <tgraf@suug.ch>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-01-31 09:36:52 -08:00
..
2017-11-02 11:10:55 +01:00
2018-12-19 10:42:08 +01:00
2018-10-31 08:54:14 -07:00
2017-11-02 11:10:55 +01:00
2018-08-07 17:51:39 +08:00
2019-01-06 16:33:10 -08:00
2018-07-10 15:00:52 -06:00
2018-10-02 08:44:59 +10:00
2018-10-31 08:54:13 -07:00
2018-03-26 02:01:27 +09:00
2018-08-22 10:52:48 -07:00
2018-06-12 16:19:22 -07:00
2017-12-01 13:09:40 -08:00
2017-12-01 13:09:40 -08:00
2017-12-08 15:13:27 +00:00
2017-12-04 10:52:56 -08:00
2017-07-14 15:05:13 -07:00
2018-06-21 14:25:21 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-12 09:17:46 +02:00
2019-01-03 18:57:57 -08:00
2017-07-10 16:32:35 -07:00
2018-03-14 16:55:29 -07:00
2018-08-16 12:14:42 -07:00
2018-03-09 16:40:01 -08:00
2018-11-30 07:22:05 +01:00
2018-11-20 14:26:55 +08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-08 18:26:49 -07:00
2017-12-01 13:09:40 -08:00
2017-11-02 11:10:55 +01:00
2018-11-29 17:30:48 +02:00
2018-10-31 08:54:16 -07:00
2017-09-26 15:01:20 -06:00
2017-09-26 15:01:20 -06:00
2018-09-10 16:09:27 +01:00
2018-07-27 19:04:33 +08:00
2017-02-24 17:46:57 -08:00
2018-08-22 10:52:48 -07:00
2018-01-08 10:08:33 +00:00
2018-09-14 14:08:52 +08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-19 07:53:18 +02:00
2018-12-28 12:11:45 -08:00
2018-06-12 23:33:24 +02:00
2018-07-27 19:16:38 +08:00
2017-11-02 11:10:55 +01:00
2017-02-24 17:46:57 -08:00
2017-11-02 11:10:55 +01:00
2018-07-23 15:22:39 +10:00
2017-10-12 17:16:40 +01:00
2017-11-13 08:25:06 -08:00
2018-03-15 13:25:36 +01:00
2019-01-06 09:46:51 +09:00
2017-11-15 11:56:19 -08:00
2016-06-08 11:04:19 +02:00
2018-01-12 17:33:38 -08:00
2018-04-27 08:51:26 -04:00
2017-07-10 16:32:35 -07:00
2017-08-10 15:54:06 -07:00
2019-01-04 13:13:46 -08:00
2018-02-06 18:32:44 -08:00
2017-11-02 11:10:55 +01:00
2018-11-12 14:26:21 -08:00
2018-07-27 19:04:33 +08:00
2018-12-29 11:36:44 -08:00
2019-01-05 13:54:53 -08:00
2017-02-24 17:46:57 -08:00
2017-02-24 17:46:57 -08:00
2017-09-08 18:26:49 -07:00
2017-11-02 11:10:55 +01:00
2018-10-21 10:46:44 -04:00
2017-11-02 11:10:55 +01:00
2019-01-21 07:20:18 +13:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2018-05-09 06:55:44 +02:00
2018-12-28 12:11:50 -08:00
2019-01-05 13:18:59 -08:00
2017-11-02 11:10:55 +01:00
2017-03-02 08:42:38 +01:00
2017-11-02 11:10:55 +01:00
2019-01-03 08:21:02 -07:00
2018-12-29 13:03:29 -08:00
2018-12-28 12:11:43 -08:00
2017-05-16 08:44:22 -03:00
2018-08-10 20:19:58 -07:00
2018-06-12 16:19:22 -07:00
2018-07-02 16:20:23 -04:00
2018-11-11 11:27:43 -08:00
2018-12-06 13:57:03 +01:00
2018-10-31 08:54:13 -07:00
2017-11-02 11:10:55 +01:00
2018-03-26 15:09:38 +02:00
2018-04-11 10:28:35 -07:00
2017-11-02 11:10:55 +01:00
2017-10-25 11:01:08 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-07-03 09:44:36 +02:00
2018-04-12 09:41:19 -07:00
2018-03-21 17:18:34 -05:00
2018-06-12 16:19:22 -07:00
2017-12-01 13:09:40 -08:00
2018-12-27 13:53:32 -08:00
2018-10-16 13:45:44 +02:00
2017-11-02 11:10:55 +01:00
2017-12-01 13:09:40 -08:00
2017-11-02 11:10:55 +01:00
2018-10-08 10:39:04 -07:00
2018-07-09 14:10:40 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-11-15 14:43:43 -08:00
2017-12-08 15:13:28 +00:00
2017-11-04 09:26:51 +09:00
2017-02-03 16:35:42 -05:00
2018-10-31 08:54:12 -07:00
2018-01-26 11:45:16 -06:00
2018-08-30 12:56:40 +02:00
2018-11-27 09:21:45 -08:00
2017-03-02 08:42:27 +01:00
2017-01-23 09:17:12 +01:00
2018-12-06 08:26:16 -05:00
2017-11-21 15:57:05 -08:00
2017-10-03 17:54:26 -07:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2017-12-14 16:00:48 -08:00
2018-07-07 01:45:31 +02:00
2018-07-17 09:27:43 +02:00
2018-12-03 15:31:55 -08:00
2019-01-15 16:29:57 +12:00
2018-12-06 07:04:56 -08:00
2018-12-22 08:21:03 -05:00
2018-10-31 08:54:13 -07:00
2017-11-02 11:10:55 +01:00
2018-04-13 17:10:28 -07:00
2018-12-28 12:11:49 -08:00
2017-01-09 13:58:57 -05:00
2018-01-05 15:24:00 +01:00
2017-11-02 11:10:55 +01:00
2018-02-06 18:32:44 -08:00
2017-09-13 18:53:16 -07:00
2018-10-16 13:45:44 +02:00
2019-01-04 12:56:09 -08:00
2019-01-04 12:56:09 -08:00
2017-11-02 11:10:55 +01:00
2018-06-27 18:58:49 +03:00
2018-05-18 17:17:12 -07:00
2018-11-16 19:25:29 -08:00
2018-12-17 22:12:30 +11:00
2018-11-11 09:18:04 -08:00
2016-09-01 17:52:01 -07:00
2018-11-30 12:13:15 -08:00
2018-10-15 16:31:29 -04:00
2018-10-26 16:25:18 -07:00
2018-11-30 14:56:14 -08:00
2017-11-17 16:10:01 -08:00
2018-10-16 13:45:44 +02:00
2018-11-15 14:57:09 -08:00
2018-08-08 09:47:26 -06:00
2017-02-26 11:03:38 -05:00
2018-12-10 22:39:34 +01:00
2019-01-31 09:36:52 -08:00
2017-01-09 13:58:57 -05:00
2018-02-06 18:32:45 -08:00
2017-11-17 16:10:01 -08:00
2017-07-12 16:26:00 -07:00
2018-04-11 10:28:35 -07:00
2018-03-26 15:55:57 +02:00
2017-07-21 09:38:30 +02:00
2019-01-14 14:50:34 -05:00
2018-04-16 18:53:13 -04:00
2017-12-29 23:13:10 +01:00
2017-10-22 03:14:07 +01:00
2017-10-22 03:14:07 +01:00
2018-11-18 10:15:10 -08:00
2018-02-06 18:32:46 -08:00
2018-04-23 16:39:35 +01:00
2018-06-07 17:34:39 -07:00
2019-01-03 18:57:57 -08:00
2017-12-11 15:03:08 -07:00
2018-12-10 22:39:34 +01:00
2017-11-02 11:10:55 +01:00
2019-01-06 22:12:58 -05:00
2017-08-15 09:02:07 -07:00