Commit graph

983,832 commits

Author SHA1 Message Date
Michael Bestas
8d4296749a
Revert "camera_legacy: update camera uapi kernel headers installation"
This reverts commit 224f161870.

Change-Id: Iab74de1d0774153ea4ed09d8e660344e43b3d97b
2025-03-24 12:52:27 +02:00
Michael Bestas
ffff8b3589
Revert "techpack: add camera legacy support"
This reverts commit 7b3d315852.

Change-Id: Id160f9e62700099cab333223eaa2e1f8809135d2
2025-03-24 12:52:27 +02:00
Michael Bestas
eed57fac05
Revert "rhodei: update camera device tree path"
This reverts commit 31770a77ab.

Change-Id: Ieb7fe3a85b07b664c644dd15236d64df916bf469
2025-03-24 12:52:27 +02:00
Sevenrock
09cfab7fb2
Revert "rhodep/rhodec: update camera device tree path"
This reverts commit 7b0a2deb42.

Change-Id: I42b463208f0a6776f9e36b29dc2289d608898d55
2025-03-24 12:52:27 +02:00
Michael Bestas
465e681dc9
Revert "include:statfs.h:reduce boilerplate in fsid handling"
This reverts commit 84a58d6dd0.

Reason for revert: Remove useless change

Change-Id: I100ad7e35352726e0c2d61a0a63de97e5104987e
2025-03-24 12:52:26 +02:00
Michael Bestas
855d070209
Revert "(CR): alarmtimer: add debug to identify alarmtimers"
This reverts commit bfcc95d87a.

Reason for revert: Remove useless logging changes

Change-Id: Iaa50dc606d436df958f8fa23e1873ac863d4a3e0
2025-03-21 19:50:12 +02:00
Michael Bestas
7bbfd57aae
arm64: configs: moto-holi: Disable CONFIG_FELICA_MOUNT_BLOCK
Change-Id: Ibc0b35893ae7953009ec0d1d8cb4065556d65757
2025-03-21 19:50:12 +02:00
Michael Bestas
9591378fe3
Revert "fs: Add Felica mount requirement"
This reverts commit 523f17e0ea.

Reason for revert: Remove remount restrictions

Change-Id: I1a23fa3688aac982a7ce2abee933a5f0d7a71315
2025-03-21 19:50:12 +02:00
Michael Bestas
d2fc2e2912
Revert "fs: Don't initialize filename"
This reverts commit 3c365bdb7d.

Reason for revert: Remove remount restrictions

Change-Id: Iba12a0937949234a03b78660d11bf2026d477f52
2025-03-21 19:50:12 +02:00
Michael Bestas
84ba45a7c2
Revert "fs: Check absolute path"
This reverts commit 4c912f3429.

Reason for revert: Remove remount restrictions

Change-Id: I7ad17707df89092dbd9a9ecdcbec51a1514af079
2025-03-21 19:50:12 +02:00
Michael Bestas
875a9cb162
Revert "fs: Remove "bind" flag check"
This reverts commit e5ab5b3421.

Reason for revert: Remove remount restrictions

Change-Id: Iff8a6f25da601be65e64bb47f082577520054688
2025-03-21 19:50:12 +02:00
Sevenrock
e7ee249caa
Revert "usb/dwc3: msm: Enable all Debug Logs"
This reverts commit 81e4c889aa.

Reason for revert: Remove useless logging changes

Change-Id: Ib7ccc8738985cd9180b61547200794d55d5192b4
Signed-off-by: Sevenrock <sevenrock@hotmail.de>
2025-03-21 19:50:12 +02:00
Michael Bestas
c086ece929
Revert "(CR): drivers: enable step-wise and qmi tz logs"
This reverts commit c12db773b5.

Reason for revert: Remove useless logging changes

Change-Id: If1b9e0a92dcc1e7add63d5a6bc69eb100c8ffdf1
2025-03-21 19:50:12 +02:00
Michael Bestas
728d5e412a
Revert "set max_timeout_counter to 0 for large card do BLKDISCARD"
This reverts commit 7dd7895691.

Reason for revert: Useless commit with no actual changes

