Commit Graph

1075641 Commits

Author SHA1 Message Date
Dezhen Wang
fd04310eaf scripts: 5.15 accommodate common drivers dir moved out from 6.6 [1/1]
PD#SWPL-178341

Problem:
5.15 accommodate common drivers dir moved out from 6.6
make config setting for extra drivers

Solution:
add config setting

Verify:
local

Change-Id: I64e3bfa9100d642e10472f4159c2a0556efad9af
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2025-01-17 15:06:58 +09:00
Wanwei Jiang
db29afc2d5 Merge branch 'android14-5.15' into amlogic-5.15-dev [1/1]
PD#SWPL-87897

Problem:
record merge upstream information

Solution:
AML_KERNEL_VERSION      12
UPSTREAM_VERSION        "2447b4c0a5ca8"
AML_PATCH_VERSION       "2447b4c0a5ca8"
MERGE_DATE              "2024-08-02"

Verify:
sc2

Change-Id: I69f8a7d5d122dec79a63283b9def5eea59a50559
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-01-17 15:06:58 +09:00
Wanwei Jiang
d7f442ce10 bazel: support use bazel tool to build [1/1]
PD#SWPL-112151

Problem:
support use bazel tool to build

Solution:
support use bazel tool to build

Verify:
sc2

Change-Id: I96e80b97ed481f32239955748ffa52e7d40a85aa
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-01-17 15:06:58 +09:00
Wanwei Jiang
3bdc802dbf init: initialize the building framework of androidu-5.15 for amlogic [1/1]
PD#SWPL-109858

Problem:
Initialize the building framework of androidu-5.15 for amlogic

Solution:
Initialize the building framework of androidu-5.15 for amlogic

Verify:
sc2

Change-Id: Icfbc29709af1545b802ed7794808a2ab560ed08a
Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
2025-01-17 15:06:58 +09:00
Greg Kroah-Hartman
2447b4c0a5 Merge tag 'android14-5.15.153_r00' into 'android14-5.15'
This catches the android14-5.15 branch up with the 5.15.153 LTS release.
Included in here are the following commits:

