From nobody Thu Mar 31 22:09:00 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DE70A1A52DA8 for ; Thu, 31 Mar 2022 22:09:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KTyBN590jz4myM for ; Thu, 31 Mar 2022 22:09:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8F3D02FD19 for ; Thu, 31 Mar 2022 22:09:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22VM90uc090868 for ; Thu, 31 Mar 2022 22:09:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22VM909C090867 for ports-bugs@FreeBSD.org; Thu, 31 Mar 2022 22:09:00 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 262966] ports-mgmt/pkg: pkg can't recover from a corrupt vulnerability database. Date: Thu, 31 Mar 2022 22:09:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: peterj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648764540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GDE8F9FzwIYLzWGZoCtqtYvhc39WMhcX3vmbKEEO2+s=; b=nbbMFZHBX7gsc/1JoWy1HWewdkhYaAiR5+ZmVW1MtxzTihGMVLvEv2uDS9sJbSov99BoxE 0Bmv1lHqY/MBoQQxb8oPwd+MajeI9bDaCcf0TMgE118zNzHwJtLLzgKwgiWCcAZCyO9JQW 2ttHw7WY2NRqADboG4CPOCjfuzVsayy265JbtLeLlv14RGZgYMai5Zs6IsiBx3t9dvpMns 0M5RhTltYsNgYgTL6DqDzDthSrsBowlhxjedRQJM1N1yPIrb0/vYNouWVV/OBtGe3zbn/b yEMLmQSGYIsdc8OGNmWduU2nYbM+UKdb4WL1oxtx4n2JQBCt2ny5/PldYYQlOg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648764540; a=rsa-sha256; cv=none; b=LNWps+c87kFY7ye3kaWGdVB3qZA1KMDKbQ192+5KsmPQBHsqi3vv7RadqkTwv0hm374FYP chHERL3BMLqKt+vawGTct8ba7M49LItHXICbpD+pkW40Tx/R3ffrHoTIbArDLKdOvmjQMz 2r+TH/1iACF4m34iYtUGKEzP6UraW9PVEIac7SShkPa7fuTyMDkx1daY7XCWQhVeEX1Zsl dmKm6R3LinD8pXYqbbbio1wCdrY3RYHgrXfSzj85OLd7jjTWMzO4mZGagTohNtwn0qwRhz hwVsUAL7w2Ghsp5tDNkzmmvLC0spzPub8TVOo3055/xft3iQTdFk/qcoK1NAFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262966 Bug ID: 262966 Summary: ports-mgmt/pkg: pkg can't recover from a corrupt vulnerability database. Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: pkg@FreeBSD.org Reporter: peterj@FreeBSD.org Assignee: pkg@FreeBSD.org Flags: maintainer-feedback?(pkg@FreeBSD.org) The lastest 410.pkg-audit run on one of my systems failed and reported: Checking for packages with security vulnerabilities: pkg: archive_read_data_into_fd((null)) failed: Lzma library error: Corrupted input data pkg: Invalid end of XML pkg: cannot process vulnxml Looking at /var/db/pkg/vuln.xml, it is obviously truncated but when I manua= lly run: $ sudo pkg audit -F it just reports that the database is up to date. Instead, I need to manual= ly remove the corrupt vuln.xml and then run "pkg audit -F". I would expect ei= ther an option to force a fetch or for "pkg audit" to verify the integrity of the existing database and re-fetch the database if it's corrupt. --=20 You are receiving this mail because: You are the assignee for the bug.=