Received: by 10.223.185.116 with SMTP id b49csp1055834wrg; Fri, 23 Feb 2018 11:06:05 -0800 (PST) X-Google-Smtp-Source: AH8x225IzhuZpKRZjayScSFJ/VX2NsAGEPKamWx341bkIVw+AK+fNQHUf9RdsFO0mV7Y2msR9l4Y X-Received: by 10.101.97.207 with SMTP id j15mr2161211pgv.266.1519412765167; Fri, 23 Feb 2018 11:06:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519412765; cv=none; d=google.com; s=arc-20160816; b=QiSYvER2mlrsieRS0ZRWi3wtjpJUqCCZJ7imFjiSjxSxZ2CbCTvd0O0fmTnJtSDkhn 2sMddPIEHRB92+rWgnoE3MdRFD0B8VJipjnsMhYkKF2Z1OpoGmfJVU2fSvz2q7t1O6JK YYetm8rxNFOUnMru8jnWC03M2DVAzTwosYbFAs8MYLYRnaZ/3UdIXk2HU/JkhVINKywk XWB79UPzWB3duxAcekSK3iIe1LbJObkZuI+cG85kedJaif53WkQSiOGJF9eQxM5tA9Aq p3XPopwXnkdvDJ9ibRMh8EAP1Fu7xE2BPVopjbuHFrJpPPJ0wU+40sVJRlHSx5qw5T7L J7iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=dLj1A7+phXVtey8MA9D/tAwi9T3GlK2SMzt9cHAT8FI=; b=WV77QohcuVXCDykRTH3h3/8zMZNVm8SGv7UoKf9U3Khe+HTdxp52ACtFOWA/kPx7DM VsgtcKyWPaR5Es9b1Dbhw6Lui6nttHZYWPvQnuTIWPtw9JVZXUDA0lldPZjnAKxjrbFr Qly/Hz16S7zO24+l4ZGewyvrFCKOyOerP9rvRoL7Mtyvzu1nq3dVCCHl9w5MdQCCyiHf ul7vtfecVlE0f4bL19tgkvw6FGhCoZHo22qY2dR+O1zlgAhVr5GKF3rK130giVjwVnA1 Vo0olfKnMxG7y92+dFqMHDjTTgHYirsHJAYoSdH3CzagIc0aUlFUJi5cWu8CG4ClZoFX 4sDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u17si2222918pfm.190.2018.02.23.11.05.50; Fri, 23 Feb 2018 11:06:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965565AbeBWS6S (ORCPT + 99 others); Fri, 23 Feb 2018 13:58:18 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:50474 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965104AbeBWS6P (ORCPT ); Fri, 23 Feb 2018 13:58:15 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DBA59107C; Fri, 23 Feb 2018 18:58:14 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, syzbot+fa2d5f63ee5904a0115a@syzkaller.appspotmail.com, syzbot , Laura Abbott Subject: [PATCH 4.15 09/45] staging: android: ion: Switch from WARN to pr_warn Date: Fri, 23 Feb 2018 19:28:48 +0100 Message-Id: <20180223170716.786315194@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170715.197760019@linuxfoundation.org> References: <20180223170715.197760019@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Laura Abbott commit e4e179a844f52e907e550f887d0a2171f1508af1 upstream. Syzbot reported a warning with Ion: WARNING: CPU: 0 PID: 3502 at drivers/staging/android/ion/ion-ioctl.c:73 ion_ioctl+0x2db/0x380 drivers/staging/android/ion/ion-ioctl.c:73 Kernel panic - not syncing: panic_on_warn set ... This is a warning that validation of the ioctl fields failed. This was deliberately added as a warning to make it very obvious to developers that something needed to be fixed. In reality, this is overkill and disturbs fuzzing. Switch to pr_warn for a message instead. Reported-by: syzbot+fa2d5f63ee5904a0115a@syzkaller.appspotmail.com Reported-by: syzbot Signed-off-by: Laura Abbott Signed-off-by: Greg Kroah-Hartman --- drivers/staging/android/ion/ion-ioctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/staging/android/ion/ion-ioctl.c +++ b/drivers/staging/android/ion/ion-ioctl.c @@ -70,8 +70,10 @@ long ion_ioctl(struct file *filp, unsign return -EFAULT; ret = validate_ioctl_arg(cmd, &data); - if (WARN_ON_ONCE(ret)) + if (ret) { + pr_warn_once("%s: ioctl validate failed\n", __func__); return ret; + } if (!(dir & _IOC_WRITE)) memset(&data, 0, sizeof(data));