Cong Wang
ff93bca769
ila: make lockdep happy again
...
Previously, alloc_ila_locks() and bucket_table_alloc() call
spin_lock_init() separately, therefore they have two different
lock names and lock class keys. However, after commit b893281715
("ila: Call library function alloc_bucket_locks") they both call
helper alloc_bucket_spinlocks() which now only has one lock
name and lock class key. This causes a few bogus lockdep warnings
as reported by syzbot.
Fix this by making alloc_bucket_locks() a macro and pass declaration
name as lock name and a static lock class key inside the macro.
Fixes: b893281715 ("ila: Call library function alloc_bucket_locks")
Reported-by: <syzbot+b66a5a554991a8ed027c@syzkaller.appspotmail.com >
Cc: Tom Herbert <tom@quantonium.net >
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
2018-08-16 12:14:42 -07:00
..
2018-07-27 10:40:16 +02:00
2018-06-18 21:32:15 +02:00
2018-08-05 17:11:49 -07:00
2018-08-10 23:19:17 +02:00
2018-06-24 14:23:21 +01:00
2018-06-11 10:21:06 -07:00
2018-07-16 14:22:19 +01:00
2018-08-03 19:52:14 +05:30
2018-06-11 07:23:19 -07:00
2018-07-12 17:37:13 -07:00
2018-08-13 12:50:17 -07:00
2018-06-06 18:39:49 -07:00
2018-08-11 12:19:35 +02:00
2018-08-08 18:23:49 +02:00
2018-07-10 18:19:02 +01:00
2018-07-09 13:09:21 +02:00
2018-08-15 21:35:38 -07:00
2018-08-09 14:05:30 -07:00
2018-07-05 18:07:45 +01:00
2018-07-25 11:29:58 +02:00
2018-08-14 12:31:27 -07:00
2018-08-14 12:01:08 -07:00
2018-08-09 18:47:47 +03:00
2018-06-12 10:09:03 -07:00
2018-07-31 15:01:22 +02:00
2018-07-23 12:44:52 +02:00
2018-07-30 08:49:02 -04:00
2018-06-15 18:10:01 -03:00
2018-06-15 18:10:01 -03:00
2018-06-17 08:27:01 +09:00
2018-07-25 11:53:59 +02:00
2018-06-19 10:43:55 -04:00
2018-06-22 12:08:07 -06:00
2018-07-24 14:43:26 -06:00
2018-06-27 18:58:49 +03:00
2018-06-21 12:52:11 +02:00
2018-06-21 12:52:11 +02:00
2018-07-18 08:44:22 -06:00
2018-08-11 15:41:25 -06:00
2018-08-14 10:23:25 -07:00
2018-08-09 09:12:26 -06:00
2018-08-02 12:17:27 -06:00
2018-06-26 11:28:38 +02:00
2018-08-11 01:58:46 +02:00
2018-08-03 00:47:32 +02:00
2018-08-13 00:52:45 +02:00
2018-07-21 16:21:25 -07:00
2018-08-07 15:48:38 -07:00
2018-07-18 01:18:05 +09:00
2018-08-02 15:22:13 -06:00
2018-07-09 09:07:54 -06:00
2018-08-13 01:02:39 +02:00
2018-06-15 18:10:01 -03:00
2018-06-19 10:06:29 -07:00
2018-06-19 10:06:29 -07:00
2018-07-19 17:08:52 -07:00
2018-06-24 14:39:47 +02:00
2018-08-14 16:39:13 -07:00
2018-06-25 23:21:12 +09:00
2018-07-03 10:56:27 +02:00
2018-06-28 15:20:30 +02:00
2018-08-14 13:12:24 -07:00
2018-07-03 09:20:43 +02:00
2018-08-13 09:05:05 -07:00
2018-07-27 19:04:33 +08:00
2018-06-28 11:02:44 -04:00
2018-07-18 07:27:22 -04:00
2018-06-28 11:16:44 -07:00
2018-08-13 21:28:25 -07:00
2018-07-26 19:38:03 -07:00
2018-08-15 15:04:25 -07:00
2018-06-20 15:59:34 +02:00
2018-06-14 08:50:37 +02:00
2018-07-31 18:04:55 -05:00
2018-07-03 13:12:57 +02:00
2018-07-25 13:32:58 +02:00
2018-06-24 09:27:27 -07:00
2018-07-22 14:13:43 +02:00
2018-06-26 11:33:04 +09:00
2018-07-26 19:38:03 -07:00
2018-07-12 10:04:29 -04:00
2018-08-11 01:58:46 +02:00
2018-08-13 21:28:25 -07:00
2018-06-11 10:16:13 -07:00
2018-06-11 10:16:13 -07:00
2018-07-03 18:33:19 -04:00
2018-07-23 12:44:52 +02:00
2018-07-18 08:44:22 -06:00
2018-06-07 17:34:38 -07:00
2018-07-02 11:25:47 -06:00
2018-06-25 15:29:16 +02:00
2018-06-07 17:34:37 -07:00
2018-07-18 10:01:46 +09:00
2018-06-10 13:01:12 -07:00
2018-07-20 23:51:37 +02:00
2018-07-02 13:00:24 +02:00
2018-06-18 22:39:39 +02:00
2018-07-07 20:04:35 +09:00
2018-07-11 23:10:19 -07:00
2018-07-16 11:20:06 -07:00
2018-08-15 10:25:26 -07:00
2018-07-29 12:37:06 -07:00
2018-07-18 07:27:22 -04:00
2018-07-20 13:55:56 +02:00
2018-07-11 22:26:05 -07:00
2018-06-22 13:43:27 +09:00
2018-06-22 13:43:27 +09:00
2018-06-22 14:22:00 +02:00
2018-06-22 14:22:02 +02:00
2018-07-04 08:04:52 -07:00
2018-06-15 07:55:24 +09:00
2018-06-21 17:39:18 +02:00
2018-07-20 23:44:35 -07:00
2018-07-20 23:44:35 -07:00
2018-06-21 12:33:21 +02:00
2018-06-07 17:34:36 -07:00
2018-07-03 09:17:30 +02:00
2018-07-12 21:35:28 +02:00
2018-07-05 23:21:11 +02:00
2018-08-15 22:06:26 -07:00
2018-06-13 00:03:17 +09:00
2018-07-04 14:06:19 +09:00
2018-08-15 10:25:26 -07:00
2018-07-04 11:34:09 +09:00
2018-08-02 12:17:28 -06:00
2018-07-09 09:07:54 -06:00
2018-06-07 17:34:35 -07:00
2018-06-07 17:34:36 -07:00
2018-06-21 16:14:45 +02:00
2018-06-08 17:21:52 -07:00
2018-07-17 09:35:30 +02:00
2018-08-01 13:43:38 -07:00
2018-06-18 13:43:09 +09:00
2018-06-07 17:34:39 -07:00
2018-07-13 14:21:16 -07:00
2018-06-15 15:27:09 +01:00
2018-07-31 12:40:22 -07:00
2018-07-16 00:12:09 -07:00
2018-08-10 10:22:22 -07:00
2018-08-03 21:15:09 +02:00
2018-07-16 17:51:48 +02:00
2018-07-16 17:51:48 +02:00
2018-07-10 20:06:34 -07:00
2018-07-24 10:04:49 -07:00
2018-06-19 09:25:27 -04:00
2018-07-10 17:56:22 +02:00
2018-08-08 11:55:45 +02:00
2018-08-03 18:57:15 +05:30
2018-07-08 11:13:25 +09:00
2018-06-07 17:34:36 -07:00
2018-06-07 17:34:37 -07:00
2018-07-23 17:04:13 -05:00
2018-08-15 14:59:03 -05:00
2018-07-31 18:04:55 -05:00
2018-07-19 11:46:45 +01:00
2018-07-19 11:34:23 +01:00
2018-08-16 09:21:54 -07:00
2018-07-25 11:47:02 +02:00
2018-06-07 17:34:35 -07:00
2018-07-25 13:41:22 -07:00
2018-08-09 11:08:19 -07:00
2018-07-09 12:11:02 +02:00
2018-06-12 10:24:13 +02:00
2018-06-28 10:40:47 -07:00
2018-07-02 11:33:25 +02:00
2018-08-14 13:36:15 +02:00
2018-06-05 16:57:31 -07:00
2018-07-20 01:11:45 +02:00
2018-07-02 11:01:21 +01:00
2018-07-21 13:34:09 -05:00
2018-08-02 17:33:06 -04:00
2018-06-15 18:10:01 -03:00
2018-07-12 15:39:25 -07:00
2018-07-12 15:39:15 -07:00
2018-07-12 15:39:15 -07:00
2018-07-07 01:45:31 +02:00
2018-07-17 09:27:43 +02:00
2018-08-09 11:15:06 +01:00
2018-06-15 13:37:07 +02:00
2018-06-22 13:43:27 +09:00
2018-06-22 13:43:28 +09:00
2018-07-25 10:29:41 -04:00
2018-07-25 11:22:19 +02:00
2018-07-10 22:42:47 -04:00
2018-06-29 08:48:06 -06:00
2018-07-20 00:02:43 +02:00
2018-08-14 10:23:25 -07:00
2018-07-04 11:36:54 +09:00
2018-08-15 10:25:26 -07:00
2018-07-18 10:02:02 +09:00
2018-06-07 17:34:35 -07:00
2018-08-13 10:07:23 -07:00
2018-06-07 17:34:34 -07:00
2018-06-15 07:55:23 +09:00
2018-06-28 11:16:44 -07:00
2018-07-03 09:20:44 +02:00
2018-08-16 12:14:42 -07:00
2018-06-25 11:26:24 -07:00
2018-06-14 12:21:18 +09:00
2018-06-05 16:57:31 -07:00
2018-08-09 11:16:28 -07:00
2018-08-06 12:35:20 +02:00
2018-06-20 11:35:56 +02:00
2018-07-09 09:07:54 -06:00
2018-06-20 19:10:01 +02:00
2018-06-29 20:16:44 -05:00
2018-08-14 16:39:13 -07:00
2018-08-02 15:53:15 -04:00
2018-07-31 09:10:26 -06:00
2018-08-01 09:56:10 -07:00
2018-06-24 14:39:46 +02:00
2018-06-24 14:39:46 +02:00
2018-08-14 14:29:31 -07:00
2018-07-12 15:42:04 -07:00
2018-07-28 17:03:11 +03:00
2018-06-06 18:39:49 -07:00
2018-07-09 09:07:54 -06:00
2018-06-15 18:10:01 -03:00
2018-06-05 16:14:12 -07:00
2018-06-07 17:34:38 -07:00
2018-06-26 11:33:04 +09:00
2018-07-07 16:57:35 +02:00
2018-06-07 17:34:38 -07:00
2018-08-16 09:57:20 -07:00
2018-07-17 11:12:00 +02:00
2018-08-11 12:02:18 -07:00
2018-06-07 16:15:38 -04:00
2018-06-07 20:54:23 +03:00
2018-07-03 09:44:36 +02:00