Skip to content
Snippets Groups Projects
  1. Mar 17, 2025
    • Qi Han's avatar
      BACKPORT: f2fs: compress: fix inconsistent update of i_blocks in... · 9a0b9d56
      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
      Bug: 404076730
      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)
      (cherry picked from commit 8b83b87a)
  2. Mar 11, 2025
  3. Feb 25, 2025
    • Seiya Wang's avatar
      ANDROID: GKI: Update symbol list for mtk · 70b08680
      Seiya Wang authored
      
      11 function symbol(s) added
        'void __media_device_usb_init(struct media_device *, struct usb_device *, const char *, const char *)'
        'void __v4l2_ctrl_grab(struct v4l2_ctrl *, bool)'
        'int ir_raw_encode_carrier(enum rc_proto)'
        'int ir_raw_encode_scancode(enum rc_proto, u32, struct ir_raw_event *, unsigned int)'
        'int snd_card_free_when_closed(struct snd_card *)'
        'void v4l2_ctrl_activate(struct v4l2_ctrl *, bool)'
        'const char * const * v4l2_ctrl_get_menu(u32)'
        'void v4l2_ctrl_handler_log_status(struct v4l2_ctrl_handler *, const char *)'
        'int v4l2_ctrl_query_fill(struct v4l2_queryctrl *, s32, s32, s32, s32)'
        'bool v4l2_ctrl_radio_filter(const struct v4l2_ctrl *)'
        'int v4l2_mc_create_media_graph(struct media_device *)'
      
      Bug: 398731050
      Bug: 398988907
      Change-Id: If684153a2bbeea51dcc29341e19c247a5de9ee8d
      Signed-off-by: default avatarSeiya Wang <seiya.wang@mediatek.com>
  4. Jan 14, 2025
  5. Jan 13, 2025
  6. Jan 06, 2025
  7. Jan 03, 2025
  8. Dec 27, 2024
  9. Dec 26, 2024
  10. Dec 17, 2024
  11. Dec 16, 2024
  12. Dec 11, 2024
    • Greg Kroah-Hartman's avatar
      Merge tag 'android13-5.15.170_r00' into android13-5.15 · f00e8bc3
      Greg Kroah-Hartman authored
      
      This merges up to the 5.15.170 LTS release into the android13-5.15
      branch.  Changes included in here are:
      
      * 1f9202a6d83b UPSTREAM: ACPI: PRM: Clean up guid type in struct prm_handler_info
      *   74cdbb4051d6 Merge 0d0d55b3ee03 ("riscv: Remove duplicated GET_RM") into android13-5.15-lts
      |\
      | * 0d0d55b3ee03 riscv: Remove duplicated GET_RM
      | * 6ad44aa8e11c riscv: Remove unused GENERATING_ASM_OFFSETS
      | * f6070925f469 riscv: Use '%u' to format the output of 'cpu'
      | * ddb04c81d129 riscv: efi: Set NX compat flag in PE/COFF header
      | * 1c54b0b0d72c riscv: vdso: Prevent the compiler from inserting calls to memset()
      | * 69548bb663fc nilfs2: fix potential deadlock with newly created symlinks
      | * 7a59817f68e7 iio: light: veml6030: fix microlux value calculation
      | * 4f588fffc307 iio: adc: ad7124: fix division by zero in ad7124_set_channel_odr()
      | * 2f39548f4569 staging: iio: frequency: ad9832: fix division by zero in ad9832_calc_freqreg()
      | * 8ac22fe1e2b1 wifi: iwlegacy: Clear stale interrupts before resuming device
      | * 705be2dc45c7 wifi: ath10k: Fix memory leak in management tx
      | * b2bcbe5450b2 wifi: mac80211: do not pass a stopped vif to the driver in .get_txpower
      | * 4749d336170d Revert "driver core: Fix uevent_show() vs driver detach race"
      | * c4f90f09713f xhci: Use pm_runtime_get to prevent RPM on unsupported systems
      | * 78a6caa022de xhci: Fix Link TRB DMA in command ring stopped completion event
      | * 391884630fba usb: typec: fix unreleased fwnode_handle in typec_port_register_altmodes()
      | * 14d1e39269a8 usb: phy: Fix API devm_usb_put_phy() can not release the phy
      | * f9889e5f7c7f usbip: tools: Fix detach_port() invalid port error path
      | * 057b5b971666 misc: sgi-gru: Don't disable preemption in GRU driver
      | * 9ce8e1d7ef45 NFS: remove revoked delegation from server's delegation list
      | * cb1711e65bff net: amd: mvme147: Fix probe banner message
      | * e1d57c29e473 scsi: scsi_transport_fc: Allow setting rport state to current state
      | * 60fb94ef46c2 fs/ntfs3: Additional check in ni_clear()
      | * 47e8a17491e3 fs/ntfs3: Fix possible deadlock in mi_read
      | * 759016b1f033 fs/ntfs3: Fix warning possible deadlock in ntfs_set_state
      | * e5ae78590086 fs/ntfs3: Check if more than chunk-size bytes are written
      | * c46d6b025880 ACPI: CPPC: Make rmw_lock a raw_spin_lock
      | * 564caf173b86 firmware: arm_sdei: Fix the input parameter of cpuhp_remove_state()
      | * b1d2de8a669f netfilter: nft_payload: sanitize offset and length before calling skb_checksum()
      | * 9f605135a5c0 net: skip offload for NETIF_F_IPV6_CSUM if ipv6 header contains extension
      | * ba22ea013483 netfilter: Fix use-after-free in get_info()
      | * 86c8ebe02d88 bpf: Fix out-of-bounds write in trie_get_next_key()
      | * c2150f666c6f netdevsim: Add trailing zero to terminate the string in nsim_nexthop_bucket_activity_write()
      | * 05df1b1dff8f net/sched: stop qdisc_tree_reduce_backlog on TC_H_ROOT
      | * 86833e4e6131 gtp: allow -1 to be specified as file description from userspace
      | * 5edcb3fdb12c ipv4: ip_tunnel: Fix suspicious RCU usage warning in ip_tunnel_init_flow()
      | * ece593fc9c00 net: stmmac: TSO: Fix unbalanced DMA map/unmap for non-paged SKB data
      | * 720be854fb6e ASoC: cs42l51: Fix some error handling paths in cs42l51_probe()
      | * 3f45d590ccba wifi: iwlwifi: mvm: Fix response handling in iwl_mvm_send_recovery_cmd()
      | * daa426f19aad wifi: iwlwifi: mvm: disconnect station vifs if recovery failed
      | * 120d8ce61073 mac80211: Add support to trigger sta disconnect on hardware restart
      | * 41c8acb33792 mac80211: do drv_reconfig_complete() before restarting all
      | * 730dc0818fb8 RDMA/bnxt_re: synchronize the qp-handle table array
      | * adf37466c383 RDMA/mlx5: Round max_rd_atomic/max_dest_rd_atomic up instead of down
      | * 15d3b1735ea4 RDMA/cxgb4: Dump vendor specific QP details
      | * 1c3beef55527 wifi: brcm80211: BRCM_TRACING should depend on TRACING
      | * e97b59cda228 wifi: mac80211: skip non-uploaded keys in ieee80211_iter_keys
      | * 52f47de44820 mac80211: MAC80211_MESSAGE_TRACING should depend on TRACING
      | * a69d18e8029d cgroup: Fix potential overflow issue when checking max_depth
      | * 8df529295308 ACPI: PRM: Find EFI_MEMORY_RUNTIME block for PRM handler and context
      | * 6ef99e50be2f ACPI: PRM: Change handler_addr type to void pointer
      | * 0a1b0b04aecd ACPI: PRM: Remove unnecessary blank lines
      | * 0f62358ce85b ksmbd: fix user-after-free from session log off
      | * 7bed977305af selftests/mm: fix incorrect buffer->mirror size in hmm2 double_map test
      * | 431fb5556be3 Merge 5.15.170 into android13-5.15-lts
      |\|
      | * 72244eab0dad Linux 5.15.170
      | * 2d08a6c31c65 xfrm: validate new SA's prefixlen using SA family when sel.family is unset
      | * a8e691fe1894 ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
      | * b5cd035ebb9b net: phy: dp83822: Fix reset pin definitions
      | * 399927f0f875 serial: protect uart_port_dtr_rts() in uart_shutdown() too
      | * fcfc61f63fbe selinux: improve error checking in sel_write_load()
      | * b7a396f76ada hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event
      | * 610d4cea9b44 xfrm: fix one more kernel-infoleak in algo dumping
      | * 385e2f3e0d83 ALSA: hda/realtek: Add subwoofer quirk for Acer Predator G9-593
      | * 58cb697d80e6 KVM: nSVM: Ignore nCR3[4:0] when loading PDPTEs from memory
      | * dc39799f0cc2 openat2: explicitly return -E2BIG for (usize > PAGE_SIZE)
      | * 822203f6355f nilfs2: fix kernel bug due to missing clearing of buffer delay flag
      | * 681c99175bb8 ACPI: button: Add DMI quirk for Samsung Galaxy Book2 to fix initial lid detection issue
      | * c5a3aaa37713 ACPI: resource: Add LG 16T90SP to irq1_level_low_skip_override[]
      | * 6032287747f8 drm/amd: Guard against bad data for ATIF ACPI method
      | * df75b21af792 btrfs: zoned: fix zone unusable accounting for freed reserved extent
      | * 6c6774cd760d ALSA: hda/realtek: Update default depop procedure
      | * 7d4eb9e22131 ALSA: firewire-lib: Avoid division by zero in apply_constraint_to_size()
      | * b4007d5fe386 bpf,perf: Fix perf_event_detach_bpf_prog error handling
      | * e56e0ec1b79f posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime()
      | * b96eff3d8340 r8169: avoid unsolicited interrupts
      | * 999612996df2 net: sched: fix use-after-free in taprio_change()
      | * cc1c98da1338 net: usb: usbnet: fix name regression
      | * c9a0aed51977 net: wwan: fix global oob in wwan_rtnl_policy
      | * 90baa455aa7e netfilter: xtables: fix typo causing some targets not to load on IPv6
      | * 7dbd5b9ff067 net: dsa: mv88e6xxx: Fix error when setting port policy on mv88e6393x
      | * 38eb59665643 net: plip: fix break; causing plip to never transmit
      | * 919ab6e23702 be2net: fix potential memory leak in be_xmit()
      | * 9c6ce55e6f0b net/sun3_82586: fix potential memory leak in sun3_82586_send_packet()
      * | 252009836bae Merge 45cb99c5b95e ("xfrm: respect ip protocols rules criteria when performing dst lookups") into android13-5.15-lts
      |\|
      | * 45cb99c5b95e xfrm: respect ip protocols rules criteria when performing dst lookups
      | * 253843ec0c0a xfrm: extract dst lookup parameters into a struct
      * | 8f485cd2a27c Merge b86b0d6eea20 ("tracing: Consider the NULL character when validating the event length") into android13-5.15-lts
      |\|
      | * b86b0d6eea20 tracing: Consider the NULL character when validating the event length
      | * cdf3ab1cf811 jfs: Fix sanity check in dbMount
      | * f9e6e1f00fcd platform/x86: dell-sysman: add support for alienware products
      | * 4b520c11d0f3 ASoC: qcom: sm8250: add qrb4210-rb2-sndcard compatible string
      | * 0e13fe4298a3 arm64/uprobes: change the uprobe_opcode_t typedef to fix the sparse warning
      | * e1ce098ea047 platform/x86: dell-wmi: Ignore suspend notifications
      | * 4fc0d8660e39 udf: fix uninit-value use in udf_get_fileshortad
      | * f952a33478b7 arm64: Force position-independent veneers
      | * 11db74f6a293 ASoC: fsl_sai: Enable 'FIFO continue on error' FCONT bit
      | * 0bb2cb789349 ASoC: codecs: lpass-rx-macro: add missing CDC_RX_BCL_VBAT_RF_PROC2 to default regs values
      | * 34a422274b69 drm/vboxvideo: Replace fake VLA at end of vbva_mouse_pointer_shape with real VLA
      | * b723f96407a0 exec: don't WARN for racy path_noexec check
      | * dd5db4078d12 block, bfq: fix procress reference leakage for bfqq in merge chain
      * | fa1d8b6c5d4d Merge 073530898ebf ("usb: dwc3: core: Fix system suspend on TI AM62 platforms") into android13-5.15-lts
      |\|
      | * 073530898ebf usb: dwc3: core: Fix system suspend on TI AM62 platforms
      | * 81213d2058ec XHCI: Separate PORT and CAPs macros into dedicated file
      | * c3f3926854b1 usb: gadget: Add function wakeup support
      * | 9efd694ed939 Revert "genetlink: hold RCU in genlmsg_mcast()"
      * | 41a431a7694c ANDROID: GKI: fix up build break where timer_delete_sync() was used
      * | 249b164cd374 Merge 6a5de8753c70 ("KVM: s390: gaccess: Check if guest address is in memslot") into android13-5.15-lts
      |\|
      | * 6a5de8753c70 KVM: s390: gaccess: Check if guest address is in memslot
      | * cbb31278711d KVM: s390: gaccess: Cleanup access to guest pages
      | * 567e7bcb10cc KVM: s390: gaccess: Refactor access address range check
      | * 1f1c1ccdcb50 KVM: s390: gaccess: Refactor gpa and length calculation
      | * cf60d19d4018 arm64: probes: Fix uprobes for big-endian kernels
      | * acfb32d42a31 arm64:uprobe fix the uprobe SWBP_INSN in big-endian
      | * fa58e23ea135 Bluetooth: bnep: fix wild-memory-access in proto_unregister
      | * 42d83e5fed3e s390: Initialize psw mask in perf_arch_fetch_caller_regs()
      | * 874744060568 usb: typec: altmode should keep reference to parent
      | * e07d05b7f5ad smb: client: fix OOBs when building SMB2_IOCTL request
      | * 39e02fa90323 scsi: target: core: Fix null-ptr-deref in target_alloc_device()
      | * 03ca631c07f3 genetlink: hold RCU in genlmsg_mcast()
      | * 8459d61fbf24 tcp/dccp: Don't use timer_pending() in reqsk_queue_unlink().
      | * 5febfc545389 net: systemport: fix potential memory leak in bcm_sysport_xmit()
      | * 9e006c176f84 net: xilinx: axienet: fix potential memory leak in axienet_start_xmit()
      | * 231145193175 net/smc: Fix searching in list of known pnetids in smc_pnet_add_pnetid
      | * 1eaa58198c64 net: ethernet: aeroflex: fix potential memory leak in greth_start_xmit_gbit()
      | * 09839c24769f macsec: don't increment counters for an unrelated SA
      | * 75df8b53800c octeontx2-af: Fix potential integer overflows on integer shifts
      | * 213d1ff6c491 net: usb: usbnet: fix race in probe failure
      | * b340df745867 drm/msm: Allocate memory for disp snapshot with kvzalloc()
      | * 42cf045086fe drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()
      | * d125fbf1e128 drm/msm/dsi: fix 32-bit signed integer extension in pclk_rate calculation
      | * de5857fa7bcc RDMA/bnxt_re: Fix a bug while setting up Level-2 PBL pages
      | * e810e6d46403 RDMA/bnxt_re: Return more meaningful error
      | * ca83bc311ab0 ipv4: give an IPv4 dev to blackhole_netdev
      | * 6a0c627cd76e RDMA/irdma: Fix misspelling of "accept*"
      | * 2e78ecb1220a RDMA/cxgb4: Fix RDMA_CM_EVENT_UNREACHABLE error for iWARP
      | * 4e19aca8db69 ALSA: hda/cs8409: Fix possible NULL dereference
      | * 208d3edea110 ARM: dts: bcm2837-rpi-cm3-io3: Fix HDMI hpd-gpio pin
      | * e8143c069932 x86/resctrl: Avoid overflow in MB settings in bw_validate()
      | * 322a19baaaa2 RDMA/bnxt_re: Add a check for memory allocation
      | * 0a2430b146d6 RDMA/bnxt_re: Fix incorrect AVID type in WQE structure
      | * fe068afb8686 bpf: devmap: provide rxq after redirect
      | * 4e1e42853384 bpf: Make sure internal and UAPI bpf_redirect flags don't overlap
      * | 548ca9fbf844 BACKPORT: udf: Allocate name buffer in directory iterator on heap
      * | 1721891cc816 Merge 5.15.169 into android13-5.15-lts
      |/
      * 74cdd62cb470 Linux 5.15.169
      * f74847722133 ALSA: hda/conexant - Use cached pin control for Node 0x1d on HP EliteOne 1000 G2
      * eb817fe255e1 powerpc/mm: Always update max/min_low_pfn in mem_topology_setup()
      * edf814605726 nilfs2: propagate directory read errors from nilfs_find_entry()
      * 5b88612ea5de mptcp: prevent MPC handshake on port-based signal endpoints
      * 353016364391 mptcp: pm: fix UaF read in mptcp_pm_nl_rm_addr_or_subflow
      * 2b1281f9fd01 mptcp: fallback when MPTCP opts are dropped after 1st data
      * 9729010a0ac5 tcp: fix mptcp DSS corruption due to large pmtu xmit
      * 12c1676d598e mptcp: handle consistently DSS corruption
      * 6654efe264b0 mptcp: track and update contiguous data status
      * 755b9532c885 irqchip/gic-v4: Don't allow a VMOVP on a dying VPE
      * 655f5d4662b9 pinctrl: ocelot: fix system hang on level based interrupts
      * b6400eb0b347 x86/entry_32: Clear CPU buffers after register restore in NMI return
      * a6f4701f8dcf x86/entry_32: Do not clobber user EFLAGS.ZF
      * 12dd888f4845 x86/apic: Always explicitly disarm TSC-deadline timer
      * 7861ca27f6bd x86/resctrl: Annotate get_mem_config() functions as __init
      * 440311903231 parport: Proper fix for array out-of-bounds access
      * 88a892071d22 USB: serial: option: add Telit FN920C04 MBIM compositions
      * d062bbc58f85 USB: serial: option: add support for Quectel EG916Q-GL
      * b6ae69ec6002 xhci: Mitigate failed set dequeue pointer commands
      * dca9429c307b xhci: Fix incorrect stream context type macro
      * 7c270acfc8ec Bluetooth: btusb: Fix regression with fake CSR controllers 0a12:0001
      * 04bba4714f26 Bluetooth: Remove debugfs directory on module init failure
      * bb76a6ecf1b9 iio: adc: ti-ads124s08: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
      * 7db9bcb846d1 iio: proximity: mb1232: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
      * c202eadbf9cc iio: light: opt3001: add missing full-scale range value
      * 50039aec43a8 iio: light: veml6030: fix IIO device retrieval from embedded device
      * cf95ce2cff8d iio: light: veml6030: fix ALS sensor resolution
      * 3cf71f6f21b2 iio: hid-sensors: Fix an error handling path in _hid_sensor_set_report_latency()
      * 37be5d0d5443 iio: adc: ti-ads8688: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig
      * e209a51ad215 iio: dac: stm32-dac-core: add missing select REGMAP_MMIO in Kconfig
      * 51a9a143448a iio: dac: ltc1660: add missing select REGMAP_SPI in Kconfig
      * 605c0d55dcf7 iio: dac: ad5770r: add missing select REGMAP_SPI in Kconfig
      * 572006a05eaa drm/vmwgfx: Handle surface check failure correctly
      * fda5dc80121b drm/radeon: Fix encoder->possible_clones
      * e8dd801362b3 io_uring/sqpoll: close race on waiting for sqring entries
      * 455a469758e5 blk-rq-qos: fix crash on rq_qos_wait vs. rq_qos_wake_function race
      * 0b263c2086ef x86/bugs: Do not use UNTRAIN_RET with IBPB on entry
      * 0cced32e21ef x86/bugs: Skip RSB fill at VMEXIT
      * e421c6839f69 x86/entry: Have entry_ibpb() invalidate return predictions
      * 1e0398acb650 x86/cpufeatures: Add a IBPB_NO_RET BUG flag
      * 43bdd2ea738e x86/cpufeatures: Define X86_FEATURE_AMD_IBPB_RET
      * dad88f266f30 KVM: s390: Change virtual to physical address access in diag 0x258 handler
      * 41693253973e s390/sclp_vt220: Convert newlines to CRLF instead of LFCR
      * 0bd9a30c22af iommu/vt-d: Fix incorrect pci_for_each_dma_alias() for non-PCI devices
      * 07efbee2214c io_uring/sqpoll: do not put cpumask on stack
      * 939007d2a9fa io_uring/sqpoll: retain test for whether the CPU is valid
      * 592e7864e44c io_uring/sqpoll: do not allow pinning outside of cpuset
      * 3ae63a8c1685 drm/shmem-helper: Fix BUG_ON() on mmap(PROT_WRITE, MAP_PRIVATE)
      * 82bd728a06e5 KVM: Fix a data race on last_boosted_vcpu in kvm_vcpu_on_spin()
      * b825e0f9d68c dm-crypt, dm-verity: disable tasklets
      * e8a834eb09bb wifi: mac80211: fix potential key use-after-free
      * d0ae6ffa1aeb secretmem: disable memfd_secret() if arch cannot set direct map
      * e41710f5a61a mm/swapfile: skip HugeTLB pages for unuse_vma
      * cc1102b5473e fat: fix uninitialized variable
      * 1043b6453914 irqchip/gic-v3-its: Fix VSYNC referencing an unmapped VPE on GIC v4.1
      * c81dcaa9cd0b net: macb: Avoid 20s boot delay by skipping MDIO bus registration for fixed-link PHY
      * 659fae608501 arm64: probes: Fix simulate_ldr*_literal()
      * ad4bc35a6d22 arm64: probes: Remove broken LDR (literal) uprobe support
      * c8789fbe2bbf posix-clock: Fix missing timespec64 check in pc_clock_settime()
      * dcc7207483b2 net: enetc: add missing static descriptor and inline keyword
      * 6430aaaee5b0 net: enetc: remove xdp_drops statistic from enetc_xdp_drop()
      * 9c439311c13f udf: Fix bogus checksum computation in udf_rename()
      * 4a1d95fc9706 udf: Don't return bh from udf_expand_dir_adinicb()
      * dfb34bb97d4b udf: Handle error when expanding directory
      * cb2b0325b76c udf: Remove old directory iteration code
      * 0003d349614d udf: Convert udf_link() to new directory iteration code
      * 25815ac67179 udf: Convert udf_mkdir() to new directory iteration code
      * feeb42a744f2 udf: Convert udf_add_nondir() to new directory iteration
      * f3c2fe1dfcee udf: Implement adding of dir entries using new iteration code
      * 55b445b2fccb udf: Convert udf_unlink() to new directory iteration code
      * 8c32b93e7879 udf: Convert udf_rmdir() to new directory iteration code
      * 6decbe20362e udf: Convert empty_dir() to new directory iteration code
      * dd74f6d3ed6a udf: Convert udf_get_parent() to new directory iteration code
      * 8cd380c6dd90 udf: Convert udf_lookup() to use new directory iteration code
      * 39d52a113ef8 udf: Convert udf_readdir() to new directory iteration
      * 626860c470ff udf: Convert udf_rename() to new directory iteration code
      * e6355892ca87 udf: Provide function to mark entry as deleted using new directory iteration code
      * a48e84cc50e6 udf: Implement searching for directory entry using new iteration code
      * 7add383ba57d udf: Move udf_expand_dir_adinicb() to its callsite
      * 311192441cc8 udf: Convert udf_expand_dir_adinicb() to new directory iteration
      * de268ec62a15 udf: New directory iteration code
      * 46dcafa90dff ALSA: hda/conexant - Fix audio routing for HP EliteOne 1000 G2
      
      Change-Id: Ia3a5aae9de7eed202b824371a4f2dcf8b7e35642
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      f00e8bc3
    • Todd Kjos's avatar
      Revert "UPSTREAM: unicode: Don't special case ignorable code points" · c3766284
      Todd Kjos authored
      
      This reverts commit 62bbb08a.
      
      Reason for revert: b/382800956
      
      Change-Id: Ic7a0cdbb060c12c1628a5859d795e78cd6b9341d
      Signed-off-by: default avatarTodd Kjos <tkjos@google.com>
      c3766284
  13. Dec 09, 2024
  14. Dec 06, 2024
  15. Dec 05, 2024
    • Greg Kroah-Hartman's avatar
      Merge 5.15.170 into android13-5.15-lts · 431fb555
      Greg Kroah-Hartman authored
      
      Changes in 5.15.170
      	bpf: Make sure internal and UAPI bpf_redirect flags don't overlap
      	bpf: devmap: provide rxq after redirect
      	RDMA/bnxt_re: Fix incorrect AVID type in WQE structure
      	RDMA/bnxt_re: Add a check for memory allocation
      	x86/resctrl: Avoid overflow in MB settings in bw_validate()
      	ARM: dts: bcm2837-rpi-cm3-io3: Fix HDMI hpd-gpio pin
      	ALSA: hda/cs8409: Fix possible NULL dereference
      	RDMA/cxgb4: Fix RDMA_CM_EVENT_UNREACHABLE error for iWARP
      	RDMA/irdma: Fix misspelling of "accept*"
      	ipv4: give an IPv4 dev to blackhole_netdev
      	RDMA/bnxt_re: Return more meaningful error
      	RDMA/bnxt_re: Fix a bug while setting up Level-2 PBL pages
      	drm/msm/dsi: fix 32-bit signed integer extension in pclk_rate calculation
      	drm/msm: Avoid NULL dereference in msm_disp_state_print_regs()
      	drm/msm: Allocate memory for disp snapshot with kvzalloc()
      	net: usb: usbnet: fix race in probe failure
      	octeontx2-af: Fix potential integer overflows on integer shifts
      	macsec: don't increment counters for an unrelated SA
      	net: ethernet: aeroflex: fix potential memory leak in greth_start_xmit_gbit()
      	net/smc: Fix searching in list of known pnetids in smc_pnet_add_pnetid
      	net: xilinx: axienet: fix potential memory leak in axienet_start_xmit()
      	net: systemport: fix potential memory leak in bcm_sysport_xmit()
      	tcp/dccp: Don't use timer_pending() in reqsk_queue_unlink().
      	genetlink: hold RCU in genlmsg_mcast()
      	scsi: target: core: Fix null-ptr-deref in target_alloc_device()
      	smb: client: fix OOBs when building SMB2_IOCTL request
      	usb: typec: altmode should keep reference to parent
      	s390: Initialize psw mask in perf_arch_fetch_caller_regs()
      	Bluetooth: bnep: fix wild-memory-access in proto_unregister
      	arm64:uprobe fix the uprobe SWBP_INSN in big-endian
      	arm64: probes: Fix uprobes for big-endian kernels
      	KVM: s390: gaccess: Refactor gpa and length calculation
      	KVM: s390: gaccess: Refactor access address range check
      	KVM: s390: gaccess: Cleanup access to guest pages
      	KVM: s390: gaccess: Check if guest address is in memslot
      	usb: gadget: Add function wakeup support
      	XHCI: Separate PORT and CAPs macros into dedicated file
      	usb: dwc3: core: Fix system suspend on TI AM62 platforms
      	block, bfq: fix procress reference leakage for bfqq in merge chain
      	exec: don't WARN for racy path_noexec check
      	drm/vboxvideo: Replace fake VLA at end of vbva_mouse_pointer_shape with real VLA
      	ASoC: codecs: lpass-rx-macro: add missing CDC_RX_BCL_VBAT_RF_PROC2 to default regs values
      	ASoC: fsl_sai: Enable 'FIFO continue on error' FCONT bit
      	arm64: Force position-independent veneers
      	udf: fix uninit-value use in udf_get_fileshortad
      	platform/x86: dell-wmi: Ignore suspend notifications
      	arm64/uprobes: change the uprobe_opcode_t typedef to fix the sparse warning
      	ASoC: qcom: sm8250: add qrb4210-rb2-sndcard compatible string
      	platform/x86: dell-sysman: add support for alienware products
      	jfs: Fix sanity check in dbMount
      	tracing: Consider the NULL character when validating the event length
      	xfrm: extract dst lookup parameters into a struct
      	xfrm: respect ip protocols rules criteria when performing dst lookups
      	net/sun3_82586: fix potential memory leak in sun3_82586_send_packet()
      	be2net: fix potential memory leak in be_xmit()
      	net: plip: fix break; causing plip to never transmit
      	net: dsa: mv88e6xxx: Fix error when setting port policy on mv88e6393x
      	netfilter: xtables: fix typo causing some targets not to load on IPv6
      	net: wwan: fix global oob in wwan_rtnl_policy
      	net: usb: usbnet: fix name regression
      	net: sched: fix use-after-free in taprio_change()
      	r8169: avoid unsolicited interrupts
      	posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime()
      	bpf,perf: Fix perf_event_detach_bpf_prog error handling
      	ALSA: firewire-lib: Avoid division by zero in apply_constraint_to_size()
      	ALSA: hda/realtek: Update default depop procedure
      	btrfs: zoned: fix zone unusable accounting for freed reserved extent
      	drm/amd: Guard against bad data for ATIF ACPI method
      	ACPI: resource: Add LG 16T90SP to irq1_level_low_skip_override[]
      	ACPI: button: Add DMI quirk for Samsung Galaxy Book2 to fix initial lid detection issue
      	nilfs2: fix kernel bug due to missing clearing of buffer delay flag
      	openat2: explicitly return -E2BIG for (usize > PAGE_SIZE)
      	KVM: nSVM: Ignore nCR3[4:0] when loading PDPTEs from memory
      	ALSA: hda/realtek: Add subwoofer quirk for Acer Predator G9-593
      	xfrm: fix one more kernel-infoleak in algo dumping
      	hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event
      	selinux: improve error checking in sel_write_load()
      	serial: protect uart_port_dtr_rts() in uart_shutdown() too
      	net: phy: dp83822: Fix reset pin definitions
      	ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
      	xfrm: validate new SA's prefixlen using SA family when sel.family is unset
      	Linux 5.15.170
      
      Change-Id: I84f561807e0db33ca34fff5e4f924a4e5b8e6da9
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      431fb555
    • Qi Han's avatar
      UPSTREAM: f2fs: modify f2fs_is_checkpoint_ready logic to allow more data to be... · 5b151cac
      Qi Han authored
      UPSTREAM: f2fs: modify f2fs_is_checkpoint_ready logic to allow more data to be written with the CP disable
      
      When the free segment is used up during CP disable, many write or
      ioctl operations will get ENOSPC error codes, even if there are
      still many blocks available. We can reproduce it in the following
      steps:
      
      dd if=/dev/zero of=f2fs.img bs=1M count=65
      mkfs.f2fs -f f2fs.img
      mount f2fs.img f2fs_dir -o checkpoint=disable:10%
      cd f2fs_dir
      i=1 ; while [[ $i -lt 50 ]] ; do (file_name=./2M_file$i ; dd \
      if=/dev/random of=$file_name bs=1M count=2); i=$((i+1)); done
      sync
      i=1 ; while [[ $i -lt 50 ]] ; do (file_name=./2M_file$i ; truncate \
      -s 1K $file_name); i=$((i+1)); done
      sync
      dd if=/dev/zero of=./file bs=1M count=20
      
      In f2fs_need_SSR() function, it is allowed to use SSR to allocate
      blocks when CP is disabled, so in f2fs_is_checkpoint_ready function,
      can we judge the number of invalid blocks when free segment is not
      enough, and return ENOSPC only if the number of invalid blocks is
      also not enough.
      
      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 84b5bb8b)
      Signed-off-by: default avatarDaniel Rosenberg <drosen@google.com>
      (cherry picked from https://android-review.googlesource.com/q/commit:225caf3bdf7a4977ae50ba9b5c5470a16d480100)
      Merged-In: I41ad315f603cd764d0e9b8ef984447e7116b1514
      Change-Id: I41ad315f603cd764d0e9b8ef984447e7116b1514
      5b151cac
    • Chao Yu's avatar
      BACKPORT: f2fs: introduce get_available_block_count() for cleanup · 3cee79b3
      Chao Yu authored
      
      There are very similar codes in inc_valid_block_count() and
      inc_valid_node_count() which is used for available user block
      count calculation.
      
      This patch introduces a new helper get_available_block_count()
      to include those common codes, and used it to clean up codes.
      
      Signed-off-by: default avatarChao Yu <chao@kernel.org>
      Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
      (cherry picked from commit 0f1c6ede)
      [Added line for F2FS_IO_ALIGNED, which was removed in later kernels]
      Signed-off-by: default avatarDaniel Rosenberg <drosen@google.com>
      (cherry picked from https://android-review.googlesource.com/q/commit:a87d130248adf95c218c461a15f08b983aac74be)
      Merged-In: Ie2ce55bdac091bc4880478eeba2a76e1608726e3
      Change-Id: Ie2ce55bdac091bc4880478eeba2a76e1608726e3
      3cee79b3
Loading