From owner-freebsd-bugs@FreeBSD.ORG Fri Aug 1 22:30:15 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B3FED7E6 for ; Fri, 1 Aug 2014 22:30:15 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9BFB020CF for ; Fri, 1 Aug 2014 22:30:15 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s71MUFLM095659 for ; Fri, 1 Aug 2014 22:30:15 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 192321] New: Issuing ctladm getsync for non existing lun caused crash and reboot Date: Fri, 01 Aug 2014 22:30:15 +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: 10.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ndenev@gmail.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- 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: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Aug 2014 22:30:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192321 Bug ID: 192321 Summary: Issuing ctladm getsync for non existing lun caused crash and reboot Product: Base System Version: 10.0-STABLE Hardware: amd64 OS: Any Status: Needs Triage Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: ndenev@gmail.com Here's a transcript of a shell session and after the last command for a non existing LUN the box rebooted. [0:18][root@nas:ndenev]#ctladm devlist LUN Backend Size (Blocks) BS Serial Number Device ID 0 block 976707584 512 MYSERIAL 0 MYDEVID 0 1 block 976773168 512 MYSERIAL 1 MYDEVID 1 2 block 536870912 512 MYSERIAL 2 MYDEVID 2 [0:18][root@nas:ndenev]#ctladm getsync 0:0 0:0: sync interval: 0 [0:18][root@nas:ndenev]#ctladm getsync 0:1 0:1: sync interval: 0 [0:18][root@nas:ndenev]#ctladm getsync 0:2 0:2: sync interval: 0 [0:18][root@nas:ndenev]#ctladm getsync 0:3 OS : FreeBSD nas.home.lan 10.0-STABLE FreeBSD 10.0-STABLE #9 r269182: Wed Jul 30 23:18:23 UTC 2014 root@nas.home.lan:/usr/obj/usr/src/sys/NAS amd64 Console transcript of the crash : instruction pointer = 0x20:0xffffffff802b2a06 stack pointer = 0x28:0xfffffe0096031700 frame pointer = 0x28:0xfffffe0096031990 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 1200 (ctladm) trap number = 12 panic: page fault cpuid = 1 KDB: stack backtrace: #0 0xffffffff80510570 at kdb_backtrace+0x60 #1 0xffffffff804d51d5 at panic+0x155 ?? #2 0xffffffff806eadff at trap_fatal+0x38?? #3 0xffffffff806eb118 at trap_pfault+0x308 #4 0xffffffff806ea7c0 at trap+0x4a0 #5 0xffffffff806d0f82 at calltrap+0x8 #6 0xffffffff803d2cb4 at devfs_ioctl_f+0x114 #7 0xffffffff80527405 at kern_ioctl+0x255 #8 0xffffffff8052715c at sys_ioctl+0x13c #9 0xffffffff806eb731 at amd64_syscall+0x351 #10 0xffffffff806d126b at Xfast_syscall+0xfb Uptime: 5m11s Automatic reboot in 15 seconds - press a key on the console to abort -- You are receiving this mail because: You are the assignee for the bug.