* 8517b7fac5 ANDROID: GKI: Update .stg file due to internal io_uring changes
* 80c0158e86 ANDROID: cpufreq: brcmstb-avs-cpufreq: fix build error
* 6a87f57d6b Revert "bpf: Defer the free of inner map when necessary"
*   8c23052a2a Merge 5.15.153 into android14-5.15-lts
|\
| * 9465fef4ae Linux 5.15.153
| * d180150ea7 remoteproc: stm32: fix incorrect optional pointers
| * 85e26c4a74 regmap: Add missing map->bus check
| * c10fed329c spi: spi-mt65xx: Fix NULL pointer access in interrupt handler
| * 839308cf79 net: dsa: mt7530: fix handling of all link-local frames
| * cb302aa994 net: dsa: mt7530: fix link-local frames that ingress vlan filtering ports
| * 70424a8f45 net: dsa: mt7530: fix handling of 802.1X PAE frames
| * c210fb3c45 net: dsa: mt7530: fix handling of LLDP frames
| * 387daae8b0 bpf: report RCU QS in cpumap kthread
| * 2f1d402dcc net: report RCU QS on threaded NAPI repolling
| * 083657dc7c rcu: add a helper to report consolidated flavor QS
| * 640dbf688b netfilter: nf_tables: do not compare internal table flags on updates
| * 362508506b netfilter: nft_set_pipapo: release elements in clone only from destroy path
| * 772f18ded0 octeontx2-af: Use separate handlers for interrupts
| * 8ffcd3ccdb net/bnx2x: Prevent access to a freed page in page_pool
| * f1e560cdb1 net: phy: fix phy_read_poll_timeout argument type in genphy_loopback
| * 5deee0f7c2 hsr: Handle failures in module init
| * 8c378cc522 rds: introduce acquire/release ordering in acquire/release_in_xmit()
| * d691be84ab wireguard: receive: annotate data-race around receiving_counter.counter
| * 2b2f8d166f vdpa/mlx5: Allow CVQ size changes
| * 4d61084c5c net: dsa: mt7530: prevent possible incorrect XTAL frequency selection
| * f85c87a803 net: veth: do not manipulate GRO when using XDP
| * d35b62c224 packet: annotate data-races around ignore_outgoing
| * 9fcadd1250 net: ethernet: mtk_eth_soc: fix PPE hanging issue
| * 448cc8b5f7 net: mediatek: mtk_eth_soc: clear MAC_MCR_FORCE_LINK only when MAC is up
| * c5c0760adc net: mtk_eth_soc: move MAC_MCR setting to mac_finish()
| * a809bbfd0e hsr: Fix uninit-value access in hsr_get_node()
| * ccafa081be soc: fsl: dpio: fix kcalloc() argument order
| * 4b9d72498d s390/vtime: fix average steal time calculation
| * 8fdc7b408a octeontx2-af: Use matching wake_up API variant in CGX command interface
| * aa5ab5ce34 nouveau: reset the bo resource bus info after an eviction
| * deb5946255 io_uring: don't save/restore iowait state
| * 1049fa4d02 usb: gadget: net2272: Use irqflags in the call to net2272_probe_fin
| * 463c429bdd staging: greybus: fix get_channel_from_mode() failure path
| * 6c619223aa serial: 8250_exar: Don't remove GPIO device on suspend
| * f867ba8ea1 rtc: mt6397: select IRQ_DOMAIN instead of depending on it
| * 04dd61330f kconfig: fix infinite loop when expanding a macro at the end of file
| * 3019ad4a02 arm64: dts: broadcom: bcmbca: bcm4908: drop invalid switch cells
| * c220378081 tty: serial: samsung: fix tx_empty() to return TIOCSER_TEMT
| * e6011abe0c serial: max310x: fix syntax error in IRQ error message
| * 19b2131837 tty: vt: fix 20 vs 0x20 typo in EScsiignore
| * ea34c1c1f3 remoteproc: stm32: Fix incorrect type assignment returned by stm32_rproc_get_loaded_rsc_tablef
| * dd68756ae3 remoteproc: stm32: Fix incorrect type in assignment for va
| * a48c24ccc6 remoteproc: stm32: use correct format strings on 64-bit
| * da0ad1bdc6 comedi: comedi_test: Prevent timers rescheduling during deletion
| * a6ffae61ad afs: Revert "afs: Hide silly-rename files from userspace"
| * fa3ac8b1a2 f2fs: compress: fix reserve_cblocks counting error when out of space
| * 6ca2ea698d NFS: Fix an off by one in root_nfs_cat()
| * 704dc01387 watchdog: stm32_iwdg: initialize default timeout
| * 446f55d0d4 NFSv4.2: fix listxattr maximum XDR buffer size
| * 9d52865ff2 NFSv4.2: fix nfs4_listxattr kernel BUG at mm/usercopy.c:102
| * 6233dbe9ca net: sunrpc: Fix an off by one in rpc_sockaddr2uaddr()
| * 83edcda1d8 scsi: bfa: Fix function pointer type mismatch for hcb_qe->cbfn
| * 16a5bed6d2 RDMA/rtrs-clt: Check strnlen return len in sysfs mpath_policy_store()
| * ed3e66d86e RDMA/device: Fix a race between mad_client and cm_client init
| * a27984f631 scsi: csiostor: Avoid function pointer casts
| * 4a411fc336 f2fs: compress: fix to check unreleased compressed cluster
| * 7d420eaaa1 f2fs: compress: fix to cover normal cluster write with cp_rwsem
| * ed22aef701 f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info
| * b2713af17a f2fs: invalidate meta pages only for post_read required inode
| * 6117d8b79f f2fs: fix to invalidate META_MAPPING before DIO write
| * 5d553a56de f2fs: replace congestion_wait() calls with io_schedule_timeout()
| * bc7e7e7d64 f2fs: invalidate META_MAPPING before IPU/DIO write
| * 4a543790fd f2fs: multidevice: support direct IO
| * 6413e78086 RDMA/srpt: Do not register event handler until srpt device is fully setup
| * 9af1658ba2 ALSA: usb-audio: Stop parsing channels bits when all channels are found.
| * e9fbee0673 ALSA: hda/realtek: fix ALC285 issues on HP Envy x360 laptops
| * 01511ac7be clk: zynq: Prevent null pointer dereference caused by kmalloc failure
| * 0efb9ef6fb clk: Fix clk_core_get NULL dereference
| * d83d70b25d sparc32: Fix section mismatch in leon_pci_grpci
| * e4723c6b3e backlight: lp8788: Fully initialize backlight_properties during probe
| * 73f547f259 backlight: lm3639: Fully initialize backlight_properties during probe
| * d01286f991 backlight: da9052: Fully initialize backlight_properties during probe
| * 28e37f97b1 backlight: lm3630a: Don't set bl->props.brightness in get_brightness
| * a80fb03dda backlight: lm3630a: Initialize backlight_properties on init
| * f28b72162f leds: sgm3140: Add missing timer cleanup and flash gpio control
| * 663dea0305 leds: aw2013: Unlock mutex before destroying it
| * d63abda6c8 powerpc/embedded6xx: Fix no previous prototype for avr_uart_send() etc.
| * 6a3d4afc54 modules: wait do_free_init correctly
| * a91eef04a7 module: Add support for default value for module async_probe
| * 6304ed1603 drm/msm/dpu: add division of drm_display_mode's hskew parameter
| * f4108b28dc powerpc/hv-gpci: Fix the H_GET_PERF_COUNTER_INFO hcall return value checks
| * 9beec711a1 drm/mediatek: Fix a null pointer crash in mtk_drm_crtc_finish_page_flip
| * e5aaa9f8db media: mediatek: vcodec: avoid -Wcast-function-type-strict warning
| * 24e51d6eb5 media: ttpci: fix two memleaks in budget_av_attach
| * 790fa2c04d media: go7007: fix a memleak in go7007_load_encoder
| * d20b64f156 media: dvb-frontends: avoid stack overflow warnings with clang
| * eb6e9dce97 media: pvrusb2: fix uaf in pvr2_context_set_notify
| * d8e83a625c drm/amdgpu: Fix missing break in ATOM_ARG_IMM Case of atom_get_src_int()
| * 815d1f1c67 HID: amd_sfh: Update HPD sensor structure elements
| * 8abf014e0c ASoC: meson: axg-tdm-interface: add frame rate constraint
| * 8441012261 ASoC: meson: axg-tdm-interface: fix mclk setup without mclk-fs
| * e3adf12624 mtd: rawnand: lpc32xx_mlc: fix irq handler prototype
| * 7178a27249 mtd: maps: physmap-core: fix flash size larger than 32-bit
| * 3ae4bd815f drm/tidss: Fix initial plane zpos values
| * 9cc746346d crypto: arm/sha - fix function cast warnings
| * 010cf12f59 mfd: altera-sysmgr: Call of_node_put() only when of_parse_phandle() takes a ref
| * 1d50e29578 mfd: syscon: Call of_node_put() only when of_parse_phandle() takes a ref
| * 240c4f1159 drm/tegra: put drm_gem_object ref on error in tegra_fb_create
| * 3f8445f1c7 clk: hisilicon: hi3559a: Fix an erroneous devm_kfree()
| * 62d92b3507 clk: hisilicon: hi3519: Release the correct number of gates in hi3519_clk_unregister()
| * 118a7113db PCI: Mark 3ware-9650SE Root Port Extended Tags as broken
| * 7546460128 drm/mediatek: dsi: Fix DSI RGB666 formats and definitions
| * 4e37c53422 clk: qcom: dispcc-sdm845: Adjust internal GDSC wait times
| * fe68cf2739 media: pvrusb2: fix pvr2_stream_callback casts
| * 4f2a1657f9 media: pvrusb2: remove redundant NULL check
| * 8e19050ab9 media: go7007: add check of return value of go7007_read_addr()
| * b1d0eebaf8 media: imx: csc/scaler: fix v4l2_ctrl_handler memory leak
| * f27bcdae57 media: sun8i-di: Fix chroma difference threshold
| * de09db4e5d media: sun8i-di: Fix power on/off sequences
| * 4bdc1b352e media: sun8i-di: Fix coefficient writes
| * a62b9f3d7b NTB: fix possible name leak in ntb_register_device()
| * 87d306cdeb NTB: EPF: fix possible memory leak in pci_vntb_probe()
| * e2b6ef72b7 PCI: endpoint: Support NTB transfer between RC and EP
| * caf5cf0990 powerpc: Force inlining of arch_vmap_p{u/m}d_supported()
| * 4eb47ae93f ASoC: meson: t9015: fix function pointer type mismatch
| * a3fec47446 ASoC: meson: aiu: fix function pointer type mismatch
| * a26425b762 ASoC: meson: Use dev_err_probe() helper
| * 3d1d029734 perf stat: Avoid metric-only segv
| * 3cae4f4153 ALSA: seq: fix function cast warnings
| * 7378234eee drm/radeon/ni: Fix wrong firmware size logging in ni_init_microcode()
| * abb9bea45b perf thread_map: Free strlist on normal path in thread_map__new_by_tid_str()
| * 03e6d4e948 crypto: xilinx - call finalize with bh disabled
| * ce6e3c0411 PCI: switchtec: Fix an error handling path in switchtec_pci_probe()
| * 0bdb56eae2 PCI/P2PDMA: Fix a sleeping issue in a RCU read section
| * 56cad01c54 quota: Fix rcu annotations of inode dquot pointers
| * 1ca72a3de9 quota: Fix potential NULL pointer dereference
| * f2ddd8103f quota: simplify drop_dquot_ref()
| * f630ba2386 clk: qcom: reset: Ensure write completion on reset de/assertion
| * e5bb4f4324 clk: qcom: reset: Commonize the de/assert functions
| * e8c71db0d8 pinctrl: mediatek: Drop bogus slew rate register range for MT8192
| * 0d3fe80b6d media: edia: dvbdev: fix a use-after-free
| * dc866b69cc media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity
| * 770a57922c media: v4l2-tpg: fix some memleaks in tpg_alloc
| * e9d05d5d84 media: em28xx: annotate unchecked call to media_device_register()
| * a03ed00787 clk: meson: Add missing clocks to axg_clk_regmaps
| * 54985391de perf evsel: Fix duplicate initialization of data->id in evsel__parse_sample()
| * 6ac7c7a3a9 drm/amd/display: Fix potential NULL pointer dereferences in 'dcn10_set_output_transfer_func()'
| * 440f059837 drm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()'
| * d54877c835 HID: lenovo: Add middleclick_workaround sysfs knob for cptkbd
| * d9f8bbc6d7 perf record: Fix possible incorrect free in record__switch_output()
| * 87658f1608 PCI/DPC: Print all TLP Prefixes, not just the first
| * b8505a1aee media: tc358743: register v4l2 async device only after successful setup
| * 4c309e06aa dmaengine: tegra210-adma: Update dependency to ARCH_TEGRA
| * 746606d37d drm/lima: fix a memleak in lima_heap_alloc
| * 1bb5fea94e drm/rockchip: lvds: do not print scary message when probing defer
| * f3afb53618 drm/rockchip: lvds: do not overwrite error code
| * 03b1072616 drm/vmwgfx: fix a memleak in vmw_gmrid_man_get_node
| * 5eaa1597e2 drm/ttm: add ttm_resource_fini v2
| * 2fa491a1f4 drm: Don't treat 0 as -1 in drm_fixp2int_ceil
| * c780f00854 drm/rockchip: inno_hdmi: Fix video timing
| * 13c1212799 drm/tegra: output: Fix missing i2c_put_adapter() in the error handling paths of tegra_output_probe()
| * 5c8dc26e31 drm/tegra: rgb: Fix missing clk_put() in the error handling paths of tegra_dc_rgb_probe()
| * 7ec1d3cab9 drm/tegra: rgb: Fix some error handling paths in tegra_dc_rgb_probe()
| * 527bf2adf0 drm/tegra: dc: rgb: Allow changing PLLD rate on Tegra30+
| * bfd52f7df6 drm/tegra: dsi: Fix missing pm_runtime_disable() in the error handling path of tegra_dsi_probe()
| * 1d2f14eb47 drm/tegra: dsi: Fix some error handling paths in tegra_dsi_probe()
| * 26827907c2 drm/tegra: dsi: Make use of the helper function dev_err_probe()
| * 56ec754fd7 drm/tegra: dpaux: Fix PM disable depth imbalance in tegra_dpaux_probe
| * 49ebcae0b9 drm/tegra: dpaux: Populate AUX bus
| * 93128052bf drm/tegra: dsi: Add missing check for of_find_device_by_node
| * 03ad5ad53e dm: call the resume method on internal suspend
| * 8517729711 dm raid: fix false positive for requeue needed during reshape
| * 0d387dc503 nfp: flower: handle acti_netdevs allocation failure
| * 3538d11d2a net/x25: fix incorrect parameter validation in the x25_getsockopt() function
| * 382df231ab net: kcm: fix incorrect parameter validation in the kcm_getsockopt) function
| * 3a32dce1ad udp: fix incorrect parameter validation in the udp_lib_getsockopt() function
| * 6482113f9c l2tp: fix incorrect parameter validation in the pppol2tp_getsockopt() function
| * 3988110ecf ipmr: fix incorrect parameter validation in the ip_mroute_getsockopt() function
| * 71ce163f3e bpf: net: Change do_ip_getsockopt() to take the sockptr_t argument
| * 07aa35a50f bpf: net: Change sk_getsockopt() to take the sockptr_t argument
| * 25e5c9b20e net: Change sock_getsockopt() to take the sk ptr instead of the sock ptr
| * 4002985023 tcp: fix incorrect parameter validation in the do_tcp_getsockopt() function
| * c09fc67777 OPP: debugfs: Fix warning around icc_get_name()
| * 78a60f9103 net: phy: dp83822: Fix RGMII TX delay configuration
| * fedd8c7d29 net: phy: DP83822: enable rgmii mode if phy_interface_is_rgmii
| * f82d65e8f7 net: hns3: fix port duplex configure error in IMP reset
| * 23ec1cec24 net: hns3: fix kernel crash when 1588 is received on HIP08 devices
| * 0e939a002c net: phy: fix phy_get_internal_delay accessing an empty array
| * 5c03387021 net: ip_tunnel: make sure to pull inner header in ip_tunnel_rcv()
| * 65fb1d271c ipv6: fib6_rules: flush route cache when rule is changed
| * ca1f06e72d bpf: Fix stackmap overflow check on 32-bit arches
| * 3b08cfc65f bpf: Fix hashtab overflow check on 32-bit arches
| * c826502bed bpf: Fix DEVMAP_HASH overflow check on 32-bit arches
| * 276873ae26 sr9800: Add check for usbnet_get_endpoints
| * 2e845867b4 Bluetooth: hci_core: Fix possible buffer overflow
| * 89c69e83ff Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() with gpiod_get_optional()
| * 9609476b3a Bluetooth: hci_qca: Add support for QTI Bluetooth chip wcn6855
| * 88f846f352 Bluetooth: Remove superfluous call to hci_conn_check_pending()
| * 4b5dc615f1 igb: Fix missing time sync events
| * 5cd7afd64b igb: move PEROUT and EXTTS isr logic to separate functions
| * d70f1c8511 iommu/vt-d: Don't issue ATS Invalidation request when device is disconnected
| * 626b03daea PCI: Make pci_dev_is_disconnected() helper public for other drivers
| * 4137f25b53 wifi: rtw88: 8821c: Fix false alarm count
| * 250a78863c mmc: wmt-sdmmc: remove an incorrect release_mem_region() call in the .remove function
| * dd292e884c SUNRPC: fix some memleaks in gssx_dec_option_array
| * c7cff97802 x86, relocs: Ignore relocations in .notes section
| * 40876d07d2 ACPI: scan: Fix device check notification handling
| * 10e607fbc9 ACPI: resource: Add MAIBENBEN X577 to irq1_edge_low_force_override
| * cc06efd8a6 ACPI: resource: Do IRQ override on Lunnen Ground laptops
| * b539858261 ACPI: resource: Add Infinity laptops to irq1_edge_low_force_override
| * 95531c0d37 arm64: dts: marvell: reorder crypto interrupts on Armada SoCs
| * 941c6ee6f7 ARM: dts: imx6dl-yapp4: Move the internal switch PHYs under the switch node
| * ff54c712f0 ARM: dts: imx6dl-yapp4: Fix typo in the QCA switch register address
| * 3ebcd8f11a ARM: dts: imx6dl-yapp4: Move phy reset into switch node
| * ce92a8c7cf arm64: dts: renesas: r8a779a0: Correct avb[01] reg sizes
| * a022251c2f arm64: dts: renesas: r8a779a0: Update to R-Car Gen4 compatible values
| * 3c0cc753d7 ARM: dts: arm: realview: Fix development chip ROM compatible value
| * 276f4abe4e net: ena: Remove ena_select_queue
| * 90613c76f7 wifi: brcmsmac: avoid function pointer casts
| * b96bc1b259 iommu/amd: Mark interrupt as managed
| * 6a87552d0a bus: tegra-aconnect: Update dependency to ARCH_TEGRA
| * 1cbaf4c793 ACPI: processor_idle: Fix memory leak in acpi_processor_power_exit()
| * fe20e3d56b wifi: wilc1000: prevent use-after-free on vif when cleaning up all interfaces
| * 0454915c83 wireless: Remove redundant 'flush_workqueue()' calls
| * 487eff913e bpf: Mark bpf_spin_{lock,unlock}() helpers with notrace correctly
| * fcd58c69a3 arm64: dts: mediatek: mt7622: add missing "device_type" to memory nodes
| * e66285df73 arm64: dts: mt8183: Move CrosEC base detection node to kukui-based DTs
| * 657633a0b5 arm64: dts: mt8183: kukui: Split out keyboard node and describe detachables
| * ecec357981 arm64: dts: mt8183: kukui: Add Type C node
| * 9d159d6637 ipv6: mcast: remove one synchronize_net() barrier in ipv6_mc_down()
| * a6a50788b4 s390/vdso: drop '-fPIC' from LDFLAGS
| * f94625ec57 wifi: iwlwifi: mvm: don't set replay counters to 0xff
| * 4745cba370 pwm: sti: Fix capture for st,pwm-num-chan < st,capture-num-chan
| * 55908ea981 pwm: sti: Implement .apply() callback
| * e888c4461e wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer()
| * d20d45631f net: blackhole_dev: fix build warning for ethh set but not used
| * 95ac8e3ef2 pwm: atmel-hlcdc: Fix clock imbalance related to suspend support
| * a1716999f8 pwm: atmel-hlcdc: Use consistent variable naming
| * 81f0b319f0 pwm: atmel-hlcdc: Convert to platform remove callback returning void
| * 98b0d46939 arm64: dts: imx8mm-venice-gw71xx: fix USB OTG VBUS
| * 128a7fb7e8 wifi: iwlwifi: fix EWRD table validity check
| * 96aa407616 wifi: iwlwifi: dbg-tlv: ensure NUL termination
| * 3a5d424cff wifi: iwlwifi: mvm: report beacon protection failures
| * f8ff4b4df7 wifi: ath9k: delay all of ath9k_wmi_event_tasklet() until init is complete
| * 4287534cb5 arm64: dts: imx8mm-kontron: Disable pull resistors for SD card signals on BL board
| * d01012b6d6 arm64: dts: imx8mm-kontron: Use the VSELECT signal to switch SD card IO voltage
| * 41af98f220 arm64: dts: imx8mm-kontron: Add support for ultra high speed modes on SD card
| * db25bbd2c2 arm64: dts: imx8mm-kontron: Disable pullups for onboard UART signals on BL board
| * f7e55ad752 arm64: dts: imx8mm-kontron: Disable pullups for I2C signals on SL/BL i.MX8MM
| * d7fcdcf4ec cpufreq: mediatek-hw: Don't error out if supply is not found
| * 8a029ee1e3 af_unix: Annotate data-race of gc_in_progress in wait_for_unix_gc().
| * e0d29c4def bpftool: Silence build warning about calloc()
| * 3b71a6981e inet_diag: annotate data-races around inet_diag_table[]
| * 00d40ab2c0 sock_diag: annotate data-races around sock_diag_handlers[family]
| * 0f632a6880 cpufreq: mediatek-hw: Wait for CPU supplies before probing
| * 2cb670b272 cpufreq: Explicitly include correct DT includes
| * d951cf510f cpufreq: brcmstb-avs-cpufreq: add check for cpufreq_cpu_get's return value
| * f75e3536db wifi: mwifiex: debugfs: Drop unnecessary error check for debugfs_create_dir()
| * df78377485 wifi: wilc1000: fix multi-vif management when deleting a vif
| * ac512507ac wifi: rtl8xxxu: add cancel_work_sync() for c2hcmd_work
| * d80fc43675 wifi: wilc1000: fix RCU usage in connect path
| * 11b564991b wifi: wilc1000: fix declarations ordering
| * bc4bc74646 wifi: b43: Disable QoS for bcm4331
| * 66ef38ad97 wifi: b43: Stop correct queue in DMA worker when QoS is disabled
| * b05f6cd6c0 wifi: b43: Stop/wake correct queue in PIO Tx path when QoS is disabled
| * 04a2b6eff2 wifi: b43: Stop/wake correct queue in DMA Tx path when QoS is disabled
| * 4c4e592266 wifi: ath10k: fix NULL pointer dereference in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
| * b10ff1130f sched/fair: Take the scheduling domain into account in select_idle_core()
| * 3c1122aee9 timekeeping: Fix cross-timestamp interpolation for non-x86
| * aa74fd5ccb timekeeping: Fix cross-timestamp interpolation corner case decision
| * 48c70f35f6 timekeeping: Fix cross-timestamp interpolation on counter wrap
| * 7dd09fa80b aoe: fix the potential use-after-free problem in aoecmd_cfg_pkts
| * 53609f5c05 rtc: test: Fix invalid format specifier.
| * 3eafb6816d time: test: Fix incorrect format specifier
| * 770332c1fd lib/cmdline: Fix an invalid format specifier in an assertion msg
| * 01db522d00 md: Don't clear MD_CLOSING when the raid is about to stop
| * 25d99f7baa fs/select: rework stack allocation hack for clang
| * 98e60b538e nbd: null check for nla_nest_start
| * edbdb0d941 s390/dasd: fix double module refcount decrement
| * bb126ed29f s390/dasd: Use dev_*() for device log messages
| * 3404d535bd s390/dasd: add autoquiesce feature
| * 932600a295 s390/dasd: add copy pair setup
| * 2c42dab80a s390/dasd: add query PPRC function
| * 815348211f s390/dasd: put block allocation in separate function
| * 423b6bdf19 do_sys_name_to_handle(): use kzalloc() to fix kernel-infoleak
| * 50982ce0f1 ASoC: wm8962: Fix up incorrect error message in wm8962_set_fll
| * 2a239a9487 ASoC: wm8962: Enable both SPKOUTR_ENA and SPKOUTL_ENA in mono mode
| * 648bd8ef21 ASoC: wm8962: Enable oscillator if selecting WM8962_FLL_OSC
| * aa345a4d9b Input: gpio_keys_polled - suppress deferred probe error for gpio
| * 4bd9d06bdf ASoC: Intel: bytcr_rt5640: Add an extra entry for the Chuwi Vi8 tablet
| * 91b4bfed82 firewire: core: use long bus reset on gap count error
| * 8d1753973f Bluetooth: rfcomm: Fix null-ptr-deref in rfcomm_check_security
| * 9a1de3adf7 drm/amdgpu: Enable gpu reset for S3 abort cases on Raven series
| * c4e2f60815 ALSA: hda/realtek - ALC285 reduce pop noise from Headphone port
| * d157b06c10 scsi: mpt3sas: Prevent sending diag_reset when the controller is ready
| * 0c255fb9b1 dm-verity, dm-crypt: align "struct bvec_iter" correctly
| * f6cbb4843c block: sed-opal: handle empty atoms when parsing response
| * d7c5c0335a parisc/ftrace: add missing CONFIG_DYNAMIC_FTRACE check
| * 59be50a37f net/iucv: fix the allocation size of iucv_path_table array
| * e8a67fe34b x86/mm: Disallow vsyscall page read for copy_from_kernel_nofault()
| * e2d5cf0dcb x86/mm: Move is_vsyscall_vaddr() into asm/vsyscall.h
| * 7e13a78e2b riscv: dts: sifive: add missing #interrupt-cells to pmic
| * cf71090a59 RDMA/mlx5: Relax DEVX access upon modify commands
| * 60ba938a8b RDMA/mlx5: Fix fortify source warning while accessing Eth segment
| * e524979a8a gen_compile_commands: fix invalid escape sequence warning
| * 802eb0254f HID: multitouch: Add required quirk for Synaptics 0xcddc device
| * 581d99d2f6 MIPS: Clear Cause.BD in instruction_pointer_set
| * 8082bccb7a x86/xen: Add some null pointer checking to smp.c
| * 333de5a975 ASoC: rt5645: Make LattePanda board DMI match more precise
| * 0d7cfe2ef5 selftests: tls: use exact comparison in recv_partial
| * 37d98fb9c3 bpf: Defer the free of inner map when necessary
| * d8140159a2 rcu-tasks: Provide rcu_trace_implies_rcu_gp()
| * d909d381c3 io_uring: drop any code related to SCM_RIGHTS
| * 9dd3863e3f io_uring/unix: drop usage of io_uring socket
* | f937385430 Merge branch 'android14-5.15' into branch 'android14-5.15-lts'
* | 68b21b6f85 ANDROID: GKI: add sg_copy_from/to_buffer to virtual device symbol list
* | 8c9fedf246 Revert "regmap: allow to define reg_update_bits for no bus configuration"
* | c89027ceea Revert "regmap: Add bulk read/write callbacks into regmap_config"
* | c00231146f Revert "serial: max310x: make accessing revision id interface-agnostic"
* | e42b90b592 Revert "serial: max310x: fix IO data corruption in batched operations"
* | bff2c70560 Revert "ALSA: usb-audio: Refcount multiple accesses on the single clock"
* | f41d29ad04 Revert "ALSA: usb-audio: Clear fixed clock rate at closing EP"
* | 7c2694fa40 Revert "ALSA: usb-audio: Split endpoint setups for hw_params and prepare (take#2)"
* | fb3086b8e6 Revert "ALSA: usb-audio: Properly refcounting clock rate"
* | 195c12ce77 Revert "ALSA: usb-audio: Apply mutex around snd_usb_endpoint_set_params()"
* | 3285ea33f4 Revert "ALSA: usb-audio: Correct the return code from snd_usb_endpoint_set_params()"
* | cf9556ce0b Revert "ALSA: usb-audio: Avoid superfluous endpoint setup"
* | a3c598c3ac Revert "ALSA: usb-audio: Add quirk for Tascam Model 12"
* | 16f74f5669 Revert "ALSA: usb-audio: Add new quirk FIXED_RATE for JBL Quantum810 Wireless"
* | 22609e4015 Revert "ALSA: usb-audio: Fix microphone sound on Nexigo webcam."
* | 9951a3b756 Revert "ALSA: usb-audio: add quirk for RODE NT-USB+"
* | 9c86f89c6c Revert "ALSA: usb-audio: Fix wrong kfree issue in snd_usb_endpoint_free_all"
* | 7dcba26902 Revert "ALSA: usb-audio: Always initialize fixed_rate in snd_usb_find_implicit_fb_sync_format()"
* | c799355799 Revert "ALSA: usb-audio: Add FIXED_RATE quirk for JBL Quantum610 Wireless"
* | a73846e1f1 Revert "ALSA: usb-audio: Sort quirk table entries"
* | 7f4aa22da9 Merge 5.15.152 into android14-5.15-lts
|\|
| * b95c01af21 Linux 5.15.152
| * a1211bbf78 serial: max310x: fix IO data corruption in batched operations
| * 0ba485f90d serial: max310x: make accessing revision id interface-agnostic
| * 31642219f2 regmap: Add bulk read/write callbacks into regmap_config
| * fbddd48f14 regmap: allow to define reg_update_bits for no bus configuration
| * cad6da86ca ALSA: usb-audio: Sort quirk table entries
| * 36dba3f4cd ALSA: usb-audio: Add FIXED_RATE quirk for JBL Quantum610 Wireless
| * bfd36b1d18 ALSA: usb-audio: Always initialize fixed_rate in snd_usb_find_implicit_fb_sync_format()
| * a6f53df52b ALSA: usb-audio: Fix wrong kfree issue in snd_usb_endpoint_free_all
| * fd63fb84ed fs/proc: do_task_stat: move thread_group_cputime_adjusted() outside of lock_task_sighand()
| * 9b3834276b proc: Use task_is_running() for wchan in /proc/$pid/stat
| * 3c1b2776ef getrusage: use sig->stats_lock rather than lock_task_sighand()
| * ef2734e57c getrusage: use __for_each_thread()
| * 18c7394e46 getrusage: move thread_group_cputime_adjusted() outside of lock_task_sighand()
| * c5579e7280 getrusage: add the "signal_struct *sig" local variable
| * 63e09c1f46 drm/amd/display: Increase frame-larger-than for all display_mode_vba files
| * f4442513e4 drm/amd/display: remove DML Makefile duplicate lines
| * b4bab46400 drm/amd/display: move calcs folder into DML
| * b00e4d44ac drm/amd/display: Re-arrange FPU code structure for dcn2x
| * b6d46f306b hv_netvsc: Register VF in netvsc_probe if NET_DEVICE_REGISTER missed
| * c4cfa93e50 hv_netvsc: use netif_is_bond_master() instead of open code
| * 760d0df3ad selftests: mptcp: decrease BW in simult flows
| * 9a9d00c23d drm/amdgpu: Reset IH OVERFLOW_CLEAR bit
| * f574318960 drm/amd/pm: do not expose the API used internally only in kv_dpm.c
| * 0afbf40c01 serial: max310x: prevent infinite while() loop in port startup
| * 2fbf2c767b serial: max310x: use a separate regmap for each port
| * 2161c5411d serial: max310x: use regmap methods for SPI batch operations
| * 2aa7bcfdbb xhci: handle isoc Babble and Buffer Overrun events properly
| * 56e9aeb205 xhci: process isoc TD properly when there was a transaction error mid TD.
| * 0d29b474fb selftests: mm: fix map_hugetlb failure on 64K page size systems
| * 0b08eb6372 selftests/mm: switch to bash from sh
| * fdfc5fabe8 nfp: flower: add hardware offload check for post ct entry
| * 245332d4e7 nfp: flower: add goto_chain_index for ct entry
| * 666334fdf4 drm/amd/display: Fix uninitialized variable usage in core_link_ 'read_dpcd() & write_dpcd()' functions
| * f354086d1b ALSA: usb-audio: add quirk for RODE NT-USB+
| * 80326ce1eb ALSA: usb-audio: Fix microphone sound on Nexigo webcam.
| * f1a68c6a41 ALSA: usb-audio: Add new quirk FIXED_RATE for JBL Quantum810 Wireless
| * d16ae91186 ALSA: usb-audio: Add quirk for Tascam Model 12
| * 7ce0a888d6 ALSA: usb-audio: Avoid superfluous endpoint setup
| * 3191a00dbe ALSA: usb-audio: Correct the return code from snd_usb_endpoint_set_params()
| * 06b6de69cf ALSA: usb-audio: Apply mutex around snd_usb_endpoint_set_params()
| * 539493f147 ALSA: usb-audio: Properly refcounting clock rate
| * 56e28371fa ALSA: usb-audio: Split endpoint setups for hw_params and prepare (take#2)
| * 8ca3315bd8 ALSA: usb-audio: Clear fixed clock rate at closing EP
| * 9830e7383f ALSA: usb-audio: Refcount multiple accesses on the single clock
| * 0866afaff1 netrom: Fix data-races around sysctl_net_busy_read
| * c558e54f77 netrom: Fix a data-race around sysctl_netrom_link_fails_count
| * f9c4d42464 netrom: Fix a data-race around sysctl_netrom_routing_control
| * 4eacb242e2 netrom: Fix a data-race around sysctl_netrom_transport_no_activity_timeout
| * 489e05c614 netrom: Fix a data-race around sysctl_netrom_transport_requested_window_size
| * 85f34d352f netrom: Fix a data-race around sysctl_netrom_transport_busy_delay
| * 33081e0f34 netrom: Fix a data-race around sysctl_netrom_transport_acknowledge_delay
| * f84f770948 netrom: Fix a data-race around sysctl_netrom_transport_maximum_tries
| * b8006cb0a3 netrom: Fix a data-race around sysctl_netrom_transport_timeout
| * 775ed35498 netrom: Fix data-races around sysctl_netrom_network_ttl_initialiser
| * b3f0bc3a31 netrom: Fix a data-race around sysctl_netrom_obsolescence_count_initialiser
| * bbc21f134b netrom: Fix a data-race around sysctl_netrom_default_path_quality
| * 101277e37d erofs: apply proper VMA alignment for memory mapped files on THP
| * b3c0f55382 netfilter: nf_conntrack_h323: Add protection for bmp length out of range
| * bd9c90927a netfilter: nft_ct: fix l3num expectations with inet pseudo family
| * b562ebe21e net/rds: fix WARNING in rds_conn_connect_if_down
| * f0363af961 cpumap: Zero-initialise xdp_rxq_info struct before running XDP program
| * cae3303257 net/ipv6: avoid possible UAF in ip6_route_mpath_notify()
| * 8d95465d9a net: ice: Fix potential NULL pointer dereference in ice_bridge_setlink()
| * e46274df11 net: sparx5: Fix use after free inside sparx5_del_mact_entry
| * e77e0b0f2a geneve: make sure to pull inner header in geneve_rx()
| * be3be07d23 tracing/net_sched: Fix tracepoints that save qdisc_dev() as a string
| * e72b4e5e16 i40e: disable NAPI right after disabling irqs when handling xsk_pool
| * 533953fa90 ixgbe: {dis, en}able irqs in ixgbe_txrx_ring_{dis, en}able
| * ea4e938d2c net: lan78xx: fix runtime PM count underflow on link stop
| * 5ae5060e17 mmc: mmci: stm32: fix DMA API overlapping mappings warning
| * 287093040f mmc: mmci: stm32: use a buffer for unaligned DMA requests
* | 5e761a5e91 Merge 5.15.151 into android14-5.15-lts
|\|
| * 5743626485 Linux 5.15.151
| * 4a4eeb6912 mptcp: fix double-free on socket dismantle
| * cc5e34bc5b Revert "tls: rx: move counting TlsDecryptErrors for sync"
| * 9d5932275b net: tls: fix async vs NIC crypto offload
| * 68dbe92d67 bpf: Derive source IP addr via bpf_*_fib_lookup()
| * 39b4ee40d2 bpf: Add table ID to bpf_fib_lookup BPF helper
| * 75ca92271d bpf: Add BPF_FIB_LOOKUP_SKIP_NEIGH for bpf_fib_lookup
| * 20f5aafe52 Revert "interconnect: Teach lockdep about icc_bw_lock order"
| * fe549d8e97 Revert "interconnect: Fix locking for runpm vs reclaim"
| * ead6852245 gpio: fix resource unwinding order in error path
| * ea514ac5f1 gpiolib: Fix the error path order in gpiochip_add_data_with_key()
| * c21b5ad4e7 gpio: 74x164: Enable output pins after registers are reset
| * 6c480d0f13 af_unix: Drop oob_skb ref before purging queue in GC.
| * 2f3ae0905a Revert "drm/bridge: lt8912b: Register and attach our DSI device at probe"
| * 22850c9950 fs,hugetlb: fix NULL pointer dereference in hugetlbs_fill_super
| * 94965be37a cachefiles: fix memory leak in cachefiles_add_cache()
| * cc32ba2fdf mptcp: fix possible deadlock in subflow diag
| * af46c8a0d8 mptcp: push at DSS boundaries
| * 5101e9f11a mptcp: add needs_id for netlink appending addr
| * 4ba8702b23 mptcp: clean up harmless false expressions
| * f431a58cb9 selftests: mptcp: add missing kconfig for NF Filter in v6
| * 5d7f2e7d21 selftests: mptcp: add missing kconfig for NF Filter
| * 55366b9ae9 mptcp: rename timer related helper to less confusing names
| * 833d068e77 mptcp: process pending subflow error on close
| * 305078c274 mptcp: move __mptcp_error_report in protocol.c
| * fbd16a1e4b x86/cpu/intel: Detect TME keyid bits before setting MTRR mask registers
| * 0779521576 pmdomain: qcom: rpmhpd: Fix enabled_corner aggregation
| * 5f6e8930ca mmc: sdhci-xenon: fix PHY init clock stability
| * f4fae0a76e mmc: sdhci-xenon: add timeout for PHY init complete
| * 52af4f26c0 mmc: core: Fix eMMC initialization with 1-bit bus connection
| * 4529c084a3 dmaengine: fsl-qdma: init irq after reg initialization
| * 2dee8895a2 dmaengine: ptdma: use consistent DMA masks
| * 106c1ac953 dmaengine: fsl-qdma: fix SoC may hang on 16 byte unaligned read
| * ab2d68655d btrfs: dev-replace: properly validate device names
| * 063715c33b wifi: nl80211: reject iftype change with mesh ID change
| * 9376d059a7 gtp: fix use-after-free and null-ptr-deref in gtp_newlink()
| * cbf67001d6 ALSA: firewire-lib: fix to check cycle continuity
| * 7d930a4da1 tomoyo: fix UAF write bug in tomoyo_write_control()
| * 5941a90c55 riscv: Sparse-Memory/vmemmap out-of-bounds fix
| * 80b1534649 afs: Fix endless loop in directory parsing
| * 20a4b5214f fbcon: always restore the old font data in fbcon_do_set_font()
| * 5eac17127e ALSA: Drop leftover snd-rtctimer stuff from Makefile
| * e601ae8191 power: supply: bq27xxx-i2c: Do not free non existing IRQ
| * 4b73473c05 efi/capsule-loader: fix incorrect allocation size
| * 5bc8810b78 tls: decrement decrypt_pending if no async completion will be called
| * 9ae48288fc tls: rx: use async as an in-out argument
| * bdb7fb2923 tls: rx: assume crypto always calls our callback
| * 2ec59e1655 tls: rx: move counting TlsDecryptErrors for sync
| * b61dbb5ef4 tls: rx: don't track the async count
| * 4fd23a600b tls: rx: factor out writing ContentType to cmsg
| * 9876554897 tls: rx: wrap decryption arguments in a structure
| * d6c9c2a66c tls: rx: don't report text length from the bowels of decrypt
| * ffc8a2b821 tls: rx: drop unnecessary arguments from tls_setup_from_iter()
| * 1abd49fa1f tls: hw: rx: use return value of tls_device_decrypted() to carry status
| * 432d40036f tls: rx: refactor decrypt_skb_update()
| * 17d8bda2a6 tls: rx: don't issue wake ups when data is decrypted
| * de0970d258 tls: rx: don't store the decryption status in socket context
| * 4c68bf84d1 tls: rx: don't store the record type in socket context
| * f1e7190937 igb: extend PTP timestamp adjustments to i211
| * a1227b27fc rtnetlink: fix error logic of IFLA_BRIDGE_FLAGS writing back
| * 7c3f285996 netfilter: bridge: confirm multicast packets before passing them up the stack
| * 3e9cd89136 netfilter: let reset rules clean out conntrack entries
| * c3a84f83d9 netfilter: make function op structures const
| * 2cb39bea70 netfilter: core: move ip_ct_attach indirection to struct nf_ct_hook
| * 84d3baab4b netfilter: nfnetlink_queue: silence bogus compiler warning
| * 4225152bfb netfilter: nf_tables: allow NFPROTO_INET in nft_(match/target)_validate()
| * af1a9a925e Bluetooth: Enforce validation on max value of connection interval
| * c3df637266 Bluetooth: hci_event: Fix handling of HCI_EV_IO_CAPA_REQUEST
| * 4cd28dae82 Bluetooth: hci_event: Fix wrongly recorded wakeup BD_ADDR
| * da4569d450 Bluetooth: Avoid potential use-after-free in hci_error_reset
| * 8e99556301 stmmac: Clear variable when destroying workqueue
| * 28bbdb4e19 uapi: in6: replace temporary label with rfc9486
| * 1e2cbdbdfa net: usb: dm9601: fix wrong return value in dm9601_mdio_read
| * 9b1f5c0032 veth: try harder when allocating queue memory
| * 914c73e787 net: enable memcg accounting for veth queues
| * 8d4d26f51e lan78xx: enable auto speed configuration for LAN7850 if no EEPROM is detected
| * 8a54834c03 ipv6: fix potential "struct net" leak in inet6_rtm_getaddr()
| * f011c103e6 net: veth: clear GRO when clearing XDP even when down
| * bf3f0c4169 cpufreq: intel_pstate: fix pstate limits enforcement for adjust_perf call back
| * cbfd27689b tun: Fix xdp_rxq_info's queue_index when detaching
| * afec0c5cd2 net: ip_tunnel: prevent perpetual headroom growth
| * c71ed29d15 netlink: Fix kernel-infoleak-after-free in __skb_datagram_iter
| * 386bb2537e mtd: spinand: gigadevice: Fix the get ecc status issue
| * 00b19ee0dc netfilter: nf_tables: disallow timeout for anonymous sets
* | 0b46d0d139 Merge branch 'android14-5.15' into branch 'android14-5.15-lts'
* | c9bf6f2822 ANDROID: add blk_mq_freeze_queue and blk_mq_unfreeze_queue to virtual device symbol list
* | 9593a93b85 Revert "net: dev: Convert sa_data to flexible array in struct sockaddr"
* | 8efd374b4e Revert "arp: Prevent overflow in arp_req_get()."
* | f2df20f4c1 Revert "usb: roles: fix NULL pointer issue when put module's reference"
* | 784572c0eb Revert "usb: roles: don't get/set_role() when usb_role_switch is unregistered"
* | 28752f0260 Revert "mptcp: fix lockless access in subflow ULP diag"
* | 7a5094aac5 Revert "xhci: cleanup xhci_hub_control port references"
* | 14d24110f6 Revert "xhci: move port specific items such as state completions to port structure"
* | f7f70f0d86 Revert "xhci: rename resume_done to resume_timestamp"
* | 4e98a48adc Revert "xhci: clear usb2 resume related variables in one place."
* | 09b0a696c5 Revert "xhci: decouple usb2 port resume and get_port_status request handling"
* | d6a30b0b4e Revert "xhci: track port suspend state correctly in unsuccessful resume cases"
* | 792aa870d5 Revert "posix-timers: Ensure timer ID search-loop limit is valid"
* | 05c0bbb7b1 Merge 5.15.150 into android14-5.15-lts
|/
* 80efc62652 Linux 5.15.150
* da6cabc198 r8169: use new PM macros
* b7f3fac6d3 netfilter: nf_tables: can't schedule in nft_chain_validate
* a4efc62cd1 ext4: avoid bb_free and bb_fragments inconsistency in mb_free_blocks()
* c1317822e2 ext4: regenerate buddy after block freeing failed if under fc replay
* d82ec7529c netfilter: nf_tables: fix scheduling-while-atomic splat
* 97eaa2955d arp: Prevent overflow in arp_req_get().
* d7b6fa97ec fs/aio: Restrict kiocb_set_cancel_fn() to I/O submitted via libaio
* df31d05f06 cifs: fix mid leak during reconnection after timeout threshold
* aade859419 i2c: imx: when being a target, mark the last read as processed
* cb21407f0b i2c: imx: Add timer for handling the stop condition
* 33f649f1b1 drm/amd/display: Fix memory leak in dm_sw_fini()
* 9a03126588 drm/syncobj: call drm_syncobj_fence_add_wait when WAIT_AVAILABLE flag is set
* 13b57b5cd5 netfilter: nft_flow_offload: release dst in case direct xmit path is used
* 4c167af9f6 netfilter: nft_flow_offload: reset dst in route object after setting up flow
* 7c71b83122 netfilter: flowtable: simplify route logic
* 664264a5c5 netfilter: nf_tables: set dormant flag on hook register failure
* 4338032aa9 tls: stop recv() if initial process_rx_list gave us non-DATA
* ea845237a3 tls: rx: drop pointless else after goto
* 8b32e43a80 tls: rx: jump to a more appropriate label
* 39603a6d4e s390: use the correct count for __iowrite64_copy()
* 8cae520f21 octeontx2-af: Consider the action set by PF
* 6dae096960 drm/nouveau/instmem: fix uninitialized_var.cocci warning
* 4d3b2bd995 net: dev: Convert sa_data to flexible array in struct sockaddr
* d65ec3e48f packet: move from strlcpy with unused retval to strscpy
* 91b020aaa1 ipv6: sr: fix possible use-after-free and null-ptr-deref
* e56662160f afs: Increase buffer size in afs_update_volume_status()
* 5268bb0210 bpf: Fix racing between bpf_timer_cancel_and_free and bpf_timer_cancel
* 6800ad7417 ata: ahci_ceva: fix error handling for Xilinx GT PHY support
* 7fcc31a3a7 ata: libahci_platform: Introduce reset assertion/deassertion methods
* ddac2e0e65 ata: libahci_platform: Convert to using devm bulk clocks API
* 302b92b373 ipv6: properly combine dev_base_seq and ipv6.dev_addr_genid
* a75b495478 ipv4: properly combine dev_base_seq and ipv4.dev_addr_genid
* 2a7b878a7d net: stmmac: Fix incorrect dereference in interrupt handlers
* a41d9142d2 nouveau: fix function cast warnings
* 1087c284fd scsi: jazz_esp: Only build if SCSI core is builtin
* 4e395fb89e bpf, scripts: Correct GPL license name
* cd6070d9f5 RDMA/srpt: fix function pointer cast warnings
* 656bd1702f arm64: dts: rockchip: set num-cs property for spi on px30
* 135e5465fe RDMA/qedr: Fix qedr_create_user_qp error flow
* 989af2f293 RDMA/srpt: Support specifying the srpt_service_guid parameter
* b6e660e076 RDMA/irdma: Add AE for too many RNRS
* 056ed95bef RDMA/irdma: Set the CQ read threshold for GEN 1
* a95d4cf827 RDMA/irdma: Validate max_send_wr and max_recv_wr
* 635d79aa47 RDMA/irdma: Fix KASAN issue with tasklet
* aeb5ac1c9d RDMA/bnxt_re: Return error for SRQ resize
* 52de5805c1 IB/hfi1: Fix a memleak in init_credit_return
* 48c63a1744 cifs: add a warning when the in-flight count goes negative
* 6538b6d13c xhci: track port suspend state correctly in unsuccessful resume cases
* 8839d5728b xhci: decouple usb2 port resume and get_port_status request handling
* 8af9de2a5b xhci: clear usb2 resume related variables in one place.
* a99c8f1abe xhci: rename resume_done to resume_timestamp
* 63f0e79cf3 xhci: move port specific items such as state completions to port structure
* ea6c19c736 xhci: cleanup xhci_hub_control port references
* 95973afc87 ACPI: resource: Skip IRQ override on ASUS ExpertBook B1502CBA
* 4f080b6487 ACPI: resource: Skip IRQ override on Asus Expertbook B2402CBA
* c2a9376d50 ACPI: resource: Add Asus ExpertBook B2502 to Asus quirks
* 1b64ff947a ACPI: resource: Skip IRQ override on Asus Vivobook S5602ZA
* f3607954f2 ACPI: resource: Add ASUS model S5402ZA to quirks
* 27e99d7857 ACPI: video: Add backlight=native DMI quirk for Apple iMac12,1 and iMac12,2
* cb1003c07e ARM: dts: BCM53573: Describe on-SoC BCM53125 rev 4 switch
* 28e5e3e59b arm64: dts: rockchip: add SPDIF node for ROCK Pi 4
* 99c8b2e997 arm64: dts: rockchip: add ES8316 codec for ROCK Pi 4
* 371036bf76 arm64: dts: rockchip: fix regulator name on rk3399-rock-4
* 92dcd7d6c6 exfat: support dynamic allocate bh for exfat_entry_set_cache
* b4dc693b29 wifi: iwlwifi: mvm: avoid baid size integer overflow
* fa92c463eb igb: Fix igb_down hung on surprise removal
* 16f653776c wifi: wext-core: Fix -Wstringop-overflow warning in ioctl_standard_iw_point()
* 7552020e3a devlink: report devlink_port_type_warn source device
* 819ca25444 bpf: Address KCSAN report on bpf_lru_list
* f97832620d wifi: ath11k: fix registration of 6Ghz-only phy without the full channel range
* 3cb43222ba sched/fair: Don't balance task to its current running CPU
* 621619f626 arm64: mm: fix VA-range sanity check
* 0bd309f226 arm64: set __exception_irq_entry with __irq_entry as a default
* dd0802f0a9 ACPI: video: Add backlight=native DMI quirk for Lenovo ThinkPad X131e (3371 AMD version)
* 3cc2d66b12 ACPI: video: Add backlight=native DMI quirk for Apple iMac11,3
* 54da51be3b ACPI: button: Add lid disable DMI quirk for Nextbook Ares 8A
* fa33b70513 btrfs: add xxhash to fast checksum implementations
* ef535e0315 posix-timers: Ensure timer ID search-loop limit is valid
* 84a578961b md/raid10: prevent soft lockup while flush writes
* 6b03364b29 md: fix data corruption for raid456 when reshape restart while grow up
* 638eaac374 nbd: Add the maximum limit of allocated index in nbd_dev_add
* 173e191012 debugobjects: Recheck debug_objects_enabled before reporting
* de2efb42d6 netfilter: nf_tables: add rescheduling points during loop detection walks
* a022c339af net/sched: Refactor qdisc_graft() for ingress and clsact Qdiscs
* 65acad6791 Input: iqs269a - do not poll during ATI
* 13b1dee7e1 Input: iqs269a - do not poll during suspend or resume
* f33ba1ec4a Input: iqs269a - switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
* dba0691272 PM: core: Remove static qualifier in DEFINE_SIMPLE_DEV_PM_OPS macro
* 995e77b873 mmc: mxc: Use the new PM macros
* 8bc597732c mmc: jz4740: Use the new PM macros
* 75d4f92d87 PM: core: Add new *_PM_OPS macros, deprecate old ones
* 53f7337519 PM: core: Redefine pm_ptr() macro
* a51c253d83 powerpc/eeh: Set channel state after notifying the drivers
* 4570db06b7 powerpc/eeh: Small refactor of eeh_handle_normal_event()
* 12dd4a0848 powerpc/rtas: ensure 4KB alignment for rtas_data_buf
* 8afaf74307 powerpc/rtas: make all exports GPL
* 2240f4c5f5 net: ethernet: ti: add missing of_node_put before return
* 18721a8373 dt-bindings: clocks: imx8mp: Add ID for usb suspend clock
* fb100de778 clk: imx8mp: add clkout1/2 support
* 3c8a513f0f clk: imx8mp: Add DISP2 pixel clock
* 3517b6d614 serial: 8250: Remove serial_rs485 sanitization from em485
* 54974aad4a cifs: remove useless parameter 'is_fsctl' from SMB2_ioctl()
* 15c3ddd118 kernel/sched: Remove dl_boosted flag comment
* a1733ffd88 drm/i915/dg1: Update DMC_DEBUG3 register
* 8102416c05 f2fs: write checkpoint during FG_GC
* cfd5d011d6 f2fs: don't set GC_FAILURE_PIN for background GC
* 56b522f466 drm/amdgpu: init iommu after amdkfd device init
* 572ee5086e tools/virtio: fix build
* 80f2a24622 perf beauty: Update copy of linux/socket.h with the kernel sources
* 47b6345ddb tools headers UAPI: Sync linux/fscrypt.h with the kernel sources
* c65a23e98e ARM: dts: BCM53573: Drop nonexistent "default-off" LED trigger
* 2eb3d2a54a acpi: property: Let args be NULL in __acpi_node_get_property_reference
* 7abdd666a0 platform/x86: asus-wmi: Document the dgpu_disable sysfs attribute
* 7de3c1535b clk: linux/clk-provider.h: fix kernel-doc warnings and typos
* b184742d27 RDMA/siw: Correct wrong debug message
* 6f6ec8aff2 RDMA/siw: Balance the reference of cep->kref in the error path
* 71475bcee0 ARM: dts: BCM53573: Drop nonexistent #usb-cells
* 832cf206df selftests: net: vrf-xfrm-tests: change authentication and encryption algos
* 14e1f63b39 vdpa/mlx5: Don't clear mr struct on destroy MR
* 5b4f6c5ff6 MIPS: vpe-mt: drop physical_memsize
* 1be5de5b64 MIPS: SMP-CPS: fix build error when HOTPLUG_CPU not set
* cc24b32d7d powerpc/pseries/lpar: add missing RTAS retry status handling
* 3212606148 powerpc/perf/hv-24x7: add missing RTAS retry status handling
* e3835122ea powerpc/pseries/lparcfg: add missing RTAS retry status handling
* 228d3c4919 clk: Honor CLK_OPS_PARENT_ENABLE in clk_core_is_enabled()
* d0e4a44455 clk: qcom: gpucc-sdm845: fix clk_dis_wait being programmed for CX GDSC
* e7076cfb72 clk: qcom: gpucc-sc7180: fix clk_dis_wait being programmed for CX GDSC
* 83c043b92b powerpc/powernv/ioda: Skip unallocated resources when mapping to PE
* 8c373aa1f7 Input: ads7846 - don't check penirq immediately for 7845
* 6a37a429b3 Input: ads7846 - always set last command to PWRDOWN
* 199e666477 clk: imx: avoid memory leak
* 94957e54dc clk: renesas: cpg-mssr: Remove superfluous check in resume code
* 2d89ed2e06 Input: ads7846 - don't report pressure for ads7845
* f992d1afd1 clk: renesas: cpg-mssr: Fix use after free if cpg_mssr_common_init() failed
* d73cf59d24 Input: iqs269a - increase interrupt handler return delay
* db06a2ae07 Input: iqs269a - configure device with a single block write
* fdbceead4a Input: iqs269a - drop unused device node references
* d93c68661a RISC-V: fix funct4 definition for c.jalr in parse_asm.h
* 5c5c02b069 mtd: rawnand: sunxi: Fix the size of the last OOB region
* 11fcd28df8 clk: qcom: gcc-qcs404: fix names of the DSI clocks used as parents
* 9fcba5e7bb clk: qcom: gcc-qcs404: disable gpll[04]_out_aux parents
* 7602e5e1bd clk: imx: imx8mp: add shared clk gate for usb suspend clk
* 7d6e8d7ee1 mptcp: fix lockless access in subflow ULP diag
* 256c3e6192 usb: roles: don't get/set_role() when usb_role_switch is unregistered
* ef982fc410 usb: roles: fix NULL pointer issue when put module's reference
* 2cb66b62a5 usb: gadget: ncm: Avoid dropping datagrams of properly parsed NTBs
* 3a2a909942 usb: cdns3: fix memory double free when handle zero packet
* 4e5c73b15d usb: cdns3: fixed memory use after free at cdns3_gadget_ep_disable()
* f4928121f7 usb: cdnsp: fixed issue with incorrect detecting CDNSP family controllers
* 7c532fb96a usb: cdnsp: blocked some cdns3 specific code
* c98f2d25f8 usb: dwc3: gadget: Don't disconnect if not started
* f4fab74cb8 serial: amba-pl011: Fix DMA transmission in RS485 mode
* 2c62c8984b x86/alternative: Make custom return thunk unconditional
* b0c9fcacf2 Revert "x86/alternative: Make custom return thunk unconditional"
* ae815291f0 x86/returnthunk: Allow different return thunks
* 5ca1f6adac x86/ftrace: Use alternative RET encoding
* b9d69bfff6 x86/ibt,paravirt: Use text_gen_insn() for paravirt_patch()
* b810c58d8b x86/text-patching: Make text_gen_insn() play nice with ANNOTATE_NOENDBR
* 8943e3c944 Revert "x86/ftrace: Use alternative RET encoding"
* eec6cbbfa1 ARM: ep93xx: Add terminator to gpiod_lookup_table
* 0da15a7039 l2tp: pass correct message length to ip6_append_data
* 9d71d7a9f2 PCI/MSI: Prevent MSI hardware interrupt number truncation
* a576308800 gtp: fix use-after-free and null-ptr-deref in gtp_genl_dump_pdp()
* d81e2dc203 KVM: arm64: vgic-its: Test for valid IRQ in its_sync_lpi_pending_table()
* 4deb8413ec KVM: arm64: vgic-its: Test for valid IRQ in MOVALL handler
* e20b24b175 platform/x86: touchscreen_dmi: Allow partial (prefix) matches for ACPI names
* 79d7504a24 platform/x86: intel-vbtn: Stop calling "VBDL" from notify_handler
* 1a4371db68 dm-crypt: don't modify the data when using authenticated encryption
* d580f0dcb5 drm/ttm: Fix an invalid freeing on already freed page in error path
* 47ae64df23 IB/hfi1: Fix sdma.h tx->num_descs off-by-one error
* 77cbc04a1a erofs: fix lz4 inplace decompression
* fbb662ffa0 pmdomain: renesas: r8a77980-sysc: CR7 must be always on
* 43ea43b6fa ksmbd: free aux buffer if ksmbd_iov_pin_rsp_read fails
* 475426ad1a pmdomain: mediatek: fix race conditions with genpd
* 2a52590ac5 virtio-blk: Ensure no requests in virtqueues before deleting vqs.
* b9a61ee2bb drm/amdgpu: reset gpu for s3 suspend abort case
* afc74fda2b drm/amdgpu: skip to program GFXDEC registers for suspend abort
* dcd33edd85 firewire: core: send bus reset promptly on gap count error
* a74270a1b7 scsi: lpfc: Use unsigned type for num_sge
* 26b8bdb556 hwmon: (coretemp) Enlarge per package core count limit
* a2f99731ab efi: Don't add memblocks for soft-reserved memory
* 4aa36b62c3 efi: runtime: Fix potential overflow of soft-reserved region size
* 262dc4fb15 wifi: mac80211: adding missing drv_mgd_complete_tx() call
* a585faf059 fs/ntfs3: Fix oob in ntfs_listxattr
* 0a3548e824 fs/ntfs3: Update inode->i_size after success write into compressed file
* c39c689a82 fs/ntfs3: Correct function is_rst_area_valid
* 54142e95df fs/ntfs3: Prevent generic message "attempt to access beyond end of device"
* 095d6a66bc fs/ntfs3: use non-movable memory for ntfs3 MFT buffer cache
* 3f3a6ebf6a fs/ntfs3: Disable ATTR_LIST_ENTRY size check
* ee8db6475c fs/ntfs3: Add NULL ptr dereference checking at the end of attr_allocate_frame()
* 56dacb722b fs/ntfs3: Fix detected field-spanning write (size 8) of single field "le->name"
* 3532bceaed fs/ntfs3: Print warning while fixing hard links count
* f14132b883 fs/ntfs3: Correct hard links updating when dealing with DOS names
* cd465584d5 fs/ntfs3: Improve ntfs_dir_count
* 3f7920b36d fs/ntfs3: Modified fix directory element type detection
* b4663b406a Input: i8042 - add Fujitsu Lifebook U728 to i8042 quirk table
* 9b1e3cf9ed ext4: correct the hole length returned by ext4_map_blocks()
* 46e64b9a4b nvmet-fc: take ref count on tgtport before delete assoc
* 5e0bc09a52 nvmet-fc: avoid deadlock on delete association path
* f323185c79 nvmet-fc: abort command when there is no binding
* 59b4ca71ab nvmet-fc: hold reference on hostport match
* 8fd604d4b0 nvmet-fc: defer cleanup using RCU properly
* 8f7104e18f nvmet-fc: release reference on target port
* 071f116416 nvmet-fcloop: swap the list_add_tail arguments
* 0bf567d6d9 nvme-fc: do not wait in vain when unloading module
* 75e34de642 ALSA: usb-audio: Ignore clock selector errors for single connection
* a75d89666c netfilter: conntrack: check SCTP_CID_SHUTDOWN_ACK for vtag setting in sctp_new
* 4a5ed46972 Input: xpad - add Lenovo Legion Go controllers
* 1e9af43d5d spi: sh-msiof: avoid integer overflow in constants
* ef1e3f277a ASoC: sunxi: sun4i-spdif: Add support for Allwinner H616
* e59905cfb1 ALSA: usb-audio: Check presence of valid altsetting control
* 065da538e6 nvmet-tcp: fix nvme tcp ida memory leak
* f8dee8e489 regulator: pwm-regulator: Add validity checks in continuous .get_voltage
* 4fe4e5adc7 dmaengine: ti: edma: Add some null pointer checks to the edma_probe
* 8de8305a25 ext4: avoid allocating blocks from corrupted group in ext4_mb_find_by_goal()
* 4c21fa60a6 ext4: avoid allocating blocks from corrupted group in ext4_mb_try_best_found()
* 687061cfaa ext4: avoid dividing by 0 in mb_update_avg_fragment_size() when block bitmap corrupt
* 3700475e09 platform/x86: touchscreen_dmi: Add info for the TECLAST X16 Plus tablet
* 343c198168 MIPS: reserve exception vector space ONLY ONCE
* b4c13deff3 ahci: add 43-bit DMA address quirk for ASMedia ASM1061 controllers
* 1a8bd62449 ahci: asm1166: correct count of reported ports
* 0399d7eba4 spi: hisi-sfc-v3xx: Return IRQ_NONE if no interrupts were detected
* df6e2088c6 fbdev: sis: Error out if pixclock equals zero
* 8c54acf33e fbdev: savage: Error out if pixclock equals zero
* 88c18fd066 wifi: mac80211: fix race condition on enabling fast-xmit
* 212f20d5b1 wifi: cfg80211: fix missing interfaces when dumping
* 37d82e6ac9 dmaengine: fsl-qdma: increase size of 'irq_name'
* 3692c6f2b5 dmaengine: shdma: increase size of 'dev_id'
* a9849b67b4 scsi: target: core: Add TMF to tmr_list handling
* 0766e7317a sched/rt: Disallow writing invalid values to sched_rt_period_us
* 5295b5f2e5 sched/rt: Fix sysctl_sched_rr_timeslice intial value
* 8bd3eee772 x86/fpu: Stop relying on userspace for info to fault in xsave buffer
* c017fbf105 zonefs: Improve error handling
* bbc432e632 userfaultfd: fix mmap_changing checking in mfill_atomic_hugetlb
* 4bbb93ad84 bpf: Remove trace_printk_lock
* 4b349c55bb bpf: Do cleanup in bpf_bprintf_cleanup only when needed
* bcbaeb081a bpf: Add struct for bin_args arg in bpf_bprintf_prepare
* 8495c34dff bpf: Merge printk and seq_printf VARARG max macros
* ab2e127896 PCI: dwc: Fix a 64bit bug in dw_pcie_ep_raise_msix_irq()
* 5034989393 sched/rt: sysctl_sched_rr_timeslice show default timeslice after reset
* ee0fb9baa7 smb: client: fix parsing of SMB3.1.1 POSIX create context
* 890bc4fac3 smb: client: fix potential OOBs in smb2_parse_contexts()
* 858e73ff25 smb: client: fix OOB in receive_encrypted_standard()
* 6e5e93fd51 net/sched: Retire dsmark qdisc
* c3fdf76849 net/sched: Retire ATM qdisc
* 78bac52c29 net/sched: Retire CBQ qdisc

Change-Id: Ifc5593f64dc2c4fee8d345cd0e475050629f6498
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-07-01 09:53:26 +00:00
Todd Kjos
1e7959f642 ANDROID: fix kernelci GCC builds of fips140.ko
GCC builds of fips140.ko all fail with these errors. This causes
allmodconfig builds to fail in kernelci.

aarch64-linux-gnu-objcopy: crypto/fips140.ko:
        can't dump section '.rela.rodata'
	- it does not exist: file format not recognized

Since the Android use-cases for fips140 are clang only, suppress
fips140.ko builds for GCC

Bug: 350087876
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: I742d19bc5172d43a19acd48a248bc2a194f67ca2
2024-06-28 21:55:03 +00:00
John Stultz
76b5a292ca FROMLIST: locking/rwsem: Add __always_inline annotation to __down_write_common() and inlined callers
Apparently despite it being marked inline, the compiler
may not inline __down_write_common() which makes it difficult
to identify the cause of lock contention, as the wchan of the
blocked function will always be listed as __down_write_common().

So add __always_inline annotation to the common function (as
well as the inlined helper callers) to force it to be inlined
so a more useful blocking function will be listed (via wchan).

This mirrors commit 92cc5d00a4 ("locking/rwsem: Add
__always_inline annotation to __down_read_common() and inlined
callers") which did the same for __down_read_common.

I sort of worry that I'm playing wack-a-mole here, and talking
with compiler people, they tell me inline means nothing, which
makes me want to cry a little. So I'm wondering if we need to
replace all the inlines with __always_inline, or remove them
because either we mean something by it, or not.

Cc: Tim Murray <timmurray@google.com>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Will Deacon <will@kernel.org>
Cc: Waiman Long <longman@redhat.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: kernel-team@android.com
Fixes: c995e638cc ("locking/rwsem: Fold __down_{read,write}*()")
Reported-by: Tim Murray <timmurray@google.com>
Acked-by: Waiman Long <longman@redhat.com>
Change-Id: I72b273149577b8125ea3a5053befbd5cf66bf8ad
Signed-off-by: John Stultz <jstultz@google.com>
Link: https://lore.kernel.org/lkml/20240620174204.1802235-1-jstultz@google.com/
Bug: 332722989
---
v2:
* Add ack tags & minor tweaks to commit message
2024-06-28 16:25:21 +00:00
Eric Biggers
9572c01cc6 ANDROID: fips140: remove unnecessary no_sanitize(cfi)
gcc segfaults when compiling fips140-module.c because it doesn't like
__attribute__((__no_sanitize__("cfi"))) on fips140_init().  This
attribute is needed for clang.  However this attribute is already
included in __init when the compiler is clang.  Therefore, remove this
redundant attribute.  (Later kernel branches have also switched to kcfi,
which doesn't need to be disabled here anyway.)

For futureproofing also use initcall_t from <linux/init.h>.

Bug: 349612732
Change-Id: Ic5cfaef177b58abf21f1737579d75b4df4d0d09c
Signed-off-by: Eric Biggers <ebiggers@google.com>
2024-06-27 21:20:51 +00:00
Hsiu-Chang Chen
51cc4ca498 ANDROID: Update the ABI symbol list
wlan vendor propose a feature to check the refcnt of netdev when
interface register/unregister. Add `netdev_refcnt_read` into symbol
list.

Adding the following symbols:
  - netdev_refcnt_read

Bug: 340118509
Change-Id: I6a2ad4bbfa13d01011729b764dfe92f4945a829e
Signed-off-by: Hsiu-Chang Chen <hsiuchangchen@google.com>
2024-06-25 16:35:41 +00:00
qinglin.li
6584213dfc ANDROID: GKI: Update symbol list for Amlogic
2 function symbol(s) added
  'int __hid_register_driver(struct hid_driver*, struct module*, const char*)'
  'void hid_unregister_driver(struct hid_driver*)'

Bug: 349014537
Change-Id: I502c5796bb54943aa05f3b92340d59547f427638
Signed-off-by: Qinglin Li <qinglin.li@amlogic.com>
2024-06-24 15:20:28 +08:00
qinglin.li
bff9ae6505 ANDROID: GKI: Update symbol list for Amlogic
1 function symbol(s) added
  'int __traceiter_mm_page_free(void*, struct page*, unsigned int)'

1 variable symbol(s) added
  'struct tracepoint __tracepoint_mm_page_free'

Bug: 348514795
Change-Id: I72b8d931e9843f29296a0d11ef5a0f279d4003e1
Signed-off-by: Qinglin Li <qinglin.li@amlogic.com>
2024-06-21 18:39:32 +00:00
qinglin.li
ce340041be ANDROID: mm: allow hooks into free_pages_prepare()
Allow drivers to register mm_page_free hooks when free pages.
This helps to get page info when free pages exit.

Bug: 348514795
Change-Id: I1f2e1844aa24836367da65e8bfe11f79e22713d4
Signed-off-by: Qinglin Li <qinglin.li@amlogic.com>
2024-06-21 18:39:32 +00:00
qinglin.li
07782903f0 ANDROID: GKI: Update symbol list for Amlogic
1 function symbol(s) added
  'int __traceiter_android_vh_look_around_migrate_page(void*, struct page*, struct page*)'

1 variable symbol(s) added
  'struct tracepoint __tracepoint_android_vh_look_around_migrate_page'

Bug: 348532035
Change-Id: I974d80843e4cdaf5ff80a9c1515cde1e3b5aad31
Signed-off-by: Qinglin Li <qinglin.li@amlogic.com>
2024-06-21 15:07:42 +08:00
qinglin.li
a1a623f6fc ANDROID: vendor_hooks: Add hooks in migrate_page
Add hooks for support lookaround in migrate_page.
When migrating pages, we need hook functions to
get the page information.

- android_vh_look_around_migrate_page

Bug: 348532035
Change-Id: I7a48d7b1c7a0f42ea39e8ec4c6bb0ae1eeb44443
Signed-off-by: Qinglin Li <qinglin.li@amlogic.com>
2024-06-21 15:07:30 +08:00
qinglin.li
770d491907 ANDROID: GKI: Update symbol list for Amlogic
24 function symbol(s) added
  'int LZ4_decompress_safe(const char*, char*, int, int)'
  'int LZ4_decompress_safe_partial(const char*, char*, int, int, int)'
  'void* __xa_cmpxchg(struct xarray*, unsigned long, void*, void*, gfp_t)'
  'int add_to_page_cache_lru(struct page*, struct address_space*, unsigned long, gfp_t)'
  'u32 crc32c(u32, const void*, unsigned int)'
  'ssize_t filemap_read(struct kiocb*, struct iov_iter*, ssize_t)'
  'unsigned char fs_ftype_to_dtype(unsigned int)'
  'int fs_param_is_enum(struct p_log*, const struct fs_parameter_spec*, struct fs_parameter*, struct fs_parse_result*)'
  'int generic_file_readonly_mmap(struct file*, struct vm_area_struct*)'
  'sector_t iomap_bmap(struct address_space*, sector_t, const struct iomap_ops*)'
  'ssize_t iomap_dio_rw(struct kiocb*, struct iov_iter*, const struct iomap_ops*, const struct iomap_dio_ops*, unsigned int, size_t)'
  'int iomap_fiemap(struct inode*, struct fiemap_extent_info*, u64, u64, const struct iomap_ops*)'
  'void iomap_readahead(struct readahead_control*, const struct iomap_ops*)'
  'int iomap_readpage(struct page*, const struct iomap_ops*)'
  'int kset_register(struct kset*)'
  'struct kthread_worker* kthread_create_worker_on_cpu(int, unsigned int, const char*, ...)'
  'ssize_t noop_direct_IO(struct kiocb*, struct iov_iter*)'
  'int out_of_line_wait_on_bit_lock(void*, int, wait_bit_action_f*, unsigned int)'
  'const char* page_get_link(struct dentry*, struct inode*, struct delayed_call*)'
  's32 phy_get_internal_delay(struct phy_device*, struct device*, const int*, int, bool)'
  'struct posix_acl* posix_acl_from_xattr(struct user_namespace*, const void*, size_t)'
  'struct page* read_cache_page_gfp(struct address_space*, unsigned long, gfp_t)'
  'void readahead_expand(struct readahead_control*, loff_t, size_t)'
  'const char* simple_get_link(struct dentry*, struct inode*, struct delayed_call*)'

5 variable symbol(s) added
  'const struct file_operations generic_ro_fops'
  'unsigned long phy_basic_features[2]'
  'unsigned long phy_gbit_features[2]'
  'const struct xattr_handler posix_acl_access_xattr_handler'
  'const struct xattr_handler posix_acl_default_xattr_handler'

Bug: 346510357
Change-Id: Id459e209c663df3a9533eaacfdf1ddbaf8d101aa
Signed-off-by: Qinglin Li <qinglin.li@amlogic.com>
2024-06-17 17:12:18 +00:00
Kuniyuki Iwashima
685a016cde UPSTREAM: af_unix: Update unix_sk(sk)->oob_skb under sk_receive_queue lock.
[ Upstream commit 9841991a446c87f90f66f4b9fee6fe934c1336a2 ]

Billy Jheng Bing-Jhong reported a race between __unix_gc() and
queue_oob().

__unix_gc() tries to garbage-collect close()d inflight sockets,
and then if the socket has MSG_OOB in unix_sk(sk)->oob_skb, GC
will drop the reference and set NULL to it locklessly.

However, the peer socket still can send MSG_OOB message and
queue_oob() can update unix_sk(sk)->oob_skb concurrently, leading
NULL pointer dereference. [0]

To fix the issue, let's update unix_sk(sk)->oob_skb under the
sk_receive_queue's lock and take it everywhere we touch oob_skb.

Note that we defer kfree_skb() in manage_oob() to silence lockdep
false-positive (See [1]).

[0]:
BUG: kernel NULL pointer dereference, address: 0000000000000008
 PF: supervisor write access in kernel mode
 PF: error_code(0x0002) - not-present page
PGD 8000000009f5e067 P4D 8000000009f5e067 PUD 9f5d067 PMD 0
Oops: 0002 [#1] PREEMPT SMP PTI
CPU: 3 PID: 50 Comm: kworker/3:1 Not tainted 6.9.0-rc5-00191-gd091e579b864 #110
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
Workqueue: events delayed_fput
RIP: 0010:skb_dequeue (./include/linux/skbuff.h:2386 ./include/linux/skbuff.h:2402 net/core/skbuff.c:3847)
Code: 39 e3 74 3e 8b 43 10 48 89 ef 83 e8 01 89 43 10 49 8b 44 24 08 49 c7 44 24 08 00 00 00 00 49 8b 14 24 49 c7 04 24 00 00 00 00 <48> 89 42 08 48 89 10 e8 e7 c5 42 00 4c 89 e0 5b 5d 41 5c c3 cc cc
RSP: 0018:ffffc900001bfd48 EFLAGS: 00000002
RAX: 0000000000000000 RBX: ffff8880088f5ae8 RCX: 00000000361289f9
RDX: 0000000000000000 RSI: 0000000000000206 RDI: ffff8880088f5b00
RBP: ffff8880088f5b00 R08: 0000000000080000 R09: 0000000000000001
R10: 0000000000000003 R11: 0000000000000001 R12: ffff8880056b6a00
R13: ffff8880088f5280 R14: 0000000000000001 R15: ffff8880088f5a80
FS:  0000000000000000(0000) GS:ffff88807dd80000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000008 CR3: 0000000006314000 CR4: 00000000007506f0
PKRU: 55555554
Call Trace:
 <TASK>
 unix_release_sock (net/unix/af_unix.c:654)
 unix_release (net/unix/af_unix.c:1050)
 __sock_release (net/socket.c:660)
 sock_close (net/socket.c:1423)
 __fput (fs/file_table.c:423)
 delayed_fput (fs/file_table.c:444 (discriminator 3))
 process_one_work (kernel/workqueue.c:3259)
 worker_thread (kernel/workqueue.c:3329 kernel/workqueue.c:3416)
 kthread (kernel/kthread.c:388)
 ret_from_fork (arch/x86/kernel/process.c:153)
 ret_from_fork_asm (arch/x86/entry/entry_64.S:257)
 </TASK>
Modules linked in:
CR2: 0000000000000008

Bug: 342490466
Link: https://lore.kernel.org/netdev/a00d3993-c461-43f2-be6d-07259c98509a@rbox.co/ [1]
Fixes: 1279f9d9dec2 ("af_unix: Call kfree_skb() for dead unix_(sk)->oob_skb in GC.")
Reported-by: Billy Jheng Bing-Jhong <billy@starlabs.sg>
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://lore.kernel.org/r/20240516134835.8332-1-kuniyu@amazon.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 518a994aa0b87d96f1bc6678a7035df5d1fcd7a1)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: Ibf78b113496b5388a63207e7e582f77ddda8dec5
2024-06-17 09:59:27 +00:00
Kuniyuki Iwashima
5c86c33a36 UPSTREAM: af_unix: Don't peek OOB data without MSG_OOB.
[ Upstream commit 22dd70eb2c3d754862964377a75abafd3167346b ]

Currently, we can read OOB data without MSG_OOB by using MSG_PEEK
when OOB data is sitting on the front row, which is apparently
wrong.

  >>> from socket import *
  >>> c1, c2 = socketpair(AF_UNIX, SOCK_STREAM)
  >>> c1.send(b'a', MSG_OOB)
  1
  >>> c2.recv(1, MSG_PEEK | MSG_DONTWAIT)
  b'a'

If manage_oob() is called when no data has been copied, we only
check if the socket enables SO_OOBINLINE or MSG_PEEK is not used.
Otherwise, the skb is returned as is.

However, here we should return NULL if MSG_PEEK is set and no data
has been copied.

Also, in such a case, we should not jump to the redo label because
we will be caught in the loop and hog the CPU until normal data
comes in.

Then, we need to handle skb == NULL case with the if-clause below
the manage_oob() block.

With this patch:

  >>> from socket import *
  >>> c1, c2 = socketpair(AF_UNIX, SOCK_STREAM)
  >>> c1.send(b'a', MSG_OOB)
  1
  >>> c2.recv(1, MSG_PEEK | MSG_DONTWAIT)
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
  BlockingIOError: [Errno 11] Resource temporarily unavailable

Bug: 342490466
Fixes: 314001f0bf ("af_unix: Add OOB support")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://lore.kernel.org/r/20240410171016.7621-3-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 022d81a709)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I4728977f8f908c19dfa5c861c7381a50499b7fe0
2024-06-17 09:59:27 +00:00
Kuniyuki Iwashima
3169d3641a UPSTREAM: af_unix: Clear stale u->oob_skb.
[ Upstream commit b46f4eaa4f0ec38909fb0072eea3aeddb32f954e ]

syzkaller started to report deadlock of unix_gc_lock after commit
4090fa373f0e ("af_unix: Replace garbage collection algorithm."), but
it just uncovers the bug that has been there since commit 314001f0bf
("af_unix: Add OOB support").

The repro basically does the following.

  from socket import *
  from array import array

  c1, c2 = socketpair(AF_UNIX, SOCK_STREAM)
  c1.sendmsg([b'a'], [(SOL_SOCKET, SCM_RIGHTS, array("i", [c2.fileno()]))], MSG_OOB)
  c2.recv(1)  # blocked as no normal data in recv queue

  c2.close()  # done async and unblock recv()
  c1.close()  # done async and trigger GC

A socket sends its file descriptor to itself as OOB data and tries to
receive normal data, but finally recv() fails due to async close().

The problem here is wrong handling of OOB skb in manage_oob().  When
recvmsg() is called without MSG_OOB, manage_oob() is called to check
if the peeked skb is OOB skb.  In such a case, manage_oob() pops it
out of the receive queue but does not clear unix_sock(sk)->oob_skb.
This is wrong in terms of uAPI.

Let's say we send "hello" with MSG_OOB, and "world" without MSG_OOB.
The 'o' is handled as OOB data.  When recv() is called twice without
MSG_OOB, the OOB data should be lost.

  >>> from socket import *
  >>> c1, c2 = socketpair(AF_UNIX, SOCK_STREAM, 0)
  >>> c1.send(b'hello', MSG_OOB)  # 'o' is OOB data
  5
  >>> c1.send(b'world')
  5
  >>> c2.recv(5)  # OOB data is not received
  b'hell'
  >>> c2.recv(5)  # OOB date is skipped
  b'world'
  >>> c2.recv(5, MSG_OOB)  # This should return an error
  b'o'

In the same situation, TCP actually returns -EINVAL for the last
recv().

Also, if we do not clear unix_sk(sk)->oob_skb, unix_poll() always set
EPOLLPRI even though the data has passed through by previous recv().

To avoid these issues, we must clear unix_sk(sk)->oob_skb when dequeuing
it from recv queue.

The reason why the old GC did not trigger the deadlock is because the
old GC relied on the receive queue to detect the loop.

When it is triggered, the socket with OOB data is marked as GC candidate
because file refcount == inflight count (1).  However, after traversing
all inflight sockets, the socket still has a positive inflight count (1),
thus the socket is excluded from candidates.  Then, the old GC lose the
chance to garbage-collect the socket.

With the old GC, the repro continues to create true garbage that will
never be freed nor detected by kmemleak as it's linked to the global
inflight list.  That's why we couldn't even notice the issue.

Bug: 342490466
Fixes: 314001f0bf ("af_unix: Add OOB support")
Reported-by: syzbot+7f7f201cc2668a8fd169@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=7f7f201cc2668a8fd169
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240405221057.2406-1-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 601a89ea24)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: Ib4a11eed6b5710d9934d4f31cd29dfd4c7b3658f
2024-06-17 09:59:27 +00:00
Jaegeuk Kim
96ed674e54 Revert "f2fs: fix to tag gcing flag on page during block migration"
This reverts commit 7ea0f29d9f.

[  146.693904][ T8878] WARNING: CPU: 2 PID: 8878 at fs/f2fs/segment.c:3335 f2fs_allocate_data_block+0x130/0xd08

panic in:

f2fs_write_data_pages
 -> f2fs_write_multi_pages
  -> f2fs_write_single_data_page
   -> f2fs_do_write_data_page
    -> f2fs_outplace_write_data
     -> do_write_page
      -> f2fs_allocate_data_block

 if (from_gc) {
         f2fs_bug_on(sbi, GET_SEGNO(sbi, old_blkaddr) == NULL_SEGNO);
         se = get_seg_entry(sbi, GET_SEGNO(sbi, old_blkaddr));
         sanity_check_seg_type(sbi, se->type);
         f2fs_bug_on(sbi, IS_NODESEG(se->type));
 }

Bug: 345273844
Change-Id: I62732bbcb37a7864588886b862b590a463b4d1d9
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2024-06-16 07:22:46 -07:00
Yifan Hong
e7eba5a1a1 ANDROID: Delete obsolete 16k_gki.fragment.
The correct fragment is the one in build/kernel,
enabled by --page_size or kernel_build.page_size.
This fragment:

- Does not correctly enable incremental FS
- Does not correctly clear LOCALVERSION that
  has 4k for the 4k build.

Bug: 347036722
Bug: 340631213
Bug: 338659380
Change-Id: I31cb004ca639d8ec3dd6201112391c7214971eba
Signed-off-by: Yifan Hong <elsk@google.com>
2024-06-13 17:47:34 -07:00
Jaegeuk Kim
1491b90287 BACKPORT: f2fs: clear writeback when compression failed
Let's stop issuing compressed writes and clear their writeback flags.

Bug: 345273844
Reviewed-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Change-Id: I69835bbcf0ac993cc03b11bcd7bdcfa2ff2bbd4a
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 2174035a7f1148a52f5a3f371f04224168b5b00a)
2024-06-13 20:08:18 +00:00
Kalesh Singh
2f956cbb31 ANDROID: 16K: Only check basename of linker context
Depending on the platform binary being executed, the linker
(interpreter) requested can be one of:

    1) /system/bin/bootstrap/linker64
    2) /system/bin/linker64
    3) /apex/com.android.runtime/bin/linker64

