Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp144130imm; Thu, 30 Aug 2018 18:37:40 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYhhqTHEXclGoB8JmhDH/a5yalSIiMM5/0g23D5NiUv7HRUgqB7OEt/WT8BIbmBW8iEyTPR X-Received: by 2002:a65:4384:: with SMTP id m4-v6mr12175971pgp.265.1535679460871; Thu, 30 Aug 2018 18:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535679460; cv=none; d=google.com; s=arc-20160816; b=kKKXMfUdHrLBjrn6DgeiEeLAJhEToczfNTdrmi09ljkJuLI/8Hjdvhl9hUqiBJeoVf n+kXWXPpxRojxgW8qQ3+kAighwP6FdNfzP3zHxb8SL1/HkPBo8qsIjJ+dlWE/jlF+Ut8 YZZxDaYWy7mYsidtF9lBnax5QW1tsPHi1r+DG+S4/BE7H1v+Z2dHlsUNx2ELOs50wY6A H46H+A2edY5VJ7HMBvO7eL3OUu8SM6GhUaVyLcyIY5xmkWtYB9bTQ0aTPN7Xsmi2hUqW p16pvlnNkX2G/Loxuggc4gMboAZpyj0vrzvS8dZbeOCAhr4+eDDcAanVF9ycI2qVKTGg 8GXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=f2GNbtlFcY1TIVzxiubqydAQ0jpxS/w1bwW/ErrCSqE=; b=nwpCc3bxVPOx1/4xRe21mU4sUvSPIsXC5/3LTGFxZemFyX7Dst769EzzMdsF9dbzUv JQk0hBE8rYMeGFAM5FReZbhwlV8Tw5Nxm9oj+bQWzJVDRpk77EaIuJwB0SdaxEkmFYjW D2zDft+0cmCr5LfNR5qoF3BxH1Uf76hxirE3QPqwSJqVZcisv3W+QG0H/tiCTFO+v94w woRsS501Iz/M/MjQH6fqMpJjD5G5EptSYdt3zrRX4l8xIV+Lfpi9JkKG6rcxauJqVqZP KK0aOMuVgy8W0UaiJSvHyAZh3IC1jWeFYrGswlPQNP0QgP//a/ZZueqfY0wtXAhWEpKp P04Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=jOtdXgUN; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10-v6si8655967plk.302.2018.08.30.18.37.25; Thu, 30 Aug 2018 18:37:40 -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=@google.com header.s=20161025 header.b=jOtdXgUN; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727233AbeHaFlT (ORCPT + 99 others); Fri, 31 Aug 2018 01:41:19 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:41035 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbeHaFlT (ORCPT ); Fri, 31 Aug 2018 01:41:19 -0400 Received: by mail-pl1-f195.google.com with SMTP id b12-v6so4646248plr.8 for ; Thu, 30 Aug 2018 18:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=f2GNbtlFcY1TIVzxiubqydAQ0jpxS/w1bwW/ErrCSqE=; b=jOtdXgUNTnL44Hd/GjjOezTI9HTdTUOvfQSnJ+cSxCf2rFiTJCMTd+26kowPq+9i9h YsxCc+0Ybd0rQj+X6K1eNs3R4Wf5cXlgLPrYvi3AwCh+wQhZqYZMTxKuLuGTuZoCabCl Jj4+lH5PK92vPlN5hT9RLCjjvOhfAEASZwErBBsz79CPX1jCs9E54RF1NLkKCPh7Zjhg 79un43mm/DCo6dOk693dzHSbM6nKtdYg4mPjI8JJo5BvYiu7Cjw0xZ6ThvR1bohBv6h+ v9f829OeRyePjKZIGPUuyjKJ3aZAQB2R8Y9IAES7DSCgHynbSzu51TVuaNMa23pDjpL4 pYGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=f2GNbtlFcY1TIVzxiubqydAQ0jpxS/w1bwW/ErrCSqE=; b=XSf2CixFW4fA7KQi1T1G4srWyCKHRkvm7i7McJQjTMUCIolwaqY3iSZ/f69xHxbfoZ 5wGuWCP+Uktb48dJINJnrswrXNCcRgX/7sMUhd1w/r+jDzi6++1WH7XJztJBefPl6JYD QoV7JNfvKVCZwsa3vOIpCCd375o6qloVQwWYvgScHJD8QOngMdWG2BswcZfElMW02LvO R2jUwIusObUgfeQK7PKUgheIbjhimZp48UO97O+RTZqWpzkcEaKaHgR7s38LMQqbrvvy d3HmheXKaxYv15BgT/p01nr+nwpRzBtI8PJ/o3qEsjPw8iGPqzVSSy6EDFgRajifB9du eHUw== X-Gm-Message-State: APzg51Ax4xqlIOxINumNS2DqcdWjeOcK5zwKfLq7FqwItRFvciR4frFa uTQjG2Tceqg0haQfobzqeErlyw== X-Received: by 2002:a17:902:b784:: with SMTP id e4-v6mr12968669pls.204.1535679379941; Thu, 30 Aug 2018 18:36:19 -0700 (PDT) Received: from drosen.mtv.corp.google.com ([2620:0:1000:1612:726:adc3:41a6:c383]) by smtp.gmail.com with ESMTPSA id 5-v6sm11763860pgc.86.2018.08.30.18.36.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 18:36:19 -0700 (PDT) Subject: Re: [PATCH] staging: android: ion: check for kref overflow To: Greg Kroah-Hartman Cc: stable@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com References: <20180830230946.228701-1-drosen@google.com> <20180831004144.GC20664@kroah.com> From: Daniel Rosenberg Message-ID: <589c036d-450a-3f3b-8f5a-4148713d4bfb@google.com> Date: Thu, 30 Aug 2018 18:36:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180831004144.GC20664@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/30/2018 05:41 PM, Greg Kroah-Hartman wrote: > On Thu, Aug 30, 2018 at 04:09:46PM -0700, Daniel Rosenberg wrote: >> This patch is against 4.9. It does not apply to master due to a large >> rework of ion in 4.12 which removed the affected functions altogther. >> 4c23cbff073f3b9b ("staging: android: ion: Remove import interface") >> >> Userspace can cause the kref to handles to increment >> arbitrarily high. Ensure it does not overflow. >> >> Signed-off-by: Daniel Rosenberg >> Signed-off-by: Greg Kroah-Hartman > I signed off on this? Where? When? Are you sure? > > greg k-h The sign off was on the 4.4.y version that I cherry-picked this from. There was a trivial conflict moving it to 4.9, but it did not modify any changed lines, so I hadn't thought that was worth noting on the patch. I apologise if leaving the signed-off-by was incorrect here. -Daniel