From owner-freebsd-bugs Mon Apr 29 10:30:21 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 40EF237B41D for ; Mon, 29 Apr 2002 10:30:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3THU1L37433; Mon, 29 Apr 2002 10:30:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9170C37B41B for ; Mon, 29 Apr 2002 10:21:54 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3THLsN36037; Mon, 29 Apr 2002 10:21:54 -0700 (PDT) (envelope-from nobody) Message-Id: <200204291721.g3THLsN36037@freefall.freebsd.org> Date: Mon, 29 Apr 2002 10:21:54 -0700 (PDT) From: Mike Hibler To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/37573: kernel crashes when changing dummynet pipe characteristics Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37573 >Category: kern >Synopsis: kernel crashes when changing dummynet pipe characteristics >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 29 10:30:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Mike Hibler >Release: 4.3, 4.5, current >Organization: University of Utah >Environment: >Description: There is an obvious race in netinet/ip_dummynet.c:config_pipe(). Interrupts are not blocked when changing the params of an existing pipe. The specific crash observed: ... -> config_pipe -> set_fs_parms -> config_red malloc a new w_q_lookup table but take an interrupt before intializing it, interrupt handler does: ... -> dummynet_io -> red_drops red_drops dereferences the uninitialized (zeroed) w_q_lookup table >How-To-Repeat: Change the characteristics of an active pipe frequently. >Fix: In ip_dummynet.c:config_pipe(), in the not-a-new-pipe case, splimp() protect pipe/queue manipulations (primarily the call to set_fs_parms). >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message