Change-Id: I5711d808ac932283fa547300427db8f3d104c5d3
2025-03-21 19:50:12 +02:00
Michael Bestas
fb2690e255
Revert "update btfm enable ch delay when freq 48000 ch 0"
This reverts commit e819d7d240.

Reason for revert: Remove useless log level change

Change-Id: I951522831e1b3376ce893a4c57343cf539703517
2025-03-21 19:50:12 +02:00
Michael Bestas
f8d17d91f1
binder: Resolve motorola merge issue
Change-Id: I9206602f10e1e99e033e4cc3fd0ef30b79ddee60
2025-03-21 19:50:11 +02:00
Michael Bestas
7edfa87463
arm64: dts: vendor: Remove .gitignore
Change-Id: If00813d768889dd27d26737abf165734ff7d75c5
2025-03-21 19:50:11 +02:00
Michael Bestas
af40082e75
Merge branch 'staging/motorola-kernel-modules/MMI-U1UGS34.23-110-23-2' into lineage-22.2
Based on tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/motorola-kernel-modules

Fogos push for Android 14

* staging/motorola-kernel-modules/MMI-U1UGS34.23-110-23-2: (3149 commits)
  Documentation: Remove slg51000.txt
  treewide: Remove conflicting Makefiles
  include: Remove unused synaptics_tcm.h header
  fs: Remove exfat drivers
  dlkm: goodix_fod_mmi: fix KE issue
  dlkm: goodix_fod: support drm panel notification
  moto_swap: Add reset_bdev to close backing dev for ramboost2.0
  add page fault pages to list head to avoid be swapped out soon
  fogos: TP: open 1st icnl9916c force up config
  workaround fix long page fault issue
  Revert "(CR) moto_swap: Add SWP_SYNCHRONOUS_IO cmd for ioctl"
  fix null pointer at quota_day_store
  moto_swap: Add SWP_SYNCHRONOUS_IO cmd for ioctl
  charge: config qg iterm small than FCC
  moto_swap:fix kernel panic on memcg conf
  Moto kernel protection module
  Add macro to close debug function in user build
  fogo/motorola:Fogo 5g na optimize stowed mode
  input: goodix_berlin: enable palm cancel for report id
  Update UWB driver to version 7.4
  ...

 Conflicts:
	Documentation/devicetree/bindings~HEAD

Change-Id: I1e380097e692b2efea451cbcf4dc42d972e6dd5a
2025-03-21 18:42:24 +02:00
Michael Bestas
327cbdcf54
Merge tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-video into lineage-22.2
Fogos push for Android 14

* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-video:
  Adjust qbuf cache/dqbuf cache ops failed log to VIDC_HIGH
  extend codec limitation to 1080@90fps.
  msm: vidc: optimize HEIC output buffer calc for encoder
  msm: vidc: tune input buffer size based on buffer_size_limit
  msm: vidc: Avoid dma_buf memory leak under memory pressure
  msm-vidc: fix final BW voting to ICC

Change-Id: I7ff1d8e69765b5dc96cbce2a8c5df7fc12be10e1
2025-03-21 18:37:17 +02:00
Michael Bestas
654ea8a9cd
Merge tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-display into lineage-22.2
Fogos push for Android 14

* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-display: (116 commits)
  dsi_panel: panel_feature: corret the code mistake
  dsi_panel: fix the bug of local HBM
  gpu/msm: check fps value before enable lhbm
  msm/display-drivers: release lhbm resource
  dsi/dfps: update the dfps code to support "OLED+vid mode"
  dsi/dfps: set the right fps when panel resume
  Support 120Hz command sending
  dts/display: [bangkok] update the dsc configure for tianma panel
  display-drivers: local hbm: add suport for dc_hybird_threshold
  optimze lcd log
  kernel:pnangn:update 2nd panel brightness settings to 11bits
  kernel/panel:power on/off reset sequence
  display/backlight: support hbm dcs only with 51 cmd
  display/dsi:add new lcd backlight align type for bit11_4
  display: The lcd backlight shift mode update
  drm_ioctl: add return value for set_param
  drm/dsi_panel: resend hbm off commands
  msm/drm:compatible with different hbm table in panel
  drm/msm:add delay between mipi0 to reset0 when power off
  drm/panel: check panel status before send custom commands
  ...

 Conflicts:
	techpack/display/msm/sde/sde_connector.c
	techpack/display/msm/sde/sde_kms.c

