Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp339625lqo; Thu, 16 May 2024 07:48:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXU8gur42KK/NhLQyhy4Gse0Glctegu+EmAg4W6qH3nxy9YK3RvP1JiXmIvXVBQQvuiQaiZ8y5axumVsytX08n7xr4Jp2nTmPuxuv2pqg== X-Google-Smtp-Source: AGHT+IGQ3fH/q2tK9Yzu+NSlbYNnLCqW/xJz4RYymm/15htqh4VHdpYCIdy8IxVRQ9ZPVAZcNBHO X-Received: by 2002:a05:622a:11d1:b0:43e:ec0:c7a0 with SMTP id d75a77b69052e-43e0ec0d820mr166231081cf.62.1715870938410; Thu, 16 May 2024 07:48:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715870938; cv=pass; d=google.com; s=arc-20160816; b=Q8EOmTQPv7/Vd+pwioHQxQPvSvm7pJ9saAZHMjhPsIzOHEdRRkx0WdhucBBDmTjnQE EEXIFzYBDSO1bDwKd9fSl3KjDWfvUqFZbnIVWxE//06ijVe1r31a/THnhJ6jSkYdWP5l l9a+xg0KlVzJPdfgnG5HTszRslTjrNpK+9xhaxOynwisl0LGtFgYh1EmF57g/WHgUKvk Fl6+B2DSpiwgPgGqMPSridknWw1SnJ0bBsYXhvgDstopof0HW99HGqi82UAhqM9i14II 02NnUg0OM3v2blqupAPxloI/MKZwli/QWxNPDF3OBitLCvbLp2tAP0CphLiEuZgsezUE ysHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=jIfzr+hfxXE0Yom5oh+at3Y9Ho3Ikwwt+w53cnIzr7I=; fh=V9AeBafJgTW96HdC48wsxGAfd7Fe9P2uAL8tLCjpUN4=; b=NlhPQbOBrmPn4twS0gFFPbfWw4R7LTpVTF1szYHLLQ2WiJqiJkXNyMqD2cjL4lAiea 49CCDRok8FDXKp1YbEhSpW7wpMTn0P9K5fxwDokC+X39G9wH2K4018RMhCaSDpbBLlEI tU9gHwoHG7CAsZPZsZFQZH8CCmUkdkF6pmaAAOFp9ZzTl/6TRFtWH05785Aaf6e/sCqG yXo+lFSmQamo5Wxj0GDoWCdvd/QwaE1f3Wbx/cqdljIsLfRbtl9jdd2pGAih/LbIoSqK OkHrWM8ChdiN1gMbIUaViQW8VubRWD2mJgUdS0UFJuq7PD8ZC+ixPxKKnwTdsrCQYD5J q+6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-181185-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56eeb4csi169639151cf.791.2024.05.16.07.48.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 07:48:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181185-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-181185-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181185-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 07FEE1C210D7 for ; Thu, 16 May 2024 14:48:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80D4714B97B; Thu, 16 May 2024 14:48:48 +0000 (UTC) Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A8EC14B959 for ; Thu, 16 May 2024 14:48:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715870928; cv=none; b=dvH8OZ+R5Xvt+aRasY+q2gweIh2yDzzd0A+vdzsiaFS1mWLSKYJTTeAtv8zxlFQHBKrLitM6thiBRR3WRAYzdtU/eMyEtRyJyl7IMYAH7W/qtW6bWor3UWRG7mXSeGfifDw9UZRI6f6VpzFQfl9oDTTUMr9B6hDKO3gNcwihJ0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715870928; c=relaxed/simple; bh=6bjpy2R23BCG5xOBILH4E+1osU51ofiN4fTAHBzuyP4=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=ssw/307qhr4OK7NzHUm3GUzPEOP9ce1Mx5gXYdsHegDvMVbHizvZHV7NkC6sEjSbIg8EnNUm43EdKUrImBTePx6nBqL0Fm1x1HnFwRwALobXg594tkTLtPyGJ1NlMwOxWoAFQetHmPHm/G2mpPZ11CLduYgjl1TO5BXbfo5BphI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f70.google.com with SMTP id ca18e2360f4ac-7e1d3e81a00so614013039f.1 for ; Thu, 16 May 2024 07:48:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715870925; x=1716475725; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jIfzr+hfxXE0Yom5oh+at3Y9Ho3Ikwwt+w53cnIzr7I=; b=q4EZyzkMLnOn3fwgjSm3h6+DAJAn9pa7xSdzExYzohkwShPKPHYTJpbrSD0cKe78/A TaCGLivA1DJ1aUnudUbBYM6VWQmnFpWplNVe9FLLkFJwf45o0VMyXD2ltNExcowSoPDw VtsQFZT/lrslx6caeuZBjiCPzKSyYqvXG93IPiitWOy+S+1MdrxGPTFd/pYVLxZ725eP KjYKZVcsCN2ktXXD31IXvPWQWJOIOARQ1b+b9MiPmbpGhM3AqG7HJOG9PiAvdIR/1i+O Ci0fvXhUQkuEsG+dZhUyAE9/iJbZ/nR58ZOZ33nRBJqQ0dmGrfWzn86rqFu1p+QsMhVw B7yw== X-Gm-Message-State: AOJu0Yx+kIC220lgfujsp9IId1ElD+leObIggrUo/sZrNqYm2/+1H6Z3 QOUcrDo7Y35VcsmN8UupJVAWTiIirQrCY66GAevYvH0+8dEoT3Qazb4Sm0K3YbCE49NYl/nkemq hPDY2FXOa96nRqxekJv0t4XZvhWzzOX25sXU5sGMnyKWAfQSKwZ0Ng0w= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6638:2727:b0:488:ac5a:7fe9 with SMTP id 8926c6da1cb9f-48958e0d6e5mr1135126173.4.1715870925031; Thu, 16 May 2024 07:48:45 -0700 (PDT) Date: Thu, 16 May 2024 07:48:45 -0700 In-Reply-To: <0000000000007e4a2e0616fdde23@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000f79cb1061893548e@google.com> Subject: Re: [syzbot] Test for 5681e40d297b30f5b513 From: syzbot To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org. *** Subject: Test for 5681e40d297b30f5b513 Author: syoshida@redhat.com #syz test diff --git a/net/can/j1939/main.c b/net/can/j1939/main.c index a6fb89fa6278..7e8a20f2fc42 100644 --- a/net/can/j1939/main.c +++ b/net/can/j1939/main.c @@ -30,10 +30,6 @@ MODULE_ALIAS("can-proto-" __stringify(CAN_J1939)); /* CAN_HDR: #bytes before can_frame data part */ #define J1939_CAN_HDR (offsetof(struct can_frame, data)) -/* CAN_FTR: #bytes beyond data part */ -#define J1939_CAN_FTR (sizeof(struct can_frame) - J1939_CAN_HDR - \ - sizeof(((struct can_frame *)0)->data)) - /* lowest layer */ static void j1939_can_recv(struct sk_buff *iskb, void *data) { @@ -342,7 +338,7 @@ int j1939_send_one(struct j1939_priv *priv, struct sk_buff *skb) memset(cf, 0, J1939_CAN_HDR); /* make it a full can frame again */ - skb_put(skb, J1939_CAN_FTR + (8 - dlc)); + skb_put_zero(skb, 8 - dlc); canid = CAN_EFF_FLAG | (skcb->priority << 26) |