From owner-cvs-all@FreeBSD.ORG Mon May 26 10:01:13 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E69D41065677; Mon, 26 May 2008 10:01:13 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B256F8FC1A; Mon, 26 May 2008 10:01:13 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m4QA1DGi016484; Mon, 26 May 2008 10:01:13 GMT (envelope-from kib@repoman.freebsd.org) Received: (from kib@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m4QA1D0A016483; Mon, 26 May 2008 10:01:13 GMT (envelope-from kib) Message-Id: <200805261001.m4QA1D0A016483@repoman.freebsd.org> From: Konstantin Belousov Date: Mon, 26 May 2008 10:01:13 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern kern_cpuset.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2008 10:01:14 -0000 kib 2008-05-26 10:01:13 UTC FreeBSD src repository Modified files: sys/kern kern_cpuset.c Log: Take into account possible overflow when multiplying. The casuality is the malloc call later, panicing kernel due to the oversized allocation. Reported by: pho Reviewed by: jeff Revision Changes Path 1.10 +2 -2 src/sys/kern/kern_cpuset.c