From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) (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 64629286415 for ; Fri, 20 Feb 2026 14:53:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771599240; cv=none; b=m6lKC2wGYBjm4YSF73to/dbE4dN9bDL4LaycQ2ONbX0e0cCfb76nplKEqpRhNa3uWVSwV7NvKfRbcUQNnzvkv+WAyFitciBPRuWfrMxsNHEayeNg6eFqjwg6GBQlyMxcZynJsGetjWvPu/pDDSkOgAhagQXQmHoczAOxeLL2Avw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771599240; c=relaxed/simple; bh=62KlM9xR4pj8y7WZ5gfpqjPk5aV0ehecJlC+iwxZhl4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=DYjNa1evuN1J5ChYMdg15YE+7KaJlhS2chDg6PLyzAwvAqfGABAe+Gakwv3C1vj02NjKax6EnN4G9YbCSFjPT/c9Qzpyscdh0Pglnrz1eEFv3I41XkrWoxBkr8TaudYb0S8eIZgw4E2FHJqG379dp0DOrZ2fY6SSlDagIm2Agpc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jdFGVu2i; arc=none smtp.client-ip=209.85.128.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jdFGVu2i" Received: by mail-wm1-f65.google.com with SMTP id 5b1f17b1804b1-4806ce0f97bso17901845e9.0 for ; Fri, 20 Feb 2026 06:53:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771599238; x=1772204038; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=pY3zllAVJn7qBREKILNRglWbWrteJ2SYfsD9bwaiqdI=; b=jdFGVu2iCC+nCoE/ygOxl+8QG//TWOAS4KwvnZu+xsPqHGenucLTr6k8ML7iN9PjNt R3WvJs0KXKLp5UdCcpcHyO4f6Jj5qDk6M4O6RRriXwRAhZVnA123/JD679RqSyOljp/c FDOX1XLqzl0QDUbeXqwOiahtQb5EaVEmcitnmf4+GaK9CPKFmLDWUJvhhnevqG48ImOA u/8bWeWSz5Y2dpON8mLac+J2Nlazejb/9najJ5rbtA+dTBFDvNX2peLJVKfdIA9DA7wP ks/3nY1JRMi9eAxZgzJKviC4RPv+RJ54hjqSdvJ+aPgqRORh0m8LQEyioxrfALpqc2Om 6ewQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771599238; x=1772204038; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=pY3zllAVJn7qBREKILNRglWbWrteJ2SYfsD9bwaiqdI=; b=OedInuhXM7DQ5wN5wOGEQ/MNVSPR176YWJVAek4GqANa+pDMHObLhwexsj0mdgc82R FGvfJ7mlD+ZFU4nDz90jlwRsAmUkFB6Jc4cdmooWIGVeU6twwi2tnLaYgbWxRjTjnMNk WYJCVb+MF0/bdY4z/XozO+4wru1k0zKsGiOBRvYZyPnC9AmmFlgsBl4L0AwueSSUhq+S 7oW3RBlN2n89YBB4V/kJa9GXFj0IPFMTxIU3MhUu7mgzFxlyYb/HI9nurTJMwg481Psz o9UwE5BWtmbCUf7njJcJi5qthoKAKF46Js6eP9lhSuD8e7e3+hrfnCAfDaBLAXR7UssR /9/g== X-Forwarded-Encrypted: i=1; AJvYcCV216t+eKX3Z1Y7xkdQQtMC03uZy3RbWlNyObdibm8WH08utTZKcr+RJpKvo2t1S3rGkvfEGeM6MT8zNEE=@vger.kernel.org X-Gm-Message-State: AOJu0Yz8/yY95xZ9ge1gZKuBkdQLnMrBvbysTZ2xL7/MEf6AzjdPCZ2J zWy3NfQobhv7f7RnVwijQW54BxWl1YFYpfvta6vpVDpwhJ+DGwF2Wnux X-Gm-Gg: AZuq6aLF7vP3qDfB5Hzvhr7ldIrud0DlJ47i2NtGPHOJdAlhCzaJt/sXIzDYayK7omS sqCNTuJsBQzgqovZ0F/gazDGWAxxbCLx645OakZxJuEH9W5xlMKVAiiLaj6YkifwaJ/SWQ2TDo/ aVBnoZehfb+IP2I+eLErP/EboFzzhHgSA722ZVj1shRwaFSYb0f6eC0/6Bs+Qs5Z0U3sxr0kGaD KTAppvCX91bjlLYVjPK/vOpEkhf0P5MwVxZdpozFu/XzSeIqJ4Wl1GLkT/uoLlsWzqQtIMk3mHV a9R1SevOm73WW5jPETKHCJoZAvgG0t1pnZlgk/BgPy+dwtih/YgqPCG/m36FR17xsSOrKLiM9gB d1UeR64j7KUpj6EFaZB849Wq7/ygsd5iSVjm6duw3JiNMvfLnX2vukTWjqYm4fu3hY7M8opkWQL U+YALnYpmHwBFGkpUVWhhcnU28BWjv8tFNF1rrpBrqTGaF9WX4zYjUUWjcG/qPOIP8SA== X-Received: by 2002:a05:600c:4f8f:b0:477:7925:f7fb with SMTP id 5b1f17b1804b1-48398a52bd4mr152790485e9.10.1771599237657; Fri, 20 Feb 2026 06:53:57 -0800 (PST) Received: from Abds-MacBook-Air.local ([2a02:3037:218:21ee:2dc4:34f0:2c53:7809]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43796a5acaasm51603909f8f.6.2026.02.20.06.53.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Feb 2026 06:53:57 -0800 (PST) From: Abd-Alrhman Masalkhi To: Ding Yihan , Thomas =?utf-8?Q?Wei=C3=9Fschuh?= Cc: dwlsalmeida@gmail.com, mchehab@kernel.org, linmag7@gmail.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+96f901260a0b2d29cd1a@syzkaller.appspotmail.com Subject: Re: [PATCH] media: vidtv: fix uninitialized args.buf_sz passed by value In-Reply-To: References: Date: Fri, 20 Feb 2026 15:53:34 +0100 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Yihan Ding, On Fri, Feb 20, 2026 at 21:39 +0800, Ding Yihan wrote: > Hi Thomas and Abd-Alrhman, > > While looking into this exact same syzbot report, I noticed that=20 > `vidtv_ts_pcr_write_into()` in the same file also suffers from the > exact same pass-by-value anti-pattern (passing `struct pcr_write_args` b= y value).=20 > > Since `pcr_write_args` also contains implicit padding, it remains a poten= tial trigger > for identical KMSAN uninit-value warnings during fuzzing in the future. > > Also, regarding Thomas's concern about modifying shared data: passing the= struct=20 > as a `const pointer` (e.g., `const struct null_packet_write_args *`)=20 > would perfectly guarantee that the state remains read-only. > > Thomas, would it be worth submitting a separate patch now to fix `vidtv_t= s_pcr_write_into()` > to prevent future KMSAN errors? Or would you prefer this to be addressed = together in Abd-Alrhman's v2? > > Best regards, > Yihan Ding > Thanks for pointing that out. I agree that vidtv_ts_pcr_write_into() should be updated in the same way, since it has identical padding issues. For v2 I=E2=80=99ll incorporate both fixes together and switch both paramet= ers add the const modifier, as you and Thomas suggested. Thanks again for the helpful review. --=20 Best Regards, Abd-Alrhman