Relax the check to the basename (linker64), instead of the path.

Bug: 330767927
Bug: 335584973
Change-Id: I4a1f95b7cecd126f85ad8cefd9ff10d272947f9e
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
2024-06-12 03:21:52 +00:00
Giuliano Procida
d6164e38a3 ANDROID: arm64: vdso32: support user-supplied flags
This introduces a new environment variable, KCPPFLAGS_COMPAT.

One use-case is to ensure -ffile-prefix-map is passed to the arm32
compiler to normalise compilation directory and make the ELF build ID
reproducible.

Bug: 345452375
Change-Id: I6ae1df58172f4dadeac1dbbee2e3241b704a9256
Signed-off-by: Giuliano Procida <gprocida@google.com>
2024-06-10 19:53:52 +00:00
Mikko Rapeli
7869fec72d UPSTREAM: mmc: core: Avoid negative index with array access
Commit 4d0c8d0aef63 ("mmc: core: Use mrq.sbc in close-ended ffu") assigns
prev_idata = idatas[i - 1], but doesn't check that the iterator i is
greater than zero. Let's fix this by adding a check.

Fixes: 4d0c8d0aef63 ("mmc: core: Use mrq.sbc in close-ended ffu")
Link: https://lore.kernel.org/all/20231129092535.3278-1-avri.altman@wdc.com/
Cc: stable@vger.kernel.org
Change-Id: I52c750e0a5c182e71b973a2c7e6b027c3da4fbb1
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Tested-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Link: https://lore.kernel.org/r/20240313133744.2405325-2-mikko.rapeli@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: yenchia.chen <yenchia.chen@mediatek.com>
(cherry picked from commit cf55a7acd1ed38afe43bba1c8a0935b51d1dc014)
Bug: 345591090
2024-06-10 18:27:48 +00:00
Mikko Rapeli
417f08dfa0 UPSTREAM: mmc: core: Initialize mmc_blk_ioc_data
Commit 4d0c8d0aef63 ("mmc: core: Use mrq.sbc in close-ended ffu") adds
flags uint to struct mmc_blk_ioc_data, but it does not get initialized for
RPMB ioctls which now fails.

