mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
367540fdf98147e0e5cd42d42ff4867ebd8ea7ef
This merges up to the 6.1.118 LTS release into the android14-6.1 branch. Changes included in here are: *2f2512ac10Merge 6.1.118 into android14-6.1-lts |\ | *b67dc5c9adLinux 6.1.118 | *6a8d39ee349p: fix slab cache name creation for real | *509c1c6b49fs/ntfs3: Fix general protection fault in run_is_mapped_full | *ba0b09a2f3platform/x86: x86-android-tablets: Fix use after free on platform_device_register() errors | *486aeb5f18mm: krealloc: Fix MTE false alarm in __do_krealloc | *b22346eec4Bluetooth: L2CAP: Fix uaf in l2cap_connect | *cf3196e5e2ext4: fix timer use-after-free on failed mount | *e7831613cbdrm/amdkfd: amdkfd_free_gtt_mem clear the correct pointer | *0dc3ad9ad2uprobe: avoid out-of-bounds memory access of fetching args | *02079f0922uprobes: encapsulate preparation of uprobe args buffer | *fdacd09f2dio_uring: fix possible deadlock in io_register_iowq_max_workers() | *9478355c63md/raid10: improve code of mrdev in raid10_sync_request | *d4b003f720net: usb: qmi_wwan: add Fibocom FG132 0x0112 composition | *8118551b4fLoongArch: Use "Exception return address" to comment ERA | *807692abc6HID: lenovo: Add support for Thinkpad X1 Tablet Gen 3 keyboard | *5622881cf0HID: multitouch: Add quirk for Logitech Bolt receiver w/ Casa touchpad | *5a72b0d349fs: Fix uninitialized value issue in from_kuid and from_kgid | *cdd28621bbbpf: Fix mismatched RCU unlock flavour in bpf_out_neigh_v6 | *32c982b520vDPA/ifcvf: Fix pci_read_config_byte() return code handling | *afa2294653nvme: make keep-alive synchronous operation | *ffdebf3da1powerpc/powernv: Free name on error in opal_event_init() | *60de2e03f9nvme-multipath: defer partition scanning | *f17c880a47drm/vmwgfx: Limit display layout ioctl array size to VMWGFX_NUM_DISPLAY_UNITS | *b8d1f4d383sound: Make CONFIG_SND depend on INDIRECT_IOMEM instead of UML | *75a1b35dcccrypto: marvell/cesa - Disable hash algorithms | *1bc59a7c07crypto: api - Fix liveliness check in crypto_alg_tested | *911c9bc048bpf: use kvzmalloc to allocate BPF verifier environment | *ccf7d31481nvme: disable CC.CRIME (NVME_CC_CRIME) | *eb6751a26aHID: multitouch: Add quirk for HONOR MagicBook Art 14 touchpad | *c2242ebafdHID: multitouch: Add support for B2402FVA track point | *77b0a8b062block: Fix elevator_get_default() checking for NULL q->tag_set | *4f946479b3nvme: tcp: avoid race between queue_lock lock and destroy | *94a4d966f7irqchip/ocelot: Fix trigger register address | *af39f19c719p: Avoid creating multiple slab caches with the same name | *903227b616Revert "Bluetooth: hci_conn: Consolidate code for aborting connections" | *4c69abb4d4Revert "Bluetooth: hci_core: Fix possible buffer overflow" * |27e7205cf2Merge0625d7c240("Revert "Bluetooth: af_bluetooth: Fix deadlock"") into android14-6.1-lts |\| | *0625d7c240Revert "Bluetooth: af_bluetooth: Fix deadlock" | *0337fb0928Revert "Bluetooth: hci_sync: Fix overwriting request callback" | *21b39fa205Revert "Bluetooth: fix use-after-free in accessing skb after sending it" * |bb58b1f9bfMerge 6.1.117 into android14-6.1-lts |\| | *59d7b1a710Linux 6.1.117 | *178379985emedia: amphion: Fix VPU core alias name | *44d29897eavsock/virtio: Initialization of the dangling pointer occurring in vsk->trans | *98d8dde923hv_sock: Initializing vsk->trans to NULL to prevent a dangling pointer | *b911fa9e92net: sched: use RCU read-side critical section in taprio_dump() | *7f6c3c7f8dASoC: amd: yc: fix internal mic on Xiaomi Book Pro 14 2022 | *7bce2c7ac8ucounts: fix counter leak in inc_rlimit_get_ucounts() | *86dd0e8d42ocfs2: remove entry once instead of null-ptr-dereference in ocfs2_xa_remove() | *8525160ea2irqchip/gic-v3: Force propagation of the active state with a read-back | *ded5200f83USB: serial: option: add Quectel RG650V | *9b298c819aUSB: serial: option: add Fibocom FG132 0x0112 composition | *5a4a73a6e6USB: serial: qcserial: add support for Sierra Wireless EM86xx | *275258c30bUSB: serial: io_edgeport: fix use after free in debug printk | *604314ecd6usb: typec: fix potential out of bounds in ucsi_ccg_update_set_new_cam_cmd() | *562804b156usb: dwc3: fix fault at system suspend if device was already runtime suspended | *ccd811c304usb: musb: sunxi: Fix accessing an released usb phy | *012f4d5d25signal: restore the override_rlimit logic | *190911cebdfs/proc: fix compile warning about variable 'vmcore_mmap_ops' | *26530b757cfilemap: Fix bounds checking in filemap_read() | *beced2cb09media: uvcvideo: Skip parsing frames of type UVC_VS_UNDEFINED in uvc_parse_format | *c8ec4e437akselftest/arm64: Initialise current at build time in signal tests | *a60db84f77net: do not delay dst_entries_add() in dst_release() | *5cf45281a6Revert "wifi: mac80211: fix RCU list iterations" | *84d2f29152bnxt_re: avoid shift undefined behavior in bnxt_qplib_alloc_init_hwq | *10ffafb456riscv/purgatory: align riscv_kernel_entry | *2cb1a73d1dbtrfs: reinitialize delayed ref list after deleting it from the list | *ba884534f1arm64: Kconfig: Make SME depend on BROKEN for now | *aa3e68bd45mptcp: use sock_kfree_s instead of kfree | *2cf0e77f5anet: vertexcom: mse102x: Fix possible double free of TX skb | *424c4acb33net: wwan: t7xx: Fix off-by-one error in t7xx_dpmaif_rx_buf_alloc() | *f6b2b2b981nfs: Fix KMSAN warning in decode_getfattr_attrs() | *d3bcf4069dposix-cpu-timers: Clear TICK_DEP_BIT_POSIX_TIMER on clone | *1ced986a37ALSA: hda/realtek: Fix headset mic on TUXEDO Gemini 17 Gen3 | *4fee0ad11aALSA: usb-audio: Add quirk for HP 320 FHD Webcam | *80342c5876dm-unstriped: cast an operand to sector_t to prevent potential uint32_t overflow | *c52ec00cb2dm cache: fix potential out-of-bounds access on the first resume | *011450c2f9dm cache: optimize dirty bit checking with find_next_bit when resizing | *56507203e1dm cache: fix out-of-bounds access to the dirty bitset when resizing | *5a754d3c77dm cache: fix flushing uninitialized delayed_work on cache_ctr error | *ffaf0f6eabdm cache: correct the number of origin blocks to match the target length | *66ada34425thermal/drivers/qcom/lmh: Remove false lockdep backtrace | *1a9f55ed5bdrm/amdgpu: prevent NULL pointer dereference if ATIF is not supported | *25d7e84343drm/amdgpu: add missing size check in amdgpu_debugfs_gprwave_read() | *91139f33b0drm/amdgpu: Adjust debugfs eviction and IB access permissions | *284e213f0epwm: imx-tpm: Use correct MODULO value for EPWM mode | *f7557bbca4ksmbd: fix slab-use-after-free in smb3_preauth_hash_rsp | *d8664ce789ksmbd: Fix the missing xa_store error check | *f56446ba53ksmbd: fix slab-use-after-free in ksmbd_smb2_session_create | *49500cfd14can: mcp251xfd: mcp251xfd_ring_alloc(): fix coalescing configuration when switching CAN modes | *4ee68cf530can: mcp251xfd: mcp251xfd_get_tef_len(): fix length calculation | *f7503fd2d7media: v4l2-ctrls-api: fix error handling for v4l2_g_ctrl() | *c63c30c9d9media: v4l2-tpg: prevent the risk of a division by zero | *4b132a464fmedia: pulse8-cec: fix data timestamp at pulse8_setup() | *fbefe31e45media: cx24116: prevent overflows on SNR calculus | *c85db2d443media: s5p-jpeg: prevent buffer overflows | *5e1523076amedia: ar0521: don't overflow when checking PLL values | *4f1d74f747ASoC: stm32: spdifrx: fix dma channel release in stm32_spdifrx_remove | *2e9a53eef2thermal/of: support thermal zones w/o trips subnode | *648e7f59e8tools/lib/thermal: Fix sampling handler context ptr | *42a26e971eALSA: firewire-lib: fix return value on fail in amdtp_tscm_init() | *3b4f6966d7scsi: sd_zbc: Use kvzalloc() to allocate REPORT ZONES buffer | *d98c63c00cmedia: adv7604: prevent underflow condition when reporting colorspace | *fd6d84b8eemedia: dvb_frontend: don't play tricks with underflow values | *b751a96025media: dvbdev: prevent the risk of out of memory access | *d6386b279dmedia: stb0899_algo: initialize cfr before using it | *3f8f470f31Revert "ALSA: hda/conexant: Mute speakers at suspend / shutdown" | *98ffd58530net: arc: rockchip: fix emac mdio node support | *fd4e062fbcnet: arc: fix the device for dma_map_single/dma_unmap_single | *f3401e3c8dvirtio_net: Add hash_key_length check | *2af6499260net: stmmac: Fix unbalanced IRQ wake disable warning on single irq case | *7efd9a10b8net: phy: ti: add PHY_RST_AFTER_CLK_EN flag | *76b155e14dnet: hns3: fix kernel crash when uninstalling driver | *7ad3fb3bfdi40e: fix race condition by adding filter's intermediate sync state | *64aa077114ice: change q_index variable type to s16 to store -1 value | *dac989c2a3can: c_can: fix {rx,tx}_errors statistics | *bf9bff1322sctp: properly validate chunk size in sctp_sf_ootb() | *12a3977538net: enetc: set MAC address to the VF net_device | *bbad2d5b6csecurity/keys: fix slab-out-of-bounds in key_task_permission | *99659d2345nfs: avoid i_lock contention in nfs_clear_invalid_mapping | *ba5634feb2NFSv3: handle out-of-order write replies. | *9a65be8111NFSv3: only use NFS timeout for MOUNT when protocols are compatible | *f22232160esunrpc: handle -ENOTCONN in xs_tcp_setup_socket() | *a50863dd1fplatform/x86/amd/pmc: Detect when STB is not available | *1884ab3d22HID: core: zero-initialize the report buffer | *5d739ad16cARM: dts: rockchip: Fix the realtek audio codec on rk3036-kylin | *89e601bd73ARM: dts: rockchip: Fix the spi controller on rk3036 | *44c3b97a1cARM: dts: rockchip: drop grf reference from rk3036 hdmi | *f7539956d7ARM: dts: rockchip: fix rk3036 acodec node | *a45a7930f4arm64: dts: imx8mp: correct sdhc ipg clk | *65af08b542arm64: dts: imx8-ss-vpu: Fix imx8qm VPU IRQs | *272abcefdbarm64: dts: imx8qxp: Add VPU subsystem file | *ed5268f3e8arm64: dts: imx8qm: Fix VPU core alias name | *7219ff9791arm64: dts: rockchip: Fix LED triggers on rk3308-roc-cc | *3746e8b25aarm64: dts: rockchip: Remove #cooling-cells from fan on Theobroma lion | *72b96b794darm64: dts: rockchip: Fix bluetooth properties on Rock960 boards | *d6477a9858arm64: dts: rockchip: Fix wakeup prop names on PineNote BT node | *8db0adaefearm64: dts: rockchip: Remove hdmi's 2nd interrupt on rk3328 | *89b30d16dbarm64: dts: rockchip: Fix rt5651 compatible value on rk3399-sapphire-excavator | *d7b0f08fd6arm64: dts: rockchip: Fix rt5651 compatible value on rk3399-eaidk-610 * |98a32bd6ecMerge 6.1.116 into android14-6.1-lts |\| | *d7039b844aLinux 6.1.116 | *7dcd620416migrate_pages_batch: fix statistics for longterm pin retry | *b3660228dbmm: avoid gcc complaint about pointer casting | *23c4cb8a56vt: prevent kernel-infoleak in con_font_get() | *87de0a741edrm/amd/display: Skip on writeback when it's not applicable | *5e84eda48fdrm/amd/display: Add null checks for 'stream' and 'plane' before dereferencing | *a207af9bfemtd: spi-nor: winbond: fix w25q128 regression | *1c2f04ce02LoongArch: Fix build errors due to backported TIMENS | *82cae1e30bmm: shmem: fix data-race in shmem_getattr() | *cde8a7eb5cwifi: iwlwifi: mvm: fix 6 GHz scan construction | *cd0cdb51b1nilfs2: fix kernel bug due to missing clearing of checked flag | *0acaf4a502wifi: mac80211: fix NULL dereference at band check in starting tx ba session | *38c5fe74f3x86/bugs: Use code segment selector for VERW operand | *9f5a834715io_uring: always lock __io_cqring_overflow_flush | *79a727a9b8vmscan,migrate: fix page count imbalance on node stats when demoting pages | *8ca5f0ea52migrate_pages: split unmap_and_move() to _unmap() and _move() | *f9e9725dafmigrate_pages: restrict number of pages to migrate in batch | *1145493ce5migrate_pages: separate hugetlb folios migration | *6058d02a81migrate_pages: organize stats with struct migrate_pages_stats | *de0a1554a4mm/migrate.c: stop using 0 as NULL pointer | *2a4b092d91migrate: convert migrate_pages() to use folios | *b0030b8699migrate: convert unmap_and_move() to use folios | *01a0c92883mm: migrate: try again if THP split is failed due to page refcnt | *9e8debb8e5io_uring/rw: fix missing NOWAIT check for O_DIRECT start write | *0ed78d3a29io_uring: use kiocb_{start,end}_write() helpers | *6d42982ad0fs: create kiocb_{start,end}_write() helpers | *45676b8299io_uring: rename kiocb_end_write() local helper | *8f6a0b1f41kasan: remove vmalloc_percpu test | *c94e965f76nvmet-auth: assign dh_key to NULL after kfree_sensitive | *618d193924ALSA: hda/realtek: Fix headset mic on TUXEDO Stellaris 16 Gen6 mb1 | *4707893315mctp i2c: handle NULL header address | *2fe5d62e12ocfs2: pass u64 to ocfs2_truncate_inline maybe overflow | *189b954469mm/page_alloc: let GFP_ATOMIC order-0 allocs access highatomic reserves | *bb414b7f41mm/page_alloc: explicitly define how __GFP_HIGH non-blocking allocations accesses reserves | *1cf970483emm/page_alloc: explicitly define what alloc flags deplete min reserves * |64e5459c98Merge7468bd2c6e("mm/page_alloc: explicitly record high-order atomic allocations in alloc_flags") into android14-6.1-lts |/ *7468bd2c6emm/page_alloc: explicitly record high-order atomic allocations in alloc_flags Change-Id: I7e9c61362ad083dba825e399db297a3d91328d31 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Merge
bdefb8ce7c ("tty: rp2: Fix reset with non forgiving PCIe host bridges") into android14-6.1-lts
Merge tag 'mm-hotfixes-stable-2022-12-10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
…
How do I submit patches to Android Common Kernels
-
BEST: Make all of your changes to upstream Linux. If appropriate, backport to the stable releases. These patches will be merged automatically in the corresponding common kernels. If the patch is already in upstream Linux, post a backport of the patch that conforms to the patch requirements below.
- Do not send patches upstream that contain only symbol exports. To be considered for upstream Linux,
additions of
EXPORT_SYMBOL_GPL()require an in-tree modular driver that uses the symbol -- so include the new driver or changes to an existing driver in the same patchset as the export. - When sending patches upstream, the commit message must contain a clear case for why the patch is needed and beneficial to the community. Enabling out-of-tree drivers or functionality is not not a persuasive case.
- Do not send patches upstream that contain only symbol exports. To be considered for upstream Linux,
additions of
-
LESS GOOD: Develop your patches out-of-tree (from an upstream Linux point-of-view). Unless these are fixing an Android-specific bug, these are very unlikely to be accepted unless they have been coordinated with kernel-team@android.com. If you want to proceed, post a patch that conforms to the patch requirements below.
Common Kernel patch requirements
- All patches must conform to the Linux kernel coding standards and pass
scripts/checkpatch.pl - Patches shall not break gki_defconfig or allmodconfig builds for arm, arm64, x86, x86_64 architectures (see https://source.android.com/setup/build/building-kernels)
- If the patch is not merged from an upstream branch, the subject must be tagged with the type of patch:
UPSTREAM:,BACKPORT:,FROMGIT:,FROMLIST:, orANDROID:. - All patches must have a
Change-Id:tag (see https://gerrit-review.googlesource.com/Documentation/user-changeid.html) - If an Android bug has been assigned, there must be a
Bug:tag. - All patches must have a
Signed-off-by:tag by the author and the submitter
Additional requirements are listed below based on patch type
Requirements for backports from mainline Linux: UPSTREAM:, BACKPORT:
- If the patch is a cherry-pick from Linux mainline with no changes at all
- tag the patch subject with
UPSTREAM:. - add upstream commit information with a
(cherry picked from commit ...)line - Example:
- if the upstream commit message is
- tag the patch subject with
important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
- then Joe Smith would upload the patch for the common kernel as
UPSTREAM: important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
Bug: 135791357
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
(cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
Signed-off-by: Joe Smith <joe.smith@foo.org>
- If the patch requires any changes from the upstream version, tag the patch with
BACKPORT:instead ofUPSTREAM:.- use the same tags as
UPSTREAM: - add comments about the changes under the
(cherry picked from commit ...)line - Example:
- use the same tags as
BACKPORT: important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
Bug: 135791357
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
(cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
[joe: Resolved minor conflict in drivers/foo/bar.c ]
Signed-off-by: Joe Smith <joe.smith@foo.org>
Requirements for other backports: FROMGIT:, FROMLIST:,
- If the patch has been merged into an upstream maintainer tree, but has not yet
been merged into Linux mainline
- tag the patch subject with
FROMGIT: - add info on where the patch came from as
(cherry picked from commit <sha1> <repo> <branch>). This must be a stable maintainer branch (not rebased, so don't uselinux-nextfor example). - if changes were required, use
BACKPORT: FROMGIT: - Example:
- if the commit message in the maintainer tree is
- tag the patch subject with
important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
- then Joe Smith would upload the patch for the common kernel as
FROMGIT: important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
Bug: 135791357
(cherry picked from commit 878a2fd9de10b03d11d2f622250285c7e63deace
https://git.kernel.org/pub/scm/linux/kernel/git/foo/bar.git test-branch)
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
Signed-off-by: Joe Smith <joe.smith@foo.org>
- If the patch has been submitted to LKML, but not accepted into any maintainer tree
- tag the patch subject with
FROMLIST: - add a
Link:tag with a link to the submittal on lore.kernel.org - add a
Bug:tag with the Android bug (required for patches not accepted into a maintainer tree) - if changes were required, use
BACKPORT: FROMLIST: - Example:
- tag the patch subject with
FROMLIST: important patch from upstream
This is the detailed description of the important patch
Signed-off-by: Fred Jones <fred.jones@foo.org>
Bug: 135791357
Link: https://lore.kernel.org/lkml/20190619171517.GA17557@someone.com/
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
Signed-off-by: Joe Smith <joe.smith@foo.org>
Requirements for Android-specific patches: ANDROID:
- If the patch is fixing a bug to Android-specific code
- tag the patch subject with
ANDROID: - add a
Fixes:tag that cites the patch with the bug - Example:
- tag the patch subject with
ANDROID: fix android-specific bug in foobar.c
This is the detailed description of the important fix
Fixes: 1234abcd2468 ("foobar: add cool feature")
Change-Id: I4caaaa566ea080fa148c5e768bb1a0b6f7201c01
Signed-off-by: Joe Smith <joe.smith@foo.org>
- If the patch is a new feature
- tag the patch subject with
ANDROID: - add a
Bug:tag with the Android bug (required for android-specific features)
- tag the patch subject with
Description
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%