From owner-freebsd-bugs@freebsd.org Wed Dec 20 21:13:58 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 B4418EA56E5 for ; Wed, 20 Dec 2017 21:13:58 +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 A2E163C18 for ; Wed, 20 Dec 2017 21:13:58 +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 vBKLDwq3026935 for ; Wed, 20 Dec 2017 21:13:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 224491] REDZONE: Buffer overflow detected in swap Date: Wed, 20 Dec 2017 21:13:58 +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: shurd@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 21:13:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224491 Bug ID: 224491 Summary: REDZONE: Buffer overflow detected in swap Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: shurd@FreeBSD.org When shutting down with redzone enabled, I get the following: REDZONE: Buffer overflow detected. 16 bytes corrupted after 0xfffffe0091e67= 688 (6710920 bytes allocated). Allocation backtrace: #0 0xffffffff80d66c09 at redzone_setup+0xe9 #1 0xffffffff80a35323 at malloc+0x273 #2 0xffffffff80a8c967 at blist_create+0x97 #3 0xffffffff80d6bcd7 at swaponsomething+0xa7 #4 0xffffffff80d6a3d3 at sys_swapon+0x413 #5 0xffffffff80f06ceb at amd64_syscall+0x79b #6 0xffffffff80ee58eb at Xfast_syscall+0xfb Free backtrace: #0 0xffffffff80d66f74 at redzone_check+0x304 #1 0xffffffff80a353f4 at free+0x54 #2 0xffffffff80d6ac2d at swapoff_one+0x61d #3 0xffffffff80d6adb7 at swapoff_all+0xd7 #4 0xffffffff80b05c18 at bufshutdown+0x398 #5 0xffffffff80a5a259 at kern_reboot+0x1d9 #6 0xffffffff80a5a024 at sys_reboot+0x3c4 #7 0xffffffff80f06ceb at amd64_syscall+0x79b #8 0xffffffff80ee58eb at Xfast_syscall+0xfb Uptime: 1h29m58s This is with -CURRENT as of today, zfsroot with a separate swap partition that's considerably larger than current RAM (approx 6x as large). 16GB of = RAM, 96GB of swap. --=20 You are receiving this mail because: You are the assignee for the bug.=