Let's fix this by always initializing the struct and flags to zero.

Fixes: 4d0c8d0aef63 ("mmc: core: Use mrq.sbc in close-ended ffu")
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218587
Link: https://lore.kernel.org/all/20231129092535.3278-1-avri.altman@wdc.com/
Cc: stable@vger.kernel.org
Change-Id: I48918f076bb718bc93e5e2fbb9a70851df515a37
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Link: https://lore.kernel.org/r/20240313133744.2405325-1-mikko.rapeli@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: yenchia.chen <yenchia.chen@mediatek.com>
(cherry picked from commit 0cdfe5b0bf295c0dee97436a8ed13336933a0211)
Bug: 345591090
2024-06-10 18:27:48 +00:00
Robin Hsu
d86f55a38e ANDROID: Pixel: Add missing symbol to symbol list
Pixel MM Metrics:
    add the missing symbol 'seq_put_decimal_ll' and re-do update list

Bug: 299190787
Test: local build
Change-Id: I005ccfa15cee8252bc51242460bbab9b7d0eb2ab
Signed-off-by: Robin Hsu <robinhsu@google.com>
2024-06-07 21:11:53 +00:00
yenchia.chen
699d87745a ANDROID: GKI: update mtktv symbol
11 function symbol(s) added
  'void usbnet_cdc_unbind(struct usbnet*, struct usb_interface*)'
  'void usbnet_disconnect(struct usb_interface*)'
  'int usbnet_generic_cdc_bind(struct usbnet*, struct usb_interface*)'
  'int usbnet_open(struct net_device*)'
  'int usbnet_probe(struct usb_interface*, const struct usb_device_id*)'
  'int usbnet_resume(struct usb_interface*)'
  'void usbnet_skb_return(struct usbnet*, struct sk_buff*)'
  'netdev_tx_t usbnet_start_xmit(struct sk_buff*, struct net_device*)'
  'int usbnet_stop(struct net_device*)'
  'int usbnet_suspend(struct usb_interface*, pm_message_t)'
  'void usbnet_tx_timeout(struct net_device*, unsigned int)'

