Received: by 10.223.185.116 with SMTP id b49csp991452wrg; Fri, 16 Feb 2018 10:25:38 -0800 (PST) X-Google-Smtp-Source: AH8x224zuJElmNqh5xJlF1XD9TZ0dHgnufMgSElT1t4Mz27i3BUA7VUxtZ+ff15Vl7/An8aMhpow X-Received: by 2002:a17:902:5a1:: with SMTP id f30-v6mr6635216plf.124.1518805538524; Fri, 16 Feb 2018 10:25:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518805538; cv=none; d=google.com; s=arc-20160816; b=HmABaY/qJ/x5yXR86snhxg9DUTpVKLi/mdojmIMnXjUroC6MJvY15jtombOwsGCSvk HTmZ96kHhepSfhfGRNhEJQHbHhAOP6nhecggyNrXYPjIiPz0dCSQRiCVIu1FVH1vk0kR It4qbRys4Z39So4Ha2thTc/9f7gdZSzBHTkUq7igIX7CbXmPDbLJF+qo3tscCDzwYRgM FTd/8QkhKFGo0v0zPTz301eMLhh9sLnQYpoBbCHmFWMFa6oquOZRg06IDf12lsPgCusu Yty8KwEY6fbG/wlk9ahIz3Omf/vfaLaFAiXPMtBJMEjE/3DJ1eZ5n/OC2pYh/ydYg82T G73g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=fekil0cxRPgE9OE1iPqE+9hZbIkkOFsYd9IjogNfL4Y=; b=tUk944h6+d0be0LeOwRp9lGGg7ADVbAhjbrGT+5b5zrHexp9ROVPstHNfFgb+rSmDz P0EYJASRtSmLuSIWyvoVaAWhVjwuaRZTQDqODAH/yEPAbTJQp4QZbEBkjVqaTl/wXDjv Anerkn71FirkONysclXQGH8Iv7f7GfMP0qcwpJP41LAOnuzT8UExsBRzNarorjnw9S07 ADlzNmF44ubtVMEycgDxVPtKWQENJrtcVCUuDdHWF9dvjnxCX3TtN1Gdk5AHKM4tEEwW 9UD6yh6sqVd8iZuyJQAgnGFY3I3Ecx9Fd8QGf/Q+vSkkaVs6ILy23MOvaZDCPba215KL ySqQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u66si1760034pgc.651.2018.02.16.10.25.23; Fri, 16 Feb 2018 10:25:38 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1164986AbeBOXbg (ORCPT + 99 others); Thu, 15 Feb 2018 18:31:36 -0500 Received: from mail-oi0-f44.google.com ([209.85.218.44]:44431 "EHLO mail-oi0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1163785AbeBOXbf (ORCPT ); Thu, 15 Feb 2018 18:31:35 -0500 Received: by mail-oi0-f44.google.com with SMTP id b3so1103885oib.11 for ; Thu, 15 Feb 2018 15:31:34 -0800 (PST) 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-language :content-transfer-encoding; bh=fekil0cxRPgE9OE1iPqE+9hZbIkkOFsYd9IjogNfL4Y=; b=UTXhX/cKk0yWiGuUuE3NV1D660EPJi2zewzRaGk37nPHLyNAUdGLJFcWHJAcqGUvcK swEMh5gaRCfiCEPOWNf89iZ065d0oYNnGSZNGVcpZANOEgg2CWR07AiuLsjTcyOqCDyM tAi4tTp37G9Ie3qLw/IWA56F0YBhCrWzdRZxNeUpfRzldQZw8lHG4URevrAUygqDtUtB ztX9UMj+ExeKEE2nP/2vH9yq8+zcJTHDGYRsArveHp5HpoJhSuswYPEudQsynlo+dJue H1nrY7tNna2htzD/yB+YJnb5BsobtrjhxgqDxheQNiOUDmZYiN9eXfk3MMsg6BtaacZ0 ZIZw== X-Gm-Message-State: APf1xPBE0XE0rTKHJiTspO4Kmp+PA7EGIaoqEc9NAJ4Mzq4ugRQ6vWDe TVt/loCydlopOgyKgBYDL3jVla6TgTA= X-Received: by 10.202.193.131 with SMTP id r125mr3172536oif.76.1518737493904; Thu, 15 Feb 2018 15:31:33 -0800 (PST) Received: from ?IPv6:2601:602:9802:a8dc::f21a? ([2601:602:9802:a8dc::f21a]) by smtp.gmail.com with ESMTPSA id d190sm8634826oig.32.2018.02.15.15.31.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 15:31:32 -0800 (PST) Subject: Re: [PATCH] staging: android: ion: Initialize dma_address of new sg list To: Liam Mark , Dan Carpenter Cc: Sumit Semwal , devel@driverdev.osuosl.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org References: <20180212065620.iqlzczhqzlrmel5n@mwanda> From: Laura Abbott Message-ID: <9aa626cf-c122-55af-0c95-a9e9c12c6f19@redhat.com> Date: Thu, 15 Feb 2018 15:31:31 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-8859-7; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/12/2018 01:25 PM, Liam Mark wrote: > > On Mon, 12 Feb 2018, Dan Carpenter wrote: > >> On Fri, Feb 09, 2018 at 10:16:56PM -0800, Liam Mark wrote: >>> Fix the dup_sg_table function to initialize the dma_address of the new >>> sg list entries instead of the source dma_address entries. >>> >>> Fixes: 17fd283f3870 ("staging: android: ion: Duplicate sg_table") >>> Signed-off-by: Liam Mark >> >> How did you find this bug? What are the user visible effects of this >> bug? I'm probably going to ask you to send a v2 patch with a new >> changelog depending on the answers to these questions. > > I noticed the bug when reading through the code, I haven?t seen any > visible effects of this bug. > > From looking at the code I don?t see any obvious ways that this bug would > introduce any issues with the current code base. > > Liam > Given the way we duplicate the sg_list this should be harmless but you are right it's cleaner if we initialize the new list. You can add my Ack when you update with a new change log clarifying this. Thanks, Laura