[PATCH 2/7] lib: sbi: dbtr: share trigger checks of install and update

liutong liutong at iscas.ac.cn
Tue Nov 24 07:55:58 PST 2026


On 11/24/26 09:26, Heinrich Schuchardt wrote:
> We should drop this patch in favor of Liutong's
> [PATCH v3 0/3] lib: sbi: fix shared memory double-fetch in DBTR and SSE

I split that series after the September review. The current patches are:

  [PATCH] lib: sbi: sse: fix shared memory double-fetch in sse_write_attrs
  https://lore.kernel.org/opensbi/20261105013958.32686-1-liutong@iscas.ac.cn/

  [PATCH v2] lib: sbi: dbtr: validate trigger configuration in update_trig
  https://lore.kernel.org/opensbi/20261115163732.746589-1-liutong@iscas.ac.cn/

I have not resent the install_trig patch. I have a tested one and can
send it as a base for your series.

The update half of what 2/7 adds is in the v2 above: dbtr_trigger_valid(),
the type_mask test, and a copy of the entry, so the value checked is the
value programmed. 2/7 still passes &entry->data to dbtr_trigger_setup()
after the checks, so there the two can differ. What 2/7 has that the v2
does not is the shared helper and the install/update parity. Rebased on
the v2 it would be a smaller patch.

liutong




More information about the opensbi mailing list