Bug: 344792547
Change-Id: I5954a9e53e2a4687ac39d51378d4e519c74e9685
Signed-off-by: yenchia.chen <yenchia.chen@mediatek.com>
2024-06-06 11:09:43 +00:00
Yifan Hong
7f18f2a32a ANDROID: set rewrite_absolute_paths_in_config for GKI aarch64.
For GKI targets with kmi_symbol_list set,
also set rewrite_absolute_paths_in_config to True
so that CONFIG_UNUSED_KSYMS_WHITELIST is not an
absolute path any more, increasing reproducibility
on different machines.

This is made possible with d94e16579b
"Revert^2 "BACKPORT: FROMGIT: module: allow UNUSED_KSYMS_WHITELIST to be relative against objtree.""
so that Kbuild recognizes relative paths by searching
$(objtree) first.

This does not change x86 builds because it
doesn't have kmi_symbol_list set.

This change does not affect device builds like
db845c, rockpi and fips140. Adding the attribute
to these targets would be okay, but it is not
covered by this change.

Bug: 333769605
Bug: 342390208
Change-Id: I844c251979bae5277474837eaa055f1346b0afa2
Signed-off-by: Yifan Hong <elsk@google.com>
2024-06-05 00:27:00 +00:00
Roy Luo
0f96f3a53c BACKPORT: USB: gadget: core: create sysfs link between udc and gadget
udc device and gadget device are tightly coupled, yet there's no good
way to corelate the two. Add a sysfs link in udc that points to the
corresponding gadget device.
An example use case: userspace configures a f_midi configfs driver and
bind the udc device, then it tries to locate the corresponding midi
device, which is a child device of the gadget device. The gadget device
that's associated to the udc device has to be identified in order to
index the midi device. Having a sysfs link would make things much
easier.

Signed-off-by: Roy Luo <royluo@google.com>
Link: https://lore.kernel.org/r/20240307030922.3573161-1-royluo@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 333778731
Change-Id: I9e3f782543eba5e026a65031aaae754daafb69ab
(cherry picked from commit 0ef40f399aa2be8c04aee9b7430705612c104ce5)
[royluo: Resolved conflict in drivers/usb/gadget/udc/core.c ]
Signed-off-by: Roy Luo <royluo@google.com>
2024-06-03 20:10:10 +00:00
Auditya Bhattaram
eef06c5488 ANDROID: Add __nocfi return for swsusp_arch_resume
Resolve the CFI failure problem encountered
during the restoration of the hibernation snapshot image.

Bug: 340049585
Signed-off-by: Mukesh Pilaniya <quic_mpilaniy@quicinc.com>
Signed-off-by: Auditya Bhattaram <quic_audityab@quicinc.com>
Signed-off-by: Kamati Srinivas <quic_kamasrin@quicinc.com>
(cherry picked from https://android-review.googlesource.com/q/commit:93f0348ea15b65656e1c2f909de3dd3bbf26599f)
Merged-In: I1f8f2c38e9d02a177c0cadb066419bf7edd66085
Change-Id: I1f8f2c38e9d02a177c0cadb066419bf7edd66085
2024-06-03 15:17:19 +00:00
Greg Kroah-Hartman
9a84d60e35 ANDROID: ABI fixup for abi break in struct dst_ops
In commit 92f1655aa2b2 ("net: fix __dst_negative_advice() race") the
struct dst_ops callback negative_advice is callback changes function
parameters.  But as this pointer is part of a structure that is tracked
in the ABI checker, the tool triggers when this is changed.

However, the callback pointer is internal to the networking stack, so
changing the function type is safe, so needing to preserve this is not
required.  To do so, switch the function pointer type back to the old
one so that the checking tools pass, AND then do a hard cast of the
function pointer to the new type when assigning and calling the
function.

Bug: 343727534
Fixes: 92f1655aa2b2 ("net: fix __dst_negative_advice() race")
Change-Id: I48d4ab4bbd29f8edc8fbd7923828b7f78a23e12e
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-06-01 14:14:15 +00:00
Eric Dumazet
9b0dadc811 BACKPORT: net: fix __dst_negative_advice() race
__dst_negative_advice() does not enforce proper RCU rules when
sk->dst_cache must be cleared, leading to possible UAF.

RCU rules are that we must first clear sk->sk_dst_cache,
then call dst_release(old_dst).

Note that sk_dst_reset(sk) is implementing this protocol correctly,
while __dst_negative_advice() uses the wrong order.

Given that ip6_negative_advice() has special logic
against RTF_CACHE, this means each of the three ->negative_advice()
existing methods must perform the sk_dst_reset() themselves.

Note the check against NULL dst is centralized in
__dst_negative_advice(), there is no need to duplicate
it in various callbacks.

Many thanks to Clement Lecigne for tracking this issue.

This old bug became visible after the blamed commit, using UDP sockets.

Bug: 343727534
Fixes: a87cb3e48e ("net: Facility to report route quality of connected sockets")
Reported-by: Clement Lecigne <clecigne@google.com>
Diagnosed-by: Clement Lecigne <clecigne@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Tom Herbert <tom@herbertland.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240528114353.1794151-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 92f1655aa2b2294d0b49925f3b875a634bd3b59e)
[Lee: Trivial/unrelated conflict - no change to the patch]
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I293734dca1b81fcb712e1de294f51e96a405f7e4
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-06-01 14:13:52 +00:00
Andrei Ciubotariu
42528b83af ANDROID: GKI: Update symbol list for Pixel Watch
Bug: 332548598
Change-Id: I0843ed59b917daeb04b179e5ed26be52fbe52909
Signed-off-by: Andrei Ciubotariu <aciubotariu@google.com>
2024-05-31 21:20:57 +00:00
Yifan Hong
d94e16579b Revert^2 "BACKPORT: FROMGIT: module: allow UNUSED_KSYMS_WHITELIST ..."
This reverts commit b7d4cf60e7.

Reason for revert: relanding change that should be safe to go in on its own. Below is the original commit message.

BACKPORT: FROMGIT: module: allow UNUSED_KSYMS_WHITELIST to be relative against objtree.

If UNUSED_KSYMS_WHITELIST is a file generated
before Kbuild runs, and the source tree is in
a read-only filesystem, the developer must put
the file somewhere and specify an absolute
path to UNUSED_KSYMS_WHITELIST. This worked,
but if IKCONFIG=y, an absolute path is embedded
into .config and eventually into vmlinux, causing
the build to be less reproducible when building
on a different machine.

This patch makes the handling of
UNUSED_KSYMS_WHITELIST to be similar to
MODULE_SIG_KEY.

First, check if UNUSED_KSYMS_WHITELIST is an
absolute path, just as before this patch. If so,
use the path as is.

If it is a relative path, use wildcard to check
the existence of the file below objtree first.
If it does not exist, fall back to the original
behavior of adding $(srctree)/ before the value.

After this patch, the developer can put the generated
file in objtree, then use a relative path against
objtree in .config, eradicating any absolute paths
that may be evaluated differently on different machines.

Signed-off-by: Yifan Hong <elsk@google.com>
Reviewed-by: Elliot Berman <quic_eberman@quicinc.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>

(cherry picked from commit a2e3c811938b4902725e259c03b2d6c539613992
 https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git modules-next)
Bug: 333769605

Change-Id: Ibf3f09dc8559e92023811abaabb33fd6b4ed8fa5
[elsk: apply change to gen_autoksyms.sh instead because
 CONFIG_UNUSED_KSYMS_WHITELIST is parsed there. Revert change
 to Makefile.modpost.]
Bug: 342390208
Signed-off-by: Yifan Hong <elsk@google.com>
2024-05-30 20:23:21 +00:00
Greg Kroah-Hartman
81d41dd61b Merge tag 'android14-5.15.149_r00' into branch android14-5.15
This catches the android14-5.15 branch up to date with the 5.15.149 LTS
release.  Included in here are the following commits:

