From patchwork Wed Oct 1 02:54:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Theodore Tso X-Patchwork-Id: 2144079 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=mit.edu header.i=@mit.edu header.a=rsa-sha256 header.s=outgoing header.b=YKXBgfpj; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=jdak=4k=vger.kernel.org=linux-ext4+bounces-10506-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4cbzzW1vMYz1xv0 for ; Wed, 1 Oct 2025 12:54:30 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4cbzzP5N8Vz4w1j for ; Wed, 1 Oct 2025 12:54:25 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4cbzzP5JMqz4wCc; Wed, 1 Oct 2025 12:54:25 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2604:1380:45d1:ec00::1" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1759287265; cv=pass; b=aFNSF6m6xLJzBYUzdZfvyx5d8gGGyHLLlPqjK8yRRJm1EZeY2yshnHh/nuGWZndwBZum+ICerMcEGUIuuWnGB77jtPXZkDwkP9lgb6mpO9tBUcZMUz5VKWf29nW/5zoScxwIhWljeXk379F7eJe4lfQu7qdRxBlOqelMvXjc5u5/H4CNY/NVWD3irQ4+CfbbAQ/OVPChaMIk/DI62+WeuSMh3/LsVqHKJa3qaH4OBpBUW6muERLj8ZmnsICPNdfiDmnUBUgrlDfzlCRTn8dK0ajYY9M5e3leRZ+ywdUi1R4l5Mmwnggs4U+Cj7HD5tAugJjw6udYhMOf8ku+hLmvGQ== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1759287265; c=relaxed/relaxed; bh=Qf7UtKUlYjyeQyEVGZWBThbfyxqAnNWIuRrsdjjbR9U=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=Vmma9pnBvp6ywnP8zXP7dwR7vXNTw3lK8x0LJZ/Adj4Jiw78RgNOOl7xYRe0PJxn2Eh2IrJZhumPhB+SUVodSTuyga/KYTeV4K6QiaaNBCHAwK+me1F3OZ3jW3QgVpVcu+6USXSFdVoAX3vYNVmKb/hIsvbd8ifakXAxVyFfELgYxjV6ON5WAmVX4Jmvkaaucu5bi79x51aqJ5YbLdyhpW0rKkGH4aWd9iDIBTvGMYgAjlkLdP9ca9eGncWbgIpRXy/9a+t8JBK2ylCJlx0ViMsVSYOkj0/oCXkBhhNW7y5F2dXyY9tIf5EPPQL7qfVLWmnzBkDwPzaeg/zxXc63Aw== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mit.edu; dkim=pass (2048-bit key; unprotected) header.d=mit.edu header.i=@mit.edu header.a=rsa-sha256 header.s=outgoing header.b=YKXBgfpj; dkim-atps=neutral; spf=pass (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=linux-ext4+bounces-10506-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mit.edu Authentication-Results: gandalf.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=mit.edu header.i=@mit.edu header.a=rsa-sha256 header.s=outgoing header.b=YKXBgfpj; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=linux-ext4+bounces-10506-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4cbzzK43WVz4w1j for ; Wed, 1 Oct 2025 12:54:21 +1000 (AEST) Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 366E71C1AF5 for ; Wed, 1 Oct 2025 02:54:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03D6827A927; Wed, 1 Oct 2025 02:54:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu header.b="YKXBgfpj" X-Original-To: linux-ext4@vger.kernel.org Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03C0835940 for ; Wed, 1 Oct 2025 02:54:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=18.9.28.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759287255; cv=none; b=RMvNwZrbzzC8+abUIyWzXBM+FjxNSzhbswxQthFDh4G+kUCVxTjFOzn1VosHKA8MjTcGlw1n/IITV6aRxX36iqMVN6fytTWd+uTEKwfiT2Ish+6PejlkbgQociuS4a8dJVaVqRuZoD+0GwO0gfXIl54Pv22xAkipesnnZI4Z1IA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759287255; c=relaxed/simple; bh=XcdUOVP2ST66bgN0i3mM03qMLhQASrIrftRuGgxZqFU=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=XwYlrXW8Wcb4idccIcnICAZrz77+bWb2x1eXV4QXQ85nrwgTjlHDndhhAeVYYwQ3druSeG9yIYDdFcyL7QmEyXS4dh4k6N/nkauxCj99NMOpiIm+b3XbanAtI7oQBv/qK1ghb5OqZC3rI27j6tddrwHItyTAgiggUpx/IJfzAKk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mit.edu; spf=pass smtp.mailfrom=mit.edu; dkim=pass (2048-bit key) header.d=mit.edu header.i=@mit.edu header.b=YKXBgfpj; arc=none smtp.client-ip=18.9.28.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mit.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mit.edu Received: from trampoline.thunk.org (pool-173-48-113-189.bstnma.fios.verizon.net [173.48.113.189]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 5912s1Ys017031 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Sep 2025 22:54:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1759287242; bh=Qf7UtKUlYjyeQyEVGZWBThbfyxqAnNWIuRrsdjjbR9U=; h=Date:From:Subject:Message-ID:MIME-Version:Content-Type; b=YKXBgfpjwyAcEeNkTa3oNpnggEgl0U4YZOXtugodEBZsyrQShJQ8dInFuuPv4Qo+m iuxv8P6XborkhlWxNojqTqgl7JHScR2W4itRevADbiUbOba8HF9ma+vgQRx1pXCQNX af3VQMUr2KRVwu1IUokAqWCHhv9XwSBY/om0LCMKd2XXIsh7kp50J+EEYJ6YSPvoxA Bv/33iPlkq9MWLfJaNynDKLqthb7DqJ5Buz5Qg/MQ5Nei0hDJJDq0gltBP/cpf9A55 NszBOnnvuewO7Vj98KGGnHkb3HhFb8VgCcawKIryt9f5JYPpfTi/FBd5vAns76f4/x zzorRAx80Ezuw== Received: by trampoline.thunk.org (Postfix, from userid 15806) id D02CF2E00D9; Tue, 30 Sep 2025 22:54:00 -0400 (EDT) Date: Tue, 30 Sep 2025 22:54:00 -0400 From: "Theodore Ts'o" To: Linus Torvalds Cc: Linux Kernel Developers List , Ext4 Developers List Subject: [GIT PULL] ext4 updates for 6.18-rc1 Message-ID: <20251001025400.GA333371@mit.edu> Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-1.1 required=5.0 tests=ARC_SIGNED,ARC_VALID, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org The following changes since commit b320789d6883cc00ac78ce83bccbfe7ed58afcf0: Linux 6.17-rc4 (2025-08-31 15:33:07 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git tags/ext4_for_linus-6.18-rc1 for you to fetch changes up to acf943e9768ec9d9be80982ca0ebc4bfd6b7631e: ext4: fix checks for orphan inodes (2025-09-26 08:36:08 -0400) ---------------------------------------------------------------- New ext4 features: * Add support so tune2fs can modify/update the superblock using an ioctl, without needing write access to the block device. * Add support for 32-bit reserved uid's and gid's. Bug fixes: * Fix potential warnings and other failures caused by corrupted / fuzzed file systems. * Fail unaligned direct I/O write with EINVAL instead of silently falling back to buffered I/O * Correectly handle fsmap queries for metadata mappings * Avoid journal stalls caused by writeback throttling * Add some missing GFP_NOFAIL flags to avoid potential deadlocks under extremem memory pressure Cleanups: * Remove obsolete EXT3 Kconfigs ---------------------------------------------------------------- Ahmet Eray Karadag (1): ext4: guard against EA inode refcount underflow in xattr update Baokun Li (2): ext4: add ext4_sb_bread_nofail() helper function for ext4_free_branches() ext4: fix potential null deref in ext4_mb_init() Deepanshu Kartikey (1): ext4: validate ea_ino and size in check_xattrs Jan Kara (3): ext4: fail unaligned direct IO write with EINVAL ext4: verify orphan file size is not too big ext4: fix checks for orphan inodes Julian Sun (2): jbd2: increase IO priority of checkpoint ext4: increase IO priority of fastcommit Lukas Bulwahn (1): ext4: remove obsolete EXT3 config options Ojaswin Mujoo (1): ext4: correctly handle queries for metadata mappings Theodore Ts'o (3): ext4: avoid potential buffer over-read in parse_apply_sb_mount_options() ext4: add support for 32-bit default reserved uid and gid values ext4: implemet new ioctls to set and get superblock parameters Xichao Zhao (1): ext4: replace min/max nesting with clamp() Yongjian Sun (1): ext4: increase i_disksize to offset + len in ext4_update_disksize_before_punch() Zhang Yi (1): ext4: fix an off-by-one issue during moving extents chuguangqing (1): fs: ext4: change GFP_KERNEL to GFP_NOFS to avoid deadlock fs/ext4/Kconfig | 27 ------- fs/ext4/ext4.h | 28 ++++++- fs/ext4/fast_commit.c | 2 +- fs/ext4/file.c | 2 +- fs/ext4/fsmap.c | 14 ++-- fs/ext4/indirect.c | 2 +- fs/ext4/inode.c | 47 +++--------- fs/ext4/ioctl.c | 312 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- fs/ext4/mballoc.c | 10 +++ fs/ext4/mmp.c | 6 +- fs/ext4/move_extent.c | 2 +- fs/ext4/orphan.c | 19 +++-- fs/ext4/super.c | 38 +++++----- fs/ext4/xattr.c | 21 ++++-- fs/jbd2/checkpoint.c | 2 +- include/uapi/linux/ext4.h | 53 +++++++++++++ 16 files changed, 467 insertions(+), 118 deletions(-)