Skip to content
Snippets Groups Projects
  1. Mar 18, 2025
  2. Mar 17, 2025
  3. Mar 14, 2025
  4. Mar 13, 2025
    • Qi Han's avatar
      BACKPORT: f2fs: compress: fix inconsistent update of i_blocks in... · 6a9e785f
      Qi Han authored
      BACKPORT: f2fs: compress: fix inconsistent update of i_blocks in release_compress_blocks and reserve_compress_blocks
      
      After release a file and subsequently reserve it, the FSCK flag is set
      when the file is deleted, as shown in the following backtrace:
      
      F2FS-fs (dm-48): Inconsistent i_blocks, ino:401231, iblocks:1448, sectors:1472
      fs_rec_info_write_type+0x58/0x274
      f2fs_rec_info_write+0x1c/0x2c
      set_sbi_flag+0x74/0x98
      dec_valid_block_count+0x150/0x190
      f2fs_truncate_data_blocks_range+0x2d4/0x3cc
      f2fs_do_truncate_blocks+0x2fc/0x5f0
      f2fs_truncate_blocks+0x68/0x100
      f2fs_truncate+0x80/0x128
      f2fs_evict_inode+0x1a4/0x794
      evict+0xd4/0x280
      iput+0x238/0x284
      do_unlinkat+0x1ac/0x298
      __arm64_sys_unlinkat+0x48/0x68
      invoke_syscall+0x58/0x11c
      
      For clusters of the following type, i_blocks are decremented by 1 and
      i_compr_blocks are incremented by 7 in release_compress_blocks, while
      updates to i_blocks and i_compr_blocks are skipped in reserve_compress_blocks.
      
      raw node:
      D D D D D D D D
      after compress:
      C D D D D D D D
      after reserve:
      C D D D D D D D
      
      Let's update i_blocks and i_compr_blocks properly in reserve_compress_blocks.
      
      Bug: 403145794
      Fixes: eb8fbaa5 ("f2fs: compress: fix to check unreleased compressed cluster")
      Change-Id: I596af62bbd54941bfc77f30e182db94e81cba59b
      Signed-off-by: default avatarQi Han <hanqi@vivo.com>
      Reviewed-by: default avatarChao Yu <chao@kernel.org>
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
      (cherry picked from commit 26413ce1)
      (cherry picked from commit 90d49524)
      6a9e785f
  5. Mar 11, 2025
  6. Feb 22, 2025
    • Greg Kroah-Hartman's avatar
    • Greg Kroah-Hartman's avatar
      Merge tag 'android12-5.10.234_r00' into android12-5.10 · 17bea26c
      Greg Kroah-Hartman authored
      
      This merges the android12-5.10.234_r00 tag into the android12-5.10 branch,
      catching it up with the latest LTS releases.
      
      It contains the following commits:
      
      * 1caf81977768 Revert "net: net_namespace: Optimize the code"
      * cad4c9d8b86a Revert "net: add exit_batch_rtnl() method"
      * 460a2ef91ee6 Revert "gtp: use exit_batch_rtnl() method"
      * 539048dea84a Revert "gtp: Use for_each_netdev_rcu() in gtp_genl_dump_pdp()."
      * 88dc1ccb48e3 Revert "gtp: Destroy device along with udp socket's netns dismantle."
      * b9ad2a18059d Revert "fs: fix missing declaration of init_files"
      * 873986062588 Revert "loop: let set_capacity_revalidate_and_notify update the bdev size"
      * a05d7b6a75cd Revert "nvme: let set_capacity_revalidate_and_notify update the bdev size"
      * a362201198a1 Revert "sd: update the bdev size in sd_revalidate_disk"
      * f40d71e41d9f Revert "block: remove the update_bdev parameter to set_capacity_revalidate_and_notify"
      *   fc74821cbc61 Merge 5.10.234 into android12-5.10-lts
      |\
      | * f0a53361993a Linux 5.10.234
      | * c762b76981fc Partial revert of xhci: use pm_ptr() instead #ifdef for CONFIG_PM conditionals
      | * 664760c49d98 xhci: use pm_ptr() instead of #ifdef for CONFIG_PM conditionals
      | * 1f66a3a1a516 drm/v3d: Assign job pointer to NULL before signaling the fence
      | * d2b550208155 Input: xpad - add support for wooting two he (arm)
      | * 098b8808e2e6 Input: xpad - add unofficial Xbox 360 wireless receiver clone
      | * 5e9fed31adc8 Input: atkbd - map F23 key to support default copilot shortcut
      | * 99c866bea85e Revert "usb: gadget: u_serial: Disable ep before setting port to null to fix the crash caused by port being null"
      | * 94770cf7c512 USB: serial: quatech2: fix null-ptr-deref in qt2_process_read_urb()
      | * 354aef2ec80a wifi: iwlwifi: add a few rate index validity checks
      | * 31bd7378c6fe ipv4: ip_tunnel: Fix suspicious RCU usage warning in ip_tunnel_find()
      | * d072ea247481 Bluetooth: RFCOMM: Fix not validating setsockopt user input
      | * d19a8650fd3d vfio/platform: check the bounds of read/write syscalls
      | * 553df82a8c73 signal/m68k: Use force_sigsegv(SIGSEGV) in fpsp040_die
      | * f70103a4355c m68k: Update ->thread.esp0 before calling syscall_trace() in ret_from_signal
      | * 03c56665dab1 net: sched: fix ets qdisc OOB Indexing
      | * 8c41abc11aa8 gfs2: Truncate address space when flipping GFS2_DIF_JDATA flag
      | * 09f698656628 ASoC: samsung: Add missing depends on I2C
      | * 20019b1f0040 irqchip/sunxi-nmi: Add missing SKIP_WAKE flag
      | * 3ff6ce057622 scsi: iscsi: Fix redundant response for ISCSI_UEVENT_GET_HOST_STATS request
      | * d5bd48f16d4a seccomp: Stub for !CONFIG_SECCOMP
      | * c269af144a79 ASoC: samsung: Add missing selects for MFD_WM8994
      | * 771f8a8a6995 ASoC: wm8994: Add depends on MFD core
      | * fe2c0bd6d1e2 net: fix data-races around sk->sk_forward_alloc
      | * 285ce1f89f8d scsi: sg: Fix slab-use-after-free read in sg_release()
      | * 7ffaf1a16f65 x86/xen: fix SLS mitigation in xen_hypercall_iret()
      | * daeac89cdb03 vsock: prevent null-ptr-deref in vsock_*[has_data|has_space]
      | * 18a7fc371d1d vsock/virtio: discard packets if the transport changes
      | * a925a200299a fou: remove warn in gue_gro_receive on unsupported protocol
      | * f9f76ff74dae nfsd: add list_head nf_gc to struct nfsd_file
      | * 8a8b83016f06 ipv6: avoid possible NULL deref in rt6_uncached_list_flush_dev()
      | * 83f5a87ee8ca blk-cgroup: Fix UAF in blkcg_unpin_online()
      | * 605889754ee6 RDMA/hns: Fix deadlock on SRQ async events.
      | * 461091c27f55 vmalloc: fix accounting with i915
      | * e8d3c53c6f1c drm/radeon: check bo_va->bo is non-NULL before using it
      | * 85a9c98a5e0f iio: adc: rockchip_saradc: fix information leak in triggered buffer
      | * 031538ff9c32 iio: imu: inv_icm42600: fix timestamps after suspend if sensor is on
      | * 641b4041cb4e iio: imu: inv_icm42600: fix spi burst write not supported
      | * da55e7622580 Revert "PCI: Use preserve_config in place of pci_flags"
      | * 14984139f1f2 hrtimers: Handle CPU state correctly on hotplug
      | * d1099ad23596 irqchip/gic-v3: Handle CPU_PM_ENTER_FAILED correctly
      | * 2dfbb920a89b gpiolib: cdev: Fix use after free in lineinfo_changed_notify
      | * 80da29deb88a fs/proc: fix softlockup in __read_vmcore (part 2)
      | * ae527bd2b537 vsock: reset socket state when de-assigning the transport
      | * 3cde51df39c3 vsock/virtio: cancel close work in the destructor
      | * f9710a5cbd99 net: ethernet: xgbe: re-add aneg to supported features in PHY quirks
      | * 17dcfc0f54b7 x86/asm: Make serialize() always_inline
      | * a722df501ba3 nvmet: propagate npwg topology
      | * 3f8b360ce0e0 poll_wait: add mb() to fix theoretical race between waitqueue_active() and .poll()
      | * 99db426762e1 kheaders: Ignore silly-rename files
      | * 95597be4806d fs: fix missing declaration of init_files
      | * 2cf7601e1295 hfs: Sanity check the root record
      | * 98ea165a2ac2 mac802154: check local interfaces before deleting sdata list
      | * 3eb329978997 i2c: rcar: fix NACK handling when being a target
      | * 8d037f34385a i2c: mux: demux-pinctrl: check initial mux selection, too
      | * a34050f70e79 drm/v3d: Ensure job pointer is set to NULL after job completion
      | * 72dc13457e67 net/mlx5: Fix RDMA TX steering prio
      | * 47166d31e531 net/mlx5: Refactor mlx5_get_flow_namespace
      | * 9f07d9fd6181 net/mlx5: Add priorities for counters in RDMA namespaces
      | * faf64fe8915d nfp: bpf: prevent integer overflow in nfp_bpf_event_output()
      | * 5f1678346109 gtp: Destroy device along with udp socket's netns dismantle.
      | * 66f1864cd0b1 gtp: Use for_each_netdev_rcu() in gtp_genl_dump_pdp().
      | * 320a0dea3b28 gtp: use exit_batch_rtnl() method
      | * fae8bd0b07f9 net: add exit_batch_rtnl() method
      | * 37fdbeb0e293 net: net_namespace: Optimize the code
      | * bb36838dac7b bpf: Fix bpf_sk_select_reuseport() memory leak
      | * 9f7ad4eb839d net: ethernet: ti: cpsw_ale: Fix cpsw_ale_get_field()
      | * a13d640d8c8e phy: usb: Fix clock imbalance for suspend/resume
      | * 3bc29a491192 phy: usb: Use slow clock for wake enabled suspend
      | * 246428bfb9e7 sctp: sysctl: rto_min/max: avoid using current->nsproxy
      | * acec80d9f126 drm: adv7511: Fix use-after-free in adv7533_attach_dsi()
      | * 49881fcef3d4 drm: bridge: adv7511: use dev_err_probe in probe function
      | * 3747465c5da7 drm: bridge: adv7511: unregister cec i2c device after cec adapter
      | * 09a817549036 drm/bridge: adv7533: Switch to devm MIPI-DSI helpers
      | * 2c0106fdd35c drm/mipi-dsi: Create devm device attachment
      | * 5ad24956a20e drm/mipi-dsi: Create devm device registration
      | * cb3a64b6b449 drm: bridge: adv7511: Remove redundant null check before clk_disable_unprepare
      | * 8ff6f635a08c ocfs2: fix slab-use-after-free due to dangling pointer dqi_priv
      | * af45819b29bf ocfs2: correct return value of ocfs2_local_free_info()
      | * a8d08d9f5e12 phy: usb: Toggle the PHY power during init
      | * 5917962b5196 phy: usb: Add "wake on" functionality for newer Synopsis XHCI controllers
      | * 5330de58f70d block: remove the update_bdev parameter to set_capacity_revalidate_and_notify
      | * afa920d411e9 sd: update the bdev size in sd_revalidate_disk
      | * 72224a75c5f6 nvme: let set_capacity_revalidate_and_notify update the bdev size
      | * dddf71505857 loop: let set_capacity_revalidate_and_notify update the bdev size
      | * 5601c261bbc5 arm64: dts: rockchip: add hevc power domain clock to rk3328
      | * 00360f3f3962 arm64: dts: rockchip: add #power-domain-cells to power domain nodes
      | * 3528099673ba iio: inkern: call iio_device_put() only on mapped devices
      | * ac8d932e3214 iio: adc: at91: call input_free_device() on allocated iio_dev
      | * 1b7b9084fad8 iio: adc: ti-ads124s08: Use gpiod_set_value_cansleep()
      | * 2d72fc4a1ca6 iio: gyro: fxas21002c: Fix missing data update in trigger handler
      | * 3bf8d1e87939 iio: adc: ti-ads8688: fix information leak in triggered buffer
      | * a386d9d2dc66 iio: imu: kmx61: fix information leak in triggered buffer
      | * b0e9c11c762e iio: light: vcnl4035: fix information leak in triggered buffer
      | * e1c1e8c05010 iio: dummy: iio_simply_dummy_buffer: fix information leak in triggered buffer
      | * d25f1fc27367 iio: pressure: zpa2326: fix information leak in triggered buffer
      | * 3e4d32cc1459 usb: gadget: f_fs: Remove WARN_ON in functionfs_bind
      | * 209b72d3c4e1 usb: fix reference leak in usb_new_device()
      | * d9f78c900648 USB: core: Disable LPM only for non-suspended ports
      | * ee63cb2262e3 USB: usblp: return error when setting unsupported protocol
      | * 1062b648bff6 usb: gadget: u_serial: Disable ep before setting port to null to fix the crash caused by port being null
      | * 4c51407cb8a4 usb: dwc3: gadget: fix writing NYET threshold
      | * 258b3530cfdf USB: serial: cp210x: add Phoenix Contact UPS Device
      | * 09d4072aabee usb-storage: Add max sectors quirk for Nokia 208
      | * 717b7360ccc1 staging: iio: ad9832: Correct phase range check
      | * 38da4bab433c staging: iio: ad9834: Correct phase range check
      | * e764b4e18789 USB: serial: option: add Neoway N723-EA support
      | * dad372177818 USB: serial: option: add MeiG Smart SRM815
      | * 66de7a2541d8 md/raid5: fix atomicity violation in raid5_cache_count
      | * 08765d4e44d4 scripts/sorttable: fix orc_sort_cmp() to maintain symmetry and transitivity
      | * 88136f799f33 drm/amd/display: increase MAX_SURFACES to the value supported by hw
      | * 2f8067b3425c ACPI: resource: Add Asus Vivobook X1504VAP to irq1_level_low_skip_override[]
      | * 522ddfb1fb62 ACPI: resource: Add TongFang GM5HG0A to irq1_edge_low_force_override[]
      | * 8c38baa03ac8 riscv: Fix sleeping in invalid context in die()
      | * 497471baf53b drm/amd/display: Add check for granularity in dml ceil/floor helpers
      | * dc583e7e5f85 sctp: sysctl: auth_enable: avoid using current->nsproxy
      | * 03ca51faba2b sctp: sysctl: cookie_hmac_alg: avoid using current->nsproxy
      | * 2c1a42fbd98e dm-ebs: don't set the flag DM_TARGET_PASSES_INTEGRITY
      | * cd30a3960433 dm thin: make get_first_thin use rcu-safe list first function
      | * 9340385468d0 afs: Fix the maximum cell name length
      | * a965f7f0ea3a netfilter: conntrack: clamp maximum hashtable size to INT_MAX
      | * 208929266386 netfilter: nf_tables: imbalance in flowtable binding
      | * 72e6ca38ca66 tls: Fix tls_sw_sendmsg error handling
      | * 53b7a6762483 cxgb4: Avoid removal of uninserted tid
      | * 43658e4a5f27 net_sched: cls_flow: validate TCA_FLOW_RSHIFT attribute
      | * 22e3f5ee7317 tcp/dccp: allow a connection when sk_max_ack_backlog is zero
      | * 9261b8252473 tcp/dccp: complete lockless accesses to sk->sk_max_ack_backlog
      | * c9c0471e29f0 net: 802: LLC+SNAP OID:PID lookup on start of skb data
      | * c2da454712f2 ieee802154: ca8210: Add missing check for kfifo_alloc() in ca8210_probe()
      | * 4a6167ae75ad netfilter: nft_dynset: honor stateful expressions in set definition
      | * 01c4e22c260d ASoC: mediatek: disable buffer pre-allocation
      | * d8cfbb8723bd exfat: fix the infinite loop in exfat_readdir()
      | * 5c10baed458e dm array: fix cursor index when skipping across block boundaries
      | * cb223d9606a3 dm array: fix unreleased btree blocks on closing a faulty array cursor
      | * fc1ef07c3522 dm array: fix releasing a faulty array block twice in dm_array_cursor_end
      | * 359abf6ca962 jbd2: flush filesystem device before updating tail sequence
      | * 0f2b2d9e881c ceph: give up on paths longer than PATH_MAX
      * 55bef3bc89d9 Merge branch 'android12-5.10' into android12-5.10-lts
      
      Change-Id: If10d8d4e12593ccafb9b92541ca277b6165a375a
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
  7. Feb 19, 2025
Loading