From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 6723E79E3 for ; Mon, 25 Sep 2023 12:59:32 +0000 (UTC) Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-502e7d66c1eso10188568e87.1 for ; Mon, 25 Sep 2023 05:59:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695646770; x=1696251570; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:message-id:subject:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=Vn11NvO/kEDaOa8V8l24QgWZc2rX2rI//rN3jMclOws=; b=aFiFv5tmSMmtR4JFE0zhEyUv6fW7009St0qh4UfoZCTNc4ZU3xu2217GnEq/E+P633 jaEQqWqsuG7YDZHiYZ+90WqD+noJQ/TPn1UvFVNBy1yucf7l1q6jolKZ9Lx1rqFdZ9Ai seZWnRFjuRXU9Duzzs6mk+s0fr4vZU0BBw2oOQvzYbC8vgDs9rp6FdCtlmOUHcYJnZ5n 171M1Sy46HKl/QzvUlwFfHGD7x7TQignf/zoQ26zT5pBYPBqBSMaZgkLyFscT/tiPtUr iKn1WBGLfVeasi0Ycyqg/XRPlGmY7iefzVqOx0JDspNpo8MFfB37A7cO084nLSnhkjlN ufcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695646770; x=1696251570; h=content-transfer-encoding:mime-version:message-id:subject:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Vn11NvO/kEDaOa8V8l24QgWZc2rX2rI//rN3jMclOws=; b=eBe+hl3vMiNSpxZVA+mXK1rKCxF1nTmbfxZuogNWhax08MJygPSYWjsoLW/lwEvRpA qQWyB9Tl465uzHP/Fnhzo2+OBQTo7tMFQq/aJw57eC+y1DtMkWd/4kjz1SMghxa8CHix +g02v8EsCk/RD3boMyOLlzdXlXMDjVDQlRjUSybJw3scwY4Psam8bVr7DCbEsGB7/Iog evMDO124wkKp8f51S6wqZN08gEo0dpWqQGx2yivStuyaltZV135lcOXx9HpykF72TuEz uLkEDurb4JjZ9F3TXMift+2XxCAuyWfl1Kt5+iqFnNt0NXIs4vKrOCEK8L+w1gQlb82E 0eeA== X-Gm-Message-State: AOJu0YxQruL7zDPBEXUEYqDddTGIX6KNzkYQv2HZT9Vkm8kGVLqRDC7C tr8k4fj+5lx73Hju6c6zvS06M76XKvg= X-Google-Smtp-Source: AGHT+IHW0/VUT3VLby0tX70UtSnL2dcolngHUOneS4vvNc21hOC8UBkyMBFP8+XqTwtvZFs7JIBAAg== X-Received: by 2002:ac2:5f52:0:b0:503:5d8:da33 with SMTP id 18-20020ac25f52000000b0050305d8da33mr4625766lfz.20.1695646769748; Mon, 25 Sep 2023 05:59:29 -0700 (PDT) Received: from malediction ([46.48.96.28]) by smtp.gmail.com with ESMTPSA id q4-20020ac25144000000b004fe951827easm1797052lfd.196.2023.09.25.05.59.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 05:59:28 -0700 (PDT) Date: Mon, 25 Sep 2023 17:59:25 +0500 From: Mike Kazantsev To: ntfs3@lists.linux.dev Subject: memcpy: detected field-spanning write (size 8) of single field "le->name" Message-ID: <20230925175925.20fca707@malediction> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: ntfs3@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, Running latest stable linux kernels, I seem to have this WARNING pop-up under specific "create/write multiple 1-2M files per second" workload on ntfs3 mountpoint (generated by aria2c downloader for youtube DASH videos via yt-dlp): memcpy: detected field-spanning write (size 8) of single field "le->name" at fs/ntfs3/attrlist.c:326 (size 6) I think this is a warning from security/sanity checks introduced in 6.x at some point, and might not be an actual problem that breaks anything. But presumably warnings still shouldn't be emitted, and fix might to split the write in two, if it's intentionally overwriting the next field as well, or mark it in the code as a non-issue somehow. I've initially reported it at https://bugzilla.kernel.org/show_bug.cgi?id=217937 but it was suggested there to post it to this mailing list instead. See couple backtraces (which seem to be rather easily reproducible) attached there. Didn't look into the issue myself, but thought to report it anyway, in case it might be useful, and maybe trivial to fix. Cheers! -- Mike Kazantsev // fraggod.net