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-08-05 17:11:49 -07:00
2018-08-10 23:19:17 +02:00
2018-07-16 14:22:19 +01:00
2018-08-03 19:52:14 +05:30
2018-07-12 17:37:13 -07:00
2018-08-13 12:50:17 -07:00
2018-08-11 12:19:35 +02:00
2018-08-08 18:23:49 +02:00
2018-08-15 21:35:38 -07:00
2018-08-09 14:05:30 -07: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-07-31 15:01:22 +02:00
2018-07-23 12:44:52 +02:00
2018-07-30 08:49:02 -04:00
2018-07-25 11:53:59 +02:00
2018-07-24 14:43:26 -06: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-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-08-13 01:02:39 +02:00
2018-07-19 17:08:52 -07:00
2018-08-14 16:39:13 -07:00
2018-08-14 13:12:24 -07:00
2018-08-13 09:05:05 -07:00
2018-07-27 19:04:33 +08:00
2018-07-18 07:27:22 -04: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-07-31 18:04:55 -05:00
2018-07-25 13:32:58 +02:00
2018-07-22 14:13:43 +02:00
2018-07-26 19:38:03 -07:00
2018-08-11 01:58:46 +02:00
2018-08-13 21:28:25 -07:00
2018-07-23 12:44:52 +02:00
2018-07-18 08:44:22 -06:00
2018-07-18 10:01:46 +09:00
2018-07-20 23:51:37 +02: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-20 23:44:35 -07:00
2018-07-20 23:44:35 -07:00
2018-08-15 22:06:26 -07:00
2018-08-15 10:25:26 -07:00
2018-08-02 12:17:28 -06:00
2018-07-17 09:35:30 +02:00
2018-08-01 13:43:38 -07:00
2018-07-13 14:21:16 -07: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-24 10:04:49 -07:00
2018-08-08 11:55:45 +02:00
2018-08-03 18:57:15 +05:30
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-07-25 13:41:22 -07:00
2018-08-09 11:08:19 -07:00
2018-08-14 13:36:15 +02:00
2018-07-20 01:11:45 +02:00
2018-07-21 13:34:09 -05:00
2018-08-02 17:33:06 -04:00
2018-07-12 15:39:25 -07:00
2018-07-17 09:27:43 +02:00
2018-08-09 11:15:06 +01:00
2018-07-25 10:29:41 -04:00
2018-07-25 11:22:19 +02:00
2018-07-20 00:02:43 +02:00
2018-08-14 10:23:25 -07:00
2018-08-15 10:25:26 -07:00
2018-07-18 10:02:02 +09:00
2018-08-13 10:07:23 -07:00
2018-08-16 12:14:42 -07:00
2018-08-09 11:16:28 -07:00
2018-08-06 12:35:20 +02: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-08-14 14:29:31 -07:00
2018-07-12 15:42:04 -07:00
2018-07-28 17:03:11 +03: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