From owner-freebsd-stable@FreeBSD.ORG Sat Feb 16 08:33:20 2013 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4892A970 for ; Sat, 16 Feb 2013 08:33:20 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by mx1.freebsd.org (Postfix) with ESMTP id B194EF8D for ; Sat, 16 Feb 2013 08:33:19 +0000 (UTC) Received: by mail-wi0-f176.google.com with SMTP id hm14so1946507wib.9 for ; Sat, 16 Feb 2013 00:33:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=9yjNq79NfTHIf3AGQGpOoVMlgsh6YT6lI6kJ8WJl4BQ=; b=F9oWooD42/D8rl1RQrNJv/6C7O2KDhlnSNTSAWPh3z3puw9wm6/lriLpaF+zQd4pee 1EaIiCkiJW9iJXVQ2iYFBFYls2yujGfbbyYQsqCfFHrghwKRE8sdxMBLCcsfJjMQiHEu aPWYsycFHGku3flzgWS5gQULabtJ78qrcL4Sq3YWCXC5sHOq1x6PKBCtbXErX7TMUT2H WqV1D+byX8LO/1aGRs24hgqcDf4h0gcRErQdVfvTEsv3tHu/lJSUsJ4qoxGShMa9WHQ0 pXfDfyIfN0tiM9jEfVL/IQ0QjhkKgzwmOIkBvmgc6Ij90wf+NzEaL2+Ondzh7xP9jicx PLIw== MIME-Version: 1.0 X-Received: by 10.180.84.165 with SMTP id a5mr10466315wiz.6.1361003598424; Sat, 16 Feb 2013 00:33:18 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.236.88 with HTTP; Sat, 16 Feb 2013 00:33:18 -0800 (PST) In-Reply-To: <511CECCC.60400@grosbein.pp.ru> References: <511CECCC.60400@grosbein.pp.ru> Date: Sat, 16 Feb 2013 00:33:18 -0800 X-Google-Sender-Auth: xV6DGke51ShVWf0OMu6ofwXxUtY Message-ID: Subject: Re: i386: vm.pmap kernel local race condition From: Adrian Chadd To: Eugene Grosbein Content-Type: text/plain; charset=ISO-8859-1 Cc: stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Feb 2013 08:33:20 -0000 .. as a side note, you should use the concurrency extension for helpers; it won't need 500 helpers.. Adrian On 14 February 2013 05:55, Eugene Grosbein wrote: > Hi! > > I've got FreeBSD 8.3-STABLE/i386 server that can be reliably panicked > using just 'squid -k rotatelog' command. It seems the system suffers > from the problem described here: > > http://cxsecurity.com/issue/WLB-2010090156 > > I could not find any FreeBSD Security Advisory containing a fix. > > My server has 4G physical RAM (about 3.2G available) and runs > squid (about 110M VSS) with 500 ntlm_auth subprocesses. > Lesser number of ntlm_auth sometimes results in squid crash > as it sometimes has several hundreds requests per second to authorize > and is intolerant to exhaustion of free ntlm_auth. > > "squid -k rotatelog" at midnight results in crash: > > Feb 14 00:03:00 irl savecore: reboot after panic: get_pv_entry: increase vm.pmap.shpgperproc > Feb 14 00:03:00 irl savecore: writing core to vmcore.1 > > Btw, I have coredump. > > vm.pmap.shpgperproc has default value (200) here, as well as m.v_free_min, > vm.v_free_reserved, and vm.v_free_target and KVA_PAGES. > > These crashes are pretty regular > > # last|fgrep reboot > reboot ~ Thu Feb 14 00:03 > reboot ~ Wed Feb 13 19:08 > reboot ~ Wed Feb 13 10:40 > reboot ~ Wed Feb 13 00:04 > reboot ~ Tue Feb 12 00:09 > reboot ~ Mon Feb 11 00:03 > reboot ~ Sun Feb 10 00:03 > reboot ~ Thu Feb 7 00:03 > reboot ~ Wed Feb 6 10:52 > reboot ~ Sun Feb 3 00:03 > reboot ~ Sat Feb 2 00:03 > > May this be considered as security problem? > Can it be fixed without switch to amd64? > I have only remote access to this production server, no serial console. > > Eugene Grosbein > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"