--- zzzz-none-000/linux-5.4.213/net/xfrm/xfrm_user.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/net/xfrm/xfrm_user.c 2024-08-14 09:02:15.000000000 +0000 @@ -658,6 +658,8 @@ goto error; } + xfrm_state_change_notify(x, XFRM_EVENT_STATE_ADD); + return x; error: @@ -696,6 +698,7 @@ if (err < 0) { x->km.state = XFRM_STATE_DEAD; xfrm_dev_state_delete(x); + xfrm_state_change_notify(x, XFRM_EVENT_STATE_DEL); __xfrm_state_put(x); goto out; }