From owner-freebsd-stable@freebsd.org Thu May 31 16:19:37 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7B7EFEFEFF9 for ; Thu, 31 May 2018 16:19:37 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 34AD270D48 for ; Thu, 31 May 2018 16:19:37 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id E9835EFEFF5; Thu, 31 May 2018 16:19:36 +0000 (UTC) Delivered-To: stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C209AEFEFF4 for ; Thu, 31 May 2018 16:19:36 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-vk0-x231.google.com (mail-vk0-x231.google.com [IPv6:2607:f8b0:400c:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 54EB870D45 for ; Thu, 31 May 2018 16:19:36 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-vk0-x231.google.com with SMTP id i190-v6so13678576vkd.13 for ; Thu, 31 May 2018 09:19:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=PIiGX5WdfuMm//pDDCOgXtKTvDHSAGsnO3iMwMpctQ8=; b=b/q53ViB2wB8qV83jfNvwY/3rqNb6EVIC1HRAyduI5lDMdv3gjrbNO/sbZwce5lWXc O+2vIqeW5JAjPmE+lXPH189ggxDxem48KZl9MlV4YzGDyMCl81CS2fbeVw6feS3ty7fT bKPNbMb9vJwOfRLe9QmoGb86317Avq2q8pNi5/vDKBg0jPOts0RONAKM9mIKxELIvBo/ y/8/bETz+zZhaFr4jvNG0SrXaW6Fq0SNXcILKAs24gM+sJk9dp0bYu5JBbiSChLTotme QOnVCwpEWoVPm7zzJbR0ifBad+Y8mtCqz4nrJHNnsoHloICdsZjEXh57qYhqIKkShl/9 wHAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=PIiGX5WdfuMm//pDDCOgXtKTvDHSAGsnO3iMwMpctQ8=; b=nKpYSHUhMAZ/mL5rFRZIrqs+iz1uIom/aqHuzGWr4T28L+PUK/8uTHB1VUj01yw/Hh fK89b7aU4Y2GU19igi5LiOnhUnngwy3o0E7Kc/YBMAk6x4D6LUw2WBcQOq2Dyy4TDS+s S0upEbFmFQzwvrdPOrESvwlNQBOS8AatA+uqSwIf77LmYkZx/41thRpS8t0OtAHed0ej i+Jm7Yl+G2Ss28BApUkmdv+hEtebqLblFpt8EndgZ6Ckx+dNeTApdxzg0iXLFl2Wk5ga 0DzLCQmzR57gJt0EUkzW08y5N+y6kTuIwOmlrbV6+ts9LqfOx6NHvc1bytClzk+D8L+Y Js8Q== X-Gm-Message-State: ALKqPwfZSnvMF3nKRG8oEwbx4OrQrxA17PFOIhT7yWIxQN972d05aNqg Q6TjETTPMIeXQ51qRVyPcI9vcGmBKBMghw2PceE= X-Google-Smtp-Source: ADUXVKKbWQz9O9Tpkgdfzpa9VqLBH/+ulFFXGAyj2R8tfDrTOkoXy4vvspf+76c9UZOVe3itatpOAH+Q2UnMD53dtHA= X-Received: by 2002:a1f:5fc1:: with SMTP id t184-v6mr4520029vkb.140.1527783575761; Thu, 31 May 2018 09:19:35 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 2002:a67:8f05:0:0:0:0:0 with HTTP; Thu, 31 May 2018 09:19:35 -0700 (PDT) In-Reply-To: References: From: Kevin Oberman Date: Thu, 31 May 2018 09:19:35 -0700 X-Google-Sender-Auth: gYdcLqQ_PG1BfZOKs49c2BRt9gs Message-ID: Subject: Re: Suspected KBI breakage between FreeBSD 11.1-p9 and FreeBSD 11.2-BETA3 To: Ka Ho Ng Cc: "stable@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2018 16:19:37 -0000 On Thu, May 31, 2018 at 3:43 AM, Ka Ho Ng wrote: > Hi folks, > > After an upgrade from 11.1-p9 to 11.2-BETA3, vboxdrv and nvidia no longer > works. `kldload vboxdrv` will throw kernel panic immediately. > > Here are the corresponding bugzilla tickets: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228535 > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228536 > > Since these two kmod work after rebuilding the package, I suspect the issue > is due to KBI breakage. > > Could anyone take a look into the issue? > > Thanks, > Ka Hothe BETA > This is a long-standing issue with ports that build kernel modules, especially virtualbox-ose-kmod. nvidia has also been touched by this, though not as often. Kernel modules are part of the kernel and often make use of variables in the in kernel memory that are not part of the formal KBI. (sysutils/lsof is not a kernel module, but has many of the same issues and the documentation clearly states that the kernel sources at port build time MUST match the running kernel.) It has long been suggested that any port that installs a kernel module be added to PORTS_MODULES in /etc/src.conf so that they will be rebuilt whenever a kernel is built This does not play well with packages during the release cycle for a new FreeBSD version, as the packages for he modules will lag behind BETA builds. The only way I see around this is to have full kernel sources available and manually build the modules for BETA releases. packages are rebuilt for the actual release, so this problem only impacts systems running STABLE or CURRENT. Perhaps a policy of generating new packages for the small number of ports where this is an issue for each BETA and RC would fix it of logistical issues are tractable. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683