From owner-freebsd-bugs@freebsd.org Wed Dec 20 11:17:31 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C80BE81AA2 for ; Wed, 20 Dec 2017 11:17:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EE8D868501 for ; Wed, 20 Dec 2017 11:17:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id vBKBHU5H057338 for ; Wed, 20 Dec 2017 11:17:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 224479] kernel panic in reboot+swapoff sys call Date: Wed, 20 Dec 2017 11:17:30 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: wosch@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2017 11:17:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224479 Bug ID: 224479 Summary: kernel panic in reboot+swapoff sys call Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: wosch@FreeBSD.org I built a new kernel on -current. The build was successfully, and I rebooted the machine. To my surprise the machine hangs in a kernel panic during swap= off sys call. It turns out that if the machine used some swap, it will panic at the next reboot. This is 100% reproducible. How to repeat: # make sure that the machine used some swap. Here I=E2=80=99m using a perl = script which will=20 # grow at least a 1GB RAM big $ perl -e '$a=3D`man tcsh`; for(0..3000) { $b.=3D$a}' # check the swap usage, e.g. $ top -b 2 | egrep ^Swap Swap: 2500M Total, 18M Used, 2482M Free # reboot the machine $ reboot on the console I get this: swap_pager: I/O error - pagein failed; blkno 280694, size 4096, error 5 panic: swap_pager_force_pagein: read from swap failed I saw this on two machines, one use a 1GB swap device and the other a 2GB s= wap file cat /etc/fstab=20 /dev/vtbd0p3 / ufs rw 1 1 cat /etc/fstab=20 md99 none swap sw,file=3D/var/swap/swap.0,late 0 0 This problem is new to me, I didn=E2=80=99t saw this 3 weeks ago in Novembe= r. Using swapoff/swapon on the command line works fine. Workaround: before a reboot, disable swap with the swapoff command: $ swapoff -a swapoff: removing /dev/md99 as swap device $ reboot --=20 You are receiving this mail because: You are the assignee for the bug.=