Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp167563pxy; Wed, 21 Apr 2021 22:20:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7+FiLO4cbVB3ES7ldDddEVHlkvKupixkPs9eSxlrY1cnvOHFPYGB+VyLAnL6BK98d6Dh6 X-Received: by 2002:aa7:c492:: with SMTP id m18mr1624699edq.30.1619068809559; Wed, 21 Apr 2021 22:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619068809; cv=none; d=google.com; s=arc-20160816; b=pOMfTpMqA4SiEp1jflAgUN/CIK20ORgw7YO2o667voWFD99iMpvlVOOcLUupbj0Bic 4gWBIV8JkdqUqkSZAUoXcVkvymqtQA04aL060Om2AqA7P5jgJdrSZqiXrm27HvkeejM5 tDfJBh0rmMRhaGIWTgw2C4bCX/izvckQoEJJawJHS2w1SMcmFWDZM4earYUSfEYvoiNw oq/ZDWLk0djc3wC0n2moQzrPbL5vFC9lPrKSvNQPANpioNiTHgcMYpBLm1nSic/IFj4c u8yLHoBmglySnKun1ho/rYqohsJAahhuDmbUseFoPRtEHpZ+nbmixgLjJOwKJPcSgaCM Oq2Q== 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; bh=T68H21/yRSJllYAB5Jd1QXkWmcnbS65PN8kB5kpIvTw=; b=fn9xeuxUPN3JspBgcgizVK+hS+MlrA2XqjGA5h5KdW0DNgjKEJBNqaLcccI6hyHhNm H8E6fWVNCnFXDKXVvM3oBv3Z2NxDi1q562uf7bkwBvppoJdadrPZJw3mJgUFHq9dN8me cBXZKm01GMDpopMzEAa4NoxPFFQsb16+k5Dzgl5YcXSADDr+Vyhc9UASQl5NE2HVCu4M x99TQWnCgndbkdxIRi26HghtqqtoIJb2aNfK5FLQA+TuhHaWb9K/9qkV5/eD8t4uuexM F9m2QKdyznKmRj0iGwIo2tbpzZg7ZkaZ3oHoMpB/7rCpVLXrdyTtnupaECIs+wpg76Co wzSQ== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si1165044edv.218.2021.04.21.22.19.45; Wed, 21 Apr 2021 22:20:09 -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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232329AbhDVFS4 (ORCPT + 99 others); Thu, 22 Apr 2021 01:18:56 -0400 Received: from mail-ej1-f50.google.com ([209.85.218.50]:45000 "EHLO mail-ej1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbhDVFSz (ORCPT ); Thu, 22 Apr 2021 01:18:55 -0400 Received: by mail-ej1-f50.google.com with SMTP id r20so17068709ejo.11; Wed, 21 Apr 2021 22:18:20 -0700 (PDT) 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=T68H21/yRSJllYAB5Jd1QXkWmcnbS65PN8kB5kpIvTw=; b=ArGaNVf3Qa1SvPGAews7lpnzllRnzsXMnX9EuX+uzvaCvu07GH0VtfTWyqGfo7DzZu i9Qitpa77BYIgbChPar0AMwObbDKZkE4jZO0+HRBRbvO4aY8bDxEMBQeMEx4d2/a5YkT lPfEg0mfoqXK0EOCgrSaYZ9g16lbTLsE+/zBH0quNQroKesFxD8bqA1DAyYwg/kmMF8S xm/+CllZBFFkt7G3IKIz5YjSry5pXZIdctvxKrLdp3oU1B8p0mpU252AF77mUj/drrSI XxTf0v+OYn3tJFwP0VKCjZM9UdJJtNWzMb7ZX+4bRSt+90QPwjHpwxI+lLPivUiYfBCp 3YFg== X-Gm-Message-State: AOAM533cFpKbQ1/xT0NsdNAgi1l3pjEjO+ad7exTOzyzveiGj22su4e5 LsE3ttFZiryhGz/VGIxGfodIIF5QCR4= X-Received: by 2002:a17:906:5052:: with SMTP id e18mr1447674ejk.112.1619068699923; Wed, 21 Apr 2021 22:18:19 -0700 (PDT) Received: from ?IPv6:2a0b:e7c0:0:107::70f? ([2a0b:e7c0:0:107::70f]) by smtp.gmail.com with ESMTPSA id hq16sm1030375ejc.5.2021.04.21.22.18.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Apr 2021 22:18:19 -0700 (PDT) Subject: Re: [PATCH 120/190] Revert "tty: atmel_serial: fix a potential NULL pointer dereference" To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: Kangjie Lu , Richard Genoud , stable References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-121-gregkh@linuxfoundation.org> From: Jiri Slaby Message-ID: <57f44dfa-a502-ee4f-6d53-0ab7cba00e1b@kernel.org> Date: Thu, 22 Apr 2021 07:18:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <20210421130105.1226686-121-gregkh@linuxfoundation.org> Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21. 04. 21, 14:59, Greg Kroah-Hartman wrote: > This reverts commit c85be041065c0be8bc48eda4c45e0319caf1d0e5. > > Commits from @umn.edu addresses have been found to be submitted in "bad > faith" to try to test the kernel community's ability to review "known > malicious" changes. The result of these submissions can be found in a > paper published at the 42nd IEEE Symposium on Security and Privacy > entitled, "Open Source Insecurity: Stealthily Introducing > Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University > of Minnesota) and Kangjie Lu (University of Minnesota). > > Because of this, all submissions from this group must be reverted from > the kernel tree and will need to be re-reviewed again to determine if > they actually are a valid fix. Until that work is complete, remove this > change to ensure that no problems are being introduced into the > codebase. > > Cc: Kangjie Lu > Cc: Richard Genoud > Cc: stable > Cc: Greg Kroah-Hartman > Signed-off-by: Greg Kroah-Hartman > --- > drivers/tty/serial/atmel_serial.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c > index a24e5c2b30bc..9786d8e5f04f 100644 > --- a/drivers/tty/serial/atmel_serial.c > +++ b/drivers/tty/serial/atmel_serial.c > @@ -1256,10 +1256,6 @@ static int atmel_prepare_rx_dma(struct uart_port *port) > sg_dma_len(&atmel_port->sg_rx)/2, > DMA_DEV_TO_MEM, > DMA_PREP_INTERRUPT); > - if (!desc) { > - dev_err(port->dev, "Preparing DMA cyclic failed\n"); > - goto chan_err; > - } I cannot find anything malicious in the original fix: * port->dev is valid for dev_err * dmaengine_prep_dma_cyclic returns NULL in case of error * chan_err invokes atmel_release_rx_dma which undoes the previous initialization code. Hence a NACK from me for the revert. > desc->callback = atmel_complete_rx_dma; > desc->callback_param = port; > atmel_port->desc_rx = desc; > -- js suse labs