Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752740AbbBWVKT (ORCPT ); Mon, 23 Feb 2015 16:10:19 -0500 Received: from casper.infradead.org ([85.118.1.10]:42139 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751591AbbBWVKR (ORCPT ); Mon, 23 Feb 2015 16:10:17 -0500 Date: Mon, 23 Feb 2015 22:10:02 +0100 From: Peter Zijlstra To: Heinrich Schuchardt Cc: Andrew Morton , Aaron Tomlin , Andy Lutomirski , Davidlohr Bueso , David Rientjes , "David S. Miller" , Fabian Frederick , Guenter Roeck , "H. Peter Anvin" , Ingo Molnar , Jens Axboe , Joe Perches , Johannes Weiner , Kees Cook , Michael Marineau , Oleg Nesterov , "Paul E. McKenney" , Prarit Bhargava , Rik van Riel , Rusty Russell , Steven Rostedt , Thomas Gleixner , Vladimir Davydov , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4 v4] kernel/fork.c: avoid division by zero Message-ID: <20150223211002.GG5029@twins.programming.kicks-ass.net> References: <20150222075825.GA20626@gmail.com> <1424722477-23758-1-git-send-email-xypron.glpk@gmx.de> <1424722477-23758-3-git-send-email-xypron.glpk@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1424722477-23758-3-git-send-email-xypron.glpk@gmx.de> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 737 Lines: 18 On Mon, Feb 23, 2015 at 09:14:35PM +0100, Heinrich Schuchardt wrote: > With 32-bit calculus there is no solution which delivers valid results > for all possible combinations of the parameters. So I can't help but be bugged by this (my problem I know); calculus is the mathematics of change; its differential equations and integrals. What we do here is modular arithmetic on a commutative ring. Please use calculation as you do here: > Hence a 64-bit calculation can be used as solution. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/