Change-Id: I13ede04c21415717cd009ae73871894f1be74927
2025-03-21 18:36:59 +02:00
Michael Bestas
9ca541ecda
Merge tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-camera into lineage-22.2
Fogos push for Android 14

* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-camera: (86 commits)
  fogo: fix tombstone when use secure camera
  fogo: Fix secure mode switch error (2/2)
  Bangkk: reset ois when read standby_flag fail
  fogos: Actuator noise reduction[2/2]
  fogor: Actuator noise reduction[2/2]
  bangkk: Powerup and initialize sensor early [3/4]
  bangkk: Fix flash request GPIO-24 failed
  bangkk: support dw9784 af drift
  bangkk: Open Camera preview will be black then camera error
  bangkk: open Camera preview may be black sometimes
  bangkk: dw9784 ois bring up
  bangkk: Secondary supply flash driver ic compatible
  Tundra: restore ois delete submit
  Tundra: add delay at check ois data_ready
  Revert "(CR): milanf: modify ois vsync irq processing flow"
  penang: Adjust actuator noise reduction
  penang: Adjust actuator noise reduction
  penang: Actuator noise reduction
  milanf: modify ois vsync irq processing flow
  camera: ois: avoid ois power down twice when download firmware failed
  ...

 Conflicts:
	techpack/camera/drivers/cam_sensor_module/cam_ois/cam_ois_core.c

Change-Id: I9aa733fcd4412059a267c7cb9408b05e91eba111
2025-03-21 18:36:20 +02:00
Michael Bestas
0cd369436c
Merge tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-audio into lineage-22.2
Fogos push for Android 14

* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm-5.4-techpack-audio: (79 commits)
  Revert "asoc: msm-compress : Fix for CTS-on-gsi with gki"
  soc: swr-mstr-ctrl: allow runtime suspend first before system suspend
  audio:add lock for aw dynamics set dailink
  Revert "(CR):audio:add lock for aw dynamics set dailink"
  dsp: q6lsm: Address use after free for mmap handle
  dsp: q6lsm: Add check for payload buffer
  ASoC: msm-pcm-host-voice: Check validity of session idx
  audio:add lock for aw dynamics set dailink
  q6fsm:add protect for fs1815 algo
  fs1815:correct rotation code
  aw882xxacf: add hac scene algo ctrl
  audio-kernel: fix build fail caused by aw8838
  techpack:add aw8838 driver
  fsm:correct fsm vbat monitor logic
  audio/dsp:reduce fsm vbat monitor retry times
  audio/asoc:add PRI_MI2S_TX_HOSTLESS
  machie_driver:add aw pri I2S dailink
  audio:add fs1815 bypass algo code and logic.
  Awinic: update communicate with adsp logic
  codecs:add fs1815 PA driver
  ...

 Conflicts:
	techpack/audio/dsp/q6lsm.c

Change-Id: I6ec23f0d578fd2494e5e29577ce470dc2cb90f5c
2025-03-21 18:35:48 +02:00
Michael Bestas
721895bde2
Merge tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/vendor-qcom-opensource-wlan-qcacld-3.0 into lineage-22.2
Fogos push for Android 14

* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/vendor-qcom-opensource-wlan-qcacld-3.0: (55 commits)
  qcacld-3.0: Remove use-after-free of frame in tx mgmt send
  qcacld-3.0: Ignore CSA request for invalid channel
  Revert "qcacld-3.0: Fix OOB issue when access wma_find_vdev_by_addr"
  qcacld-3.0: Fix OOB issue when access wma_find_vdev_by_addr
  remove invoking "sock_from_file" function
  Print the process which is receiving data
  fix wifi reconnect issue
  wlan: Support loading moto specific ini configurations
  Revert "qcacld-3.0: Change PCL for throughput case in case of STA+GO"
  : Revert "qcacld-3.0: Add support to flush fragments for a particular peer"
  qcacld-3.0: Modify check to ensure consecutive PN for frags
  qcacld-3.0: Drop mcast and plaintext frags in protected network
  qcacld-3.0: Flush frags for peer on add key request
  qcacld-3.0: Add support to flush fragments for a particular peer
  use NONHLOS_PLATFORM_COMMON_PATH
  sm4350: Store WLAN Unstripped and ELF in build archives
  fix compile errors
  prop (CR) the MAC address more appropriately
  lito: Update FW version for R
  - Update wifimacaddr command line arg
  ...

