From nobody Fri Dec 17 14:26:14 2021 X-Original-To: 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 8E80318E6267 for ; Fri, 17 Dec 2021 14:26:14 +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 4JFrrQ232zz3j6p for ; Fri, 17 Dec 2021 14:26:14 +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 191C91D4E8 for ; Fri, 17 Dec 2021 14:26:14 +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 1BHEQE9u085776 for ; Fri, 17 Dec 2021 14:26:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BHEQEkF085775 for bugs@FreeBSD.org; Fri, 17 Dec 2021 14:26:14 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: bugs@FreeBSD.org Subject: [Bug 260493] route command can trigger 'integer divide fault' Date: Fri, 17 Dec 2021 14:26:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sjorge+signup@blackdot.be X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639751174; 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=LQE/WvkHLo4MXCd4fEQK5GMXCFIb7eXo+mGi7iB+Vt8=; b=qZ/YEKpMKu7D8UFjWYZ45AqGOhQlcEwBZM2atfqDaZgf/sDxNxqsTcZInTvVz/9JnS2r3N am3ziPP1TO2fK/H5fbQm/YVeiK+B/PpmIgDI1/LtoGGV6iSaPejO5s6+Q7QBGh4HwgfmO7 ryykV5MnXn9m9U2r8Zw5wA0GwlHhU5PKqq0EKPca76AcH8svhmGnvmEVrgHqNt7SwirLT5 5rlsuDI22Wg4mo2AzGOgkPb7FgOkTKASktRQwUP8zWgZ8ZGCOPgsrkaFPE6UDts6pP81BW ao6FIFyjmbu3t9xLCqBXJP/NekDJjCIoywCrffkYfCzZP1pm2ECipzYU+w1b0Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639751174; a=rsa-sha256; cv=none; b=KuFd5sNbUXGgB2Ar5Z3ET8YcDyznW8i4+nWRiinml+QHFg3f4xFTJDZtRHR+apKRqdLBaw DJ8Zu7GM0EL+7zm1k5w1GPqv8xnaEOoz+yvKnxmPVlBNb5eqSsJT+/ziSsRWutfIrZq5pB dKqCK+AkUql7tyqRl5l8voyyf+816s/2rJRm01Cac58HTQ3Lpda/cMW6c6WqMVLwvixN6A 0Pz1MafvJUGhBxqTTWl/wUUvRDDvH2HYFeC95Oq0DUwkufGEOnbP1u6YbC/ArFBwWZq1Kr AwvfD/q80yBCaaqbHL8UR4giw5+6aDf3qD0H9p16AycjZICqrIvCvM8gPoxGaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260493 Bug ID: 260493 Summary: route command can trigger 'integer divide fault' Product: Base System Version: 13.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: sjorge+signup@blackdot.be I fat fingered a route command while and noticed I killed the entire FreeBSD host, inspecting the console showed: --- Fatal trap 18: integer divide fault while in kernel mode cpuid =3D 3; apic id =3D 03 instruction pointer =3D 0x20:0xffffffff80d474c3 stack pointer =3D 0x28:0xfffffe00ab817c80 frame pointer =3D 0x28:0xfffffe00ab817ce0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 52955 (route) trap number =3D 18 panic: integer divide fault cpuid =3D 3 time =3D 1639750662 KDB: stack backtrace: #0 0xffffffff80c574c5 at kdb_backtrace+0x65 #1 0xffffffff80c09ea1 at vpanic+0x181 #2 0xffffffff80c09d13 at panic+0x43 #3 0xffffffff8108b1b7 at trap_fatal+0x387 #4 0xffffffff8108a67e at trap+0x8e #5 0xffffffff81061958 at calltrap+0x8 #6 0xffffffff80d47ba3 at nhgrp_get_addition_group+0x173 #7 0xffffffff80d4662c at add_route_mpath+0x3c #8 0xffffffff80d4a57b at rib_add_route+0x4eb #9 0xffffffff80d5002c at route_output+0xf3c #10 0xffffffff80ca91d3 at sosend_generic+0x633 #11 0xffffffff80ca9660 at sosend+0x50 #12 0xffffffff80c7f159 at soo_write+0x49 #13 0xffffffff80c76798 at dofilewrite+0x88 #14 0xffffffff80c7630c at sys_write+0xbc #15 0xffffffff8108babc at amd64_syscall+0x10c #16 0xffffffff8106227e at fast_syscall_common+0xf8 --- The command in question was: root@proteus:/conf/carp.d # route add -inet default 10.23.12.1 -weight 0 client_loop: send disconnect: Broken pipe Granted `-weight 0` was an error on my part because I fat fingered the numb= er, but it probably should not bring down the entire host. --=20 You are receiving this mail because: You are the assignee for the bug.=