* 8e3ef77857 Revert "hrtimer: Report offline hrtimer enqueue"
* 1683a2f9a5 Revert "mm/sparsemem: fix race in accessing memory_section->usage"
* 216d25b4d4 Revert "drm/mipi-dsi: Fix detach call without attach"
* 59ddf652b8 Revert "bpf: Add map and need_defer parameters to .map_fd_put_ptr()"
* 88ef7f6580 Merge 5.15.149 into android14-5.15-lts
* 458ce51d03 Linux 5.15.149
* d72da18772 usb: dwc3: gadget: Ignore End Transfer delay on teardown
* acff71e587 media: Revert "media: rkisp1: Drop IRQF_SHARED"
* 9ae312f7f3 usb: dwc3: gadget: Execute gadget stop after halting the controller
* 921acacb92 usb: dwc3: gadget: Don't delay End Transfer on delayed_status
* 4178bfa3fc staging: fbtft: core: set smem_len before fb_deferred_io_init call
* 9e25a00540 smb3: Replace smb2pdu 1-element arrays with flex-arrays
* 0b49eac39c fs/ntfs3: Add null pointer checks
* 4c73597f68 net: bcmgenet: Fix EEE implementation
* 62900d358c Revert "selftests/bpf: Test tail call counting with bpf2bpf and data on stack"
* 75ac8dc028 drm/msm/dsi: Enable runtime PM
* c7a0fa3a66 PM: runtime: Have devm_pm_runtime_enable() handle pm_runtime_dont_use_autosuspend()
* 1974b3c19a arm64: Subscribe Microsoft Azure Cobalt 100 to ARM Neoverse N2 errata
* 888a0a46b8 dm: limit the number of targets and parameter size area
* cf4da91e99 nilfs2: replace WARN_ONs for invalid DAT metadata block requests
* 8fa90634ec nilfs2: fix potential bug in end_buffer_async_write
* 50fb4e17df sched/membarrier: reduce the ability to hammer on sys_membarrier
* b9aafef744 netfilter: ipset: Missing gc cancellations fixed
* 6c53e85476 net: prevent mss overflow in skb_segment()
* 95c0babebe hrtimer: Ignore slack time for RT tasks in schedule_hrtimeout_range()
* c2dc077d8f netfilter: ipset: fix performance regression in swap operation
* 3b3e4d3560 scripts/decode_stacktrace.sh: optionally use LLVM utilities
* 473791d286 scripts: decode_stacktrace: demangle Rust symbols
* 1ce4ac55d9 scripts/decode_stacktrace.sh: support old bash version
* 2655757a3f fbdev: flush deferred IO before closing
* 15492bab73 fbdev: Fix incorrect page mapping clearance at fb_deferred_io_release()
* 87b9802ca8 fbdev: Fix invalid page access after closing deferred I/O devices
* 9a95fc0426 fbdev: Rename pagelist to pagereflist for deferred I/O
* 186b89659c fbdev: Track deferred-I/O pages in pageref struct
* e79b2b2aad fbdev: defio: fix the pagelist corruption
* 0616b00a31 fbdev: Don't sort deferred-I/O pages by default
* 5d3aff76a3 fbdev/defio: Early-out if page is already enlisted
* 48a09969e4 serial: 8250_exar: Set missing rs485_supported flag
* 9ef7419bc2 serial: 8250_exar: Fill in rs485_supported
* aded03eda2 usb: dwc3: gadget: Queue PM runtime idle on disconnect event
* 21f0bff281 usb: dwc3: gadget: Handle EP0 request dequeuing properly
* 89353c8864 usb: dwc3: gadget: Refactor EP0 forced stall/restart into a separate API
* 9156192573 usb: dwc3: gadget: Stall and restart EP0 if host is unresponsive
* 352b38d15c usb: dwc3: gadget: Submit endxfer command if delayed during disconnect
* 9cccdcc95e usb: dwc3: gadget: Force sending delayed status during soft disconnect
* 1ea8a2a532 usb: dwc3: Fix ep0 handling when getting reset while doing control transfer
* 12c0a0804a usb: dwc3: gadget: Delay issuing End Transfer
* 487341852f usb: dwc3: gadget: Only End Transfer for ep0 data phase
* 9273bd26b0 usb: dwc3: ep0: Don't prepare beyond Setup stage
* 92f7a10a2b usb: dwc3: gadget: Wait for ep0 xfers to complete during dequeue
* 2bb86817b3 crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_init
* 44a8a2c92e bus: moxtet: Add spi device table
* 4e82b9c11d dma-buf: add dma_fence_timestamp helper
* 36f7371de9 af_unix: Fix task hung while purging oob_skb in GC.
* ff2f35f5cd tracing: Inform kmemleak of saved_cmdlines allocation
* 579cb4ff1f pmdomain: core: Move the unused cleanup to a _sync initcall
* 41ccb5bcbf can: j1939: Fix UAF in j1939_sk_match_filter during setsockopt(SO_J1939_FILTER)
* 03358aba99 can: j1939: prevent deadlock by changing j1939_socks_lock to rwlock
* 6315697fc5 of: property: fix typo in io-channels
* 310c7d9853 mm: hugetlb pages should not be reserved by shmat() if SHM_NORESERVE
* 70e329b440 ceph: prevent use-after-free in encode_cap_msg()
* 99fa6d451d net: ethernet: ti: cpsw_new: enable mac_managed_pm to fix mdio
* ff42d99e50 s390/qeth: Fix potential loss of L3-IP@ in case of network issues
* ddb4be0eb2 net: ethernet: ti: cpsw: enable mac_managed_pm to fix mdio
* 86244ae707 irqchip/gic-v3-its: Fix GICv4.1 VPE affinity update
* 27a2af914f irqchip/irq-brcmstb-l2: Add write memory barrier before exit
* b10c8883f8 wifi: mac80211: reload info pointer in ieee80211_tx_dequeue()
* ef5b1041f7 nfp: flower: prevent re-adding mac index for bonded port
* e58efe0f7a nfp: use correct macro for LengthSelect in BAR config
* 7535ec350a crypto: ccp - Fix null pointer dereference in __sev_platform_shutdown_locked
* 7e9b622bd0 nilfs2: fix hang in nilfs_lookup_dirty_data_buffers()
* 120f7fa200 nilfs2: fix data corruption in dsync block recovery for small block sizes
* ee28bbb685 ALSA: hda/conexant: Add quirk for SWS JS201D
* 776f0c695d mmc: slot-gpio: Allow non-sleeping GPIO ro
* 62fa823049 x86/mm/ident_map: Use gbpages only where full GB page should be mapped.
* 1fb17e9b84 x86/Kconfig: Transmeta Crusoe is CPU family 5, not 6
* 0fc0bcbab6 powerpc/64: Set task pt_regs->link to the LR value on scv entry
* 72bf8760ad serial: max310x: fail probe if clock crystal is unstable
* b67b421a82 serial: max310x: improve crystal stable clock detection
* 2e8b2b9180 serial: max310x: set default value when reading clock ready bit
* f8777d33cc ring-buffer: Clean ring_buffer_poll_wait() error return
* 7656372ae1 hv_netvsc: Fix race condition between netvsc_probe and netvsc_remove
* 4cc9092827 drm/prime: Support page array >= 4GB
* d98210108e media: rc: bpf attach/detach requires write permission
* a4b4ba772e iio: accel: bma400: Fix a compilation problem
* 1c6d19c8cb iio: core: fix memleak in iio_device_register_sysfs
* 8d5838a473 iio: magnetometer: rm3100: add boundary check for the value read from RM3100_REG_TMRC
* 7b9cabd478 staging: iio: ad5933: fix type mismatch regression
* 047aa3dc0a tracing: Fix wasted memory in saved_cmdlines logic
* afba9d1132 ext4: fix double-free of blocks due to wrong extents moved_len
* b7902e34b0 misc: fastrpc: Mark all sessions as invalid in cb_remove
* 82722b453d binder: signal epoll threads of self-work
* 4052b18031 ALSA: hda/cs8409: Suppress vmaster control for Dolphin models
* cc3cb482c0 ASoC: codecs: wcd938x: handle deferred probe
* 08c84d1640 ALSA: hda/realtek: Enable headset mic on Vaio VJFE-ADL
* 8b2f219914 xen-netback: properly sync TX responses
* de769423b2 net: hsr: remove WARN_ONCE() in send_hsr_supervision_frame()
* 471c9ede80 nfc: nci: free rx_data_reassembly skb on NCI device cleanup
* ac0f160a36 kbuild: Fix changing ELF file type for output of gen_btf for big endian
* 4bcfab7388 firewire: core: correct documentation of fw_csr_string() kernel API
* d260a5b76d lsm: fix the logic in security_inode_getsecctx()
* 65158edb0a Revert "drm/amd: flush any delayed gfxoff on suspend entry"
* 5b8f473c4d scsi: Revert "scsi: fcoe: Fix potential deadlock on &fip->ctlr_lock"
* 6f95120f89 mptcp: fix data re-injection from stale subflow
* b7449c9fe0 modpost: trim leading spaces when processing source files list
* 1f8d0691c5 i2c: i801: Fix block process call transactions
* 23a8b74fe9 i2c: i801: Remove i801_set_block_buffer_mode
* 2738e0aa2f powerpc/kasan: Fix addr error caused by page alignment
* 207557e393 media: ir_toy: fix a memleak in irtoy_tx
* 88936ceab6 usb: dwc3: gadget: Fix NULL pointer dereference in dwc3_gadget_suspend
* 6f54aa9ad5 usb: f_mass_storage: forbid async queue when shutdown happen
* 44c7567cc4 USB: hub: check for alternate port before enabling A_ALT_HNP_SUPPORT
* 3aa71c7717 usb: ucsi_acpi: Fix command completion handling
* 712afb6ba1 iio: hid-sensor-als: Return 0 for HID_USAGE_SENSOR_TIME_TIMESTAMP
* 853307924a HID: wacom: Do not register input devices until after hid_hw_start
* 20902b760e HID: wacom: generic: Avoid reporting a serial of '0' to userspace
* 62f5d219ed HID: i2c-hid-of: fix NULL-deref on failed power up
* 20d8a8fe00 ALSA: hda/realtek: Enable Mute LED on HP Laptop 14-fq0xxx
* 16dc275672 ALSA: hda/realtek: Fix the external mic not being recognised for Acer Swift 1 SF114-32
* 595865eb4e scsi: storvsc: Fix ring buffer size calculation
* 5099871b37 mm/writeback: fix possible divide-by-zero in wb_dirty_limits(), again
* b5085b5ac1 tracing/trigger: Fix to return error if failed to alloc snapshot
* cd459beede scs: add CONFIG_MMU dependency for vfree_atomic()
* 29b3681010 i40e: Fix waiting for queues of all VSIs to be disabled
* 8e89ac8852 MIPS: Add 'memory' clobber to csum_ipv6_magic() inline assembler
* 9bc718f6a5 net: sysfs: Fix /sys/class/net/<iface> path for statistics
* d14b8e2005 ASoC: rt5645: Fix deadlock in rt5645_jack_detect_work()
* 2ed13fda59 spi: ppc4xx: Drop write-only variable
* c45f2fa92c net: openvswitch: limit the number of recursions from action sets
* ca8c08db64 wifi: iwlwifi: Fix some error codes
* 1ab2a02bf1 of: unittest: Fix compile in the non-dynamic case
* f0dc9c004b btrfs: send: return EOPNOTSUPP on unknown flags
* 980e2bee30 btrfs: forbid deleting live subvol qgroup
* e31546b0f3 btrfs: do not ASSERT() if the newly created subvolume already got read
* 08bead026b btrfs: forbid creating subvol qgroups
* 2bab493a56 netfilter: nft_set_rbtree: skip end interval element from gc
* 658020d797 net: stmmac: xgmac: fix a typo of register name in DPP safety handling
* 3f2e5581cb net: stmmac: xgmac: use #define for string constants
* 1027d6d63c clocksource: Skip watchdog check for large watchdog intervals
* be38f291fd vhost: use kzalloc() instead of kmalloc() followed by memset()
* 132305ee73 Input: atkbd - skip ATKBD_CMD_SETLEDS when skipping ATKBD_CMD_GETID
* 7688958016 Input: i8042 - fix strange behavior of touchpad on Clevo NS70PU
* 15524057a3 hrtimer: Report offline hrtimer enqueue
* e2aaab6fcb usb: host: xhci-plat: Add support for XHCI_SG_TRB_CACHE_SIZE_QUIRK
* 5c654c582f usb: dwc3: host: Set XHCI_SG_TRB_CACHE_SIZE_QUIRK
* efe1bfe067 USB: serial: cp210x: add ID for IMST iM871A-USB
* 3799bb646f USB: serial: option: add Fibocom FM101-GL variant
* 2998a7ddff USB: serial: qcserial: add new usb-id for Dell Wireless DW5826e
* c1be84b8ee ALSA: usb-audio: Add a quirk for Yamaha YIT-W12TX transmitter
* 8b0386bca5 drivers: lkdtm: fix clang -Wformat warning
* 1e4d3f8bd8 blk-iocost: Fix an UBSAN shift-out-of-bounds warning
* 0d3dab8867 scsi: core: Move scsi_host_busy() out of host lock if it is for per-command
* ae4acad41b fs/ntfs3: Fix an NULL dereference bug
* 4f0b6f2c22 netfilter: nft_set_pipapo: remove scratch_aligned pointer
* ed96510365 netfilter: nft_set_pipapo: add helper to release pcpu scratch area
* 24547e88da netfilter: nft_set_pipapo: store index in scratch maps
* 44725dc004 netfilter: nft_ct: reject direction for ct id
* 42442f7431 drm/amd/display: Implement bounds check for stream encoder creation in DCN301
* bc6f288c10 drm/amd/display: Fix multiple memory leaks reported by coverity
* fb49e60d71 netfilter: nft_compat: restrict match/target protocol to u16
* 5f1c4efced netfilter: nft_compat: reject unused compat flag
* 58fbe665b0 ppp_async: limit MRU to 64K
* 4fe505c63a af_unix: Call kfree_skb() for dead unix_(sk)->oob_skb in GC.
* c1701ea85e tipc: Check the bearer type before calling tipc_udp_nl_bearer_add()
* 69682953dd rxrpc: Fix response to PING RESPONSE ACKs to a dead call
* 3266e638ba inet: read sk->sk_family once in inet_recv_error()
* 7df911d4f1 hwmon: (coretemp) Fix bogus core_id to attr name mapping
* a16afec8e8 hwmon: (coretemp) Fix out-of-bounds memory access
* 0d5ceb4caa hwmon: (aspeed-pwm-tacho) mutex for tach reading
* c08a3943dc octeontx2-pf: Fix a memleak otx2_sq_init
* 15393c8fd3 atm: idt77252: fix a memleak in open_card_ubr0
* d964dd1bc1 tunnels: fix out of bounds access when building IPv6 PMTU error
* 5c45e6d015 selftests: net: avoid just another constant wait
* ea51f12e93 selftests: net: cut more slack for gro fwd tests.
* 6609e98ed8 net: stmmac: xgmac: fix handling of DPP safety error for DMA channels
* 513dd309b3 drm/msm/dp: return correct Colorimetry for DP_TEST_DYNAMIC_RANGE_CEA case
* 8cc889b9de phy: ti: phy-omap-usb2: Fix NULL pointer dereference for SRP
* 5db6dd838e dmaengine: fix is_slave_direction() return false when DMA_DEV_TO_DEV
* 850b64fd38 phy: renesas: rcar-gen3-usb2: Fix returning wrong error code
* 15eb996d7d dmaengine: fsl-qdma: Fix a memory leak related to the queue command DMA
* c71d4578a3 dmaengine: fsl-qdma: Fix a memory leak related to the status queue DMA
* 71fe7fd3d9 dmaengine: ti: k3-udma: Report short packet errors
* c75460bf7a dmaengine: fsl-dpaa2-qdma: Fix the size of dma pools
* 725a9ac717 ASoC: codecs: lpass-wsa-macro: fix compander volume hack
* 48471f7a4c bonding: remove print in bond_verify_device_path
* 85d64b0c39 HID: apple: Add 2021 magic keyboard FN key mapping
* 97799743b4 HID: apple: Add support for the 2021 Magic Keyboard
* c5b70b8f78 gve: Fix use-after-free vulnerability
* ce3c5039e6 arm64: irq: set the correct node for shadow call stack
* 8cdf9b6caa net: sysfs: Fix /sys/class/net/<iface> path
* f3ce3e0038 selftests: net: fix available tunnels detection
* c8f6b3b864 af_unix: fix lockdep positive in sk_diag_dump_icons()
* 5823acd759 net: ipv4: fix a memleak in ip_setup_cork
* b775ced054 netfilter: nft_ct: sanitize layer 3 and 4 protocol number in custom expectations
* 5d7a4559bc netfilter: nf_log: replace BUG_ON by WARN_ON_ONCE when putting logger
* 4cdab71675 netfilter: nf_tables: restrict tunnel object to NFPROTO_NETDEV
* beb7328192 bridge: mcast: fix disabled snooping after long uptime
* dbc1b89981 llc: call sock_orphan() at release time
* a9ef5dc938 ipv6: Ensure natural alignment of const ipv6 loopback and router addresses
* a2e5f021ca ixgbe: Fix an error handling path in ixgbe_read_iosf_sb_reg_x550()
* c7f47912f7 ixgbe: Refactor overtemp event handling
* 52ec65d4d4 ixgbe: Refactor returning internal error codes
* 7683f41c7b ixgbe: Remove non-inclusive language
* 718f446e60 tcp: add sanity checks to rx zerocopy
* af6b5c50d4 ip6_tunnel: make sure to pull inner header in __ip6_tnl_rcv()
* 6d56450166 ip6_tunnel: use dev_sw_netstats_rx_add()
* 157e1cb2c0 selftests: net: give more time for GRO aggregation
* d37c1c8141 scsi: core: Move scsi_host_busy() out of host lock for waking up EH handler
* 022e2310e8 scsi: isci: Fix an error code problem in isci_io_request_build()
* bc009cb12f drm: using mul_u32_u32() requires linux/math64.h
* cfe8390367 wifi: cfg80211: fix RCU dereference in __cfg80211_bss_update
* 8a070a5884 perf: Fix the nr_addr_filters fix
* b203bc5e22 drm/amdkfd: Fix 'node' NULL check in 'svm_range_get_range_boundaries()'
* 362754ec2c drm/amdgpu: Release 'adev->pm.fw' before return in 'amdgpu_device_need_post()'
* 2f7f8e109b drm/amd/powerplay: Fix kzalloc parameter 'ATOM_Tonga_PPM_Table' in 'get_platform_power_management_table()'
* a9c15d6e8a ceph: fix deadlock or deadcode of misusing dget()
* 89e0e66682 blk-mq: fix IO hang from sbitmap wakeup race
* 105874a454 virtio_net: Fix "‘%d’ directive writing between 1 and 11 bytes into a region of size 10" warnings
* 7a70663ba0 drm/amdkfd: Fix lock dependency warning
* 93ecc12925 libsubcmd: Fix memory leak in uniq()
* 82006e24aa PCI/AER: Decode Requester ID when no error info found
* 7289a6e6fc PCI: Fix 64GT/s effective data rate calculation
* f4dce08ba1 fs/kernfs/dir: obey S_ISGID
* ef86cdc688 tty: allow TIOCSLCKTRMIOS with CAP_CHECKPOINT_RESTORE
* 8451aa6694 selftests/sgx: Fix linker script asserts
* 5607328761 usb: hub: Replace hardcoded quirk value with BIT() macro
* a7af1be5cf perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present
* ff1c7e2fb9 PCI: switchtec: Fix stdev_release() crash after surprise hot remove
* 52d42ac643 PCI: Only override AMD USB controller if required
* 1a4f408561 mailbox: arm_mhuv2: Fix a bug for mhuv2_sender_interrupt
* 28497271ff mfd: ti_am335x_tscadc: Fix TI SoC dependencies
* f7752e5f53 xen/gntdev: Fix the abuse of underlying struct page in DMA-buf import
* 9b7d253b82 i3c: master: cdns: Update maximum prescaler value for i2c clock
* 0c7478a2da um: time-travel: fix time corruption
* 1e3d449b15 um: net: Fix return type of uml_net_start_xmit()
* b7b44ee08d um: Don't use vfprintf() for os_info()
* 4c4b366add um: Fix naming clash between UML and scheduler
* f5010e2892 leds: trigger: panic: Don't register panic notifier if creating the trigger failed
* f13b8cb5a6 ALSA: hda/conexant: Fix headset auto detect fail in cx8070 and SN6140
* bd086bd1e3 drm/amdgpu: Drop 'fence' check in 'to_amdgpu_amdkfd_fence()'
* 702b759168 drm/amdgpu: Let KFD sync with VM fences
* 8998723de4 clk: imx: clk-imx8qxp: fix LVDS bypass, pixel and phy clocks
* 9709da9d10 clk: imx: scu: Fix memory leak in __imx_clk_gpr_scu()
* 91828d9316 watchdog: it87_wdt: Keep WDTCTRL bit 3 unmodified for IT8784/IT8786
* 54a84bad7b clk: mmp: pxa168: Fix memory leak in pxa168_clk_init()
* fcc477e610 clk: hi3620: Fix memory leak in hi3620_mmc_clk_init()
* 77bcd4ab44 drm/amdgpu: fix ftrace event amdgpu_bo_move always move on same heap
* 2b5a22f0cc drm/msm/dpu: Ratelimit framedone timeout msgs
* a889d9012d media: i2c: imx335: Fix hblank min/max values
* d1e0fdbabf media: ddbridge: fix an error code problem in ddb_probe
* ed790bd090 IB/ipoib: Fix mcast list locking
* 5fcd8a81d3 drm/exynos: Call drm_atomic_helper_shutdown() at shutdown/unbind time
* 7ea0f29d9f f2fs: fix to tag gcing flag on page during block migration
* 8ab28b2d70 media: rkisp1: Drop IRQF_SHARED
* 9d23b21a2d ALSA: hda: intel-dspcfg: add filters for ARL-S and ARL
* b1a53c923c ALSA: hda: Intel: add HDA_ARL PCI ID support
* 684cb957fe PCI: add INTEL_HDA_ARL to pci_ids.h
* d08e032f75 media: rockchip: rga: fix swizzling for RGB formats
* fdf14a7c2b media: stk1160: Fixed high volume of stk1160_dbg messages
* 3cdc644470 drm/mipi-dsi: Fix detach call without attach
* 711b5cc5f6 drm/framebuffer: Fix use of uninitialized variable
* df31f3cb04 drm/drm_file: fix use of uninitialized variable
* 6941fe8d94 f2fs: fix write pointers on zoned device after roll forward
* 2ed3db8991 drm/amd/display: Fix tiled display misalignment
* f217be126a RDMA/IPoIB: Fix error code return in ipoib_mcast_join
* 8eb8fca117 fast_dput(): handle underflows gracefully
* 7fa0c4ef67 ASoC: doc: Fix undefined SND_SOC_DAPM_NOPM argument
* 82ccd840e0 ALSA: hda: Refer to correct stream index at loops
* b4fb0807a1 f2fs: fix to check return value of f2fs_reserve_new_block()
* 315d966df2 octeontx2-af: Fix max NPC MCAM entry check while validating ref_entry
* 28764fab4d i40e: Fix VF disable behavior to block all traffic
* 2cf9158fff bridge: cfm: fix enum typo in br_cc_ccm_tx_parse
* 1fbcb194aa Bluetooth: L2CAP: Fix possible multiple reject send
* 84e3f673b2 Bluetooth: qca: Set both WIDEBAND_SPEECH and LE_STATES quirks for QCA2066
* 2fde2254e0 wifi: cfg80211: free beacon_ies when overridden from hidden BSS
* f589258f40 wifi: rtlwifi: rtl8723{be,ae}: using calculate_bit_shift()
* 49ec369f56 ALSA: usb-audio: Add delay quirk for MOTU M Series 2nd revision
* 90dbf45356 libbpf: Fix NULL pointer dereference in bpf_object__collect_prog_relos
* 9e1cae3157 wifi: rtl8xxxu: Add additional USB IDs for RTL8192EU devices
* 40a71f7e91 arm64: dts: qcom: msm8998: Fix 'out-ports' is a required property
* 2f747a4f66 arm64: dts: qcom: msm8996: Fix 'in-ports' is a required property
* 2aee6c4517 md: Whenassemble the array, consult the superblock of the freshest device
* 6ab391eafa block: prevent an integer overflow in bvec_try_merge_hw_page
* a9d12fdc51 net: dsa: mv88e6xxx: Fix mv88e6352_serdes_get_stats error path
* fed1463644 ARM: dts: imx23/28: Fix the DMA controller node name
* e9b724664b ARM: dts: imx23-sansa: Use preferred i2c-gpios properties
* 3995aa5238 ARM: dts: imx27-apf27dev: Fix LED name
* 7a01ad0f04 ARM: dts: imx25/27: Pass timing0
* b60d572d85 ARM: dts: imx25: Fix the iim compatible string
* f6abd5e17d block/rnbd-srv: Check for unlikely string overflow
* 963b9c5484 ionic: pass opcode to devcmd_wait
* 1381707578 ARM: dts: imx1: Fix sram node
* ad54a5b041 ARM: dts: imx27: Fix sram node
* b4130668dc ARM: dts: imx: Use flash@0,0 pattern
* 3693ecc0c1 ARM: dts: imx25/27-eukrea: Fix RTC node name
* cf5f3489b6 ARM: dts: rockchip: fix rk3036 hdmi ports node
* fdb812bea0 bpf: Set uattr->batch.count as zero before batched update or deletion
* 813ebba2a7 scsi: libfc: Fix up timeout error in fc_fcp_rec_error()
* 43ba03c31a scsi: libfc: Don't schedule abort twice
* 5ef63c872d bpf: Add map and need_defer parameters to .map_fd_put_ptr()
* 9003fa9a01 wifi: ath9k: Fix potential array-index-out-of-bounds read in ath9k_htc_txstatus()
* 8c965c9c4b ARM: dts: imx7s: Fix nand-controller #size-cells
* 3eeefee8da ARM: dts: imx7s: Fix lcdif compatible
* f9ec664f94 ARM: dts: imx7d: Fix coresight funnel ports
* 7733800d38 scsi: arcmsr: Support new PCI device IDs 1883 and 1886
* 34acf5225e bonding: return -ENOMEM instead of BUG in alb_upper_dev_walk
* 2abaf72628 PCI: Add no PM reset quirk for NVIDIA Spectrum devices
* 6b9abf50d3 scsi: lpfc: Fix possible file string name overflow when updating firmware
* 79aadf6492 selftests/bpf: Fix issues in setup_classid_environment()
* 6aad081470 selftests/bpf: Fix pyperf180 compilation failure with clang18
* efe701e916 selftests/bpf: satisfy compiler by having explicit return in btf test
* 4cc198580a wifi: rt2x00: restart beacon queue when hardware reset
* d76c8d7ffe ext4: avoid online resizing failures due to oversized flex bg
* 0cabe04c56 ext4: remove unnecessary check from alloc_flex_gd()
* 474f5b00c5 ext4: unify the type of flexbg_size to unsigned int
* 5d2090597c ext4: fix inconsistent between segment fstrim and full fstrim
* 9f2e407814 ecryptfs: Reject casefold directory inodes
* f8cf4dabbd SUNRPC: Fix a suspicious RCU usage warning
* 732a3bea7a KVM: s390: fix setting of fpc register
* 28a1f492cb s390/ptrace: handle setting of fpc register correctly
* df81cbcd26 arch: consolidate arch_irq_work_raise prototypes
* 6aa3002087 jfs: fix array-index-out-of-bounds in diNewExt
* 40e21a9e48 rxrpc_find_service_conn_rcu: fix the usage of read_seqbegin_or_lock()
* 44b8640048 afs: fix the usage of read_seqbegin_or_lock() in afs_find_server*()
* 78b6ff52a5 afs: fix the usage of read_seqbegin_or_lock() in afs_lookup_volume_rcu()
* 556be726a4 crypto: stm32/crc32 - fix parsing list of devices
* 70a3b16113 crypto: octeontx2 - Fix cptvf driver cleanup
* 2a37905d47 pstore/ram: Fix crash when setting number of cpus to an odd number
* 8e44dc3f96 jfs: fix uaf in jfs_evict_inode
* 8393c80cce jfs: fix array-index-out-of-bounds in dbAdjTree
* 6c6a96c3d7 jfs: fix slab-out-of-bounds Read in dtSearch
* e4ce01c25c UBSAN: array-index-out-of-bounds in dtSplitRoot
* 6fe8b70212 FS:JFS:UBSAN:array-index-out-of-bounds in dbAdjTree
* 7cb4103166 ACPI: APEI: set memory failure flags as MF_ACTION_REQUIRED on synchronous events
* 099f6a9edb PM / devfreq: Synchronize devfreq_monitor_[start/stop]
* 5457b0cbaa ACPI: extlog: fix NULL pointer dereference check
* b17cb541f1 PNP: ACPI: fix fortify warning
* 4d169334e5 ACPI: video: Add quirk for the Colorful X15 AT 23 Laptop
* 53ab232375 audit: Send netlink ACK before setting connection in auditd_set
* 0f10c84e44 regulator: core: Only increment use_count when enable_count changes
* a5d70e22b9 debugobjects: Stop accessing objects after releasing hash bucket lock
* c128e64ae0 perf/core: Fix narrow startup race when creating the perf nr_addr_filters sysfs file
* 330cb5e77a x86/mce: Mark fatal MCE's page as poison to avoid panic in the kdump kernel
* de4f5ed63b powerpc/lib: Validate size for vector operations
* 027e61b866 powerpc: pmd_move_must_withdraw() is only needed for CONFIG_TRANSPARENT_HUGEPAGE
* 33595c0c77 x86/boot: Ignore NMIs during very early boot
* b3bc07aec7 powerpc/64s: Fix CONFIG_NUMA=n build due to create_section_mapping()
* 88a28bec86 powerpc/mm: Fix build failures due to arch_reserved_kernel_pages()
* b00f275733 powerpc: Fix build error due to is_valid_bugaddr()
* b246a9a3c3 drivers/perf: pmuv3: don't expose SW_INCR event in sysfs
* 17093c32f6 arm64: irq: set the correct node for VMAP stack
* ac3ed969a4 powerpc/mm: Fix null-pointer dereference in pgtable_cache_add
* fb6c8127db x86/entry/ia32: Ensure s32 is sign extended to s64
* 59b24e6245 tick/sched: Preserve number of idle sleeps across CPU hotplug events
* f3bc406e1b mips: Call lose_fpu(0) before initializing fcr31 in mips_set_personality_nan
* ccb03ec429 spi: bcm-qspi: fix SFDP BFPT read by usig mspi read
* 3bc801ce9d block: Move checking GENHD_FL_NO_PART to bdev_add_partition()
* f2d3ae8cf6 gpio: eic-sprd: Clear interrupt after set the interrupt type
* fcf44c782c drm/exynos: gsc: minor fix for loop iteration in gsc_runtime_resume
* 22937c97c5 drm/exynos: fix accidental on-stack copy of exynos_drm_plane
* 76d1ffa908 drm: panel-simple: add missing bus flags for Tianma tm070jvhg[30/33]
* 7ae053227c cpufreq: intel_pstate: Refine computation of P-state for given frequency
* 34c02fec33 cpufreq: intel_pstate: Drop redundant intel_pstate_get_hwp_cap() call
* aaa1f1a2ee ksmbd: fix global oob in ksmbd_nl_policy
* 4056ece660 btrfs: add definition for EXTENT_TREE_V2
* 796d3fad8c PM / devfreq: Fix buffer overflow in trans_stat_show
* b448de2459 mm/sparsemem: fix race in accessing memory_section->usage
* 904fafac10 mm: use __pfn_to_section() instead of open coding it
* 1b1036c60a media: mtk-jpeg: Fix use after free bug due to error path handling in mtk_jpeg_dec_device_run
* 4cebb1edb1 ARM: dts: qcom: sdx55: fix USB SS wakeup
* 462d5a6fb2 ARM: dts: qcom: sdx55: fix USB DP/DM HS PHY interrupts
* a98b715c94 ARM: dts: qcom: sdx55: fix pdc '#interrupt-cells'
* 57be4dd630 ARM: dts: samsung: exynos4210-i9100: Unconditionally enable LDO12
* 28092c1137 ARM: dts: qcom: sdx55: fix USB wakeup interrupt types
* 3efbd114b9 pipe: wakeup wr_wait after setting max_usage
* 26bfccac21 fs/pipe: move check to pipe_has_watch_queue()
* 94991728c8 bus: mhi: host: Add alignment check for event ring read pointer
* d73f63a645 bus: mhi: host: Rename "struct mhi_tre" to "struct mhi_ring_element"
* a1d62c775b PM: sleep: Fix possible deadlocks in core system-wide PM code
* d5f15888d3 PM: core: Remove unnecessary (void *) conversions
* fd8d6b04de drm/bridge: nxp-ptn3460: simplify some error checking
* 9d2a462917 drm/tidss: Fix atomic_flush check
* bcf51e8f3c drm/bridge: nxp-ptn3460: fix i2c_master_send() error checking
* b4af63da9d drm: Don't unref the same fb many times by mistake due to deadlock handling
* 4fc86c70ea gpiolib: acpi: Ignore touchpad wakeup on GPD G1619-04
* e44e240d53 xfs: read only mounts with fsopen mount API are busted
* 614cc65032 firmware: arm_scmi: Check mailbox/SMT channel for consistency
* 960cf4f812 netfilter: nf_tables: reject QUEUE/DROP verdict parameters
* 70f17b48c8 netfilter: nft_chain_filter: handle NETDEV_UNREGISTER for inet/ingress basechain
* 0ac9cbe006 hv_netvsc: Calculate correct ring size when PAGE_SIZE is not 4 Kbytes
* 99a23462fe wifi: iwlwifi: fix a memory corruption
* 9a64c7fc15 exec: Fix error handling in begin_new_exec()
* 04a0786a97 rbd: don't move requests to the running list on errors
* 0877497dc9 btrfs: don't abort filesystem when attempting to snapshot deleted subvolume
* 07beceb3e1 btrfs: defrag: reject unknown flags of btrfs_ioctl_defrag_range_args
* 5b5319e112 btrfs: don't warn if discard range is not aligned to sector
* f054f328bf btrfs: tree-checker: fix inline ref size in error messages
* 5550250f36 btrfs: ref-verify: free ref cache before clearing mount opt
* f76e961a34 btrfs: avoid copying BTRFS_ROOT_SUBVOL_DEAD flag to snapshot of subvolume being deleted
* 415fb71a9a btrfs: fix race between reading a directory and adding entries to it
* a6c2dfbfa2 btrfs: refresh dir last index during a rewinddir(3) call
* 0b04bbfd07 btrfs: set last dir index to the current last index when opening dir
* 79cf35e16d btrfs: fix infinite directory reads
* 4c24059dd3 net: fec: fix the unhandled context fault from smmu
* 5b0f2af31a fjes: fix memleaks in fjes_hw_setup
* c0d29d3033 selftests: netdevsim: fix the udp_tunnel_nic test
* af47faa6d3 net: mvpp2: clear BM pool before initialization
* 5305727ba6 net: stmmac: Wait a bit for the reset to take effect
* 022a8d0bc9 netfilter: nf_tables: validate NFPROTO_* family
* 064bccd4a9 netfilter: nf_tables: restrict anonymous set and map names to 16 bytes
* 79d4efd75e netfilter: nft_limit: reject configurations that cause integer overflow
* 53f2cd86a8 overflow: Allow mixed type arguments
* 72a7298685 net/mlx5e: fix a potential double-free in fs_any_create_groups
* c57ca114eb net/mlx5e: fix a double-free in arfs_create_groups
* cf0a8a3a89 net/mlx5: DR, Can't go to uplink vport on RX rule
* e5783345bd net/mlx5: DR, Align mlx5dv_dr API vport action with FW behavior
* 8e215c249a net/mlx5: DR, Replace local WIRE_PORT macro with the existing MLX5_VPORT_UPLINK
* fda9109e15 net/mlx5: DR, Use the right GVMI number for drop action
* 50bd41dcca ipv6: init the accept_queue's spinlocks in inet6_create
* 931366b9f2 netlink: fix potential sleeping issue in mqueue_flush_file
* fc0f8e2c93 tcp: Add memory barrier to tcp_push()
* 21a2115e0c afs: Hide silly-rename files from userspace
* aef1cb0085 tracing: Ensure visibility when inserting an element into tracing_map
* 00d1ee8e1d net/rds: Fix UBSAN: array-index-out-of-bounds in rds_cmsg_recv
* c0fe2fe7a5 llc: Drop support for ETH_P_TR_802_2.
* c22044270d llc: make llc_ui_sendmsg() more robust against bonding changes
* 79eeb85c44 vlan: skip nested type that is not IFLA_VLAN_QOS_MAPPING
* 3243025112 bnxt_en: Wait for FLR to complete during probe
* d86cc6ab33 tcp: make sure init the accept_queue's spinlocks once
* 68b888d51a net/smc: fix illegal rmb_desc access in SMC-D connection dump
* bb27126aef ksmbd: Add missing set_freezable() for freezable kthread
* d7a62b3a3d ksmbd: send lease break notification on FILE_RENAME_INFORMATION
* 6cc508233e ksmbd: don't increment epoch if current state and request state are same
* 5349fd419e ksmbd: fix potential circular locking issue in smb2_set_ea()
* 9ab8935336 ksmbd: set v2 lease version on lease upgrade
* dfda2a5eb6 rename(): fix the locking of subdirectories
* b2512424c9 ubifs: ubifs_symlink: Fix memleak of inode->i_link in error path
* 689c5f8d89 nouveau/vmm: don't set addr on the fail path to avoid warning
* 2d07a63b01 rtc: Adjust failure return code for cmos_set_alarm()
* 3ff34c00db mmc: mmc_spi: remove custom DMA mapped buffers
* 50b8b7a22e mmc: core: Use mrq.sbc in close-ended ffu
* f0bb5d185f scripts/get_abi: fix source path leak
* 4590f2077e lsm: new security_file_ioctl_compat() hook
* cdcd8df577 arm64: dts: qcom: sdm845: fix USB DP/DM HS PHY interrupts
* 8ed011c4e0 arm64: dts: qcom: sm8150: fix USB wakeup interrupt types
* aa38eb9626 arm64: dts: qcom: sdm845: fix USB wakeup interrupt types
* 121d89f0c6 arm64: dts: qcom: sc7180: fix USB wakeup interrupt types
* 33f8bdf37d async: Introduce async_schedule_dev_nocall()
* 86c8e16252 async: Split async_schedule_node_domain()
* 58031306c0 parisc/firmware: Fix F-extend for PDC addresses
* 176ed1727b bus: mhi: host: Add spinlock to protect WP access when queueing TREs
* 6e4c84316e bus: mhi: host: Drop chan lock before queuing buffers
* cdb15ac80a mips: Fix max_mapnr being uninitialized on early stages
* 473f1ae44b media: ov9734: Enable runtime PM before registering async sub-device
* 2d27a7b19c rpmsg: virtio: Free driver_override when rpmsg_remove()
* 3c1b795124 media: imx355: Enable runtime PM before registering async sub-device
* a7f580cdb4 crypto: s390/aes - Fix buffer overread in CTR mode
* 26cc6d7006 hwrng: core - Fix page fault dead lock on mmap-ed hwrng
* 4d4bf19c81 PM: hibernate: Enforce ordering during image compression/decompression
* a6fec6324f crypto: api - Disallow identical driver names
* ad23246ccf btrfs: sysfs: validate scrub_speed_max value
* cb904f5c71 ext4: allow for the last group to be marked as trimmed
* a604d5f2f9 iio:adc:ad7091r: Move exports into IIO_AD7091R namespace.
* 72a3395543 scsi: ufs: core: Remove the ufshcd_hba_exit() call from ufshcd_async_scan()
* 226554bd27 scsi: ufs: core: Simplify power management during async scan
* 047fce4704 dmaengine: fix NULL pointer in channel unregistration function
* e44eb4ccad iio: adc: ad7091r: Enable internal vref if external vref is not supplied
* 49f322ce1f iio: adc: ad7091r: Allow users to configure device events
* 6ef852a430 iio: adc: ad7091r: Set alert bit in config register
* 81ea755b8f ksmbd: only v2 leases handle the directory
* 999daf367b ksmbd: fix UAF issue in ksmbd_tcp_new_connection()
* dd1de92687 ksmbd: validate mech token in session setup
* 65cadfb3b0 ksmbd: don't allow O_TRUNC open on read-only share
* c917b0529e ksmbd: free ppace array on error in parse_dacl