Change-Id: Ibb7fd5d5df7ee9fd07a78069cc9b385c1bf34121
2025-03-21 18:35:16 +02:00
Michael Bestas
3522680e9f
Merge tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/vendor-qcom-opensource-wlan-qca-wifi-host-cmn into lineage-22.2
Fogos push for Android 14

* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/vendor-qcom-opensource-wlan-qca-wifi-host-cmn:
  qcacmn: Add length checks for noninheritance_ie
  qcacmn: Fix OOB reads in util_gen_new_ie
  qcacmn: Fix potential OOB read in util_scan_parse_rnr_ie
  qcacmn: Fix out of bound read issue in ESP ie parse
  qcacmn: Add check to avoid NULL pointer deference in parse MBSSID
  qcacmn: Fix potential OOB read in util_scan_is_split_prof_found()
  qcacmn: Fix potential OOB read in util_scan_parse_mbssid()
  qcacmn: Fix use-after-free issue in util_scan_parse_mbssid
  qcacmn: Fix memleak in MBSSIE handler
  add NOTICE for vendor/qcom/opensource/wlan/qca-wifi-host-cmn
  Modify PNO timers.
  Support for 12M WLAN Radiated Power test on Production SW
  qcacmn: Fix out-of-bounds of src_freq
  qcacmn: Handle gracefully if scheduler cb is not registered
  qcacmn: Set default value of mawc_nlo_enabled ini as 0
  qcacmn: Use local skb pointer for reentrant cld80211_msg_allocator
  qcacmn: Validate NDP app info length before accessing NDP app info
  qcacmn: add cdp ops for IPA Tx buf smmu_unmapping
  qcacmn: Avoid array out of bound access for current channels list

 Conflicts:
	drivers/staging/qca-wifi-host-cmn/umac/scan/dispatcher/src/wlan_scan_utils_api.c

Change-Id: I00c00211511127de3ed3fece6a81879f998f0653
2025-03-21 18:34:57 +02:00
Michael Bestas
0f697d4b4b
Merge tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-display-devicetree into lineage-22.2
Fogos push for Android 14

* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-display-devicetree:
  dts/panel: add the dts file of auo panel
  dts/panel: add the dts file of dummy panel

Change-Id: I621af395f50d93cbb288bff626c368ae1f21b364
2025-03-21 18:34:00 +02:00
Michael Bestas
25c1a87ecc
Merge tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-camera-devicetree into lineage-22.2
Fogos push for Android 14

* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-camera-devicetree: (183 commits)
  fogos: Actuator noise reduction[1/2]
  fogor: Modify mclk for s5k4h7
  fogor: Actuator noise reduction[1/2]
  camera-devicetree: add init file for fogos bringup
  fogo: Bring up eeprom of main camera[1/2]
  fogo: Bring up flash[1/3]
  fogo: Bring up s5k4h7 otp[2/2]
  fogo: Bring up macro sc202acs otp
  fogo: Bring up actuator of main camera[1/2]
  fogo: Bring up front s5k4h7[2/2]
  fogo: Bring up macro sc202acs
  fogo: Bring up main s5kjns
  fogo: Setup camera driver baseline[2/3]
  fogor: Update the power pins of avdd
  fogor: Bring up eeprom of macro sc202acs
  fogor: Bring up flash[2/2]
  fogor: Bring up eeprom of front camera[2/2]
  fogor: Bring up eeprom of main camera[1/2]
  fogor: Bring up actuator of main camera[1/2]
  fogor: Bring up macro sc202acs
  ...

Change-Id: Ie6b083e7d9b99052d897af385cb1c6c48586124f
2025-03-21 18:30:55 +02:00
Michael Bestas
2d4c3b4e6f
Merge tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-devicetree into lineage-22.2
"Fogos push for Android 14"

* tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-devicetree: (1247 commits)
  Fogo5g+ introduce SB18E53186 battery
  arm/dts: config BCL SOC trigger threshold to 2%
  arm/dts: add new battery SN
  arm64/dt: fogos: add panel notify dts of fps
  arm64/dt: fogo: add panel notify dts of fps
  arm/dts: config CDP max current 1A
  system: remove cdsp_secure_heap_region
  fogos: dtsi/kernel: modify 2nd ili9883c init code
  fogos: dtsi/kernel: modify 2nd ili9883c init code
  arm/dts: config DCP max current 2.2A
  arm/dts: config mmi,enable-fcc-large-qg-iterm
  fogo/sensor: update sx937x params
  devicetree/fogo:1st panel low brightness turns off cabc
  fogos: dtsi/kernel: modify 1st icnl9916c min brightness turn off cabc
  fogos: dtsi/kernel: modify 2nd ili9883c min brightness turn off cabc
  fogos: dtsi/kernel: modify 2nd ili9883c timing
  devicetree/fogo:1st panel timing optimization
  fogor: dtsi/kernel: modify 2nd ili9883c tp-reset timing
  fogos: dtsi/kernel: modify 2nd ili9883c tp-reset timing
  dts/panel: fogo: add delay time of command 0x10
  ...

Change-Id: I49f4dc89847f5fbeac996c5cc31952bea74bd413
2025-03-21 18:13:57 +02:00
Michael Bestas
869b1e64a6
Merge branch 'staging/kernel-msm/MMI-U1UGS34.23-110-23-2' into lineage-22.2
Based on tag 'MMI-U1UGS34.23-110-23-2' of https://github.com/MotorolaMobilityLLC/kernel-msm

"Fogos push for Android 14"

* staging/kernel-msm/MMI-U1UGS34.23-110-23-2: (698 commits)
  mmc: sdhci-msm: Move MMC_CAP2_MAX_DISCARD_SIZE to prevent merge conflict
  Reapply "UPSTREAM: binder: fix the missing BR_FROZEN_REPLY in binder_return_strings"
  Revert "qseecom: Suppress suspend warning if without bus scaling."
  Revert "Penang: fix for device suspend tests fail. [1/2]"
  Revert "Penang: resolve kasan panic"
  Revert "Penang: kasan panic"
  Revert "penang: device suspend tests fail"
  Revert "net: qrtr: get svc_id before queueing sk_buff"
  Revert "af_unix: Do not use atomic ops for unix_sk(sk)->inflight."
  Revert "af_unix: Fix garbage collector racing against connect()"
  Revert "BACKPORT: net: fix __dst_negative_advice() race"
  Revert "ANDROID: ABI fixup for abi break in struct dst_ops"
  Revert "BACKPORT:sched: Provide sched_set_fifo()"
  Revert "msm: npu: Fix use after free issue"
  Revert "fs:EROFS:Porting 5.10 erofs to 5.4"
  Revert "BACKPORT:erofs: add per-cpu threads for decompression as an option"
  Revert "UPSTREAM: erofs: fix an error code in z_erofs_init_zip_subsystem()"
  msm: adsprpc: Avoid taking reference for group_info
  adsprpc: Handle UAF scenario in put_args
  msm: adsprpc: use-after-free (UAF) in global maps
  ...

Change-Id: Ia48438f247670d77560472205994632fa62062dd
2025-03-21 18:12:22 +02:00
Michael Bestas
a546cb523d
Documentation: Remove slg51000.txt
This conflicts with the upstream kernel documentation.

Change-Id: I41c0a65bb0ade4e190f224f690715caba5a7d48d
2025-03-19 09:27:10 +02:00
Michael Bestas
8e590ea149
mmc: sdhci-msm: Move MMC_CAP2_MAX_DISCARD_SIZE to prevent merge conflict
Change-Id: I80acdb4f52811ebd371317acfc4afa41e4960656
2025-03-19 09:19:56 +02:00
Michael Bestas
fc5694ef93
treewide: Remove conflicting Makefiles
These conflict with the upstream kernel makefiles.

Change-Id: Ie6b22cb952f04b80b92a38b362f71dc7cebc19b4
2025-03-19 08:37:33 +02:00
Michael Bestas
910ae61e03
include: Remove unused synaptics_tcm.h header
This conflicts with the qcom kernel header.

