From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) (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 03D3331714C for ; Sat, 27 Jun 2026 05:44:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782539042; cv=none; b=IquR1yH7/MhzimVcbDjxoonM7WlZ8rjnjVngvWWXE5cM8lxWGRn4XgQGhA5MFPakOy1eHKO9FB6W2Nm0ECfSe43TkH/GomVZ102YRn+eEH2yQ9NFD74VRkMAekLf0E6VCx+WLCIRbOSw9Qct+ncmbqshlSebbTeioPgj2sHyZ4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782539042; c=relaxed/simple; bh=jzwh6N4rB4bxLsLJ/HacSJuKadslqDEmpW/tplmavw8=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To:Cc: Content-Type; b=s4HXdfrBOeqaPMF6+Dhel4HAZodJ8tyKKPz5KJVG0G6H/+v5ObXlowNqQSE+zLNvTpkBLXeuczzbRfoFYqvsrvR8+sQS2ngmwk9tiYY4rSOnPZoqzZm8KAMry/gEI2vQKAnG2cpdPvPwhB0YxNXJCtjbigkgLlFocwOsYOitF0c= 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.167.199 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-oi1-f199.google.com with SMTP id 5614622812f47-494c627564cso378453b6e.3 for ; Fri, 26 Jun 2026 22:44:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782539040; x=1783143840; h=cc: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=Sv9j60t3Avv9jlw5K05gGOYRTpSMIX71ul9kgeDl4nE=; b=CHjBHZ0Dw4bSzb2Iq81e99e99byzlV5dAfGDUEjHLZXfErWB2Wf1DXnBQHeadyzNi1 Pcer7OLYEzdKVFljuAWqwLvz+0vf3CcSQFz5yN5kE1nJPpCCo3S/knXycz2UU5JLeZSo QukMy0reUsOyOY0HNEUxv/Vd/YTXJwGSekyWvsueIZYeE8l9/ZHNF2NtzLkAAqwwSYqg mCcCW9Q1SbERTJWboiRhjL2xmWXQEzjorgqJ/kYSZD7ThDsqlMOmzH1bMUA9tzMovEeY /eb/XbPWTeZoX3Hx5zQOzSxyX8bTwkleij9e9gjfXZgulS/I+G7q8gXKuvQHhRNoGlyw v/8g== X-Forwarded-Encrypted: i=1; AFNElJ/PT+uciHueWQpYmWqfJki+ifK8VDEyrnGeVZr8hx584+QNR0B1hcrF8scy0MbdTiw5qv7PC3QV79s1KJBT@vger.kernel.org X-Gm-Message-State: AOJu0YxKXwNQAR6l3I/aK7hs+Rd4wXiQupMgnP4nJORCSFaulKxnVwIK jwzmqG9/QykBT8+vo5FVeLjcaQtDXdhTspbvsHrD9NBGUXYMf4tW8afg8QadAIYqJmrBAXcSy9L J4GEG0w6DibiNWLAliM9SYH48Y/Zf5+jjgrbswbtHMGLoE0d3QHwlpkFt31Y= Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6808:6411:b0:48f:a9f3:1c38 with SMTP id 5614622812f47-49216e3555amr7704047b6e.2.1782539040059; Fri, 26 Jun 2026 22:44:00 -0700 (PDT) Date: Fri, 26 Jun 2026 22:44:00 -0700 In-Reply-To: <790d4d56-4c24-4468-b588-722e6aa86ba1@I-love.SAKURA.ne.jp> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a3f6320.ac7367b4.6675.000a.GAE@google.com> Subject: Re: [syzbot] [tomoyo?] KMSAN: uninit-value in tomoyo_path_chown (3) From: syzbot To: penguin-kernel@i-love.sakura.ne.jp Cc: jmorris@namei.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, paul@paul-moore.com, penguin-kernel@i-love.sakura.ne.jp, serge@hallyn.com, syzkaller-bugs@googlegroups.com, takedakn@nttdata.co.jp Content-Type: text/plain; charset="UTF-8" > On 2026/06/17 17:41, syzbot wrote: >> Hello, >> >> syzbot found the following issue on: >> >> HEAD commit: 2b414a95b8f7 Merge tag 's390-7.1-5' of git://git.kernel.or.. >> git tree: upstream >> console output: https://syzkaller.appspot.com/x/log.txt?x=12cff156580000 >> kernel config: https://syzkaller.appspot.com/x/.config?x=a0ca3b8cb3875012 >> dashboard link: https://syzkaller.appspot.com/bug?extid=eaae8fa60ce81f1e4eeb >> compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8 >> >> Unfortunately, I don't have any reproducer for this issue yet. >> > > The AI's analysis > > In this case, `chown_common()` skips setting `newattrs.ia_vfsuid` and `newattrs.ia_vfsgid`. > > at https://syzkaller.appspot.com/ai_job?id=abea5dd9-2a6e-4669-a927-d87ef7833666 is wrong. > We always set newattrs.ia_vfsuid and newattrs.ia_vfsgid before checking for -1. > > retry_deleg: > newattrs.ia_vfsuid = INVALID_VFSUID; > newattrs.ia_vfsgid = INVALID_VFSGID; > newattrs.ia_valid = ATTR_CTIME; > if ((user != (uid_t)-1) && !setattr_vfsuid(&newattrs, uid)) > return -EINVAL; > if ((group != (gid_t)-1) && !setattr_vfsgid(&newattrs, gid)) > return -EINVAL; > > Therefore, unless VFS people find something that can cause this problem, > this would be a random memory corruption which confused KMSAN. > > #syz set subsystems: unclassified > > #syz set no-reminders > Command #1: The specified label value is incorrect. "unclassified" is not among the allowed values. Please use one of the supported label values. The following labels are suported: actionable, missing-backport, no-reminders, prio: {low, normal, high}, subsystems: {.. see below ..} The list of subsystems: https://syzkaller.appspot.com/upstream/subsystems?all=true