Skip to content

Commit f50e717

Browse files
author
Herton R. Krzesinski
committed
Merge: xfrm: Fix oops in __xfrm_state_delete()
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/1860 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2157579 Tested: basic IPsec tests + reproducer commit b97df03 Author: Thomas Jarosch <thomas.jarosch@intra2net.com> Date: Wed Nov 2 11:18:48 2022 +0100 xfrm: Fix oops in __xfrm_state_delete() Signed-off-by: Sabrina Dubroca <sdubroca@redhat.com> Approved-by: Xin Long <lxin@redhat.com> Approved-by: Antoine Tenart <atenart@redhat.com> Approved-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Herton R. Krzesinski <herton@redhat.com>
2 parents 9635e02 + 7009570 commit f50e717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/key/af_key.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3378,7 +3378,7 @@ static int pfkey_send_new_mapping(struct xfrm_state *x, xfrm_address_t *ipaddr,
33783378
hdr->sadb_msg_len = size / sizeof(uint64_t);
33793379
hdr->sadb_msg_errno = 0;
33803380
hdr->sadb_msg_reserved = 0;
3381-
hdr->sadb_msg_seq = x->km.seq = get_acqseq();
3381+
hdr->sadb_msg_seq = x->km.seq;
33823382
hdr->sadb_msg_pid = 0;
33833383

33843384
/* SA */

0 commit comments

Comments
 (0)