Change-Id: I336b3e88171fa3d0b6fde54489f6194ca997d747
2025-03-19 08:36:46 +02:00
Michael Bestas
8f36bc1909
fs: Remove exfat drivers
We will be using the backport of the official upstream exfat driver

Change-Id: I0cc1441a53ecacd45dca266bb797faef280b9e43
2025-03-19 08:35:41 +02:00
Michael Bestas
408802114d
Reapply "UPSTREAM: binder: fix the missing BR_FROZEN_REPLY in binder_return_strings"
This reverts commit 3777eba3b1.

Reason for revert: Conflicts with upstream commits.

Change-Id: Id2eca0ce74ffbd1ca7146757336bc1b4e8a76bc2
2025-03-19 07:45:58 +02:00
Michael Bestas
dab88fd873
Revert "qseecom: Suppress suspend warning if without bus scaling."
This reverts commit 2208e80231.

Reason for revert: Conflicts with upstream commits.

Change-Id: I976cd54c43319a28892efdfe078ad146204d2eb0
2025-03-19 07:42:54 +02:00
Michael Bestas
e3819f8900
Revert "Penang: fix for device suspend tests fail. [1/2]"
This reverts commit f536ebe9fc.

Reason for revert: Conflicts with upstream commits.

Change-Id: Iba5cafaf37044b09e2fee65682881f0503c2c990
2025-03-19 07:40:48 +02:00
Michael Bestas
5585e8424d
Revert "Penang: resolve kasan panic"
This reverts commit a65aa65ad1.

Reason for revert: Conflicts with upstream commits.

Change-Id: Ib80fa2d49308fe7bf853a93b977370768212ae05
2025-03-19 07:40:47 +02:00
Michael Bestas
269e073bc3
Revert "Penang: kasan panic"
This reverts commit 0ab43c2ab5.

Reason for revert: Conflicts with upstream commits.

Change-Id: I02d3e77f611b75bb22f48f1492f7b3bdeb426a8f
2025-03-19 07:40:46 +02:00
Michael Bestas
403aa4c00b
Revert "penang: device suspend tests fail"
This reverts commit 485bfce748.

Reason for revert: Conflicts with upstream commits.

Change-Id: I5ca8bffe070c918271543678401d2d9ab25e4897
2025-03-19 07:40:45 +02:00
Michael Bestas
4267e716d3
Revert "net: qrtr: get svc_id before queueing sk_buff"
This reverts commit 836e3b0c9a.

Reason for revert: Conflicts with upstream commits.

Change-Id: I963f28698392f505661abcc115b86e3c4c8801be
2025-03-19 07:40:43 +02:00
Michael Bestas
ce75ac8da4
Revert "af_unix: Do not use atomic ops for unix_sk(sk)->inflight."
This reverts commit 9ef7c24511.

Reason for revert: Conflicts with upstream commits.

Change-Id: Id7ec5e6a24fd6702a7525893b6e3b3f2428b4704
2025-03-19 07:33:35 +02:00
Michael Bestas
3628064f37
Revert "af_unix: Fix garbage collector racing against connect()"
This reverts commit 6487f3d346.

Reason for revert: Conflicts with upstream commits.

Change-Id: I5e1ccd8f68283fe88f90eebc33ade79fddf0054a
2025-03-19 07:33:34 +02:00
Michael Bestas
5740e39ff5
Revert "BACKPORT: net: fix __dst_negative_advice() race"
This reverts commit c17f876810.

Reason for revert: Conflicts with upstream commits.

Change-Id: Iee731e1eca0f9a2cef4d301f92bbff758c1afe02
2025-03-19 07:32:15 +02:00
Michael Bestas
34d9540ea1
Revert "ANDROID: ABI fixup for abi break in struct dst_ops"
This reverts commit ec1b288e67.

Reason for revert: Conflicts with upstream commits.

Change-Id: I7dae59ba64170b508615e8ef7156c4eb3d840a96
2025-03-19 07:32:12 +02:00
Michael Bestas
6e34d77850
Revert "BACKPORT:sched: Provide sched_set_fifo()"
This reverts commit 250751cadf.

Reason for revert: Conflicts with upstream commits.

