NetBSD Problem Report #47860
From root@gateway.kardel.name Mon May 27 07:35:05 2013
Return-Path: <root@gateway.kardel.name>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id CADA070A0F
for <gnats-bugs@gnats.NetBSD.org>; Mon, 27 May 2013 07:35:04 +0000 (UTC)
Message-Id: <20130527073458.3777057177B@gateway.kardel.name>
Date: Mon, 27 May 2013 07:34:58 +0000 (UTC)
From: kardel@netbsd.org
Reply-To: kardel@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: vtund SIGSEGV on amd64
X-Send-Pr-Version: 3.95
>Number: 47860
>Category: pkg
>Synopsis: vtund SIGSEGV on amd64
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: hiramatsu
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 27 07:40:00 +0000 2013
>Closed-Date: Thu Jul 16 03:12:40 +0000 2015
>Last-Modified: Thu Jul 16 03:12:40 +0000 2015
>Originator: Frank Kardel
>Release: NetBSD 6.99.20
>Organization:
>Environment:
System: NetBSD gateway.kardel.name 6.99.20 NetBSD 6.99.20 (GATEWAY) #3: Sat May 25 15:10:16 CEST 2013 kardel@pip.kardel.name:/usr/src/sys/arch/amd64/compile/GATEWAY amd64
Architecture: x86_64
Machine: amd64
>Description:
vtund (vtun-3.0.2nb1) trips over a SIGSEGV when doing lzo operations on amd64.
The SIGSEGV is cause by an inappropriate type for the length argument.
>How-To-Repeat:
attempt to set up a vtund tummel with LZO compression on amd64.
SIGSEGV happen after the tunnel is set up.
>Fix:
Additional patch (patch-lfd__lzo.c) for vtun-3.0.2nb1:
$NetBSD$
--- lfd_lzo.c.orig 2008-01-07 22:35:35.000000000 +0000
+++ lfd_lzo.c
@@ -103,7 +103,7 @@ int free_lzo()
*/
int comp_lzo(int len, char *in, char **out)
{
- unsigned int zlen = 0;
+ lzo_uint zlen = 0;
int err;
if( (err=lzo1x_compress((void *)in,len,zbuf,&zlen,wmem)) != LZO_E_OK ){
@@ -117,7 +117,7 @@ int comp_lzo(int len, char *in, char **o
int decomp_lzo(int len, char *in, char **out)
{
- unsigned int zlen = 0;
+ lzo_uint zlen = 0;
int err;
if( (err=lzo1x_decompress((void *)in,len,zbuf,&zlen,wmem)) != LZO_E_OK ){
>Release-Note:
>Audit-Trail:
From: HIRAMATSU Yoshifumi <hiramatsu@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/47860: vtund SIGSEGV on amd64
Date: Sun, 05 Apr 2015 15:30:07 +0900
Hello,
net/vtun is updated to 3.0.3, which already included your fix.
Does newer vtund work for you now?
Kind regards,
HIRAMATSU, Yoshifumi
Responsible-Changed-From-To: pkg-manager->hiramatsu
Responsible-Changed-By: hiramatsu@NetBSD.org
Responsible-Changed-When: Sun, 05 Apr 2015 13:56:26 +0000
Responsible-Changed-Why:
I am look into this.
State-Changed-From-To: open->feedback
State-Changed-By: hiramatsu@NetBSD.org
State-Changed-When: Sun, 05 Apr 2015 13:56:26 +0000
State-Changed-Why:
State changed to feedback, asking submitter if problem was gone.
From: Frank Kardel <kardel@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/47860: vtund SIGSEGV on amd64
Date: Fri, 05 Jun 2015 08:13:43 +0200
Current sources contain the right version. bug can be closed.
Thanks for checking.
State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 16 Jul 2015 03:12:40 +0000
State-Changed-Why:
Submitter says it's fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.