Change-Id: I5af8ed6bc3d34ce1dc6833a524e15468d4ce1bf2
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-05-30 15:24:20 +00:00
John Stultz
73bef21507 UPSTREAM: selftests: timers: Fix valid-adjtimex signed left-shift undefined behavior
[ Upstream commit 076361362122a6d8a4c45f172ced5576b2d4a50d ]

The struct adjtimex freq field takes a signed value who's units are in
shifted (<<16) parts-per-million.

Unfortunately for negative adjustments, the straightforward use of:

  freq = ppm << 16 trips undefined behavior warnings with clang:

valid-adjtimex.c:66:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
        -499<<16,
        ~~~~^
valid-adjtimex.c:67:6: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
        -450<<16,
        ~~~~^
..

Fix it by using a multiply by (1 << 16) instead of shifting negative values
in the valid-adjtimex test case. Align the values for better readability.

Bug: 339526723
Reported-by: Lee Jones <joneslee@google.com>
Reported-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Change-Id: Ied611c13a802acf9c7a2427f0a61eb358b571a3d
Signed-off-by: John Stultz <jstultz@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Link: https://lore.kernel.org/r/20240409202222.2830476-1-jstultz@google.com
Link: https://lore.kernel.org/lkml/0c6d4f0d-2064-4444-986b-1d1ed782135f@collabora.com/
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 1f3484dec9)
Signed-off-by: Edward Liaw <edliaw@google.com>
2024-05-29 12:54:35 +00:00
Eric Dumazet
58719dc95f UPSTREAM: netlink: hold nlk->cb_mutex longer in __netlink_dump_start()
__netlink_dump_start() releases nlk->cb_mutex right before
calling netlink_dump() which grabs it again.

This seems dangerous, even if KASAN did not bother yet.

Add a @lock_taken parameter to netlink_dump() to let it
grab the mutex if called from netlink_recvmsg() only.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit b5590270068c4324dac4a2b5a4a156e02e21339f)
Bug: 339546075
Change-Id: I29a711ea804794b556674011cbd23c5bf9a03ab6
Signed-off-by: yenchia.chen <yenchia.chen@mediatek.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2024-05-29 04:01:35 +00:00
Eric Dumazet
e94d70c73a UPSTREAM: netlink: annotate data-races around sk->sk_err
commit d0f95894fd upstream.

syzbot caught another data-race in netlink when
setting sk->sk_err.

Annotate all of them for good measure.

BUG: KCSAN: data-race in netlink_recvmsg / netlink_recvmsg

write to 0xffff8881613bb220 of 4 bytes by task 28147 on cpu 0:
netlink_recvmsg+0x448/0x780 net/netlink/af_netlink.c:1994
sock_recvmsg_nosec net/socket.c:1027 [inline]
sock_recvmsg net/socket.c:1049 [inline]
__sys_recvfrom+0x1f4/0x2e0 net/socket.c:2229
__do_sys_recvfrom net/socket.c:2247 [inline]
__se_sys_recvfrom net/socket.c:2243 [inline]
__x64_sys_recvfrom+0x78/0x90 net/socket.c:2243
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff8881613bb220 of 4 bytes by task 28146 on cpu 1:
netlink_recvmsg+0x448/0x780 net/netlink/af_netlink.c:1994
sock_recvmsg_nosec net/socket.c:1027 [inline]
sock_recvmsg net/socket.c:1049 [inline]
__sys_recvfrom+0x1f4/0x2e0 net/socket.c:2229
__do_sys_recvfrom net/socket.c:2247 [inline]
__se_sys_recvfrom net/socket.c:2243 [inline]
__x64_sys_recvfrom+0x78/0x90 net/socket.c:2243
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00000000 -> 0x00000016

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 28146 Comm: syz-executor.0 Not tainted 6.6.0-rc3-syzkaller-00055-g9ed22ae6be81 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20231003183455.3410550-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: yenchia.chen <yenchia.chen@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 2750d7641d0825aeb1e4d3b40c627ff3e3670d24)
Bug: 339546075
Change-Id: I66f0690e8ab0d2e88f0cb0ce3b4be92907a0dcc1
Signed-off-by: yenchia.chen <yenchia.chen@mediatek.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2024-05-29 03:58:42 +00:00
Eric Dumazet
c0e59dab58 UPSTREAM: netlink: annotate lockless accesses to nlk->max_recvmsg_len
commit a1865f2e7d upstream.

syzbot reported a data-race in data-race in netlink_recvmsg() [1]

Indeed, netlink_recvmsg() can be run concurrently,
and netlink_dump() also needs protection.

[1]
BUG: KCSAN: data-race in netlink_recvmsg / netlink_recvmsg

read to 0xffff888141840b38 of 8 bytes by task 23057 on cpu 0:
netlink_recvmsg+0xea/0x730 net/netlink/af_netlink.c:1988
sock_recvmsg_nosec net/socket.c:1017 [inline]
sock_recvmsg net/socket.c:1038 [inline]
__sys_recvfrom+0x1ee/0x2e0 net/socket.c:2194
__do_sys_recvfrom net/socket.c:2212 [inline]
__se_sys_recvfrom net/socket.c:2208 [inline]
__x64_sys_recvfrom+0x78/0x90 net/socket.c:2208
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to 0xffff888141840b38 of 8 bytes by task 23037 on cpu 1:
netlink_recvmsg+0x114/0x730 net/netlink/af_netlink.c:1989
sock_recvmsg_nosec net/socket.c:1017 [inline]
sock_recvmsg net/socket.c:1038 [inline]
____sys_recvmsg+0x156/0x310 net/socket.c:2720
___sys_recvmsg net/socket.c:2762 [inline]
do_recvmmsg+0x2e5/0x710 net/socket.c:2856
__sys_recvmmsg net/socket.c:2935 [inline]
__do_sys_recvmmsg net/socket.c:2958 [inline]
__se_sys_recvmmsg net/socket.c:2951 [inline]
__x64_sys_recvmmsg+0xe2/0x160 net/socket.c:2951
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000000000 -> 0x0000000000001000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 23037 Comm: syz-executor.2 Not tainted 6.3.0-rc4-syzkaller-00195-g5a57b48fdfcb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023

Fixes: 9063e21fb0 ("netlink: autosize skb lengthes")
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230403214643.768555-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: yenchia.chen <yenchia.chen@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 7cff4103be7c402ecc3e7bf8f95a64089e3c91b8)
Bug: 339546075
Change-Id: I13f81332f05f2c5bc14de00bfa3de0925162af2b
Signed-off-by: yenchia.chen <yenchia.chen@mediatek.com>
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2024-05-29 03:57:45 +00:00
Paul Lawrence
8d122b23ed ANDROID: incremental-fs: Make work with 16k pages
Bug: 260919895
Test: incfs_test passes
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: Ia4fbb6011930b085bc00a36851e9b0e8559d3dc5
(cherry picked from commit 5ac10739bcf2dae9220a7a39392aa41235bc64c2)
2024-05-28 22:30:52 +00:00
Yifan Hong
b7d4cf60e7 Revert "BACKPORT: FROMGIT: module: allow UNUSED_KSYMS_WHITELIST ..."
Revert submission 3101887-android14-ksyms-wl

Reason for revert: Restore green in release builds

Reverted changes: /q/submissionid:3101887-android14-ksyms-wl

Change-Id: Ia6c694be720c7a07abdfee6a4720a4518ea59141
2024-05-28 17:13:06 +00:00
Yifan Hong
acacba8bfa BACKPORT: FROMGIT: module: allow UNUSED_KSYMS_WHITELIST to be relative against objtree.
If UNUSED_KSYMS_WHITELIST is a file generated
before Kbuild runs, and the source tree is in
a read-only filesystem, the developer must put
the file somewhere and specify an absolute
path to UNUSED_KSYMS_WHITELIST. This worked,
but if IKCONFIG=y, an absolute path is embedded
into .config and eventually into vmlinux, causing
the build to be less reproducible when building
on a different machine.

This patch makes the handling of
UNUSED_KSYMS_WHITELIST to be similar to
MODULE_SIG_KEY.

First, check if UNUSED_KSYMS_WHITELIST is an
absolute path, just as before this patch. If so,
use the path as is.

If it is a relative path, use wildcard to check
the existence of the file below objtree first.
If it does not exist, fall back to the original
behavior of adding $(srctree)/ before the value.

After this patch, the developer can put the generated
file in objtree, then use a relative path against
objtree in .config, eradicating any absolute paths
that may be evaluated differently on different machines.

Signed-off-by: Yifan Hong <elsk@google.com>
Reviewed-by: Elliot Berman <quic_eberman@quicinc.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>

(cherry picked from commit a2e3c811938b4902725e259c03b2d6c539613992
 https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git modules-next)
Bug: 333769605

Change-Id: I0696ac8f686329795034ada5a4587af4ecbb774f
[elsk: apply change to gen_autoksyms.sh instead because
 CONFIG_UNUSED_KSYMS_WHITELIST is parsed there. Revert change
 to Makefile.modpost. Edit init/Kconfig instead of kernel/module/Kconfig
 because UNUSED_KSYMS_WHITELIST is defined there.]
Bug: 342390208
Signed-off-by: Yifan Hong <elsk@google.com>
2024-05-28 16:18:05 +00:00
Robin Hsu
d19f3c553a ANDROID: export one function for mm metrics
export function for sysfs node formating

