From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932688AbdJXKZm (ORCPT ); Tue, 24 Oct 2017 06:25:42 -0400 Received: from imap.thunk.org ([74.207.234.97]:52968 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932267AbdJXKZj (ORCPT ); Tue, 24 Oct 2017 06:25:39 -0400 Date: Tue, 24 Oct 2017 06:25:28 -0400 From: "Theodore Ts'o" To: Greg KH Cc: Chen Feng , zhaoyukun@huawei.com, arnd@arndb.de, linux-kernel@vger.kernel.org, suzhuangluan@hisilicon.com, dan.zhao@hisilicon.com Subject: Re: [PATCH RFC] random: fix syzkaller fuzzer test int overflow Message-ID: <20171024102528.7oywdwjriesoh3mk@thunk.org> Mail-Followup-To: Theodore Ts'o , Greg KH , Chen Feng , zhaoyukun@huawei.com, arnd@arndb.de, linux-kernel@vger.kernel.org, suzhuangluan@hisilicon.com, dan.zhao@hisilicon.com References: <1508831057-64195-1-git-send-email-puck.chen@hisilicon.com> <20171024090927.GA20625@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171024090927.GA20625@kroah.com> User-Agent: NeoMutt/20170609 (1.8.3) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 24, 2017 at 11:09:27AM +0200, Greg KH wrote: > On Tue, Oct 24, 2017 at 03:44:17PM +0800, Chen Feng wrote: > > [pid:11940,cpu6,syz-executor][flp_ioctl]cmd[0x1] > > Restart is not permit > > ================================================================= > > UBSAN: Undefined behaviour in > > kernel/linux-4.4/drivers/char/random.c:676:19 > > signed integer overflow: > > 2147483645 + 268435455 cannot be represented in type 'int' > > CPU: 4 PID: 11941 Comm: syz-executor Not tainted 4.4.76+ #2 > > Does this also happen on 4.14-rc6? No. It was fixed in 4.8, by commit 86a574de4590: "random: strengthen input validation for RNDADDTOENTCNT". - Ted