NetBSD Problem Report #56619

From www@netbsd.org  Tue Jan 11 18:42:41 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 30E071A9239
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 11 Jan 2022 18:42:41 +0000 (UTC)
Message-Id: <20220111184239.D59B71A923A@mollari.NetBSD.org>
Date: Tue, 11 Jan 2022 18:42:39 +0000 (UTC)
From: andrew.cagney@gmail.com
Reply-To: andrew.cagney@gmail.com
To: gnats-bugs@NetBSD.org
Subject: clear invalid sadb_sa returned by GETSPI?
X-Send-Pr-Version: www-1.0

>Number:         56619
>Category:       kern
>Synopsis:       clear invalid sadb_sa returned by GETSPI?
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 11 18:45:00 +0000 2022
>Originator:     Andrew Cagney
>Release:        trunk
>Organization:
>Environment:
NetBSD netbsdw 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386

>Description:
SADB_GETSPI returned:
| response sa:
|   sadb_sa_len: 2
|   sadb_sa_exttype: SADB_EXT_SA
|   sadb_sa_spi: 3374392707
|   sadb_sa_replay: 64
|   sadb_sa_state: 6
|   sadb_sa_auth: 228
|   sadb_sa_encrypt: 173
|   sadb_sa_flags: 3286935744
while the RFC says that only .sadb_sa_spi is valid, I'm surprised that other fields aren't zero.

>How-To-Repeat:

>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.