NetBSD Problem Report #54562

From www@netbsd.org  Sun Sep 22 17:40:47 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-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 1C2B37A182
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 22 Sep 2019 17:40:47 +0000 (UTC)
Message-Id: <20190922174045.E27657A1E1@mollari.NetBSD.org>
Date: Sun, 22 Sep 2019 17:40:45 +0000 (UTC)
From: pbraun@nethence.com
Reply-To: pbraun@nethence.com
To: gnats-bugs@NetBSD.org
Subject: pxeboot NFS V2 READ Call into the void
X-Send-Pr-Version: www-1.0

>Number:         54562
>Category:       port-i386
>Synopsis:       pxeboot NFS V2 READ Call into the void
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    manu
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 22 17:45:00 +0000 2019
>Closed-Date:    Sun Oct 06 02:13:19 +0000 2019
>Last-Modified:  Sun Oct 06 02:13:19 +0000 2019
>Originator:     pierre-philipp braun
>Release:        9.0_BETA
>Organization:
Innopolis University
>Environment:
n.a. (pxeboot)
>Description:
This bug report is either about the NFS client built-into netbsd's pxeboot, or probably rather about its built-in DHCP client.

While trying to PXE boot netbsd-INSTALL.gz from a Lignux NFS server, and after facing, sniffing and solving unknown error codes 72 and 45, I finally end-up with a similar problem as in the pxeboot/TFTP client bug I just reported (54561).  So after numerous tweaks on the server side, namely enabling NFS version 2 and adding no_subtree_check to exports, it looks like it could work.

The pxeboot built-in NFS client sends its `V2 LOOKUP Call` alright and the server answers with `V2 LOOKUP Reply`.  Then comes two `V2 READ Call` requests and server answers back two `V2 READ Reply` in turns.  However the third `V2 READ Call` sent by the client ends-up nowhere as the destination IP is 0.0.0.0.

It seems pxeboot lost track of its DHCP lease.

>How-To-Repeat:
Setup a PXE service (DHCP+TFTP+pxeboot), here done on Slackware Linux 14.2.  I did not try to reproduce it with NetBSD's NFS server.

    max-lease-time 7200;

    next-server TFTP-NFS-SERVER;
    filename "pxeboot_ia32.bin";
    option root-path "/tftpboot";

Then PXE boot from a client node, get to the netbsd boot loader prompt provided by pxeboot and enter one of those (NFS is the default)

    boot nfs:netbsd-INSTALL.gz
    boot netbsd-INSTALL.gz

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-i386-maintainer->manu
Responsible-Changed-By: uwe@NetBSD.org
Responsible-Changed-When: Wed, 25 Sep 2019 12:27:53 +0000
Responsible-Changed-Why:
This is fallout from multiboot changes.
pxeboot now exceeds 64K.


From: Emmanuel Dreyfus <manu@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-i386/54562 (pxeboot NFS V2 READ Call into the void)
Date: Fri, 27 Sep 2019 08:56:26 +0000

 On Wed, Sep 25, 2019 at 12:27:53PM +0000, uwe@NetBSD.org wrote:
 > This is fallout from multiboot changes.
 > pxeboot now exceeds 64K.

 Hello

 A patch to fix this has been proposed in kern/54560

 If you can test it, your feedback would be valuable.

 -- 
 Emmanuel Dreyfus
 manu@netbsd.org

From: manu@netbsd.org (Emmanuel Dreyfus)
To: gnats-bugs@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,
        pbraun@nethence.com
Cc: 
Subject: Re: port-i386/54562 (pxeboot NFS V2 READ Call into the void)
Date: Fri, 4 Oct 2019 03:00:17 +0200

 Emmanuel Dreyfus <manu@netbsd.org> wrote:

 >  A patch to fix this has been proposed in kern/54560

 The patch has been committed and pulled up to netbsd-8 and netbsd-9
 branches.

 -- 
 Emmanuel Dreyfus
 http://hcpnet.free.fr/pubz
 manu@netbsd.org

From: pierre-philipp braun <pbraun@nethence.com>
To: gnats-bugs@netbsd.org, manu@netbsd.org, gnats-admin@netbsd.org,
 netbsd-bugs@netbsd.org
Cc: 
Subject: Re: port-i386/54562 (pxeboot NFS V2 READ Call into the void)
Date: Sat, 5 Oct 2019 11:08:29 +0300

 >  The patch has been committed and pulled up to netbsd-8 and netbsd-9
 >  branches.

 solved (see port-i386/54561 & kern/54560)

State-Changed-From-To: open->closed
State-Changed-By: manu@NetBSD.org
State-Changed-When: Sun, 06 Oct 2019 02:13:19 +0000
State-Changed-Why:
Submitter reported the problem is solved


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.