Change-Id: I3eac9acf461e6492ccae2870afebf03db3889632
2025-03-19 07:30:42 +02:00
Michael Bestas
6998b48898
Revert "msm: npu: Fix use after free issue"
This reverts commit f6795b4ad6.

Reason for revert: Conflicts with upstream commits.

Change-Id: I46f817266215e1bf230951f9ceee12a42083d62b
2025-03-19 07:25:35 +02:00
Michael Bestas
7d45106869
Revert "fs:EROFS:Porting 5.10 erofs to 5.4"
This reverts commit fa3b0b74bb.

Reason for revert: Conflicts with upstream commits.

Change-Id: I10bbd4c822e516266dd4be504f42ff9e1dcf9032
2025-03-19 07:25:33 +02:00
Michael Bestas
944e8a32b9
Revert "BACKPORT:erofs: add per-cpu threads for decompression as an option"
This reverts commit 8199049168.

Reason for revert: Conflicts with upstream commits.

Change-Id: Ifb8fc9271cea27ac8a9c282cd9a75329be06725d
2025-03-19 07:25:30 +02:00
Michael Bestas
848895a54d
Revert "UPSTREAM: erofs: fix an error code in z_erofs_init_zip_subsystem()"
This reverts commit 45482ab6d3.

Reason for revert: Conflicts with upstream commits.

Change-Id: I9f82deafc00f195ed1064146511b0642eb4a08a4
2025-03-19 07:25:27 +02:00
Aneesh Kumar K.V
23a17bf13e
BACKPORT: mm/mremap: hold the rmap lock in write mode when moving page table entries.
To avoid a race between rmap walk and mremap, mremap does
take_rmap_locks().  The lock was taken to ensure that rmap walk don't miss
a page table entry due to PTE moves via move_pagetables().  The kernel
does further optimization of this lock such that if we are going to find
the newly added vma after the old vma, the rmap lock is not taken.  This
is because rmap walk would find the vmas in the same order and if we don't
find the page table attached to older vma we would find it with the new
vma which we would iterate later.

As explained in commit eb66ae0308 ("mremap: properly flush TLB before
releasing the page") mremap is special in that it doesn't take ownership
of the page.  The optimized version for PUD/PMD aligned mremap also
doesn't hold the ptl lock.  This can result in stale TLB entries as show
below.

This patch updates the rmap locking requirement in mremap to handle the race condition
explained below with optimized mremap::

Optmized PMD move

    CPU 1                           CPU 2                                   CPU 3

    mremap(old_addr, new_addr)      page_shrinker/try_to_unmap_one

    mmap_write_lock_killable()

                                    addr = old_addr
                                    lock(pte_ptl)
    lock(pmd_ptl)
    pmd = *old_pmd
    pmd_clear(old_pmd)
    flush_tlb_range(old_addr)

    *new_pmd = pmd
                                                                            *new_addr = 10; and fills
                                                                            TLB with new addr
                                                                            and old pfn

    unlock(pmd_ptl)
                                    ptep_clear_flush()
                                    old pfn is free.
                                                                            Stale TLB entry

Optimized PUD move also suffers from a similar race.  Both the above race
condition can be fixed if we force mremap path to take rmap lock.

Link: https://lkml.kernel.org/r/20210616045239.370802-7-aneesh.kumar@linux.ibm.com
Fixes: 2c91bd4a4e ("mm: speed up mremap by 20x on large regions")
Fixes: c49dd3401802 ("mm: speedup mremap on 1GB or larger regions")
Link: https://lore.kernel.org/linux-mm/CAHk-=wgXVR04eBNtxQfevontWnP6FDm+oj5vauQXP3S-huwbPw@mail.gmail.com
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Acked-by: Hugh Dickins <hughd@google.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Joel Fernandes <joel@joelfernandes.org>
Cc: Kalesh Singh <kaleshsingh@google.com>
Cc: Kirill A. Shutemov <kirill@shutemov.name>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 97113eb39fa7972722ff490b947d8af023e1f6a2)

[Kalesh Singh: Resolve some trivial conflicts in mm/mremap.c]

Bug: 151772539
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
Change-Id: I5b7235e982ea2efdc155018271fbaf2711fac4c1
2025-02-20 04:17:49 +02:00