Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1099982pxb; Fri, 27 Aug 2021 00:55:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaQ69BYBbosqVlm1N1YZOyZQRh4iaPKLlllGZPvjiLndTwepZHtbUAVta9moumisM5Bii0 X-Received: by 2002:a05:6e02:1aa8:: with SMTP id l8mr5438380ilv.226.1630050912576; Fri, 27 Aug 2021 00:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630050912; cv=none; d=google.com; s=arc-20160816; b=VfMukraXSCLYwEl2OaogLPQ8oaoZ9LP2yFsJCEeb2SQI9QSpMEekgXotFTYL7SaBXZ a1aEz4wM6VCQnxbyTmLtjYjAYBqJr2cak2P+A75pE6yNGFtAJP5FhPzPqAKnksnHcLUg b+tIIcOb6rR1U7ICK+Or4zN4MRXkOi97d8C9yjAa2ivy6YbJ+DTPuTcaoAMjlbBgBw6+ Q4+mmnpIdRFqtvf4Jn+q+DfJNMU8nx3mm4/azhP2Ijb1olqSunGUk1yLgHnreNtLRg+Z qBcEICRK3kamaXsH4szT4FUBgaybKl1+T0KrqPUdyJ40WDj//NQOuPr4Ks+gYZKhEyny /xFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=CNvP38919NyhYWdPvANs9XQ0JxJiZcSEJqLPjWrVUWQ=; b=Vpq9fmbLv5EeUtptxfZno32/a/R2xm9Itl10THyD5zhEv3F9QuEvbtvIgeKnaAVBBw bjTv5jFPnzXl4aDrP4wpMn8FM8rORHXsQoOPjnEWoFVd6MSBQeSnxGgF62dWCFELOUO5 Gihc5V9Znqg/6/EW64CeT+Zit1sGZG40ntdc67604Fr9htk0s4tCBc0P72beNm9TJjZj EZ6pb3R9j9F43SFuFbNDrR+fLqzpSUYVafw40c/8Xx5jPnXZ4FsJJks3BGz1kT8xTwTu NawMMye9drobt+R6wQekf0ucEZuEO1shuUo8cEHWGQqP6GYsSjYHEkwUB/g8e77eQ4ES 8Xvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Tnv3DVrG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si6187677ilf.63.2021.08.27.00.55.00; Fri, 27 Aug 2021 00:55:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Tnv3DVrG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244541AbhH0Hxx (ORCPT + 99 others); Fri, 27 Aug 2021 03:53:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244501AbhH0Hxw (ORCPT ); Fri, 27 Aug 2021 03:53:52 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE1E2C061757 for ; Fri, 27 Aug 2021 00:53:03 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id l2so4504982lfp.2 for ; Fri, 27 Aug 2021 00:53:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CNvP38919NyhYWdPvANs9XQ0JxJiZcSEJqLPjWrVUWQ=; b=Tnv3DVrGcNckVz8XtZvqs/b8pmFGa9HRRpLAMqh7XMTxrziE6rO4GPMZuHmewSXng9 r4mQTizQtjXRP57vTO/4UXAZsSK1SZ2hZ68zr67uYLT/Ti+WljX2j8GCv3LCprmPjwd+ TQurj9cW3LEI0QpQZwZAI9rH4osDX6Qpc2DSka8QLONBq7nSlwiBs1Sre4MVlA48yhMp 8Gy7FFJunEeoJp4oNTFRnbcTKuWHa4pv5sh/9gF4awqU1ZaKTlvyV+o00mjaDqmaCo8Z RXyEYEelzlYv8f8MPyE4NLVs3EQ+q2GZNPt5J/TL6oh/Jc01TZpCci9ktm9+Wd5qrrYS cQrA== 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=CNvP38919NyhYWdPvANs9XQ0JxJiZcSEJqLPjWrVUWQ=; b=sp2kEG0ZqqjYb9ksca6BvsnsK+eXj/5jDYteLhB5cJgD70WbCHS0dMjT9xzXtOPcAC iXS2lvB6jvKoJNPeznWPhtFazaGXfKKvAThXjnSpq4Gh2FDtKrtrZZHbYPImB0MYcLZ2 J3g6E8uAkSPzpuRDO6Zb+agRHODHh7QCroY0ZEQeVBPzRHBLFpigwFWZ2PA4sS9FP2Pg X38jxX8Hd4SzKxI/0q1jbN0arRJFHChr7b3qMOFW0007kFyFviG3FNHcjNDPFs7igp0z iccXgbZ4y2uHWyj51jCwWEPzkWjqlyAN8rI317NidxSsAe/L5NhSFQn1NAbebsCL3ihD L1fA== X-Gm-Message-State: AOAM530bFk2PVgJzzR0Kr2I4uyYcd1qs6I9d5Qm04LhZbcU75a3mJOUq 66G57zitfgo82f3Xl+stVf/4vuavUgA= X-Received: by 2002:a05:6512:96b:: with SMTP id v11mr5816665lft.121.1630050781849; Fri, 27 Aug 2021 00:53:01 -0700 (PDT) Received: from [192.168.1.11] ([46.235.66.127]) by smtp.gmail.com with ESMTPSA id m16sm521307lfh.243.2021.08.27.00.53.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Aug 2021 00:53:01 -0700 (PDT) Subject: Re: [PATCH v3 0/6] staging: r8188eu: avoid uninit value bugs To: Kari Argillander Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, gregkh@linuxfoundation.org, straube.linux@gmail.com, fmdefrancesco@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <20210827074932.2qkpvmakwqqxo6hc@kari-VirtualBox> From: Pavel Skripkin Message-ID: Date: Fri, 27 Aug 2021 10:52:59 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210827074932.2qkpvmakwqqxo6hc@kari-VirtualBox> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/27/21 10:49 AM, Kari Argillander wrote: > On Tue, Aug 24, 2021 at 10:25:45AM +0300, Pavel Skripkin wrote: >> Hi, Greg, Larry and Phillip! >> >> I noticed, that new staging driver was added like 3 weeks ago and I decided >> to look at the code, because drivers in staging directory are always buggy. >> >> The first thing I noticed is *no one* was checking read operations result, but >> it can fail and driver may start writing random stack values into registers. It >> can cause driver misbehavior or device misbehavior. >> >> To avoid this type of bugs, i've changed rtw_read* API. Now all rtw_read >> funtions return an error, when something went wrong with usb transfer. >> >> It helps callers to break/return earlier and don't write random values to >> registers or to rely on random values. >> >> >> v2 -> v3: > > Hi Pavel. > > If v4 is needed can you please send it without replying to old message. > This thread is so hard to follow because always new version is answer to > old subject. This depens a little bit how you setup your email, but some > of us is grouping all emails in same thread and this thread is out of > control :D > Hi, Kari! v4 will be posted soon, yep. I will post v4 as separate thread :) It's unreal to follow the discussion for sure. I often spend about a minute to find an actual mail to reply xd With regards, Pavel Skripkin