NetBSD Problem Report #51008

From bad@bsd.de  Thu Mar 24 17:47:38 2016
Return-Path: <bad@bsd.de>
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 "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B5C4A7A210
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 24 Mar 2016 17:47:38 +0000 (UTC)
Message-Id: <20160324174729.B979038445@limiting-factor.k.bsd.de>
Date: Thu, 24 Mar 2016 18:47:29 +0100 (MET)
From: bad@bsd.de
Reply-To: bad@bsd.de
To: gnats-bugs@gnats.NetBSD.org
Subject: sysutils/xentools* lack serialization in NetBSD hotplug scripts
X-Send-Pr-Version: 3.95

>Number:         51008
>Category:       pkg
>Synopsis:       hotplug scripts are responsible for necessary serialization as xl(1) runs them in parallel
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bad
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 24 17:50:00 +0000 2016
>Closed-Date:    Sat Mar 18 12:46:34 +0000 2017
>Last-Modified:  Sat Mar 18 12:46:34 +0000 2017
>Originator:     Christoph Badura
>Release:        NetBSD 7.0_STABLE
>Organization:
Bozotic Software Testing Labs

>Environment:


System: NetBSD gunboat-diplomat 7.0_STABLE NetBSD 7.0_STABLE (XEN3_DOM0.201603122210Z) amd64
Architecture: x86_64
Machine: amd64
>Description:

xl(1) runs the device hotplug scripts in parallel.  c.f. tools/libxl/libxl_device.c:device_hotplug().

This causes failures in e.g. vnd allocation and network interface allocation.
C.f. port-xen/50569.

The hotplug scripts for Linux do their own serialization. 
C.f. tools/hotplug/Linux, grep for "_lock".
>How-To-Repeat:

E.g. try to start a domU with more than 4 vnd based block devices on NetBSD 7.

>Fix:


>Release-Note:

>Audit-Trail:


xentools42 has been fixed with commitids: RmsHa93wUBweZj1z and r7z1FECFlLOH0k1z.
xentools45 has been fixed with commitids: bSOFuYttnrZUOj1z and OupuKqnmAtX3Qj1z.
Responsible-Changed-From-To: pkg-manager->bad
Responsible-Changed-By: bad@NetBSD.org
Responsible-Changed-When: Mon, 04 Apr 2016 15:40:29 +0000
Responsible-Changed-Why:
I am dealing with this.


State-Changed-From-To: open->analyzed
State-Changed-By: bad@NetBSD.org
State-Changed-When: Mon, 04 Apr 2016 15:40:29 +0000
State-Changed-Why:


State-Changed-From-To: analyzed->closed
State-Changed-By: bad@NetBSD.org
State-Changed-When: Sat, 18 Mar 2017 12:46:34 +0000
State-Changed-Why:
Belatedly close this PR.
The issues were fixed on 2016-04-04 with xentools-4.2.5nb15 and xentools-4.5.2nb2.
I don't remember why I didn't change xentools41.  It was either to old or not affected.


>Unformatted:
 xentools41, xentools42, xentools45

NetBSD Home
NetBSD PR Database Search

(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.