From mat@aragorn.in.absolight.net  Thu Jan 30 12:44:39 2014
Return-Path: <mat@aragorn.in.absolight.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 0234C3D4
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 Jan 2014 12:44:39 +0000 (UTC)
Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25])
	(using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id B29A517B0
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 Jan 2014 12:44:33 +0000 (UTC)
Received: from prod2.absolight.net (localhost [127.0.0.1])
	by prod2.absolight.net (Postfix) with ESMTP id 0B0CABDC64
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 Jan 2014 13:44:32 +0100 (CET)
Received: from gw.in.absolight.net (gw-ecl.in.absolight.net [79.143.241.69])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "gw.in.absolight.net", Issuer "CA Cert Signing Authority" (not verified))
	by prod2.absolight.net (Postfix) with ESMTPSA id CFEADBDC5D
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 Jan 2014 13:44:31 +0100 (CET)
Received: from aragorn.in.absolight.net (aragorn.in.absolight.net [79.143.241.225])
	by gw.in.absolight.net (Postfix) with ESMTP id 513F5613D
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 Jan 2014 13:44:31 +0100 (CET)
Received: by aragorn.in.absolight.net (Postfix, from userid 1000)
	id C43271426A2; Thu, 30 Jan 2014 13:44:30 +0100 (CET)
Message-Id: <20140130124430.C43271426A2@aragorn.in.absolight.net>
Date: Thu, 30 Jan 2014 13:44:30 +0100 (CET)
From: Mathieu Arnold <mat@FreeBSD.org>
Reply-To: Mathieu Arnold <mat@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: freebsd-update never ends asking for update
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         186273
>Category:       bin
>Synopsis:       freebsd-update(8) never ends asking for update
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    cperciva
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 30 12:50:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Sun Apr 13 23:30:03 UTC 2014
>Originator:     Mathieu Arnold
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
Absolight
>Environment:
System: FreeBSD cegereal.absolight.com 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64

>Description:

On FreeBSD 9, if an update ever touches the kernel, it gets shipped
with /boot/kernel/linker.hints freebsd-update installs that file, and
then notices something changed in /boot/kernel, run kldxref,
overwrites the file it just installed. The next time it runs, it
thinks that the file has been missed by the update and updates it,
overwrites it, and it can go on forever.

>How-To-Repeat:
# freebsd-update fetch
Looking up freebsd-update.absolight.net mirrors... 1 mirrors found.
Fetching public key from 1.freebsd-update.absolight.net... done.
Fetching metadata signature for 9.1-RELEASE from 1.freebsd-update.absolight.net... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 1 files... done.

The following files will be updated as part of updating to 9.1-RELEASE-p10:
/boot/kernel/linker.hints
# freebsd-update install
Installing updates... done.
# freebsd-update fetch
Looking up freebsd-update.absolight.net mirrors... 1 mirrors found.
Fetching metadata signature for 9.1-RELEASE from 1.freebsd-update.absolight.net... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files will be updated as part of updating to 9.1-RELEASE-p10:
/boot/kernel/linker.hints
# freebsd-update install
Installing updates... done.
# freebsd-update fetch
Looking up freebsd-update.absolight.net mirrors... 1 mirrors found.
Fetching metadata signature for 9.1-RELEASE from 1.freebsd-update.absolight.net... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files will be updated as part of updating to 9.1-RELEASE-p10:
/boot/kernel/linker.hints
>Fix:

The only fix I have found is to remove the file altogether, it stops
freebsd-update from trying to reinstall it and overwrite it.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->cperciva 
Responsible-Changed-By: mat 
Responsible-Changed-When: Thu Jan 30 12:59:30 UTC 2014 
Responsible-Changed-Why:  
To maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186273 

From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, mat@FreeBSD.org
Cc:  
Subject: Re: bin/186273: freebsd-update never ends asking for update
Date: Fri, 31 Jan 2014 23:58:03 +0100

 In PR bin/186273, you wrote:
 > On FreeBSD 9, if an update ever touches the kernel, it gets shipped
 > with /boot/kernel/linker.hints freebsd-update installs that file, and
 > then notices something changed in /boot/kernel, run kldxref,
 > overwrites the file it just installed. The next time it runs, it
 > thinks that the file has been missed by the update and updates it,
 > overwrites it, and it can go on forever.
 
 I think this is fixed by SVN r256060. The first release with this fix is
 10.0. I MFC'ed it to stable/9, so a future 9.3 should not have this
 issue.
 
 The issue was previously reported in PR bin/182098.
 
 A fix for 9.1-RELEASE would need an errata notice. I'm not sure that's
 worth the trouble.
 
 -- 
 Jilles Tjoelker
Responsible-Changed-From-To: cperciva->cperciva 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Apr 13 23:27:34 UTC 2014 
Responsible-Changed-Why:  
fix synopsis. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=186273 
>Unformatted:
