Files
erofs-linux/include/linux
Hidayath Khan c27e360545 dibs: initialise dibs->lock in dibs_dev_alloc()
dibs->lock is initialised by dibs_dev_add(), but a dibs device can
already take interrupts before that call: ism_probe() runs
ism_dev_init(), and hence request_irq(), before it calls
dibs_dev_add(). No client can have registered a dmb at that point, so
no dmb interrupt can occur, but a GID event interrupt can, and
ism_handle_irq() takes dibs->lock unconditionally on entry, before it
inspects anything else.

Initialise the lock in dibs_dev_alloc() instead, so that it is valid as
soon as a driver can publish the device to its interrupt handler.

Fixes: cc21191b58 ("dibs: Move data path to dibs layer")
Cc: [email protected]
Reviewed-by: Alexandra Winter <[email protected]>
Signed-off-by: Hidayath Khan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
2026-08-05 17:41:38 -07:00
..
…
2026-07-23 10:24:12 -07:00
…
…
…
…
…
…
…
…
…
…
…
2026-06-17 11:32:14 +01:00
…
…
…
…
…
…
…
…
…
…
2026-05-28 21:24:54 -07:00
…
2024-10-14 23:27:57 +05:30
2025-09-05 15:06:03 +02:00
2022-07-05 20:25:39 +02:00
…
2022-01-22 08:33:34 +02:00
…
…
…
2026-01-20 19:44:19 -08:00
…
…
…
…
2026-06-16 08:53:53 -07:00
…
…
…
2026-04-03 16:53:50 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-03-08 14:37:39 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-03-02 17:08:05 -05:00
…
…
…
2026-07-09 15:48:53 -07:00
…
2026-06-05 00:34:55 -04:00
2025-04-11 18:58:10 -07:00
…
…
…
…
…
…
2024-02-20 14:22:55 -05:00
…
…
2024-11-05 13:32:21 +01:00
…
…
…
2026-05-19 17:26:07 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-05-28 11:36:59 -04:00
…
…
2026-04-07 17:38:07 +02:00
2024-05-19 14:36:17 -07:00
…
…
…
…
2019-02-15 16:54:38 +01:00
…
…
…
…
…
…
…
…
2010-02-09 11:13:56 +01:00
…
…
…
…
…
…
…
…
…
…
2025-10-29 18:28:29 -07:00
2025-09-13 17:32:44 -07:00
…
…
…
…
…
…
…
…
2019-06-26 13:19:46 -07:00
…
2025-11-04 12:36:02 +01:00
…
…
2026-02-06 07:29:14 -07:00
…
…
2026-07-01 15:26:47 +02:00
…
…
…
…
…
…
…
2024-10-16 21:56:59 +02:00
…
2025-09-23 11:13:22 +02:00
2026-06-10 10:42:55 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-01-11 06:09:11 -10:00
…
…
…
…
…
2025-07-02 17:18:01 +01:00
…
…
…
…
…
…
…
2024-10-14 16:33:24 -05:00
…
2026-04-03 16:53:50 -04:00
2026-04-03 16:53:50 -04:00
2023-10-16 12:44:06 -04:00
…
…
…
…
2026-04-05 13:53:00 -07:00
…
…
…
2024-08-11 17:04:29 +01:00
…
…
2026-01-26 20:02:27 -08:00
…
…
…
…
…
…
…
2026-03-08 11:06:53 +01:00
…
…
2018-10-17 13:56:58 -07:00
…
…
…
…
…
…
…
…
…
2025-11-03 17:41:17 +01:00
…
…
2026-06-26 22:18:34 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-04-05 13:53:10 -07:00
…
2021-02-03 19:05:50 +01:00
…
…
…
…
2021-07-06 10:37:46 -05:00
…
…
…
…
…
…
…
2026-01-11 06:09:11 -10:00
…
…
…
…
…
2026-04-20 11:35:17 -07:00
…
…
…
…
2019-06-15 12:25:49 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-05-11 17:54:09 -07:00
…
…
…
…
…
…
…
2026-03-08 11:06:53 +01:00
…
…
…
2026-03-31 07:04:00 -06:00
…
…
…
…
…
2023-06-11 18:22:47 +02:00
2024-04-09 10:53:44 +02:00
…
…
…
…
2026-03-25 20:11:29 +01:00
…
…
…
…
…
…
…
…
…
…
…
2024-05-04 18:57:21 +02:00
2023-10-18 14:43:21 -07:00
…
…
…
…
…
…
…
…
…
…
…
2026-03-13 08:22:54 +01:00
…
…
…
…
…
2024-10-02 16:53:38 +02:00
…
…
…
2026-03-12 15:05:34 +01:00
…
…
…
…
…
…
…
…
2025-11-03 17:41:18 +01:00
…
…
2023-03-23 17:25:46 +01:00
…
2026-03-30 16:43:24 -06:00
2023-08-24 13:27:47 -05:00
…
…
…
…
…
…
2026-06-06 15:22:44 +02:00
…
…
…
…
2025-03-13 13:25:58 -07:00
…