Bug: 299190787
Change-Id: I71e6a0815efa8df99d036bf457b8a0081999f3de
Signed-off-by: Robin Hsu <robinhsu@google.com>
2024-05-28 12:17:47 +00:00
Greg Kroah-Hartman
8517b7fac5 ANDROID: GKI: Update .stg file due to internal io_uring changes
In commit d909d381c3 ("io_uring: drop any code related to
SCM_RIGHTS"), the internal struct io_ring_ctx structure was changed.
Due to some symbol leakage, the .stg abi checking wants to track this
structure, but it is safe to change as it is limited to the internal
io_uring code only.

INFO: type 'struct io_ring_ctx' changed
  member 'struct { struct io_wq_hash* hash_map; struct user_struct* user; struct mm_struct* mm_account; struct llist_head fallback_llist; struct delayed_work fallback_work; struct work_struct exit_work; struct list_head tctx_list; struct completion ref_comp; u32 iowq_limits[2]; bool iowq_limits_set; }' was added
  member 'struct { struct socket* ring_sock; struct io_wq_hash* hash_map; struct user_struct* user; struct mm_struct* mm_account; struct llist_head fallback_llist; struct delayed_work fallback_work; struct work_struct exit_work; struct list_head tctx_list; struct completion ref_comp; u32 iowq_limits[2]; bool iowq_limits_set; }' was removed

Fixes: d909d381c3 ("io_uring: drop any code related to SCM_RIGHTS")
Change-Id: I3cebbb3f9649519326a7c78e40297c735c6c5cfa
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-05-23 16:47:00 +00:00
Greg Kroah-Hartman
80c0158e86 ANDROID: cpufreq: brcmstb-avs-cpufreq: fix build error
In commit d951cf510f ("cpufreq: brcmstb-avs-cpufreq: add check for
cpufreq_cpu_get's return value"), a check is made in a way that causes a
build warning, which in Android systems, breaks the build.  Fix this up
by moving the definition of the variable above the check to remove the
warning.

Fixes: d951cf510f ("cpufreq: brcmstb-avs-cpufreq: add check for cpufreq_cpu_get's return value")
Change-Id: I8477905e3447eb4eabf3aa0899534c06a0cca125
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-05-23 16:47:00 +00:00
Kyle Tso
de30e28ba8 FROMLIST: usb: typec: tcpm: Ignore received Hard Reset in TOGGLING state
Similar to what fixed in Commit a6fe37f428c1 ("usb: typec: tcpm: Skip
hard reset when in error recovery"), the handling of the received Hard
Reset has to be skipped during TOGGLING state.

[ 4086.021288] VBUS off
[ 4086.021295] pending state change SNK_READY -> SNK_UNATTACHED @ 650 ms [rev2 NONE_AMS]
[ 4086.022113] VBUS VSAFE0V
[ 4086.022117] state change SNK_READY -> SNK_UNATTACHED [rev2 NONE_AMS]
[ 4086.022447] VBUS off
[ 4086.022450] state change SNK_UNATTACHED -> SNK_UNATTACHED [rev2 NONE_AMS]
[ 4086.023060] VBUS VSAFE0V
[ 4086.023064] state change SNK_UNATTACHED -> SNK_UNATTACHED [rev2 NONE_AMS]
[ 4086.023070] disable BIST MODE TESTDATA
[ 4086.023766] disable vbus discharge ret:0
[ 4086.023911] Setting usb_comm capable false
[ 4086.028874] Setting voltage/current limit 0 mV 0 mA
[ 4086.028888] polarity 0
[ 4086.030305] Requesting mux state 0, usb-role 0, orientation 0
[ 4086.033539] Start toggling
[ 4086.038496] state change SNK_UNATTACHED -> TOGGLING [rev2 NONE_AMS]

// This Hard Reset is unexpected
[ 4086.038499] Received hard reset
[ 4086.038501] state change TOGGLING -> HARD_RESET_START [rev2 HARD_RESET]

Fixes: f0690a25a1 ("staging: typec: USB Type-C Port Manager (tcpm)")
Cc: stable@vger.kernel.org
Signed-off-by: Kyle Tso <kyletso@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Change-Id: Icfa144f370bd87670df1cd71f247a3528ab4c591
Bug: 331356545
Link: https://lore.kernel.org/all/20240520154858.1072347-1-kyletso@google.com/
2024-05-22 12:10:42 +00:00
Greg Kroah-Hartman
6a87f57d6b Revert "bpf: Defer the free of inner map when necessary"
This reverts commit 37d98fb9c3 which is
commit 876673364161da50eed6b472d746ef88242b2368 upstream.

It breaks the build as other previous commits that were reverted for ABI
issues are not in the tree here.

Bug: 161946584
Change-Id: I6f30910efb8877d024e8e0866f2e62e3b25e0959
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-05-22 09:52:58 +00:00
Greg Kroah-Hartman
8c23052a2a Merge 5.15.153 into android14-5.15-lts
Changes in 5.15.153
	io_uring/unix: drop usage of io_uring socket
	io_uring: drop any code related to SCM_RIGHTS
	rcu-tasks: Provide rcu_trace_implies_rcu_gp()
	bpf: Defer the free of inner map when necessary
	selftests: tls: use exact comparison in recv_partial
	ASoC: rt5645: Make LattePanda board DMI match more precise
	x86/xen: Add some null pointer checking to smp.c
	MIPS: Clear Cause.BD in instruction_pointer_set
	HID: multitouch: Add required quirk for Synaptics 0xcddc device
	gen_compile_commands: fix invalid escape sequence warning
	RDMA/mlx5: Fix fortify source warning while accessing Eth segment
	RDMA/mlx5: Relax DEVX access upon modify commands
	riscv: dts: sifive: add missing #interrupt-cells to pmic
	x86/mm: Move is_vsyscall_vaddr() into asm/vsyscall.h
	x86/mm: Disallow vsyscall page read for copy_from_kernel_nofault()
	net/iucv: fix the allocation size of iucv_path_table array
	parisc/ftrace: add missing CONFIG_DYNAMIC_FTRACE check
	block: sed-opal: handle empty atoms when parsing response
	dm-verity, dm-crypt: align "struct bvec_iter" correctly
	scsi: mpt3sas: Prevent sending diag_reset when the controller is ready
	ALSA: hda/realtek - ALC285 reduce pop noise from Headphone port
	drm/amdgpu: Enable gpu reset for S3 abort cases on Raven series
	Bluetooth: rfcomm: Fix null-ptr-deref in rfcomm_check_security
	firewire: core: use long bus reset on gap count error
	ASoC: Intel: bytcr_rt5640: Add an extra entry for the Chuwi Vi8 tablet
	Input: gpio_keys_polled - suppress deferred probe error for gpio
	ASoC: wm8962: Enable oscillator if selecting WM8962_FLL_OSC
	ASoC: wm8962: Enable both SPKOUTR_ENA and SPKOUTL_ENA in mono mode
	ASoC: wm8962: Fix up incorrect error message in wm8962_set_fll
	do_sys_name_to_handle(): use kzalloc() to fix kernel-infoleak
	s390/dasd: put block allocation in separate function
	s390/dasd: add query PPRC function
	s390/dasd: add copy pair setup
	s390/dasd: add autoquiesce feature
	s390/dasd: Use dev_*() for device log messages
	s390/dasd: fix double module refcount decrement
	nbd: null check for nla_nest_start
	fs/select: rework stack allocation hack for clang
	md: Don't clear MD_CLOSING when the raid is about to stop
	lib/cmdline: Fix an invalid format specifier in an assertion msg
	time: test: Fix incorrect format specifier
	rtc: test: Fix invalid format specifier.
	aoe: fix the potential use-after-free problem in aoecmd_cfg_pkts
	timekeeping: Fix cross-timestamp interpolation on counter wrap
	timekeeping: Fix cross-timestamp interpolation corner case decision
	timekeeping: Fix cross-timestamp interpolation for non-x86
	sched/fair: Take the scheduling domain into account in select_idle_core()
	wifi: ath10k: fix NULL pointer dereference in ath10k_wmi_tlv_op_pull_mgmt_tx_compl_ev()
	wifi: b43: Stop/wake correct queue in DMA Tx path when QoS is disabled
	wifi: b43: Stop/wake correct queue in PIO Tx path when QoS is disabled
	wifi: b43: Stop correct queue in DMA worker when QoS is disabled
	wifi: b43: Disable QoS for bcm4331
	wifi: wilc1000: fix declarations ordering
	wifi: wilc1000: fix RCU usage in connect path
	wifi: rtl8xxxu: add cancel_work_sync() for c2hcmd_work
	wifi: wilc1000: fix multi-vif management when deleting a vif
	wifi: mwifiex: debugfs: Drop unnecessary error check for debugfs_create_dir()
	cpufreq: brcmstb-avs-cpufreq: add check for cpufreq_cpu_get's return value
	cpufreq: Explicitly include correct DT includes
	cpufreq: mediatek-hw: Wait for CPU supplies before probing
	sock_diag: annotate data-races around sock_diag_handlers[family]
	inet_diag: annotate data-races around inet_diag_table[]
	bpftool: Silence build warning about calloc()
	af_unix: Annotate data-race of gc_in_progress in wait_for_unix_gc().
	cpufreq: mediatek-hw: Don't error out if supply is not found
	arm64: dts: imx8mm-kontron: Disable pullups for I2C signals on SL/BL i.MX8MM
	arm64: dts: imx8mm-kontron: Disable pullups for onboard UART signals on BL board
	arm64: dts: imx8mm-kontron: Add support for ultra high speed modes on SD card
	arm64: dts: imx8mm-kontron: Use the VSELECT signal to switch SD card IO voltage
	arm64: dts: imx8mm-kontron: Disable pull resistors for SD card signals on BL board
	wifi: ath9k: delay all of ath9k_wmi_event_tasklet() until init is complete
	wifi: iwlwifi: mvm: report beacon protection failures
	wifi: iwlwifi: dbg-tlv: ensure NUL termination
	wifi: iwlwifi: fix EWRD table validity check
	arm64: dts: imx8mm-venice-gw71xx: fix USB OTG VBUS
	pwm: atmel-hlcdc: Convert to platform remove callback returning void
	pwm: atmel-hlcdc: Use consistent variable naming
	pwm: atmel-hlcdc: Fix clock imbalance related to suspend support
	net: blackhole_dev: fix build warning for ethh set but not used
	wifi: libertas: fix some memleaks in lbs_allocate_cmd_buffer()
	pwm: sti: Implement .apply() callback
	pwm: sti: Fix capture for st,pwm-num-chan < st,capture-num-chan
	wifi: iwlwifi: mvm: don't set replay counters to 0xff
	s390/vdso: drop '-fPIC' from LDFLAGS
	ipv6: mcast: remove one synchronize_net() barrier in ipv6_mc_down()
	arm64: dts: mt8183: kukui: Add Type C node
	arm64: dts: mt8183: kukui: Split out keyboard node and describe detachables
	arm64: dts: mt8183: Move CrosEC base detection node to kukui-based DTs
	arm64: dts: mediatek: mt7622: add missing "device_type" to memory nodes
	bpf: Mark bpf_spin_{lock,unlock}() helpers with notrace correctly
	wireless: Remove redundant 'flush_workqueue()' calls
	wifi: wilc1000: prevent use-after-free on vif when cleaning up all interfaces
	ACPI: processor_idle: Fix memory leak in acpi_processor_power_exit()
	bus: tegra-aconnect: Update dependency to ARCH_TEGRA
	iommu/amd: Mark interrupt as managed
	wifi: brcmsmac: avoid function pointer casts
	net: ena: Remove ena_select_queue
	ARM: dts: arm: realview: Fix development chip ROM compatible value
	arm64: dts: renesas: r8a779a0: Update to R-Car Gen4 compatible values
	arm64: dts: renesas: r8a779a0: Correct avb[01] reg sizes
	ARM: dts: imx6dl-yapp4: Move phy reset into switch node
	ARM: dts: imx6dl-yapp4: Fix typo in the QCA switch register address
	ARM: dts: imx6dl-yapp4: Move the internal switch PHYs under the switch node
	arm64: dts: marvell: reorder crypto interrupts on Armada SoCs
	ACPI: resource: Add Infinity laptops to irq1_edge_low_force_override
	ACPI: resource: Do IRQ override on Lunnen Ground laptops
	ACPI: resource: Add MAIBENBEN X577 to irq1_edge_low_force_override
	ACPI: scan: Fix device check notification handling
	x86, relocs: Ignore relocations in .notes section
	SUNRPC: fix some memleaks in gssx_dec_option_array
	mmc: wmt-sdmmc: remove an incorrect release_mem_region() call in the .remove function
	wifi: rtw88: 8821c: Fix false alarm count
	PCI: Make pci_dev_is_disconnected() helper public for other drivers
	iommu/vt-d: Don't issue ATS Invalidation request when device is disconnected
	igb: move PEROUT and EXTTS isr logic to separate functions
	igb: Fix missing time sync events
	Bluetooth: Remove superfluous call to hci_conn_check_pending()
	Bluetooth: hci_qca: Add support for QTI Bluetooth chip wcn6855
	Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() with gpiod_get_optional()
	Bluetooth: hci_core: Fix possible buffer overflow
	sr9800: Add check for usbnet_get_endpoints
	bpf: Fix DEVMAP_HASH overflow check on 32-bit arches
	bpf: Fix hashtab overflow check on 32-bit arches
	bpf: Fix stackmap overflow check on 32-bit arches
	ipv6: fib6_rules: flush route cache when rule is changed
	net: ip_tunnel: make sure to pull inner header in ip_tunnel_rcv()
	net: phy: fix phy_get_internal_delay accessing an empty array
	net: hns3: fix kernel crash when 1588 is received on HIP08 devices
	net: hns3: fix port duplex configure error in IMP reset
	net: phy: DP83822: enable rgmii mode if phy_interface_is_rgmii
	net: phy: dp83822: Fix RGMII TX delay configuration
	OPP: debugfs: Fix warning around icc_get_name()
	tcp: fix incorrect parameter validation in the do_tcp_getsockopt() function
	net: Change sock_getsockopt() to take the sk ptr instead of the sock ptr
	bpf: net: Change sk_getsockopt() to take the sockptr_t argument
	bpf: net: Change do_ip_getsockopt() to take the sockptr_t argument
	ipmr: fix incorrect parameter validation in the ip_mroute_getsockopt() function
	l2tp: fix incorrect parameter validation in the pppol2tp_getsockopt() function
	udp: fix incorrect parameter validation in the udp_lib_getsockopt() function
	net: kcm: fix incorrect parameter validation in the kcm_getsockopt) function
	net/x25: fix incorrect parameter validation in the x25_getsockopt() function
	nfp: flower: handle acti_netdevs allocation failure
	dm raid: fix false positive for requeue needed during reshape
	dm: call the resume method on internal suspend
	drm/tegra: dsi: Add missing check for of_find_device_by_node
	drm/tegra: dpaux: Populate AUX bus
	drm/tegra: dpaux: Fix PM disable depth imbalance in tegra_dpaux_probe
	drm/tegra: dsi: Make use of the helper function dev_err_probe()
	drm/tegra: dsi: Fix some error handling paths in tegra_dsi_probe()
	drm/tegra: dsi: Fix missing pm_runtime_disable() in the error handling path of tegra_dsi_probe()
	drm/tegra: dc: rgb: Allow changing PLLD rate on Tegra30+
	drm/tegra: rgb: Fix some error handling paths in tegra_dc_rgb_probe()
	drm/tegra: rgb: Fix missing clk_put() in the error handling paths of tegra_dc_rgb_probe()
	drm/tegra: output: Fix missing i2c_put_adapter() in the error handling paths of tegra_output_probe()
	drm/rockchip: inno_hdmi: Fix video timing
	drm: Don't treat 0 as -1 in drm_fixp2int_ceil
	drm/ttm: add ttm_resource_fini v2
	drm/vmwgfx: fix a memleak in vmw_gmrid_man_get_node
	drm/rockchip: lvds: do not overwrite error code
	drm/rockchip: lvds: do not print scary message when probing defer
	drm/lima: fix a memleak in lima_heap_alloc
	dmaengine: tegra210-adma: Update dependency to ARCH_TEGRA
	media: tc358743: register v4l2 async device only after successful setup
	PCI/DPC: Print all TLP Prefixes, not just the first
	perf record: Fix possible incorrect free in record__switch_output()
	HID: lenovo: Add middleclick_workaround sysfs knob for cptkbd
	drm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()'
	drm/amd/display: Fix potential NULL pointer dereferences in 'dcn10_set_output_transfer_func()'
	perf evsel: Fix duplicate initialization of data->id in evsel__parse_sample()
	clk: meson: Add missing clocks to axg_clk_regmaps
	media: em28xx: annotate unchecked call to media_device_register()
	media: v4l2-tpg: fix some memleaks in tpg_alloc
	media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity
	media: edia: dvbdev: fix a use-after-free
	pinctrl: mediatek: Drop bogus slew rate register range for MT8192
	clk: qcom: reset: Commonize the de/assert functions
	clk: qcom: reset: Ensure write completion on reset de/assertion
	quota: simplify drop_dquot_ref()
	quota: Fix potential NULL pointer dereference
	quota: Fix rcu annotations of inode dquot pointers
	PCI/P2PDMA: Fix a sleeping issue in a RCU read section
	PCI: switchtec: Fix an error handling path in switchtec_pci_probe()
	crypto: xilinx - call finalize with bh disabled
	perf thread_map: Free strlist on normal path in thread_map__new_by_tid_str()
	drm/radeon/ni: Fix wrong firmware size logging in ni_init_microcode()
	ALSA: seq: fix function cast warnings
	perf stat: Avoid metric-only segv
	ASoC: meson: Use dev_err_probe() helper
	ASoC: meson: aiu: fix function pointer type mismatch
	ASoC: meson: t9015: fix function pointer type mismatch
	powerpc: Force inlining of arch_vmap_p{u/m}d_supported()
	PCI: endpoint: Support NTB transfer between RC and EP
	NTB: EPF: fix possible memory leak in pci_vntb_probe()
	NTB: fix possible name leak in ntb_register_device()
	media: sun8i-di: Fix coefficient writes
	media: sun8i-di: Fix power on/off sequences
	media: sun8i-di: Fix chroma difference threshold
	media: imx: csc/scaler: fix v4l2_ctrl_handler memory leak
	media: go7007: add check of return value of go7007_read_addr()
	media: pvrusb2: remove redundant NULL check
	media: pvrusb2: fix pvr2_stream_callback casts
	clk: qcom: dispcc-sdm845: Adjust internal GDSC wait times
	drm/mediatek: dsi: Fix DSI RGB666 formats and definitions
	PCI: Mark 3ware-9650SE Root Port Extended Tags as broken
	clk: hisilicon: hi3519: Release the correct number of gates in hi3519_clk_unregister()
	clk: hisilicon: hi3559a: Fix an erroneous devm_kfree()
	drm/tegra: put drm_gem_object ref on error in tegra_fb_create
	mfd: syscon: Call of_node_put() only when of_parse_phandle() takes a ref
	mfd: altera-sysmgr: Call of_node_put() only when of_parse_phandle() takes a ref
	crypto: arm/sha - fix function cast warnings
	drm/tidss: Fix initial plane zpos values
	mtd: maps: physmap-core: fix flash size larger than 32-bit
	mtd: rawnand: lpc32xx_mlc: fix irq handler prototype
	ASoC: meson: axg-tdm-interface: fix mclk setup without mclk-fs
	ASoC: meson: axg-tdm-interface: add frame rate constraint
	HID: amd_sfh: Update HPD sensor structure elements
	drm/amdgpu: Fix missing break in ATOM_ARG_IMM Case of atom_get_src_int()
	media: pvrusb2: fix uaf in pvr2_context_set_notify
	media: dvb-frontends: avoid stack overflow warnings with clang
	media: go7007: fix a memleak in go7007_load_encoder
	media: ttpci: fix two memleaks in budget_av_attach
	media: mediatek: vcodec: avoid -Wcast-function-type-strict warning
	drm/mediatek: Fix a null pointer crash in mtk_drm_crtc_finish_page_flip
	powerpc/hv-gpci: Fix the H_GET_PERF_COUNTER_INFO hcall return value checks
	drm/msm/dpu: add division of drm_display_mode's hskew parameter
	module: Add support for default value for module async_probe
	modules: wait do_free_init correctly
	powerpc/embedded6xx: Fix no previous prototype for avr_uart_send() etc.
	leds: aw2013: Unlock mutex before destroying it
	leds: sgm3140: Add missing timer cleanup and flash gpio control
	backlight: lm3630a: Initialize backlight_properties on init
	backlight: lm3630a: Don't set bl->props.brightness in get_brightness
	backlight: da9052: Fully initialize backlight_properties during probe
	backlight: lm3639: Fully initialize backlight_properties during probe
	backlight: lp8788: Fully initialize backlight_properties during probe
	sparc32: Fix section mismatch in leon_pci_grpci
	clk: Fix clk_core_get NULL dereference
	clk: zynq: Prevent null pointer dereference caused by kmalloc failure
	ALSA: hda/realtek: fix ALC285 issues on HP Envy x360 laptops
	ALSA: usb-audio: Stop parsing channels bits when all channels are found.
	RDMA/srpt: Do not register event handler until srpt device is fully setup
	f2fs: multidevice: support direct IO
	f2fs: invalidate META_MAPPING before IPU/DIO write
	f2fs: replace congestion_wait() calls with io_schedule_timeout()
	f2fs: fix to invalidate META_MAPPING before DIO write
	f2fs: invalidate meta pages only for post_read required inode
	f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info
	f2fs: compress: fix to cover normal cluster write with cp_rwsem
	f2fs: compress: fix to check unreleased compressed cluster
	scsi: csiostor: Avoid function pointer casts
	RDMA/device: Fix a race between mad_client and cm_client init
	RDMA/rtrs-clt: Check strnlen return len in sysfs mpath_policy_store()
	scsi: bfa: Fix function pointer type mismatch for hcb_qe->cbfn
	net: sunrpc: Fix an off by one in rpc_sockaddr2uaddr()
	NFSv4.2: fix nfs4_listxattr kernel BUG at mm/usercopy.c:102
	NFSv4.2: fix listxattr maximum XDR buffer size
	watchdog: stm32_iwdg: initialize default timeout
	NFS: Fix an off by one in root_nfs_cat()
	f2fs: compress: fix reserve_cblocks counting error when out of space
	afs: Revert "afs: Hide silly-rename files from userspace"
	comedi: comedi_test: Prevent timers rescheduling during deletion
	remoteproc: stm32: use correct format strings on 64-bit
	remoteproc: stm32: Fix incorrect type in assignment for va
	remoteproc: stm32: Fix incorrect type assignment returned by stm32_rproc_get_loaded_rsc_tablef
	tty: vt: fix 20 vs 0x20 typo in EScsiignore
	serial: max310x: fix syntax error in IRQ error message
	tty: serial: samsung: fix tx_empty() to return TIOCSER_TEMT
	arm64: dts: broadcom: bcmbca: bcm4908: drop invalid switch cells
	kconfig: fix infinite loop when expanding a macro at the end of file
	rtc: mt6397: select IRQ_DOMAIN instead of depending on it
	serial: 8250_exar: Don't remove GPIO device on suspend
	staging: greybus: fix get_channel_from_mode() failure path
	usb: gadget: net2272: Use irqflags in the call to net2272_probe_fin
	io_uring: don't save/restore iowait state
	nouveau: reset the bo resource bus info after an eviction
	octeontx2-af: Use matching wake_up API variant in CGX command interface
	s390/vtime: fix average steal time calculation
	soc: fsl: dpio: fix kcalloc() argument order
	hsr: Fix uninit-value access in hsr_get_node()
	net: mtk_eth_soc: move MAC_MCR setting to mac_finish()
	net: mediatek: mtk_eth_soc: clear MAC_MCR_FORCE_LINK only when MAC is up
	net: ethernet: mtk_eth_soc: fix PPE hanging issue
	packet: annotate data-races around ignore_outgoing
	net: veth: do not manipulate GRO when using XDP
	net: dsa: mt7530: prevent possible incorrect XTAL frequency selection
	vdpa/mlx5: Allow CVQ size changes
	wireguard: receive: annotate data-race around receiving_counter.counter
	rds: introduce acquire/release ordering in acquire/release_in_xmit()
	hsr: Handle failures in module init
	net: phy: fix phy_read_poll_timeout argument type in genphy_loopback
	net/bnx2x: Prevent access to a freed page in page_pool
	octeontx2-af: Use separate handlers for interrupts
	netfilter: nft_set_pipapo: release elements in clone only from destroy path
	netfilter: nf_tables: do not compare internal table flags on updates
	rcu: add a helper to report consolidated flavor QS
	net: report RCU QS on threaded NAPI repolling
	bpf: report RCU QS in cpumap kthread
	net: dsa: mt7530: fix handling of LLDP frames
	net: dsa: mt7530: fix handling of 802.1X PAE frames
	net: dsa: mt7530: fix link-local frames that ingress vlan filtering ports
	net: dsa: mt7530: fix handling of all link-local frames
	spi: spi-mt65xx: Fix NULL pointer access in interrupt handler
	regmap: Add missing map->bus check
	remoteproc: stm32: fix incorrect optional pointers
	Linux 5.15.153

Change-Id: I760851fdde75cb1b3683364f0a8f2ab63899ce6d
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-05-22 09:04:21 +00:00
Greg Kroah-Hartman
f937385430 Merge branch 'android14-5.15' into branch 'android14-5.15-lts'
This catches the android14-5.15-lts branch up with recent changes maded
in android14-5.15.  This includes the following commits:

fb512eac3c ANDROID: binder: fix ptrdiff_t printk-format issue
2526c59f3f ANDROID: usb: Optimize the problem of slow transfer rate in USB accessory mode
5981994114 UPSTREAM: usb: typec: tcpm: clear pd_event queue in PORT_RESET
1167a6a15c BACKPORT: usb: typec: tcpm: enforce ready state when queueing alt mode vdm
ab87c12aa2 BACKPORT: f2fs: sysfs: support discard_io_aware
1f9a0ccd86 ANDROID: GKI: Update symbol list for Amlogic
62000bb037 ANDROID: KVM: arm64: wait_for_initramfs for pKVM module loading procfs
d5eef65564 BACKPORT: FROMGIT: usb: typec: tcpm: Check for port partner validity before consuming it
4dd58977f2 BACKPORT: FROMGIT: kbuild: Remove support for Clang's ThinLTO caching
2a64b7fe17 ANDROID: 16K: Fix call to show_pad_maps_fn()
596b6507c3 ANDROID: 16K: Fix show maps CFI failure

Change-Id: Ia9a6a2614003664b62bcd28f0ab131430fb1965a
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2024-05-20 17:43:35 +00:00
Carlos Llamas
fb512eac3c ANDROID: binder: fix ptrdiff_t printk-format issue
The correct printk format specifier when calculating buffer offsets
should be "%tx" as it is a pointer difference (a.k.a ptrdiff_t). This
fixes some W=1 build warnings reported by the kernel test robot.

Bug: 329799092
Fixes: 63f7ddea2e ("ANDROID: binder: fix KMI-break due to address type change")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202401100511.A4BKMwoq-lkp@intel.com/
Change-Id: Iaa87433897b507c47fe8601464445cb6de4b61db
Signed-off-by: Carlos Llamas <cmllamas@google.com>
2024-05-17 17:32:17 +00:00