Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp928459ybi; Wed, 19 Jun 2019 10:14:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCjXD9nFmkBaqmYmm3uOWDvbNP8lATbcLmYG/CD2zJx7OykGBymSVdd2QjtNXbP6Gmshxw X-Received: by 2002:a17:90a:e38f:: with SMTP id b15mr12464943pjz.85.1560964455102; Wed, 19 Jun 2019 10:14:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560964455; cv=none; d=google.com; s=arc-20160816; b=i+UvzoKFFm1lToXWscQ8/Oq+BAzZSpsCC0qgR6WS+qNxDHE/fak2CdVuXIFrsQlVBm tDH4BtTteZARLXZ4diYi8YPsaysd4U2b3kQKj1iso8XppeKyFrYruRP/F6crZU7Z2s6J 8Jyhtd47hiU6d5KMf/V7JyYPqerxxDkfBqtpvybGCFKkWH1dfk3gvdsg3ISzrl1Msbjn MpuhvFLQgKu76g8DAIVvqkl0iksivkiZgyh2YP7NuVALZ5q1g1m1CSUyJUPgQNPznq76 5wI5fRy+K2X6zrlRghNet5cucysB/rTxhO4DszjvIo5T7BOSX4VBoNVndgLPqxwtm6/o w8qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JHcnjzMIgxWIVIjD4llCyd+VfTJGCLSyqTWyuUIRkAI=; b=LiffRIcDnhQweRpl1rruIqJzcIVmG88w9LdpyhDr/5E2kOQhAH+n0G+K4bOzK8tSgo YSuU6ZZOLOuxlKn0x0GJwuvROI/GcAEjWMSmIK8SDfx677UCKEKd4Bu2St+/fZD4JLKe YxcVGULE0EBlCe4YAZxLmfegyx+pbwoAXx5U8TTZakh1fUhaG0b0ekseckT3j83WQQh5 UE0BiAc9yfglK2EO/jW62aC9RA6CfommI35WLv7UEY9kg80RDjXXfYjV8Om6qsaTF9Lb 3JfNHE7X1g3jIATpOV3WiOeq6v0Q6VbmkSxlPgVUk/+z7d25oweDfKr/zaIuCxdtCzvn EOFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Qd/ZMLp+"; 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 g1si571624plp.406.2019.06.19.10.13.59; Wed, 19 Jun 2019 10:14:15 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b="Qd/ZMLp+"; 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 S1730068AbfFSRNr (ORCPT + 99 others); Wed, 19 Jun 2019 13:13:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:56206 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726091AbfFSRNq (ORCPT ); Wed, 19 Jun 2019 13:13:46 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0491420657; Wed, 19 Jun 2019 17:13:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560964425; bh=NeiH9zJI5Pw3DoSpPZBpoNunqGgfxafaUVIxJKhW7DA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qd/ZMLp+Z5l0+G4LxkQXhHg/RMC5dyuOr0xqS9JND9OxrCyzSdOYPmTCNpr6v1JAu /FqxoR9XUugVt8vI1OGXNiXisT5ejiwdxWQyiH8fIK1euTZtGZ6CNbI1TvqqlGs+en bTnJg5McpGXJE1W6eIbKK39A/j4/zMzhAftvs9ws= Date: Wed, 19 Jun 2019 19:13:43 +0200 From: Greg Kroah-Hartman To: Martin Weinelt Cc: linux-kernel@vger.kernel.org, Dan Carpenter , stable@vger.kernel.org Subject: Re: [PATCH 4.9 45/83] staging: vc04_services: prevent integer overflow in create_pagelist() Message-ID: <20190619171343.GD10107@kroah.com> References: <20190609164127.843327870@linuxfoundation.org> <20190609164131.760341489@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 19, 2019 at 06:02:07PM +0200, Martin Weinelt wrote: > Hi. > > On 6/9/19 6:42 PM, Greg Kroah-Hartman wrote: > > From: Dan Carpenter > > > > commit ca641bae6da977d638458e78cd1487b6160a2718 upstream. > > This commit breaks the kernel build because the vchiq_pagelist_info > struct is not defined in v4.9.182. > > It was only added in v4.10, in commit > 4807f2c0e684e907c501cb96049809d7a957dbc2. > > > Best regards, > > Martin Weinelt > > > In file included from ./include/uapi/linux/posix_types.h:4:0, > from ./include/uapi/linux/types.h:13, > from ./include/linux/compiler.h:224, > from ./include/linux/linkage.h:4, > from ./include/linux/kernel.h:6, > from > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:34: > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c: In > function 'create_pagelist': > ./include/linux/stddef.h:7:14: warning: return makes integer from > pointer without a cast [-Wint-conversion] > #define NULL ((void *)0) > ^ > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:385:10: > note: in expansion of macro 'NULL' > return NULL; > ^~~~ > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:391:12: > error: invalid application of 'sizeof' to incomplete type 'struct > vchiq_pagelist_info' > sizeof(struct vchiq_pagelist_info)) / > ^~~~~~ > In file included from ./include/uapi/linux/posix_types.h:4:0, > from ./include/uapi/linux/types.h:13, > from ./include/linux/compiler.h:224, > from ./include/linux/linkage.h:4, > from ./include/linux/kernel.h:6, > from > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:34: > ./include/linux/stddef.h:7:14: warning: return makes integer from > pointer without a cast [-Wint-conversion] > #define NULL ((void *)0) > ^ > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c:394:10: > note: in expansion of macro 'NULL' > return NULL; > ^~~~ Really? How come all of the built tests still succeed? Ah, arm systems :( Odd that we didn't catch this already, sorry about that. And that was my fault in the backport, which the build tests did catch. Odd that it didn't catch the failure after that... Anyway, thanks, I'll go revert this. greg k-h