Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp215509pxx; Wed, 28 Oct 2020 03:04:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdEoX8BN2o6bSyxJ06OyrVwBskbdBp5x7yD+MavvbaX4XVBiSD1H5YE7fGLaFrpfUmHe8/ X-Received: by 2002:aa7:dcc2:: with SMTP id w2mr6866008edu.121.1603879494942; Wed, 28 Oct 2020 03:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603879494; cv=none; d=google.com; s=arc-20160816; b=A/yMu7HyD/JMAwYwX0oh8F3Cu2kquNLrQ8WMcmRHBunRWAjC2jLEl4bj6XS28Qu3C7 a7Irdg09pYuqH6nnWK6M/bFZW6Qkex+IOlONM1oSiCOSsTV4agM6TPgdkDtdraxx7ZVF 37QCqXpUrDNxQOQs09kdZTtr/uemFobwPid/7AzgpO8t9/0UdH9b2Hhq6CIubNhlCRSn 9cnWCDo5EQ2kxJtFPAg9h8yXDMK7kG+mowFFxjI3Gf6YLfIN6G+yFaVkGToCCsi/DKKV zGYRZYbUJodFOZOhzub9HfjbBr+O0kE1Od8otG4O5pevg8J8X3Ncy/DdhpYhtw3jEdnx qPjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=G9RsQMdVq+aK9JfSOThqyg6Aiyyyw28xb/6JKJkYH+U=; b=Dlsnc/lD7D47rRK8yId6taNYRKS0RaHx3tDASrsY9UwIhIoq1IuQMp47EFhGOrp+BU kZ0yTx7mvyXjxn5Rbv+CVVRI+28MxkkcSZyxkri77Jlx0LBkF/a5OlQJ4m9bwwH+3jrF 8LQZfgpapZZaZarK9J5MMZpAboQC6lFbWRimmcL1Q3+2rhaDwFgZ5S1Be9aJ+NtUwUcw ygHyPDwT8ky5kUCXzSr1ieuJaUDuY43MS50xU+RWEQmSRTEXPioDFVPD2si0zNNRHDx8 PWIWeBbFFiHaeJ+dovEEa96Fmx3PNN9N3Ogs0ArVFqT8K8zNaFb/hNO+FkELz+ykorYk RQ+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZjpQYtNL; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si2820211edk.163.2020.10.28.03.04.32; Wed, 28 Oct 2020 03:04:54 -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=@kernel.org header.s=default header.b=ZjpQYtNL; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760098AbgJ0OcZ (ORCPT + 99 others); Tue, 27 Oct 2020 10:32:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:55872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2896687AbgJ0O3N (ORCPT ); Tue, 27 Oct 2020 10:29:13 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 8D17320780; Tue, 27 Oct 2020 14:29:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603808953; bh=V7dREi8fC+dA9++ovT36KVgbZ66sB5aTseBMqv1pjpo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZjpQYtNLKwb47Zu0HTXZA0xqBYbUUTU2MzzB8ZfQ+uy0GTcQE/bEFV6oqsnG25yn+ ji8eDrqwHzci5z2utDf89DP6LBP5I+lPKkDyMeShd6ymMhLs/HkM2haayjQAquxstD fF8eP/RR4SQDwWIzYxRBcjh9Qth9ls68enV1dfPA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Robin van der Gracht , Oleksij Rempel , Pengutronix Kernel Team , Oliver Hartkopp , Marc Kleine-Budde , Cong Wang , syzbot+3f3837e61a48d32b495f@syzkaller.appspotmail.com Subject: [PATCH 5.4 014/408] can: j1935: j1939_tp_tx_dat_new(): fix missing initialization of skbcnt Date: Tue, 27 Oct 2020 14:49:12 +0100 Message-Id: <20201027135455.716376899@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Cong Wang [ Upstream commit e009f95b1543e26606dca2f7e6e9f0f9174538e5 ] This fixes an uninit-value warning: BUG: KMSAN: uninit-value in can_receive+0x26b/0x630 net/can/af_can.c:650 Reported-and-tested-by: syzbot+3f3837e61a48d32b495f@syzkaller.appspotmail.com Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol") Cc: Robin van der Gracht Cc: Oleksij Rempel Cc: Pengutronix Kernel Team Cc: Oliver Hartkopp Cc: Marc Kleine-Budde Signed-off-by: Cong Wang Link: https://lore.kernel.org/r/20201008061821.24663-1-xiyou.wangcong@gmail.com Signed-off-by: Marc Kleine-Budde Signed-off-by: Greg Kroah-Hartman --- net/can/j1939/transport.c | 1 + 1 file changed, 1 insertion(+) --- a/net/can/j1939/transport.c +++ b/net/can/j1939/transport.c @@ -580,6 +580,7 @@ sk_buff *j1939_tp_tx_dat_new(struct j193 skb->dev = priv->ndev; can_skb_reserve(skb); can_skb_prv(skb)->ifindex = priv->ndev->ifindex; + can_skb_prv(skb)->skbcnt = 0; /* reserve CAN header */ skb_reserve(skb, offsetof(struct can_frame, data));