Merge tag 'android11-5.4.233_r00' into android11-5.4

This is the merge of the upstream LTS release of 5.4.233 into the
android11-5.4 branch.

It contains the following commits:

6bb176e034 Merge 5.4.233 into android11-5.4-lts
7f7f254975 Revert "iommu: Add gfp parameter to iommu_ops::map"
7f7f83ce87 Revert "iommu/amd: Pass gfp flags to iommu_map_page() in amd_iommu_map()"
bbf1c13935 Revert "RDMA/usnic: use iommu_map_atomic() under spin_lock()"
69f65d442e Linux 5.4.233
c6cc0121d4 bpf: add missing header file include
5d873a6c65 Revert "net/sched: taprio: make qdisc_leaf() see the per-netdev-queue pfifo child qdiscs"
99e3fd21f8 ext4: Fix function prototype mismatch for ext4_feat_ktype
6f86bb6f85 wifi: mwifiex: Add missing compatible string for SD8787
6c750ed036 uaccess: Add speculation barrier to copy_from_user()
4d2e5de071 mac80211: mesh: embedd mesh_paths and mpp_paths into ieee80211_if_mesh
787ef0db01 drm/i915/gvt: fix double free bug in split_2MB_gtt_entry
100cf2af1b alarmtimer: Prevent starvation by small intervals and SIG_IGN
dab2066c5f powerpc: dts: t208x: Disable 10G on MAC1 and MAC2
113e0cde39 can: kvaser_usb: hydra: help gcc-13 to figure out cmd_len
f93a1a5bdc KVM: VMX: Execute IBPB on emulated VM-exit when guest has IBRS
db209f39f1 KVM: x86: Fail emulation during EMULTYPE_SKIP on any exception
dc399695df random: always mix cycle counter in add_latent_entropy()
eff0e02f7d powerpc: dts: t208x: Mark MAC1 and MAC2 as 10G
ead0689bd6 wifi: rtl8xxxu: gen2: Turn on the rate control
0a77a966aa drm/etnaviv: don't truncate physical page address
fa2845b216 drm: etnaviv: fix common struct sg_table related issues
4626550b09 scatterlist: add generic wrappers for iterating over sgtable objects
fe3e217272 dma-mapping: add generic helpers for mapping sgtable objects
abc4ede193 Merge 5.4.232 into android11-5.4-lts
64121e2adf Linux 5.4.232
8b47e324af iommu/amd: Pass gfp flags to iommu_map_page() in amd_iommu_map()
7519069f1f net: sched: sch: Fix off by one in htb_activate_prios()
5660a6ffa7 ASoC: SOF: Intel: hda-dai: fix possible stream_tag leak
52844d8382 nilfs2: fix underflow in second superblock position calculations
9f95a161a7 kvm: initialize all of the kvm_debugregs structure before sending it to userspace
9f4abf2048 i40e: Add checking for null for nlmsg_find_attr()
e71554a09e ipv6: Fix tcp socket connection with DSCP.
388886f970 ipv6: Fix datagram socket connection with DSCP.
905199dac2 ixgbe: add double of VLAN header when computing the max MTU
df099e6556 net: mpls: fix stale pointer if allocation fails during device rename
736f8f66d7 net: stmmac: Restrict warning on disabling DMA store and fwd mode
1a2c795142 bnxt_en: Fix mqprio and XDP ring checking logic
de44bdebcf net: stmmac: fix order of dwmac5 FlexPPS parametrization sequence
a753352622 net/usb: kalmia: Don't pass act_len in usb_bulk_msg error path
0c2651c763 dccp/tcp: Avoid negative sk_forward_alloc by ipv6_pinfo.pktoptions.
a4e9411769 sctp: sctp_sock_filter(): avoid list_entry() on possibly empty list
e1b54b5612 net: bgmac: fix BCM5358 support by setting correct flags
8a4d05b0ff i40e: add double of VLAN header when computing the max MTU
fdeb4c258b ixgbe: allow to increase MTU to 3K with XDP enabled
32d81fd54e revert "squashfs: harden sanity check in squashfs_read_xattr_id_table"
4c8011e77c net: Fix unwanted sign extension in netdev_stats_to_stats64()
6b08c9fc72 Revert "mm: Always release pages to the buddy allocator in memblock_free_late()."
8c07792e79 hugetlb: check for undefined shift on 32 bit architectures
7caeb5457b sched/psi: Fix use-after-free in ep_remove_wait_queue()
6c38aa4020 ALSA: hda/realtek - fixed wrong gpio assigned
6e0ef3fc65 ALSA: hda/conexant: add a new hda codec SN6180
e9b488d60f mmc: mmc_spi: fix error handling in mmc_spi_probe()
761db46b29 mmc: sdio: fix possible resource leaks in some error paths
98895c225e ipv4: Fix incorrect route flushing when source address is deleted
04a331c9dd Revert "ipv4: Fix incorrect route flushing when source address is deleted"
85eda80883 xfs: sync lazy sb accounting on quiesce of read-only mounts
fb8ee907c1 xfs: prevent UAF in xfs_log_item_in_current_chkpt
7c07806ab0 xfs: fix the forward progress assertion in xfs_iwalk_run_callbacks
313699d505 xfs: ensure inobt record walks always make forward progress
7f9309a9f5 xfs: fix missing CoW blocks writeback conversion retry
6246b3a18f xfs: only relog deferred intent items if free space in the log gets low
09d6181447 xfs: expose the log push threshold
5d711e4136 xfs: periodically relog deferred intent items
870e7d7108 xfs: change the order in which child and parent defer ops are finished
f5af1d5c2d xfs: fix an incore inode UAF in xfs_bui_recover
efcdc2e70e xfs: clean up xfs_bui_item_recover iget/trans_alloc/ilock ordering
abad319dee xfs: clean up bmap intent item recovery checking
6601531db8 xfs: xfs_defer_capture should absorb remaining transaction reservation
411b14e68c xfs: xfs_defer_capture should absorb remaining block reservations
3324249e6e xfs: proper replay of deferred ops queued during log recovery
1c89c04305 xfs: fix finobt btree block recovery ordering
6678b2787b xfs: log new intent items created as part of finishing recovered intent items
562da8e704 xfs: refactor xfs_defer_finish_noroll
42a2406f90 xfs: turn dfp_intent into a xfs_log_item
e11f1516fc xfs: merge the ->diff_items defer op into ->create_intent
e84096edf8 xfs: merge the ->log_item defer op into ->create_intent
64b21eaa33 xfs: factor out a xfs_defer_create_intent helper
d24633f3c2 xfs: remove the xfs_inode_log_item_t typedef
e0373eeaaa xfs: remove the xfs_efd_log_item_t typedef
94e0639992 xfs: remove the xfs_efi_log_item_t typedef
83ef55c428 netfilter: nft_tproxy: restrict to prerouting hook
b6ac5e6be5 btrfs: free device in btrfs_close_devices for a single device filesystem
4326d0080f aio: fix mremap after fork null-deref
62b19b9f3a nvme-fc: fix a missing queue put in nvmet_fc_ls_create_association
16409f7d9c s390/decompressor: specify __decompress() buf len to avoid overflow
fbe71c5dac net: sched: sch: Bounds check priority
09561d5e6a net: stmmac: do not stop RX_CLK in Rx LPI state for qcs404 SoC
a74d3b0ea9 net/rose: Fix to not accept on connected socket
ec54c946b4 tools/virtio: fix the vringh test for virtio ring changes
6644685f79 ASoC: cs42l56: fix DT probe
d23b66b16e selftests/bpf: Verify copy_register_state() preserves parent/live fields
a94695e0f9 migrate: hugetlb: check for hugetlb shared PMD in node migration
bcd34f1eea bpf: Always return target ifindex in bpf_fib_lookup
776f2ccfdc nvme-pci: Move enumeration by class to be last in the table
5c86809882 arm64: dts: meson-axg: Make mmc host controller interrupts level-sensitive
4b97dab7cd arm64: dts: meson-g12-common: Make mmc host controller interrupts level-sensitive
f0302e98ed arm64: dts: meson-gx: Make mmc host controller interrupts level-sensitive
1509e93916 riscv: Fixup race condition on PG_dcache_clean in flush_icache_pte
bb3187311e ceph: flush cap releases when the session is flushed
9b5d37d328 usb: typec: altmodes/displayport: Fix probe pin assign check
d9758f7deb usb: core: add quirk for Alcor Link AK9563 smartcard reader
43379fcace net: USB: Fix wrong-direction WARNING in plusb.c
1bcb431237 pinctrl: intel: Restore the pins that used to be in Direct IRQ mode
2b763f7de1 pinctrl: single: fix potential NULL dereference
cc1affa234 pinctrl: aspeed: Fix confusing types in return value
f209431be1 ALSA: pci: lx6464es: fix a debug loop
1aab663ecb selftests: forwarding: lib: quote the sysctl values
ba38eacade rds: rds_rm_zerocopy_callback() use list_first_entry()
87a5e3fc84 ice: Do not use WQ_MEM_RECLAIM flag for workqueue
f312958f58 ionic: clean interrupt before enabling queue to avoid credit race
a532f7ebf9 net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY
73b8e217fe bonding: fix error checking in bond_debug_reregister()
c89ddf134c xfrm: fix bug with DSCP copy to v6 from v4 tunnel
80282a3d10 RDMA/usnic: use iommu_map_atomic() under spin_lock()
fe4d708668 iommu: Add gfp parameter to iommu_ops::map
4a779187db IB/IPoIB: Fix legacy IPoIB due to wrong number of queues
7896accedf IB/hfi1: Restore allocated resources on failed copyout
ae774f480d can: j1939: do not wait 250 ms if the same addr was already claimed
56ee31167c tracing: Fix poll() and select() do not work on per_cpu trace_pipe and trace_pipe_raw
039f935ae0 ALSA: emux: Avoid potential array out-of-bound in snd_emux_xg_control()
7e43bb69bc btrfs: zlib: zero-initialize zlib workspace
ed29d8b309 btrfs: limit device extents to the device size
9f296c615e iio:adc:twl6030: Enable measurement of VAC
9cf5e99c1a wifi: brcmfmac: Check the count value of channel spec to prevent out-of-bounds reads
e5142a4935 f2fs: fix to do sanity check on i_extra_isize in is_alive()
3b3d3127f5 fbdev: smscufx: fix error handling code in ufx_usb_probe
8edda487f0 powerpc/imc-pmu: Revert nest_init_lock to being a mutex
fc8548c75c serial: 8250_dma: Fix DMA Rx rearm race
71d6b277c4 serial: 8250_dma: Fix DMA Rx completion race
ec5b4ca3d3 xprtrdma: Fix regbuf data not freed in rpcrdma_req_create()
5af2f74f90 mm: swap: properly update readahead statistics in unuse_pte_range()
ce62df33fc nvmem: core: fix cell removal on error
1369322c1d Squashfs: fix handling and sanity checking of xattr_ids count
d49c85a191 mm/swapfile: add cond_resched() in get_swap_pages()
c127bf9a95 fpga: stratix10-soc: Fix return value check in s10_ops_write_init()
6d86b4ceb0 mm: hugetlb: proc: check for hugetlb shared PMD in /proc/PID/smaps
845a3708f0 riscv: disable generation of unwind tables
c89af52d91 parisc: Wire up PTRACE_GETREGS/PTRACE_SETREGS for compat case
8e6cc45ba8 parisc: Fix return code of pdc_iodc_print()
7f5df45fcb iio:adc:twl6030: Enable measurements of VUSB, VBAT and others
4b82cc9f7f iio: adc: berlin2-adc: Add missing of_node_put() in error path
a300e358c6 iio: hid: fix the retval in accel_3d_capture_sample
2035cfb958 efi: Accept version 2 of memory attributes table
f6ea834e8d watchdog: diag288_wdt: fix __diag288() inline assembly
78e55b52b2 watchdog: diag288_wdt: do not use stack buffers for hardware data
4abcd352a0 fbcon: Check font dimension limits
e00d6a74c3 Input: i8042 - add Clevo PCX0DX to i8042 quirk table
faed5af8a9 Input: i8042 - add TUXEDO devices to i8042 quirk tables
ee77a19ee5 Input: i8042 - merge quirk tables
a789c05516 Input: i8042 - move __initconst to fix code styling warning
d0332cbf53 vc_screen: move load of struct vc_data pointer in vcs_read() to avoid UAF
5bf0010b87 usb: gadget: f_fs: Fix unbalanced spinlock in __ffs_ep0_queue_wait
db3798943a usb: dwc3: qcom: enable vbus override when in OTG dr-mode
fefffc7825 usb: dwc3: dwc3-qcom: Fix typo in the dwc3 vbus override API
e4650c04de iio: adc: stm32-dfsdm: fill module aliases
165511b99e net/x25: Fix to not accept on connected socket
b05664e036 i2c: rk3x: fix a bunch of kernel-doc warnings
d4d765f476 scsi: iscsi_tcp: Fix UAF during login when accessing the shost ipaddress
6122ce1de1 scsi: target: core: Fix warning on RT kernels
d92a25627b efi: fix potential NULL deref in efi_mem_reserve_persistent
ed6c5e8caf net: openvswitch: fix flow memory leak in ovs_flow_cmd_new
743f7b51fe virtio-net: Keep stop() to follow mirror sequence of open()
aed972fbf6 selftests: net: udpgso_bench_tx: Cater for pending datagrams zerocopy benchmarking
df1213a267 selftests: net: udpgso_bench: Fix racing bug between the rx/tx programs
6c70ece3d3 selftests: net: udpgso_bench_rx/tx: Stop when wrong CLI args are provided
d47f886d0c selftests: net: udpgso_bench_rx: Fix 'used uninitialized' compiler warning
db3f016ad5 ata: libata: Fix sata_down_spd_limit() when no link speed is reported
6950df42a0 can: j1939: fix errant WARN_ON_ONCE in j1939_session_deactivate
cb079b0770 net: phy: meson-gxl: Add generic dummy stubs for MMD register access
db76fc535f squashfs: harden sanity check in squashfs_read_xattr_id_table
dffe83a198 netfilter: br_netfilter: disable sabotage_in hook after first suppression
20355b9569 netrom: Fix use-after-free caused by accept on already connected socket
03eb2a1b03 fix "direction" argument of iov_iter_kvec()
34b0fab797 fix iov_iter_bvec() "direction" argument
50b70599c0 WRITE is "data source", not destination...
21081886de scsi: Revert "scsi: core: map PQ=1, PDT=other values to SCSI_SCAN_TARGET_PRESENT"
14be8b0c4e arm64: dts: imx8mm: Fix pad control for UART1_DTE_RX
d6870f3800 ALSA: hda/via: Avoid potential array out-of-bound in add_secret_dac_path()
412fddc096 ASoC: Intel: bytcr_rt5651: Drop reference count of ACPI device after use
79dfde344e bus: sunxi-rsb: Fix error handling in sunxi_rsb_init()
53785fd9b3 firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region
e367c7b762 Merge 5.4.231 into android11-5.4-lts
59342376e8 Linux 5.4.231
268d595d4d Revert "xprtrdma: Fix regbuf data not freed in rpcrdma_req_create()"
6c24a20223 usb: host: xhci-plat: add wakeup entry at sysfs
1c1291a84e Bluetooth: fix null ptr deref on hci_sync_conn_complete_evt
af51fc23a0 ipv6: ensure sane device mtu in tunnels
a7cc1b5d76 exit: Use READ_ONCE() for all oops/warn limit reads
eb768617da docs: Fix path paste-o for /sys/kernel/warn_count
6f18d28c26 panic: Expose "warn_count" to sysfs
7c1273646f panic: Introduce warn_limit
51538bdde3 panic: Consolidate open-coded panic_on_warn checks
7020a9234e exit: Allow oops_limit to be disabled
5a3482f2c1 exit: Expose "oops_count" to sysfs
28facdf7b0 exit: Put an upper limit on how often we can oops
3fa431bac2 ia64: make IA64_MCA_RECOVERY bool instead of tristate
86926761ca csky: Fix function name in csky_alignment() and die()
3bf1fa2c7b h8300: Fix build errors from do_exit() to make_task_dead() transition
fcae924b94 hexagon: Fix function name in die()
49a128ae28 objtool: Add a missing comma to avoid string concatenation
9a18c9c833 exit: Add and use make_task_dead.
2f87e25512 mm: kasan: do not panic if both panic_on_warn and kasan_multishot set
119f6bcef7 panic: unset panic_on_warn inside panic()
f6c20ed17e sysctl: add a new register_sysctl_init() interface
dbe634ce82 dmaengine: imx-sdma: Fix a possible memory leak in sdma_transfer_init
1986cd616b blk-cgroup: fix missing pd_online_fn() while activating policy
4923160393 bpf: Skip task with pid=1 in send_signal_common()
bd393f0ad5 ARM: dts: imx: Fix pca9547 i2c-mux node name
8667280a67 x86/asm: Fix an assembler warning with current binutils
1a5119369a clk: Fix pointer casting to prevent oops in devm_clk_release()
fbf7b0e4ce perf/x86/amd: fix potential integer overflow on shift of a int
f571e34005 netfilter: conntrack: unify established states for SCTP paths
8770cd9d7c x86/i8259: Mark legacy PIC interrupts with IRQ_LEVEL
4d1757f9fe block: fix and cleanup bio_check_ro
3a10a4d5d0 nfsd: Ensure knfsd shuts down when the "nfsd" pseudofs is unmounted
5246266958 Revert "Input: synaptics - switch touchpad on HP Laptop 15-da3001TU to RMI mode"
f7a5644129 net: mdio-mux-meson-g12a: force internal PHY off on mux switch
2635c4fd91 net: xgene: Move shared header file into include/linux
a70b966c6c net/phy/mdio-i2c: Move header file to include/linux/mdio
a9a022a0db net/tg3: resolve deadlock in tg3_reset_task() during EEH
92a65b0f20 thermal: intel: int340x: Add locking to int340x_thermal_get_trip_type()
e249cea3ab net: ravb: Fix possible hang if RIS2_QFF1 happen
a7585028ac sctp: fail if no bound addresses can be used for a given scope
dae05cd371 net/sched: sch_taprio: do not schedule in taprio_reset()
fe9b9e621c netrom: Fix use-after-free of a listening socket.
67ac3b4cd5 netfilter: conntrack: fix vtag checks for ABORT/SHUTDOWN_COMPLETE
8f0eb24f1a ipv4: prevent potential spectre v1 gadget in fib_metrics_match()
746db9ec1e ipv4: prevent potential spectre v1 gadget in ip_metrics_convert()
4cde1d2f16 netlink: annotate data races around sk_state
c64bb85471 netlink: annotate data races around dst_portid and dst_group
ea11a52f55 netlink: annotate data races around nlk->portid
cfdd81ae47 netfilter: nft_set_rbtree: skip elements in transaction from garbage collection
ddd49cbbd4 net: fix UaF in netns ops registration error path
3e5082b1c6 netlink: prevent potential spectre v1 gadgets
66e10d5f39 EDAC/qcom: Do not pass llcc_driv_data as edac_device_ctl_info's pvt_info
594618c701 EDAC/device: Respect any driver-supplied workqueue polling value
a536d87ec7 ARM: 9280/1: mm: fix warning on phys_addr_t to void pointer assignment
768e8cdf93 thermal: intel: int340x: Protect trip temperature from concurrent updates
aa33d334bd KVM: x86/vmx: Do not skip segment attributes if unusable bit is set
91be54849d cifs: Fix oops due to uncleared server->smbd_conn in reconnect
bcb65adaa9 ftrace/scripts: Update the instructions for ftrace-bisect.sh
31b2414abe trace_events_hist: add check for return value of 'create_hist_field'
76b2390fdc tracing: Make sure trace_printk() can output as soon as it can be used
4a4a22dda0 module: Don't wait for GOING modules
1cd70d8427 scsi: hpsa: Fix allocation size for scsi_host_alloc()
4d55f918e1 Bluetooth: hci_sync: cancel cmd_timer if hci_open failed
e588a5872d Revert "Revert "xhci: Set HCD flag to defer primary roothub registration""
8eb5a68064 fs: reiserfs: remove useless new_opts in reiserfs_remount
a61bc9197d netfilter: conntrack: do not renew entry stuck in tcp SYN_SENT state
d39117d779 Revert "selftests/bpf: check null propagation only neither reg is PTR_TO_BTF_ID"
b4253b47bf mmc: sdhci-esdhc-imx: correct the tuning start tap and step setting
14b70b4b4a mmc: sdhci-esdhc-imx: disable the CMD CRC check for standard tuning
7e66f28ce5 mmc: sdhci-esdhc-imx: clear pending interrupt and halt cqhci
a58c144b9e lockref: stop doing cpu_relax in the cmpxchg loop
d6ff82a4d7 platform/x86: asus-nb-wmi: Add alternate mapping for KEY_SCREENLOCK
295690bb05 platform/x86: touchscreen_dmi: Add info for the CSL Panther Tab HD
890d850cb2 scsi: hisi_sas: Set a port invalid only if there are no devices attached when refreshing port id
45b3fc9cc6 KVM: s390: interrupt: use READ_ONCE() before cmpxchg()
dc0867c447 spi: spidev: remove debug messages that access spidev->spi without locking
0dfd34fb45 ASoC: fsl-asoc-card: Fix naming of AC'97 CODEC widgets
9e02118045 ASoC: fsl_ssi: Rename AC'97 streams to avoid collisions with AC'97 CODEC
3163f4ed49 cpufreq: armada-37xx: stop using 0 as NULL pointer
1ec79234c2 s390/debug: add _ASM_S390_ prefix to header guard
1869922405 drm: Add orientation quirk for Lenovo ideapad D330-10IGL
aff2bc5784 ASoC: fsl_micfil: Correct the number of steps on SX controls
1c587aa6cd cpufreq: Add Tegra234 to cpufreq-dt-platdev blocklist
8cca0afcce tcp: fix rate_app_limited to default to 1
11a4d51a4f net: dsa: microchip: ksz9477: port map correction in ALU table entry register
02a4a7dc90 driver core: Fix test_async_probe_init saves device in wrong array
276052159b w1: fix WARNING after calling w1_process()
82867190ce w1: fix deadloop in __w1_remove_master_device()
c9ada35340 tcp: avoid the lookup process failing to get sk in ehash table
e963b33723 dmaengine: xilinx_dma: call of_node_put() when breaking out of for_each_child_of_node()
9b4482267e dmaengine: xilinx_dma: Fix devm_platform_ioremap_resource error handling
fe39e74a64 dmaengine: xilinx_dma: use devm_platform_ioremap_resource()
d3065cc562 HID: betop: check shape of output reports
d16b83c804 net: macb: fix PTP TX timestamp failure due to packet padding
18dd3b30d4 dmaengine: Fix double increment of client_count in dma_chan_get()
cbed756bd1 drm/panfrost: fix GENERIC_ATOMIC64 dependency
914c58fec1 net: mlx5: eliminate anonymous module_init & module_exit
7335ba0c03 usb: gadget: f_fs: Ensure ep0req is dequeued before free_request
a8d40942df usb: gadget: f_fs: Prevent race during ffs_ep0_queue_wait
edec50677b HID: revert CHERRY_MOUSE_000C quirk
efa29f4ba0 net: stmmac: fix invalid call to mdiobus_get_phy()
8c3653c4e7 HID: check empty report_list in bigben_probe()
89e7fe3999 HID: check empty report_list in hid_validate_values()
8a7b9560a3 net: mdio: validate parameter addr in mdiobus_get_phy()
ce1e79bf31 net: usb: sr9700: Handle negative len
4fd6a6b101 l2tp: Don't sleep and disable BH under writer-side sk_callback_lock
7188c37f3c l2tp: Serialize access to sk_user_data with sk_callback_lock
24c7614d31 net: fix a concurrency bug in l2tp_tunnel_register()
1200388a0b net/sched: sch_taprio: fix possible use-after-free
9042a9a3f2 wifi: rndis_wlan: Prevent buffer overflow in rndis_query_oid
de0e084f85 gpio: mxc: Always set GPIOs used as interrupt source to INPUT mode
8df414fce4 net: wan: Add checks for NULL for utdm in undo_uhdlc_init and unmap_si_regs
a59cdbda37 net: nfc: Fix use-after-free in local_cleanup()
2a05d513d2 phy: rockchip-inno-usb2: Fix missing clk_disable_unprepare() in rockchip_usb2phy_power_on()
81b3374944 bpf: Fix pointer-leak due to insufficient speculative store bypass mitigation
8b35c7f692 amd-xgbe: Delay AN timeout during KR training
b85e0bb478 amd-xgbe: TX Flow Ctrl Registers are h/w ver dependent
3d41f4eeab affs: initialize fsdata in affs_truncate()
03965f8ad2 IB/hfi1: Fix expected receive setup error exit issues
f5c918dc4e IB/hfi1: Reserve user expected TIDs
d307c75f43 IB/hfi1: Reject a zero-length user expected buffer
902063a9fe RDMA/core: Fix ib block iterator counter overflow
048c17b619 tomoyo: fix broken dependency on *.conf.default
8d23f5d252 EDAC/highbank: Fix memory leak in highbank_mc_probe()
97445814ef HID: intel_ish-hid: Add check for ishtp_dma_tx_map
4be51ea91a ARM: imx: add missing of_node_put()
12a763015b ARM: imx35: Retrieve the IIM base address from devicetree
3b76bc1598 ARM: imx31: Retrieve the IIM base address from devicetree
61669e6dec ARM: imx27: Retrieve the SYSCTRL base address from devicetree
d4e913bad2 ARM: dts: imx6qdl-gw560x: Remove incorrect 'uart-has-rtscts'
6d7f384268 memory: mvebu-devbus: Fix missing clk_disable_unprepare in mvebu_devbus_probe()
8959188b2f memory: atmel-sdramc: Fix missing clk_disable_unprepare in atmel_ramc_probe()
310268050d clk: Provide new devm_clk helpers for prepared and enabled clocks
c7ef7185a1 clk: generalize devm_clk_get() a bit
46d9b30a0c Merge changes  into android11-5.4-lts
cc162d31ce Merge branch 'android11-5.4' into android11-5.4-lts
bc37d9c8b3 Merge 5.4.230 into android11-5.4-lts
90245959a5 Linux 5.4.230
29487eed37 mm/khugepaged: fix collapse_pte_mapped_thp() to allow anon_vma
7242fc8c2f x86/fpu: Use _Alignof to avoid undefined behavior in TYPE_ALIGN
2b1375fac0 drm/amd/display: Fix COLOR_SPACE_YCBCR2020_TYPE matrix
763a74e1de drm/amd/display: Fix set scaling doesn's work
39e0844a1e drm/i915: re-disable RC6p on Sandy Bridge
ffef77794f gsmi: fix null-deref in gsmi_get_variable
b4461af0a5 serial: atmel: fix incorrect baudrate setup
55f9aca283 dmaengine: tegra210-adma: fix global intr clear
5d99369685 serial: pch_uart: Pass correct sg to dma_unmap_sg()
97697a252b dt-bindings: phy: g12a-usb3-pcie-phy: fix compatible string documentation
aa1b22daa0 usb-storage: apply IGNORE_UAS only for HIKSEMI MD202 on RTL9210
a21da7f7aa usb: gadget: f_ncm: fix potential NULL ptr deref in ncm_bitrate()
83b0aac55d usb: gadget: g_webcam: Send color matching descriptor per frame
004fbb049b usb: typec: altmodes/displayport: Fix pin assignment calculation
a1478ef59b usb: typec: altmodes/displayport: Add pin assignment helper
040e0d1281 usb: host: ehci-fsl: Fix module alias
8d5740ad8f USB: serial: cp210x: add SCALANCE LPE-9000 device id
9a39f4626b USB: gadgetfs: Fix race between mounting and unmounting
1bc1fdd73f cifs: do not include page data when checking signature
89ac597e3e btrfs: fix race between quota rescan and disable leading to NULL pointer deref
61cad0c61c mmc: sunxi-mmc: Fix clock refcount imbalance during unbind
4f96ae71d3 comedi: adv_pci1760: Fix PWM instruction handling
f11a689164 usb: core: hub: disable autosuspend for TI TUSB8041
556dfdb226 misc: fastrpc: Fix use-after-free race condition for maps
4b5c44e924 misc: fastrpc: Don't remove map on creater_process and device_release
04eb41ec96 USB: misc: iowarrior: fix up header size for USB_DEVICE_ID_CODEMERCS_IOW100
7ebb3ecab1 USB: serial: option: add Quectel EM05CN modem
32165699a0 USB: serial: option: add Quectel EM05CN (SG) modem
81affe3b46 USB: serial: option: add Quectel EC200U modem
a7c19d94b8 USB: serial: option: add Quectel EM05-G (RS) modem
5966eda550 USB: serial: option: add Quectel EM05-G (CS) modem
eece7a6c97 USB: serial: option: add Quectel EM05-G (GR) modem
96b02125dd prlimit: do_prlimit needs to have a speculation check
afcb4e0ab8 xhci: Detect lpm incapable xHC USB3 roothub ports from ACPI tables
84e2e57769 usb: acpi: add helper to check port lpm capability using acpi _DSM
8a6e963bf2 xhci: Add a flag to disable USB3 lpm on a xhci root port level.
cf6e5d3c2d xhci: Add update_hub_device override for PCI xHCI hosts
133b902378 xhci: Fix null pointer dereference when host dies
9891e5c73c usb: xhci: Check endpoint is valid before dereferencing it
643f7da782 xhci-pci: set the dma max_seg_size
890792b579 ALSA: hda/realtek - Turn on power early
e60730280b drm/i915/gt: Reset twice
2e3e2649ea efi: fix userspace infinite retry read efivars after EFI runtime services page fault
b0ba060d32 nilfs2: fix general protection fault in nilfs_btree_insert()
53dd833fd0 Add exception protection processing for vd in axi_chan_handle_err function
33a4d05138 wifi: brcmfmac: fix regression for Broadcom PCIe wifi devices
557e85ff9a f2fs: let's avoid panic if extent_tree is not created
7165dd4c3b RDMA/srp: Move large values to a new enum for gcc13
19304ffb7b net/ethtool/ioctl: return -EOPNOTSUPP if we have no phy stats
4de1a5af1b selftests/bpf: check null propagation only neither reg is PTR_TO_BTF_ID
a869f7b054 pNFS/filelayout: Fix coalescing test for single DS
931c2a07ff Revert "net: add atomic_long_t to net_device_stats fields"
b1330360db Revert "PM/devfreq: governor: Add a private governor_data for governor"
68fdd20442 Merge 5.4.229 into android11-5.4-lts
1349fe3a33 Linux 5.4.229
68a37dc77e tipc: call tipc_lxc_xmit without holding node_read_lock
1140c3f7ad ocfs2: fix freeing uninitialized resource on ocfs2_dlm_shutdown
2db88851fa tipc: Add a missing case of TIPC_DIRECT_MSG type
38b5d7054d tty: serial: tegra: Handle RX transfer in PIO mode if DMA wasn't started
3188f80b80 tipc: fix use-after-free in tipc_disc_rcv()
3eeb06132d Revert "usb: ulpi: defer ulpi_register on ulpi_read_id timeout"
ecd47ffc99 mm: Always release pages to the buddy allocator in memblock_free_late().
5fcf75a8a4 efi: fix NULL-deref in init error path
b30e5dd077 arm64: cmpxchg_double*: hazard against entire exchange variable
ecdd65051b arm64: atomics: remove LL/SC trampolines
f840000928 arm64: atomics: format whitespace consistently
d01d6d2b06 drm/virtio: Fix GEM handle creation UAF
3030f11f27 x86/resctrl: Fix task CLOSID/RMID update race
22c4eeafc3 x86/resctrl: Use task_curr() instead of task_struct->on_cpu to prevent unnecessary IPI
b3f9242467 iommu/mediatek-v1: Fix an error handling path in mtk_iommu_v1_probe()
ecfe33e075 iommu/mediatek-v1: Add error handle for mtk_iommu_probe
ec049ae2b4 net/mlx5: Fix ptp max frequency adjustment range
62d707dabb net/mlx5: Rename ptp clock info
2b157c3c5d net/sched: act_mpls: Fix warning during failed attribute validation
9424d2205f nfc: pn533: Wait for out_urb's completion in pn533_usb_send_frame()
576eadef2c hvc/xen: lock console list traversal
7d04fe153d tipc: fix unexpected link reset due to discovery messages
95b2d4889f tipc: eliminate checking netns if node established
d6418829ce tipc: improve throughput between nodes in netns
d443308edb regulator: da9211: Use irq handler when ready
43f48e6c30 EDAC/device: Fix period calculation in edac_device_reset_delay_period()
a5b737623e x86/boot: Avoid using Intel mnemonics in AT&T syntax asm
d0c6d2a310 powerpc/imc-pmu: Fix use of mutex in IRQs disabled section
feefb33eef netfilter: ipset: Fix overflow before widen in the bitmap_ip_create() function.
e431b4fb1f ext4: fix uninititialized value in 'ext4_evict_inode'
026a4490b5 ext4: fix use-after-free in ext4_orphan_cleanup
fa41a133ea ext4: lost matching-pair of trace in ext4_truncate
1d5524832f ext4: fix bug_on in __es_tree_search caused by bad quota inode
3da22d06e0 quota: Factor out setup of quota inode
ecb9d0d2e1 jbd2: use the correct print format
06bb3f4e3b usb: ulpi: defer ulpi_register on ulpi_read_id timeout
a2689a4464 wifi: wilc1000: sdio: fix module autoloading
3998dba0f7 ipv6: raw: Deduct extension header length in rawv6_push_pending_frames
53cefa802f ixgbe: fix pci device refcount leak
e0d6f3b62b platform/x86: sony-laptop: Don't turn off 0x153 keyboard backlight during probe
1ad759df6a drm/msm/adreno: Make adreno quirks not overwrite each other
098416c4e3 cifs: Fix uninitialized memory read for smb311 posix symlink create
d6546426cd ALSA: hda/hdmi: Add a HP device 0x8715 to force connect list
eaa5580a74 ALSA: pcm: Move rwsem lock inside snd_ctl_elem_read to prevent UAF
c6d29a5ffd net/ulp: prevent ULP without clone op from entering the LISTEN status
b318d41f1b s390/percpu: add READ_ONCE() to arch_this_cpu_to_op_simple()
f6da927c92 s390/kexec: fix ipl report address for kdump
4bf6e11c34 perf auxtrace: Fix address filter duplicate symbol selection
2e4164d3d1 docs: Fix the docs build with Sphinx 6.0
3ed183074c efi: tpm: Avoid READ_ONCE() for accessing the event log
3ad31129ce KVM: arm64: Fix S1PTW handling on RO memslots
9b83ec63d0 net: sched: disallow noqueue for qdisc classes
aa52acefc6 driver core: Fix bus_type.match() error handling in __driver_attach()
8d60a90560 selftests: set the BUILD variable to absolute path
cad6d2bb47 selftests: Fix kselftest O=objdir build from cluttering top level objdir
320dbbd86f parisc: Align parisc MADV_XXX constants with all other architectures
d868597b71 mbcache: Avoid nesting of cache->c_list_lock under bit locks
da23752d96 hfs/hfsplus: avoid WARN_ON() for sanity check, use proper error handling
781fa14141 hfs/hfsplus: use WARN_ON for sanity check
b47c690109 ext4: don't allow journal inode to have encrypt flag
1464feb5b6 riscv: uaccess: fix type of 0 variable on error in get_user()
da41069c61 nfsd: fix handling of readdir in v4root vs. mount upcall timeout
8cbd7f2643 x86/bugs: Flush IBP in ib_prctl_set()
ba780bff9f ASoC: Intel: bytcr_rt5640: Add quirk for the Advantech MICA-071 tablet
e66ae100e7 udf: Fix extension of the last extent in the file
33df9c5d5e caif: fix memory leak in cfctrl_linkup_request()
3cb1ee82e4 drm/i915: unpin on error in intel_vgpu_shadow_mm_pin()
ebe6d2fcf7 usb: rndis_host: Secure rndis_query check against int overflow
a07b4895b9 drivers/net/bonding/bond_3ad: return when there's no aggregator
2f7a09c1ee perf tools: Fix resources leak in perf_data__open_dir()
6b17b84634 net: sched: cbq: dont intepret cls results when asked to drop
63e469cb54 net: sched: atm: dont intepret cls results when asked to drop
d16e5fefd8 RDMA/mlx5: Fix validation of max_rd_atomic caps for DC
564fdc2f8b RDMA/uverbs: Silence shiftTooManyBitsSigned warning
00616bd191 net: phy: xgmiitorgmii: Fix refcount leak in xgmiitorgmii_probe
904ad95b39 net: amd-xgbe: add missed tasklet_kill
a15cbe9b84 vhost: fix range used in translate_desc()
d8e410315a nfc: Fix potential resource leaks
8f97eeb02a qlcnic: prevent ->dcb use-after-free on qlcnic_dcb_enable() failure
55ac68b53f net: sched: fix memory leak in tcindex_set_parms
b6a0623f75 net: hns3: add interrupts re-initialization while doing VF FLR
f9c551d874 nfsd: shut down the NFSv4 state objects before the filecache
7eaaee5268 bpf: pull before calling skb_postpull_rcsum()
1d449cd240 SUNRPC: ensure the matching upcall is in-flight upon downcall
af53065276 ext4: fix deadlock due to mbcache entry corruption
711ef736dd mbcache: automatically delete entries from cache on freeing
af8ecc8d20 ext4: fix race when reusing xattr blocks
ea4b9091aa ext4: unindent codeblock in ext4_xattr_block_set()
a5f9bd4bea ext4: remove EA inode entry from mbcache on inode eviction
951ea4d3df mbcache: add functions to delete entry if unused
81b0bb1eb2 mbcache: don't reclaim used entries
c2f1e12b65 ext4: use kmemdup() to replace kmalloc + memcpy
6453836e37 fs: ext4: initialize fsdata in pagecache_write()
1af609646c ext4: use memcpy_to_page() in pagecache_write()
49dac5e017 mm/highmem: Lift memcpy_[to|from]_page to core
f44dcd9dce ext4: correct inconsistent error msg in nojournal mode
b02aa6a05a ext4: goto right label 'failed_mount3a'
e0fce1d665 ravb: Fix "failed to switch device to config mode" message during unbind
0ebcfdc8c9 KVM: nVMX: Properly expose ENABLE_USR_WAIT_PAUSE control to L1
e723bafd8f KVM: VMX: Fix the spelling of CPU_BASED_USE_TSC_OFFSETTING
7290669045 KVM: VMX: Rename NMI_PENDING to NMI_WINDOW
da8ff59210 KVM: VMX: Rename INTERRUPT_PENDING to INTERRUPT_WINDOW
db99c8d6b7 KVM: retpolines: x86: eliminate retpoline from vmx.c exit handlers
2c82f134b9 KVM: x86: optimize more exit handlers in vmx.c
6e3f6d9562 perf probe: Fix to get the DW_AT_decl_file and DW_AT_call_file as unsinged data
fc67c00def perf probe: Use dwarf_attr_integrate as generic DWARF attr accessor
d06a7e2049 dm thin: resume even if in FAIL mode
28cdd90c26 media: s5p-mfc: Fix in register read and write for H264
640075400c media: s5p-mfc: Clear workbit to handle error condition
4a52a1a3ea media: s5p-mfc: Fix to handle reference queue during finishing
b9275d8a92 PM/devfreq: governor: Add a private governor_data for governor
839f3ca8bc btrfs: replace strncpy() with strscpy()
b5db135457 ext4: allocate extended attribute value in vmalloc area
6ef8b0a743 ext4: avoid unaccounted block allocation when expanding inode
b14a553b0f ext4: initialize quota before expanding inode in setproject ioctl
9ef603086c ext4: fix inode leak in ext4_xattr_inode_create() on an error path
7138ef745e ext4: avoid BUG_ON when creating xattrs
4d84ec8e5c ext4: fix error code return to user-space in ext4_get_branch()
a4c3c1d57d ext4: fix corruption when online resizing a 1K bigalloc fs
6f4200ec76 ext4: fix delayed allocation bug in ext4_clu_mapped for bigalloc + inline
f263e349ba ext4: init quota for 'old.inode' in 'ext4_rename'
78e335fb57 ext4: fix bug_on in __es_tree_search caused by bad boot loader inode
362ce137d5 ext4: fix reserved cluster accounting in __es_remove_extent()
e1d946d9c8 ext4: add helper to check quota inums
2142dfa1de ext4: add EXT4_IGET_BAD flag to prevent unexpected bad inode
4690a4bdcf ext4: fix undefined behavior in bit shift for ext4_check_flag_values
e347c269b5 ext4: add inode table check in __ext4_get_inode_loc to aovid possible infinite loop
94b283341f drm/vmwgfx: Validate the box size for the snooped cursor
eea62f0461 drm/connector: send hotplug uevent on connector cleanup
fbfd6dee52 device_cgroup: Roll back to original exceptions after copy failure
5e4500454d parisc: led: Fix potential null-ptr-deref in start_task()
662dc7c6be iommu/amd: Fix ivrs_acpihid cmdline parsing code
93e919d9ac crypto: n2 - add missing hash statesize
a5866d531b PCI/sysfs: Fix double free in error path
65bd096299 PCI: Fix pci_device_is_present() for VFs by checking PF
d23006f2a5 ipmi: fix use after free in _ipmi_destroy_user()
cf19abbe4b ima: Fix a potential NULL pointer access in ima_restore_measurement_list
b163363535 mtd: spi-nor: Check for zero erase size in spi_nor_find_best_erase_type()
74531c23ad ipmi: fix long wait in unload when IPMI disconnect
d4f48c648a efi: Add iMac Pro 2017 to uefi skip cert quirk
2c4832a089 md/bitmap: Fix bitmap chunk size overflow issues
b869cb7a3d cifs: fix missing display of three mount options
149babe5e0 cifs: fix confusing debug message
a29d621309 media: dvb-core: Fix UAF due to refcount races at releasing
b21f62b49e media: dvb-core: Fix double free in dvb_register_device()
50c2379f87 ARM: 9256/1: NWFPE: avoid compiler-generated __aeabi_uldivmod
c42cb66a89 tracing: Fix infinite loop in tracing_read_pipe on overflowed print_trace_line
cb03fc217b tracing/hist: Fix wrong return value in parse_action_params()
f5489d5a24 x86/microcode/intel: Do not retry microcode reloading on the APs
cf79d5410a tracing/hist: Fix out-of-bound write on 'action_data.var_ref_idx'
1a5165e80a dm cache: set needs_check flag after aborting metadata
2f097dfac7 dm cache: Fix UAF in destroy()
520b56cfd9 dm clone: Fix UAF in clone_dtr()
792e51aac3 dm integrity: Fix UAF in dm_integrity_dtr()
7ae6aa6493 dm thin: Fix UAF in run_timer_softirq()
f758987ff0 dm thin: Use last transaction's pmd->root when commit failed
200aa33b5d dm thin: Fix ABBA deadlock between shrink_slab and dm_pool_abort_metadata
f472bfc95d dm cache: Fix ABBA deadlock between shrink_slab and dm_cache_metadata_abort
52ba5b87a3 binfmt: Fix error return code in load_elf_fdpic_binary()
33933af45d binfmt: Move install_exec_creds after setup_new_exec to match binfmt_elf
3cdd91a916 cpufreq: Init completion before kobject_init_and_add()
6ccb116e6b selftests: Use optional USERCFLAGS and USERLDFLAGS
2b8f2e127d arm64: dts: qcom: sdm850-lenovo-yoga-c630: correct I2C12 pins drive strength
b22d683c90 ARM: ux500: do not directly dereference __iomem
c59ee1528b btrfs: fix resolving backrefs for inline extent followed by prealloc
e63e1c6793 mmc: sdhci-sprd: Disable CLK_AUTO when the clock is less than 400K
3de2c36283 ktest.pl minconfig: Unset configs instead of just removing them
d10523afa8 kest.pl: Fix grub2 menu handling for rebooting
d089baa5b6 soc: qcom: Select REMAP_MMIO for LLCC driver
bcce46e115 media: stv0288: use explicitly signed char
de2ea2a0ad net/af_packet: make sure to pull mac header
ad3f90a9c4 net/af_packet: add VLAN support for AF_PACKET SOCK_RAW GSO
aa91afe597 SUNRPC: Don't leak netobj memory when gss_read_proxy_verf() fails
e027f3b9fa tpm: tpm_tis: Add the missed acpi_put_table() to fix memory leak
927860dfa1 tpm: tpm_crb: Add the missed acpi_put_table() to fix memory leak
f1c08947ab mmc: vub300: fix warning - do not call blocking ops when !TASK_RUNNING
f4b5a27f56 f2fs: should put a page when checking the summary info
f02d2e2b9b mm, compaction: fix fast_isolate_around() to stay within boundaries
384ef33d37 md: fix a crash in mempool_free
2dae4211b5 pnode: terminate at peers of source
25e8c6ecb4 ALSA: line6: fix stack overflow in line6_midi_transmit
10a07d81f6 ALSA: line6: correct midi status byte when receiving data from podxt
0e727c328e ovl: Use ovl mounter's fsuid and fsgid in ovl_link()
cae6dddef2 hfsplus: fix bug causing custom uid and gid being unable to be assigned with mount
fe83242eab HID: plantronics: Additional PIDs for double volume key presses quirk
b201fe49ee HID: multitouch: fix Asus ExpertBook P2 P2451FA trackpoint
515959eb49 powerpc/rtas: avoid scheduling in rtas_os_term()
c2fa91abf2 powerpc/rtas: avoid device tree lookups in rtas_os_term()
418ef921cc objtool: Fix SEGFAULT
28046827c3 nvme: fix the NVME_CMD_EFFECTS_CSE_MASK definition
24561f5d09 nvme: resync include/linux/nvme.h with nvmecli
e69e8d7867 ata: ahci: Fix PCS quirk application for suspend
e74d9f13a4 nvme-pci: fix doorbell buffer value endianness
e8e2861cc3 cifs: fix oops during encryption
3c3baa40dc media: dvbdev: fix refcnt bug
334a76861b media: dvbdev: fix build warning due to comments
2a0e42877d gcov: add support for checksum field
328f3c084f regulator: core: fix deadlock on regulator enable
fb0407d8cd iio: adc128s052: add proper .data members in adc128_of_match table
bcb052a87d iio: adc: ad_sigma_delta: do not use internal iio_dev lock
ad4eb32ced reiserfs: Add missing calls to reiserfs_security_free()
5a5ef1882f HID: wacom: Ensure bootloader PID is usable in hidraw mode
9e8f60094e usb: dwc3: core: defer probe on ulpi_read_id timeout
7778fa1ca8 ALSA: hda/hdmi: Add HP Device 0x8711 to force connect list
12622fa053 ALSA: hda/realtek: Add quirk for Lenovo TianYi510Pro-14IOB
fad324bc07 pstore: Make sure CONFIG_PSTORE_PMSG selects CONFIG_RT_MUTEXES
e56423bb8e pstore: Switch pmsg_lock to an rt_mutex to avoid priority inversion
e8a1ccd120 ASoC: rt5670: Remove unbalanced pm_runtime_put()
737058bd0b ASoC: rockchip: spdif: Add missing clk_disable_unprepare() in rk_spdif_runtime_resume()
d456c253f3 ASoC: wm8994: Fix potential deadlock
2705bb1661 ASoC: rockchip: pdm: Add missing clk_disable_unprepare() in rockchip_pdm_runtime_resume()
ed1376f771 ASoC: audio-graph-card: fix refcount leak of cpu_ep in __graph_for_each_link()
df9cd38c3b ASoC: mediatek: mt8173-rt5650-rt5514: fix refcount leak in mt8173_rt5650_rt5514_dev_probe()
56f630a0d5 ASoC: Intel: Skylake: Fix driver hang during shutdown
fd0d3bf37d ALSA: hda: add snd_hdac_stop_streams() helper
d5952155d6 ALSA/ASoC: hda: move/rename snd_hdac_ext_stop_streams to hdac_stream.c
bdc2d33fa2 orangefs: Fix kmemleak in orangefs_{kernel,client}_debug_init()
2e7c091210 orangefs: Fix kmemleak in orangefs_prepare_debugfs_help_string()
511b48ee8e drm/sti: Fix return type of sti_{dvo,hda,hdmi}_connector_mode_valid()
6c00350c9f drm/fsl-dcu: Fix return type of fsl_dcu_drm_connector_mode_valid()
fa71639873 hugetlbfs: fix null-ptr-deref in hugetlbfs_parse_param()
713ad301c2 clk: st: Fix memory leak in st_of_quadfs_setup()
0ca298d548 media: si470x: Fix use-after-free in si470x_int_in_callback()
21d26381e1 mmc: f-sdh30: Add quirks for broken timeout clock capability
5bfc53df28 regulator: core: fix use_count leakage when handling boot-on
87fd18016a blk-mq: fix possible memleak when register 'hctx' failed
17217737c1 media: dvb-usb: fix memory leak in dvb_usb_adapter_init()
6d18b44bb4 media: dvbdev: adopts refcnt to avoid UAF
438a4a8dec media: dvb-frontends: fix leak of memory fw
89357aa97b bpf: Prevent decl_tag from being referenced in func_proto arg
7da524781c ppp: associate skb with a device at tx
aadb1507a7 mrp: introduce active flags to prevent UAF when applicant uninit
4bdcc6a5aa net: add atomic_long_t to net_device_stats fields
19d5a0e17a md/raid1: stop mdx_raid1 thread when raid1 array run failed
5d8d046f3d drivers/md/md-bitmap: check the return value of md_bitmap_get_counter()
2b1b145ca1 drm/sti: Use drm_mode_copy()
272d12b5f3 drm/rockchip: Use drm_mode_copy()
20022d551f s390/lcs: Fix return type of lcs_start_xmit()
4bee3c75d5 s390/netiucv: Fix return type of netiucv_tx()
e859e02fbf s390/ctcm: Fix return type of ctc{mp,}m_tx()
f96bd8adc8 igb: Do not free q_vector unless new one was allocated
5b06a8a25e wifi: brcmfmac: Fix potential shift-out-of-bounds in brcmf_fw_alloc_request()
e390838eef hamradio: baycom_epp: Fix return type of baycom_send_packet()
dbe1a6b930 net: ethernet: ti: Fix return type of netcp_ndo_start_xmit()
772431f30c bpf: make sure skb->len != 0 when redirecting to a tunneling device
9066300fe8 ipmi: fix memleak when unload ipmi driver
8234c522ef ASoC: codecs: rt298: Add quirk for KBL-R RVP platform
7360b323e0 wifi: ar5523: Fix use-after-free on ar5523_cmd() timed out
ca57748593 wifi: ath9k: verify the expected usb_endpoints are present
3cc9299036 brcmfmac: return error when getting invalid max_flowrings from dongle
e44bfef5bf drm/etnaviv: add missing quirks for GC300
90103ccb6e hfs: fix OOB Read in __hfs_brec_find
a815a3e019 acct: fix potential integer overflow in encode_comp_t()
d706485dff nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()
9ef353c92f ACPICA: Fix error code path in acpi_ds_call_control_method()
50163a1158 fs: jfs: fix shift-out-of-bounds in dbDiscardAG
156d440dea udf: Avoid double brelse() in udf_rename()
359616ce58 fs: jfs: fix shift-out-of-bounds in dbAllocAG
419b808504 binfmt_misc: fix shift-out-of-bounds in check_special_flags
3d92527a91 rcu: Fix __this_cpu_read() lockdep warning in rcu_force_quiescent_state()
4f1d37ff42 net: stream: purge sk_error_queue in sk_stream_kill_queues()
fbae0dc7e2 myri10ge: Fix an error handling path in myri10ge_probe()
67af8655c8 rxrpc: Fix missing unlock in rxrpc_do_sendmsg()
93e794d4fe net_sched: reject TCF_EM_SIMPLE case for complex ematch module
b3a5c76f61 mailbox: zynq-ipi: fix error handling while device_register() fails
668dc454bc skbuff: Account for tail adjustment during pull operations
8b74211bf6 openvswitch: Fix flow lookup to use unmasked key
0e91836628 rtc: mxc_v2: Add missing clk_disable_unprepare()
b0a6135902 r6040: Fix kmemleak in probe and remove
8bddef54cb nfc: pn533: Clear nfc_target before being used
db77d4d005 mISDN: hfcmulti: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
82ff73638c mISDN: hfcpci: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
5a35d18e79 mISDN: hfcsusb: don't call dev_kfree_skb/kfree_skb() under spin_lock_irqsave()
fddac3b457 nfsd: under NFSv4.1, fix double svc_xprt_put on rpc_create failure
f06d3feee9 NFSD: Add tracepoints to NFSD's duplicate reply cache
fe142d5cee nfsd: Define the file access mode enum for tracing
aa5fafd4a6 rtc: pic32: Move devm_rtc_allocate_device earlier in pic32_rtc_probe()
686f0793f7 rtc: st-lpc: Add missing clk_disable_unprepare in st_rtc_probe()
1240ed71a0 remoteproc: qcom_q6v5_pas: Fix missing of_node_put() in adsp_alloc_memory_region()
27441fab26 remoteproc: sysmon: fix memory leak in qcom_add_sysmon_subdev()
292c0f3b4a pwm: sifive: Call pwm_sifive_update_clock() while mutex is held
2b7ad43574 selftests/powerpc: Fix resource leaks
39633b4051 powerpc/hv-gpci: Fix hv_gpci event list
aed862896d powerpc/83xx/mpc832x_rdb: call platform_device_put() in error case in of_fsl_spi_probe()
d539b77bae powerpc/perf: callchain validate kernel stack pointer bounds
cfb5bbfcb6 powerpc/xive: add missing iounmap() in error path in xive_spapr_populate_irq_data()
f2d60f6ba1 cxl: Fix refcount leak in cxl_calc_capp_routing
9bf842ffdd powerpc/52xx: Fix a resource leak in an error handling path
b703da16dc macintosh/macio-adb: check the return value of ioremap()
b29a2f1dd3 macintosh: fix possible memory leak in macio_add_one_device()
17fd440594 iommu/fsl_pamu: Fix resource leak in fsl_pamu_probe()
8581ec1feb iommu/amd: Fix pci device refcount leak in ppr_notifier()
0d96a6f5db rtc: pcf85063: Fix reading alarm
bb1bdc72dd rtc: snvs: Allow a time difference on clock register read
6a54d03337 include/uapi/linux/swab: Fix potentially missing __always_inline
f170d4bd38 RDMA/siw: Fix pointer cast warning
8ea68b4e3f power: supply: fix null pointer dereferencing in power_supply_get_battery_info
61e80e7929 HSI: omap_ssi_core: Fix error handling in ssi_init()
7ae85631ae perf symbol: correction while adjusting symbol
739b4294f8 perf trace: Handle failure when trace point folder is missed
1b4053ad54 perf trace: Use macro RAW_SYSCALL_ARGS_NUM to replace number
443aaf605f perf trace: Add a strtoul() method to 'struct syscall_arg_fmt'
339e08e185 perf trace: Allow associating scnprintf routines with well known arg names
97cc27a28d perf trace: Add the syscall_arg_fmt pointer to syscall_arg
a2fcb44f5e perf trace: Factor out the initialization of syscal_arg_fmt->scnprintf
ba67de37ad perf trace: Separate 'struct syscall_fmt' definition from syscall_fmts variable
6086919d8c perf trace: Return error if a system call doesn't exist
f84fff700d power: supply: fix residue sysfs file in error handle route of __power_supply_register()
ef87ed9add HSI: omap_ssi_core: fix possible memory leak in ssi_probe()
e9a32f7523 HSI: omap_ssi_core: fix unbalanced pm_runtime_disable()
0f049375ad fbdev: uvesafb: Fixes an error handling path in uvesafb_probe()
3c9aaa58f7 fbdev: vermilion: decrease reference count in error path
9413f188ef fbdev: via: Fix error in via_core_init()
65dbd8eefa fbdev: pm2fb: fix missing pci_disable_device()
77738055e2 fbdev: ssd1307fb: Drop optional dependency
72c8770e35 samples: vfio-mdev: Fix missing pci_disable_device() in mdpy_fb_probe()
19b651db94 tracing/hist: Fix issue of losting command info in error_log
fab2536ba1 usb: storage: Add check for kcalloc
cdcbae2c50 i2c: ismt: Fix an out-of-bounds bug in ismt_access()
f3f65c4177 vme: Fix error not catched in fake_init()
e5c97a433c staging: rtl8192e: Fix potential use-after-free in rtllib_rx_Monitor()
288ada16a9 staging: rtl8192u: Fix use after free in ieee80211_rx()
c226717aa8 i2c: pxa-pci: fix missing pci_disable_device() on error in ce4100_i2c_probe
d85b5247a7 chardev: fix error handling in cdev_device_add()
110dc34c9f mcb: mcb-parse: fix error handing in chameleon_parse_gdd()
68e54d9ee8 drivers: mcb: fix resource leak in mcb_probe()
80dc47e751 usb: gadget: f_hid: fix refcount leak on error path
c78c87c4e3 usb: gadget: f_hid: fix f_hidg lifetime vs cdev
efa2ed93e5 usb: gadget: f_hid: optional SETUP/SET_REPORT mode
5e193764c2 usb: roles: fix of node refcount leak in usb_role_switch_is_parent()
76740fd8c6 counter: stm32-lptimer-cnt: fix the check on arr and cmp registers update
361412dae1 cxl: fix possible null-ptr-deref in cxl_pci_init_afu|adapter()
60b2ed21a6 cxl: fix possible null-ptr-deref in cxl_guest_init_afu|adapter()
0078dd8758 misc: sgi-gru: fix use-after-free error in gru_set_context_option, gru_fault and gru_handle_user_call_os
ee2715faf7 misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()
0cd0506237 misc: ocxl: fix possible name leak in ocxl_file_register_afu()
628de998a3 test_firmware: fix memory leak in test_firmware_init()
98c01a728b serial: sunsab: Fix error handling in sunsab_init()
61f4146a7e serial: altera_uart: fix locking in polling mode
ce40c44e62 tty: serial: altera_uart_{r,t}x_chars() need only uart_port
071bb9e363 tty: serial: clean up stop-tx part in altera_uart_tx_chars()
d165388227 serial: pch: Fix PCI device refcount leak in pch_request_dma()
06c886548c serial: pl011: Do not clear RX FIFO & RX interrupt in unthrottle.
965f07ea5f serial: amba-pl011: avoid SBSA UART accessing DMACR register
4f257e2eba usb: typec: tcpci: fix of node refcount leak in tcpci_register_port()
af4049a2ff usb: typec: Check for ops->exit instead of ops->enter in altmode_exit
a45ba33d39 staging: vme_user: Fix possible UAF in tsi148_dma_list_add
90e227d8b4 usb: fotg210-udc: Fix ages old endianness issues
12d20ba3ce uio: uio_dmem_genirq: Fix deadlock between irq config and handling
eca77a25a7 uio: uio_dmem_genirq: Fix missing unlock in irq configuration
c2163ecc48 vfio: platform: Do not pass return buffer to ACPI _RST method
3e0efc3f3f class: fix possible memory leak in __class_register()
0c44f584e3 serial: tegra: Read DMA status before terminating
dcb26ea75d tty: serial: tegra: Activate RX DMA transfer by request
da64e01da4 drivers: dio: fix possible memory leak in dio_init()
d4bf3fcccd IB/IPoIB: Fix queue count inconsistency for PKEY child interfaces
5cc818ad53 hwrng: geode - Fix PCI device refcount leak
1199f8e029 hwrng: amd - Fix PCI device refcount leak
c75ea343e4 crypto: img-hash - Fix variable dereferenced before check 'hdev->req'
76a9a58a71 orangefs: Fix sysfs not cleanup when dev init failed
5a2028369d RDMA/hfi1: Fix error return code in parse_platform_config()
7917484c99 crypto: omap-sham - Use pm_runtime_resume_and_get() in omap_sham_probe()
c21a09ed1e f2fs: avoid victim selection from previous victim section
91f63dd622 RDMA/nldev: Add checks for nla_nest_start() in fill_stat_counter_qps()
6866154c23 scsi: snic: Fix possible UAF in snic_tgt_create()
be5f1a82ad scsi: fcoe: Fix transport not deattached when fcoe_if_init() fails
eccbec017c scsi: ipr: Fix WARNING in ipr_init()
c9f83544fb scsi: fcoe: Fix possible name leak when device_register() fails
3c4bb9446d scsi: hpsa: Fix possible memory leak in hpsa_add_sas_device()
6fac40d806 scsi: hpsa: Fix error handling in hpsa_add_sas_host()
d60000cb11 scsi: mpt3sas: Fix possible resource leaks in mpt3sas_transport_port_add()
89e3f7324a crypto: tcrypt - Fix multibuffer skcipher speed test mem leak
f8fc2f1865 scsi: hpsa: Fix possible memory leak in hpsa_init_one()
bd7106a600 RDMA/rxe: Fix NULL-ptr-deref in rxe_qp_do_cleanup() when socket create failed
a36c929fd7 crypto: ccree - Make cc_debugfs_global_fini() available for module init function
895bbed5ae RDMA/hfi: Decrease PCI device reference count in error path
7e68c0d095 PCI: Check for alloc failure in pci_request_irq()
a234815cee crypto: ccree - Remove debugfs when platform_driver_register failed
ca438aa466 crypto: ccree - swap SHA384 and SHA512 larval hashes at build time
263d21afba scsi: scsi_debug: Fix a warning in resp_write_scat()
b5848661f1 RDMA/siw: Set defined status for work completion with undefined status
ad1676587c RDMA/nldev: Return "-EAGAIN" if the cm_id isn't from expected port
6af043089d RDMA/siw: Fix immediate work request flush to completion queue
ef6079d98f f2fs: fix normal discard process
7826e4c85e RDMA/core: Fix order of nldev_exit call
3339d808b6 apparmor: Use pointer to struct aa_label for lbs_cred
f7368ac846 apparmor: Fix abi check to include v8 abi
e1a68ac015 apparmor: fix lockdep warning when removing a namespace
eb0f78e28c apparmor: fix a memleak in multi_transaction_new()
df121012e4 stmmac: fix potential division by 0
203d604bd5 Bluetooth: RFCOMM: don't call kfree_skb() under spin_lock_irqsave()
5e832e0182 Bluetooth: hci_core: don't call kfree_skb() under spin_lock_irqsave()
8ae86c1ec2 Bluetooth: hci_bcsp: don't call kfree_skb() under spin_lock_irqsave()
f360585691 Bluetooth: hci_h5: don't call kfree_skb() under spin_lock_irqsave()
78e76830c7 Bluetooth: hci_ll: don't call kfree_skb() under spin_lock_irqsave()
b38b064cba Bluetooth: hci_qca: don't call kfree_skb() under spin_lock_irqsave()
f6d822ce4b Bluetooth: btusb: don't call kfree_skb() under spin_lock_irqsave()
a6b9e09403 ntb_netdev: Use dev_kfree_skb_any() in interrupt context
3f2946a54b net: lan9303: Fix read error execution path
7d67e8ccfc can: tcan4x5x: Remove invalid write in clear_interrupts
068672e75b net: amd-xgbe: Check only the minimum speed for active/passive cables
291b9669f6 net: amd-xgbe: Fix logic around active and passive cables
bc06c239d5 net: amd: lance: don't call dev_kfree_skb() under spin_lock_irqsave()
1e39d57a0e hamradio: don't call dev_kfree_skb() under spin_lock_irqsave()
20dd873605 net: ethernet: dnet: don't call dev_kfree_skb() under spin_lock_irqsave()
3b748ba07b net: emaclite: don't call dev_kfree_skb() under spin_lock_irqsave()
4b8256d9bf net: apple: bmac: don't call dev_kfree_skb() under spin_lock_irqsave()
bc51a3cadf net: apple: mace: don't call dev_kfree_skb() under spin_lock_irqsave()
303000c793 net/tunnel: wait until all sk_user_data reader finish before releasing the sock
0c5f2c7700 net: farsync: Fix kmemleak when rmmods farsync
cf7416aa01 ethernet: s2io: don't call dev_kfree_skb() under spin_lock_irqsave()
9ec5781879 of: overlay: fix null pointer dereferencing in find_dup_cset_node_entry() and find_dup_cset_prop()
a44490abaf drivers: net: qlcnic: Fix potential memory leak in qlcnic_sriov_init()
429370c40d net: stmmac: selftests: fix potential memleak in stmmac_test_arpoffload()
bba527e4ec net: defxx: Fix missing err handling in dfx_init()
f54731a70c net: vmw_vsock: vmci: Check memcpy_from_msg()
6f2198914f clk: socfpga: Fix memory leak in socfpga_gate_init()
dbd1a4fdf5 clk: socfpga: use clk_hw_register for a5/c5
49513eabda clk: socfpga: clk-pll: Remove unused variable 'rc'
fe783eeac4 blktrace: Fix output non-blktrace event when blk_classic option enabled
d628d5c5b4 wifi: brcmfmac: Fix error return code in brcmf_sdio_download_firmware()
1a49bba59d wifi: rtl8xxxu: Add __packed to struct rtl8723bu_c2h
9e8440a657 spi: spi-gpio: Don't set MOSI as an input if not 3WIRE mode
a00b4e0fa2 clk: samsung: Fix memory leak in _samsung_clk_register_pll()
7a2c66429b media: coda: Add check for kmalloc
2b436f1410 media: coda: Add check for dcoda_iram_alloc
6250bc7331 media: c8sectpfe: Add of_node_put() when breaking out of loop
0fcee27507 mmc: mmci: fix return value check of mmc_add_host()
0a41ea4fd4 mmc: wbsd: fix return value check of mmc_add_host()
f59ef2a47a mmc: via-sdmmc: fix return value check of mmc_add_host()
9e11c6bb74 mmc: meson-gx: fix return value check of mmc_add_host()
f153c9e15f mmc: omap_hsmmc: fix return value check of mmc_add_host()
6bb26abb92 mmc: atmel-mci: fix return value check of mmc_add_host()
c7a328cea7 mmc: wmt-sdmmc: fix return value check of mmc_add_host()
3b29f8769d mmc: vub300: fix return value check of mmc_add_host()
3dbb69a024 mmc: toshsd: fix return value check of mmc_add_host()
937112e991 mmc: rtsx_usb_sdmmc: fix return value check of mmc_add_host()
0b7b634225 mmc: pxamci: fix return value check of mmc_add_host()
32eb502c97 mmc: mxcmmc: fix return value check of mmc_add_host()
b174f2b36c mmc: moxart: fix return value check of mmc_add_host()
289c964fe1 mmc: alcor: fix return value check of mmc_add_host()
e8f20523cf NFSv4.x: Fail client initialisation if state manager thread can't run
f7a8a1e36d SUNRPC: Fix missing release socket in rpc_sockname()
bcebcb11fc xprtrdma: Fix regbuf data not freed in rpcrdma_req_create()
c7e9624d90 ALSA: mts64: fix possible null-ptr-defer in snd_mts64_interrupt
6a8c0abcb5 media: saa7164: fix missing pci_disable_device()
4cabc3af4a bpf, sockmap: fix race in sock_map_free()
35593d60b1 regulator: core: fix resource leak in regulator_register()
90c38f57a8 configfs: fix possible memory leak in configfs_create_dir()
6dea95f640 hsr: Avoid double remove of a node.
de7dbee4bd clk: qcom: clk-krait: fix wrong div2 functions
339ba693da regulator: core: fix module refcount leak in set_supply()
46dfff9102 wifi: cfg80211: Fix not unregister reg_pdev when load_builtin_regdb_keys() fails
624a989db9 spi: spidev: mask SPI_CS_HIGH in SPI_IOC_RD_MODE
52fb0ffee0 bonding: uninitialized variable in bond_miimon_inspect()
31631c2ab4 bpf, sockmap: Fix data loss caused by using apply_bytes on ingress redirect
7508b9f4da bpf, sockmap: Fix repeated calls to sock_put() when msg has more_data
d4145d028a netfilter: conntrack: set icmpv6 redirects as RELATED
27c09443dd ASoC: pcm512x: Fix PM disable depth imbalance in pcm512x_probe
981024abf5 drm/amdgpu: Fix PCI device refcount leak in amdgpu_atrm_get_bios()
470a779890 drm/radeon: Fix PCI device refcount leak in radeon_atrm_get_bios()
190685ff4e ASoC: mediatek: mt8173: Enable IRQ when pdata is ready
0e1e311fd9 wifi: iwlwifi: mvm: fix double free on tx path.
8b0c003e37 ALSA: asihpi: fix missing pci_disable_device()
5447f1ad0b NFSv4: Fix a deadlock between nfs4_open_recover_helper() and delegreturn
e53a7c28a4 NFSv4.2: Fix initialisation of struct nfs4_label
b2b472bcda NFSv4.2: Fix a memory stomp in decode_attr_security_label
96f3c70600 NFSv4.2: Clear FATTR4_WORD2_SECURITY_LABEL when done decoding
2672977dc0 ASoC: mediatek: mtk-btcvsd: Add checks for write and read of mtk_btcvsd_snd
d63e9eca94 ASoC: dt-bindings: wcd9335: fix reset line polarity in example
4ea79d0747 drm/tegra: Add missing clk_disable_unprepare() in tegra_dc_probe()
542a87f1cf media: s5p-mfc: Add variant data for MFC v7 hardware for Exynos 3250 SoC
8b256d2336 media: dvb-usb: az6027: fix null-ptr-deref in az6027_i2c_xfer()
9103bf2187 media: dvb-core: Fix ignored return value in dvb_register_frontend()
3359f8d533 pinctrl: pinconf-generic: add missing of_node_put()
ffd53b7892 clk: imx: replace osc_hdmi with dummy
aa79b53df7 clk: imx8mn: correct the usb1_ctrl parent to be usb_bus
1d8521e112 media: imon: fix a race condition in send_packet()
cf9c4c25ca mtd: maps: pxa2xx-flash: fix memory leak in probe
a7fc25159d bonding: fix link recovery in mode 2 when updelay is nonzero
0879f594a7 bonding: Rename slave_arr to usable_slaves
9eaeb3e460 bonding: Export skip slave logic to function
26b94635f1 clk: rockchip: Fix memory leak in rockchip_clk_register_pll()
96be283d10 regulator: core: use kfree_const() to free space conditionally
d884ed9a2f ALSA: seq: fix undefined behavior in bit shift for SNDRV_SEQ_FILTER_USE_EVENT
497279199d ALSA: pcm: fix undefined behavior in bit shift for SNDRV_PCM_RATE_KNOT
e6364854f5 HID: hid-sensor-custom: set fixed size for custom attributes
75a5bf8eeb bpf: Move skb->len == 0 checks into __bpf_redirect
61688b8819 media: videobuf-dma-contig: use dma_mmap_coherent
9ca9d7fd7d media: platform: exynos4-is: Fix error handling in fimc_md_init()
7b02c50d39 media: solo6x10: fix possible memory leak in solo_sysfs_init()
f81f63168f Input: elants_i2c - properly handle the reset GPIO when power is off
8eb64dc5a7 mtd: lpddr2_nvm: Fix possible null-ptr-deref
8e51f5894d wifi: ath10k: Fix return value in ath10k_pci_init()
8176538866 ima: Fix misuse of dereference of pointer in template_desc_init_fields()
9b7c44885a integrity: Fix memory leakage in keyring allocation error path
4d3dc0de9c amdgpu/pm: prevent array underflow in vega20_odn_edit_dpm_table()
d39937f8de regulator: core: fix unbalanced of node refcount in regulator_dev_lookup()
a8baccb79d ASoC: pxa: fix null-pointer dereference in filter()
6f13a895ce drm/mediatek: Modify dpi power on/off sequence.
a0f26560be drm/radeon: Add the missed acpi_put_table() to fix memory leak
832d0e19ce rxrpc: Fix ack.bufferSize to be 0 when generating an ack
c9c9350d30 net, proc: Provide PROC_FS=n fallback for proc_create_net_single_write()
fe443b3fe3 media: camss: Clean up received buffers on failed start of streaming
08114dc185 wifi: rsi: Fix handling of 802.3 EAPOL frames sent via control port
fa0d32ab84 mtd: Fix device name leak when register device failed in add_mtd_device()
d70fa0a6ce bpf: propagate precision in ALU/ALU64 operations
54f2599060 media: vivid: fix compose size exceed boundary
38d48fd224 ima: Handle -ESTALE returned by ima_filter_rule_match()
ecd0a6f81a ima: Fix fall-through warnings for Clang
55e2430e43 ima: Rename internal filter rule functions
0b7c47b7f3 drm/panel/panel-sitronix-st7701: Remove panel on DSI attach failure
3fcdc1534b spi: Update reference to struct spi_controller
d87dd4528d clk: renesas: r9a06g032: Repair grave increment error
a2046e5a36 can: kvaser_usb: Compare requested bittiming parameters with actual parameters in do_set_{,data}_bittiming
7482f95315 can: kvaser_usb: Add struct kvaser_usb_busparams
f3d20de76f can: kvaser_usb_leaf: Fix bogus restart events
ad63992b64 can: kvaser_usb_leaf: Fix wrong CAN state after stopping
9208795770 can: kvaser_usb_leaf: Fix improved state not being reported
60ad08be78 can: kvaser_usb_leaf: Set Warning state even without bus errors
12d95e65f7 can: kvaser_usb: kvaser_usb_leaf: Handle CMD_ERROR_EVENT
5779a9d0e3 can: kvaser_usb: kvaser_usb_leaf: Rename {leaf,usbcan}_cmd_error_event to {leaf,usbcan}_cmd_can_error_event
0e56748852 can: kvaser_usb: kvaser_usb_leaf: Get capabilities from device
3a9d74f339 can: kvaser_usb: do not increase tx statistics when sending error message frames
3f2384f09b media: i2c: ad5820: Fix error path
e8e2da03c2 pata_ipx4xx_cf: Fix unsigned comparison with less than zero
5994e7a806 wifi: rtl8xxxu: Fix reading the vendor of combo chips
988bd27de2 wifi: ath9k: hif_usb: Fix use-after-free in ath9k_hif_usb_reg_in_cb()
9850791d38 wifi: ath9k: hif_usb: fix memory leak of urbs in ath9k_hif_usb_dealloc_tx_urbs()
bb7397f631 rapidio: devices: fix missing put_device in mport_cdev_open
6a95b17e4d hfs: Fix OOB Write in hfs_asc2mac
657fea0a8d relay: fix type mismatch when allocating memory in relay_create_buf()
e275249e5e eventfd: change int to __u64 in eventfd_signal() ifndef CONFIG_EVENTFD
311b488405 rapidio: fix possible UAF when kfifo_alloc() fails
7aa5325e1b fs: sysv: Fix sysv_nblocks() returns wrong value
cb5859603c MIPS: OCTEON: warn only once if deprecated link status is being used
b7ca75207e MIPS: BCM63xx: Add check for NULL for clk in clk_enable
14bb4bde3b platform/x86: mxm-wmi: fix memleak in mxm_wmi_call_mx[ds|mx]()
11ad95912b PM: runtime: Do not call __rpm_callback() from rpm_idle()
c40ee4e04b PM: runtime: Improve path in rpm_idle() when no callback
4f983ee5e5 xen/privcmd: Fix a possible warning in privcmd_ioctl_mmap_resource()
29198f667f x86/xen: Fix memory leak in xen_init_lock_cpu()
ec88254208 x86/xen: Fix memory leak in xen_smp_intr_init{_pv}()
6e98158d97 xen/events: only register debug interrupt for 2-level events
314d510535 uprobes/x86: Allow to probe a NOP instruction with 0x66 prefix
dfdde4d513 ACPICA: Fix use-after-free in acpi_ut_copy_ipackage_to_ipackage()
805665aa52 clocksource/drivers/sh_cmt: Make sure channel clock supply is enabled
1bbad5793f rapidio: rio: fix possible name leak in rio_register_mport()
440afd7fd9 rapidio: fix possible name leaks when rio_add_device() fails
7ef516888c ocfs2: fix memory leak in ocfs2_mount_volume()
a4d3062f0a ocfs2: rewrite error handling of ocfs2_fill_super
227cc62e00 ocfs2: ocfs2_mount_volume does cleanup job before return error
5c27b46c20 debugfs: fix error when writing negative value to atomic_t debugfs file
c7bd49275d docs: fault-injection: fix non-working usage of negative values
6865a549f2 lib/notifier-error-inject: fix error when writing -errno to debugfs file
6fc6461672 libfs: add DEFINE_SIMPLE_ATTRIBUTE_SIGNED for signed value
75940697c0 cpufreq: amd_freq_sensitivity: Add missing pci_dev_put()
d25bf9af86 genirq/irqdesc: Don't try to remove non-existing sysfs files
b4e28099cd nfsd: don't call nfsd_file_put from client states seqfile display
e6e295a434 EDAC/i10nm: fix refcount leak in pci_get_dev_wrapper()
d5c06dba46 irqchip: gic-pm: Use pm_runtime_resume_and_get() in gic_probe()
e293263248 perf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox()
81b024df47 PNP: fix name memory leak in pnp_alloc_dev()
821afb8c89 selftests/efivarfs: Add checking of the test return value
c0b8cff014 MIPS: vpe-cmp: fix possible memory leak while module exiting
b3325a4435 MIPS: vpe-mt: fix possible memory leak while module exiting
7c8bf45cea ocfs2: fix memory leak in ocfs2_stack_glue_init()
e039929e36 lib/fonts: fix undefined behavior in bit shift for get_default_font
160d6d6f14 proc: fixup uptime selftest
d7b9e43a5c timerqueue: Use rb_entry_safe() in timerqueue_getnext()
248fa44cde perf: Fix possible memleak in pmu_dev_alloc()
044ede4c38 selftests/ftrace: event_triggers: wait longer for test_event_enable
8511186f10 fs: don't audit the capability check in simple_xattr_list()
c907c55dc7 PM: hibernate: Fix mistake in kerneldoc comment
f0ff6c60bc alpha: fix syscall entry in !AUDUT_SYSCALL case
1399ce344e cpuidle: dt: Return the correct numbers of parsed idle states
082b55fe9f tpm/tpm_crb: Fix error message in __crb_relinquish_locality()
4d3126f242 pstore: Avoid kcore oops by vmap()ing with VM_IOREMAP
e2516652da ARM: mmp: fix timer_read delay
2de791ff6f pstore/ram: Fix error return code in ramoops_probe()
ded1b82716 arm64: dts: armada-3720-turris-mox: Add missing interrupt for RTC
03a666631a ARM: dts: turris-omnia: Add switch port 6 node
fe1fc4d84d ARM: dts: turris-omnia: Add ethernet aliases
b20454ea05 ARM: dts: armada-39x: Fix assigned-addresses for every PCIe Root Port
1b7017211e ARM: dts: armada-38x: Fix assigned-addresses for every PCIe Root Port
87b951b7c2 ARM: dts: armada-375: Fix assigned-addresses for every PCIe Root Port
e3cf3f7a6d ARM: dts: armada-xp: Fix assigned-addresses for every PCIe Root Port
e302758caf ARM: dts: armada-370: Fix assigned-addresses for every PCIe Root Port
0a8544b723 ARM: dts: dove: Fix assigned-addresses for every PCIe Root Port
f707c3fee2 arm64: dts: mediatek: mt6797: Fix 26M oscillator unit name
fdf511fc07 arm64: dts: mt2712-evb: Fix usb vbus regulators unit names
06fbfc5f43 arm64: dts: mt2712-evb: Fix vproc fixed regulators unit names
f0c1f46e49 arm64: dts: mt2712e: Fix unit address for pinctrl node
aaabd7e3e4 arm64: dts: mt2712e: Fix unit_address_vs_reg warning for oscillators
d69bdb61d5 perf/smmuv3: Fix hotplug callback leak in arm_smmu_pmu_init()
af2256d778 perf: arm_dsu: Fix hotplug callback leak in dsu_pmu_init()
1e9186d628 soc: ti: smartreflex: Fix PM disable depth imbalance in omap_sr_probe
83cfc38091 soc: ti: knav_qmss_queue: Fix PM disable depth imbalance in knav_queue_probe
5f07c85ca1 soc: ti: knav_qmss_queue: Use pm_runtime_resume_and_get instead of pm_runtime_get_sync
f5c521195e arm: dts: spear600: Fix clcd interrupt
3a90edbab8 drivers: soc: ti: knav_qmss_queue: Mark knav_acc_firmwares as static
3459e05ad3 arm64: dts: qcom: sdm845-cheza: fix AP suspend pin bias
6a24277840 ARM: dts: qcom: apq8064: fix coresight compatible
1a19212a71 usb: musb: remove extra check in musb_gadget_vbus_draw
40075e7975 net: loopback: use NET_NAME_PREDICTABLE for name_assign_type
9fdc79b571 Bluetooth: L2CAP: Fix u8 overflow
77d5e6f260 HID: uclogic: Add HID_QUIRK_HIDINPUT_FORCE quirk
c05a7fa010 HID: ite: Enable QUIRK_TOUCHPAD_ON_OFF_REPORT on Acer Aspire Switch V 10
d535a33e83 HID: ite: Enable QUIRK_TOUCHPAD_ON_OFF_REPORT on Acer Aspire Switch 10E
7346b2529f HID: ite: Add support for Acer S1002 keyboard-dock
2d91b7a0b0 xen-netback: move removal of "hotplug-status" to the right place
c581439a97 igb: Initialize mailbox message for VF reset
50aa193a4b USB: serial: f81534: fix division by zero on line-speed change
0d6bf63eb3 USB: serial: f81232: fix division by zero on line-speed change
fe0f214385 USB: serial: cp210x: add Kamstrup RF sniffer PIDs
d487670654 USB: serial: option: add Quectel EM05-G modem
b8fb1cba93 usb: gadget: uvc: Prevent buffer overflow in setup handler
2610c2e59c udf: Fix extending file within last block
ade1726d8c udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size
4d835efd56 udf: Fix preallocation discarding at indirect extent boundary
0905c78f62 udf: Discard preallocation before extending file with a hole
0758b50692 tracing/ring-buffer: Only do full wait when cpu != RING_BUFFER_ALL_CPUS
e1d491fcbf ANDROID: Add more hvc devices for virtio-console.
92a0ce5d0a Merge 5.4.228 into android11-5.4-lts
6429852aef Revert "can: af_can: fix NULL pointer dereference in can_rcv_filter"
4ae923b7c6 Merge 5.4.227 into android11-5.4-lts
57e53c3fa3 ANDROID: Revert "tracing/ring-buffer: Have polling block on watermark"
851c2b5fb7 Linux 5.4.228
ff484a9ba4 ASoC: ops: Correct bounds check for second channel on SX controls
7d4aa09299 can: mcba_usb: Fix termination command argument
f843fdcac0 can: sja1000: fix size of OCR_MODE_MASK define
b439b12d10 pinctrl: meditatek: Startup with the IRQs disabled
9796d07c75 ASoC: ops: Check bounds for second channel in snd_soc_put_volsw_sx()
3c837460f9 nfp: fix use-after-free in area_cache_get()
a40c3c9ae5 block: unhash blkdev part inode when the part is deleted
176ba4c19d mm/hugetlb: fix races when looking up a CONT-PTE/PMD size hugetlb page
69d4f3baa6 x86/smpboot: Move rcu_cpu_starting() earlier
d1988bf2bb net: bpf: Allow TC programs to call BPF_FUNC_skb_change_head
66bb2e2b24 Linux 5.4.227
898270ec11 can: esd_usb: Allow REC and TEC to return to zero
08bf219d62 net: mvneta: Fix an out of bounds check
6b6d3be366 ipv6: avoid use-after-free in ip6_fragment()
f73eb3fc9b net: plip: don't call kfree_skb/dev_kfree_skb() under spin_lock_irq()
f0af234e2e xen/netback: fix build warning
99669d94ce ethernet: aeroflex: fix potential skb leak in greth_init_rings()
3295582cd7 ipv4: Fix incorrect route flushing when table ID 0 is used
2537b637ea ipv4: Fix incorrect route flushing when source address is deleted
36eedb9a05 tipc: Fix potential OOB in tipc_link_proto_rcv()
1b6360a093 net: hisilicon: Fix potential use-after-free in hix5hd2_rx()
e71a46cc8c net: hisilicon: Fix potential use-after-free in hisi_femac_rx()
7081cf86e1 net: thunderx: Fix missing destroy_workqueue of nicvf_rx_mode_wq
bc06207b4c net: stmmac: fix "snps,axi-config" node property parsing
7fab7add08 nvme initialize core quirks before calling nvme_init_subsystem
6778434706 NFC: nci: Bounds check struct nfc_target arrays
e5292711b0 i40e: Disallow ip4 and ip6 l4_4_bytes
9337d87da4 i40e: Fix for VF MAC address 0
a1e295517b i40e: Fix not setting default xps_cpus after reset
eec1fc21ed net: mvneta: Prevent out of bounds read in mvneta_config_rss()
ed773dd798 xen-netfront: Fix NULL sring after live migration
18e10a9e0e net: encx24j600: Fix invalid logic in reading of MISTAT register
1356c17758 net: encx24j600: Add parentheses to fix precedence
1831d45404 mac802154: fix missing INIT_LIST_HEAD in ieee802154_if_add()
8fb4b50f54 selftests: rtnetlink: correct xfrm policy rule in kci_test_ipsec_offload
0834d4b121 net: dsa: ksz: Check return value
2c6cf0afc3 Bluetooth: Fix not cleanup led when bt_init fails
07ea5d74fc Bluetooth: 6LoWPAN: add missing hci_dev_put() in get_l2cap_conn()
c66d78aee5 af_unix: Get user_ns from in_skb in unix_diag_get_exact().
9d2ee8abf1 igb: Allocate MSI-X vector when testing
cff8ba243f e1000e: Fix TX dispatch condition
48bd5d3801 gpio: amd8111: Fix PCI device reference count leak
d2be7ba2d4 drm/bridge: ti-sn65dsi86: Fix output polarity setting bug
e2e2181772 ca8210: Fix crash by zero initializing data
efbca8234a ieee802154: cc2520: Fix error return code in cc2520_hw_init()
3982652957 can: af_can: fix NULL pointer dereference in can_rcv_filter
db1ed1b3fb HID: core: fix shift-out-of-bounds in hid_report_raw_event
60bce926a8 HID: hid-lg4ff: Add check for empty lbuf
625814b85f HID: usbhid: Add ALWAYS_POLL quirk for some mice
585a07b820 drm/shmem-helper: Remove errant put in error path
b8419d16f4 KVM: s390: vsie: Fix the initialization of the epoch extension (epdx) field
04edfa3dc0 mm/gup: fix gup_pud_range() for dax
35963b3182 memcg: fix possible use-after-free in memcg_write_event_control()
4afc77068e media: v4l2-dv-timings.c: fix too strict blanking sanity checks
91516ba54a Revert "net: dsa: b53: Fix valid setting for MDB entries"
50e1ab7e63 xen/netback: don't call kfree_skb() with interrupts disabled
6b1d47f9c3 xen/netback: do some code cleanup
8fe1bf6f32 xen/netback: Ensure protocol headers don't fall in the non-linear area
5ffc2a7553 mm/khugepaged: invoke MMU notifiers in shmem/file collapse paths
48b00ceb54 mm/khugepaged: fix GUP-fast interaction by sending IPI
324abbd8b9 mm/khugepaged: take the right locks for page table retraction
b2963819d0 net: usb: qmi_wwan: add u-blox 0x1342 composition
e35c3ad0c2 9p/xen: check logical size for buffer size
9d5126b574 fbcon: Use kzalloc() in fbcon_prepare_logo()
102459222d regulator: twl6030: fix get status of twl6032 regulators
f2ba66d873 ASoC: soc-pcm: Add NULL check in BE reparenting
3b2c064a8e btrfs: send: avoid unaligned encoded writes when attempting to clone range
63badfed20 ALSA: seq: Fix function prototype mismatch in snd_seq_expand_var_event
8d16d3826f regulator: slg51000: Wait after asserting CS pin
9327a9c624 9p/fd: Use P9_HDRSZ for header size
671f950d17 ARM: dts: rockchip: disable arm_global_timer on rk3066 and rk3188
2c2c5d1d10 ARM: 9266/1: mm: fix no-MMU ZERO_PAGE() implementation
29917e381e ARM: 9251/1: perf: Fix stacktraces for tracepoint events in THUMB2 kernels
3f39d53bc7 ARM: dts: rockchip: rk3188: fix lcdc1-rgb24 node name
135fcc4581 ARM: dts: rockchip: fix ir-receiver node names
368f2c2640 arm: dts: rockchip: fix node name for hym8563 rtc
4b346f07f0 arm64: dts: rockchip: keep I2S1 disabled for GPIO function on ROCK Pi 4 series

Change-Id: I0cec2e1f212747f2f82af4006b2b2c19daa97369
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman 2023-03-23 09:11:27 +00:00
commit b86f2ce54f
991 changed files with 10335 additions and 4931 deletions

View File

@ -0,0 +1,6 @@
What: /sys/kernel/oops_count
Date: November 2022
KernelVersion: 6.2.0
Contact: Linux Kernel Hardening List <linux-hardening@vger.kernel.org>
Description:
Shows how many times the system has Oopsed since last boot.

View File

@ -0,0 +1,6 @@
What: /sys/kernel/warn_count
Date: November 2022
KernelVersion: 6.2.0
Contact: Linux Kernel Hardening List <linux-hardening@vger.kernel.org>
Description:
Shows how many times the system has Warned since last boot.

View File

@ -557,6 +557,15 @@ numa_balancing_scan_size_mb is how many megabytes worth of pages are
scanned for a given scan.
oops_limit
==========
Number of kernel oopses after which the kernel should panic when
``panic_on_oops`` is not set. Setting this to 0 disables checking
the count. Setting this to 1 has the same effect as setting
``panic_on_oops=1``. The default value is 10000.
osrelease, ostype & version:
============================
@ -1177,6 +1186,16 @@ entry will default to 2 instead of 0.
2 Unprivileged calls to ``bpf()`` are disabled
= =============================================================
warn_limit
==========
Number of kernel warnings after which the kernel should panic when
``panic_on_warn`` is not set. Setting this to 0 disables checking
the warning count. Setting this to 1 has the same effect as setting
``panic_on_warn=1``. The default value is 0.
watchdog:
=========

View File

@ -2,7 +2,7 @@
# Copyright 2019 BayLibre, SAS
%YAML 1.2
---
$id: "http://devicetree.org/schemas/phy/amlogic,meson-g12a-usb3-pcie-phy.yaml#"
$id: "http://devicetree.org/schemas/phy/amlogic,g12a-usb3-pcie-phy.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
title: Amlogic G12A USB3 + PCIE Combo PHY
@ -13,7 +13,7 @@ maintainers:
properties:
compatible:
enum:
- amlogic,meson-g12a-usb3-pcie-phy
- amlogic,g12a-usb3-pcie-phy
reg:
maxItems: 1
@ -47,7 +47,7 @@ required:
examples:
- |
phy@46000 {
compatible = "amlogic,meson-g12a-usb3-pcie-phy";
compatible = "amlogic,g12a-usb3-pcie-phy";
reg = <0x46000 0x2000>;
clocks = <&ref_clk>;
clock-names = "ref_clk";

View File

@ -109,7 +109,7 @@ audio-codec@1{
reg = <1 0>;
interrupts = <&msmgpio 54 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "intr2"
reset-gpios = <&msmgpio 64 0>;
reset-gpios = <&msmgpio 64 GPIO_ACTIVE_LOW>;
slim-ifc-dev = <&wc9335_ifd>;
clock-names = "mclk", "native";
clocks = <&rpmcc RPM_SMD_DIV_CLK1>,

View File

@ -25,8 +25,8 @@ hardware, which may be as simple as a set of GPIO pins or as complex as
a pair of FIFOs connected to dual DMA engines on the other side of the
SPI shift register (maximizing throughput). Such drivers bridge between
whatever bus they sit on (often the platform bus) and SPI, and expose
the SPI side of their device as a :c:type:`struct spi_master
<spi_master>`. SPI devices are children of that master,
the SPI side of their device as a :c:type:`struct spi_controller
<spi_controller>`. SPI devices are children of that master,
represented as a :c:type:`struct spi_device <spi_device>` and
manufactured from :c:type:`struct spi_board_info
<spi_board_info>` descriptors which are usually provided by

View File

@ -74,8 +74,8 @@ configuration of fault-injection capabilities.
- /sys/kernel/debug/fail*/times:
specifies how many times failures may happen at most.
A value of -1 means "no limit".
specifies how many times failures may happen at most. A value of -1
means "no limit".
- /sys/kernel/debug/fail*/space:
@ -163,11 +163,13 @@ configuration of fault-injection capabilities.
- ERRNO: retval must be -1 to -MAX_ERRNO (-4096).
- ERR_NULL: retval must be 0 or -1 to -MAX_ERRNO (-4096).
- /sys/kernel/debug/fail_function/<functiuon-name>/retval:
- /sys/kernel/debug/fail_function/<function-name>/retval:
specifies the "error" return value to inject to the given
function for given function. This will be created when
user specifies new injection entry.
specifies the "error" return value to inject to the given function.
This will be created when the user specifies a new injection entry.
Note that this file only accepts unsigned values. So, if you want to
use a negative errno, you better use 'printf' instead of 'echo', e.g.:
$ printf %#x -12 > retval
Boot option
^^^^^^^^^^^
@ -331,7 +333,7 @@ Application Examples
FAILTYPE=fail_function
FAILFUNC=open_ctree
echo $FAILFUNC > /sys/kernel/debug/$FAILTYPE/inject
echo -12 > /sys/kernel/debug/$FAILTYPE/$FAILFUNC/retval
printf %#x -12 > /sys/kernel/debug/$FAILTYPE/$FAILFUNC/retval
echo N > /sys/kernel/debug/$FAILTYPE/task-filter
echo 100 > /sys/kernel/debug/$FAILTYPE/probability
echo 0 > /sys/kernel/debug/$FAILTYPE/interval

View File

@ -3,7 +3,7 @@
import os
import sys
from sphinx.util.pycompat import execfile_
from sphinx.util.osutil import fs_encoding
# ------------------------------------------------------------------------------
def loadConfig(namespace):
@ -48,7 +48,9 @@ def loadConfig(namespace):
sys.stdout.write("load additional sphinx-config: %s\n" % config_file)
config = namespace.copy()
config['__file__'] = config_file
execfile_(config_file, config)
with open(config_file, 'rb') as f:
code = compile(f.read(), fs_encoding, 'exec')
exec(code, config)
del config['__file__']
namespace.update(config)
else:

View File

@ -14673,6 +14673,7 @@ L: netdev@vger.kernel.org
S: Maintained
F: drivers/net/phy/phylink.c
F: drivers/net/phy/sfp*
F: include/linux/mdio/mdio-i2c.h
F: include/linux/phylink.h
F: include/linux/sfp.h
K: phylink

View File

@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
VERSION = 5
PATCHLEVEL = 4
SUBLEVEL = 226
SUBLEVEL = 233
EXTRAVERSION =
NAME = Kleptomaniac Octopus

View File

@ -469,8 +469,10 @@ entSys:
#ifdef CONFIG_AUDITSYSCALL
lda $6, _TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT
and $3, $6, $3
#endif
bne $3, strace
#else
blbs $3, strace /* check for SYSCALL_TRACE in disguise */
#endif
beq $4, 1f
ldq $27, 0($5)
1: jsr $26, ($27), sys_ni_syscall

View File

@ -192,7 +192,7 @@ die_if_kernel(char * str, struct pt_regs *regs, long err, unsigned long *r9_15)
local_irq_enable();
while (1);
}
do_exit(SIGSEGV);
make_task_dead(SIGSEGV);
}
#ifndef CONFIG_MATHEMU
@ -577,7 +577,7 @@ do_entUna(void * va, unsigned long opcode, unsigned long reg,
printk("Bad unaligned kernel access at %016lx: %p %lx %lu\n",
pc, va, opcode, reg);
do_exit(SIGSEGV);
make_task_dead(SIGSEGV);
got_exception:
/* Ok, we caught the exception, but we don't want it. Is there
@ -632,7 +632,7 @@ got_exception:
local_irq_enable();
while (1);
}
do_exit(SIGSEGV);
make_task_dead(SIGSEGV);
}
/*

View File

@ -206,7 +206,7 @@ retry:
printk(KERN_ALERT "Unable to handle kernel paging request at "
"virtual address %016lx\n", address);
die_if_kernel("Oops", regs, cause, (unsigned long*)regs - 16);
do_exit(SIGKILL);
make_task_dead(SIGKILL);
/* We ran out of memory, or some other thing happened to us that
made us unable to handle the page fault gracefully. */

View File

@ -74,7 +74,7 @@
pcie2: pcie@2,0 {
device_type = "pci";
assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
assigned-addresses = <0x82001000 0 0x80000 0 0x2000>;
reg = <0x1000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;

View File

@ -584,7 +584,7 @@
pcie1: pcie@2,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
assigned-addresses = <0x82001000 0 0x44000 0 0x2000>;
reg = <0x1000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;

View File

@ -79,7 +79,7 @@
/* x1 port */
pcie@2,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
assigned-addresses = <0x82001000 0 0x40000 0 0x2000>;
reg = <0x1000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -98,7 +98,7 @@
/* x1 port */
pcie@3,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
assigned-addresses = <0x82001800 0 0x44000 0 0x2000>;
reg = <0x1800 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;

View File

@ -22,6 +22,12 @@
stdout-path = &uart0;
};
aliases {
ethernet0 = &eth0;
ethernet1 = &eth1;
ethernet2 = &eth2;
};
memory {
device_type = "memory";
reg = <0x00000000 0x40000000>; /* 1024 MB */
@ -291,7 +297,17 @@
};
};
/* port 6 is connected to eth0 */
ports@6 {
reg = <6>;
label = "cpu";
ethernet = <&eth0>;
phy-mode = "rgmii-id";
fixed-link {
speed = <1000>;
full-duplex;
};
};
};
};
};

View File

@ -84,7 +84,7 @@
/* x1 port */
pcie2: pcie@2,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
assigned-addresses = <0x82001000 0 0x40000 0 0x2000>;
reg = <0x1000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -103,7 +103,7 @@
/* x1 port */
pcie3: pcie@3,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
assigned-addresses = <0x82001800 0 0x44000 0 0x2000>;
reg = <0x1800 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -125,7 +125,7 @@
*/
pcie4: pcie@4,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
assigned-addresses = <0x82002000 0 0x48000 0 0x2000>;
reg = <0x2000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;

View File

@ -457,7 +457,7 @@
/* x1 port */
pcie@2,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
assigned-addresses = <0x82001000 0 0x40000 0 0x2000>;
reg = <0x1000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -476,7 +476,7 @@
/* x1 port */
pcie@3,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
assigned-addresses = <0x82001800 0 0x44000 0 0x2000>;
reg = <0x1800 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -498,7 +498,7 @@
*/
pcie@4,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
assigned-addresses = <0x82002000 0 0x48000 0 0x2000>;
reg = <0x2000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;

View File

@ -97,7 +97,7 @@
pcie2: pcie@2,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
assigned-addresses = <0x82001000 0 0x44000 0 0x2000>;
reg = <0x1000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -115,7 +115,7 @@
pcie3: pcie@3,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
assigned-addresses = <0x82001800 0 0x48000 0 0x2000>;
reg = <0x1800 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -133,7 +133,7 @@
pcie4: pcie@4,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
assigned-addresses = <0x82002000 0 0x4c000 0 0x2000>;
reg = <0x2000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -151,7 +151,7 @@
pcie5: pcie@5,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
reg = <0x2800 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;

View File

@ -112,7 +112,7 @@
pcie2: pcie@2,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
assigned-addresses = <0x82001000 0 0x44000 0 0x2000>;
reg = <0x1000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -130,7 +130,7 @@
pcie3: pcie@3,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
assigned-addresses = <0x82001800 0 0x48000 0 0x2000>;
reg = <0x1800 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -148,7 +148,7 @@
pcie4: pcie@4,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
assigned-addresses = <0x82002000 0 0x4c000 0 0x2000>;
reg = <0x2000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -166,7 +166,7 @@
pcie5: pcie@5,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
reg = <0x2800 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -184,7 +184,7 @@
pcie6: pcie@6,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x84000 0 0x2000>;
assigned-addresses = <0x82003000 0 0x84000 0 0x2000>;
reg = <0x3000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -202,7 +202,7 @@
pcie7: pcie@7,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x88000 0 0x2000>;
assigned-addresses = <0x82003800 0 0x88000 0 0x2000>;
reg = <0x3800 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -220,7 +220,7 @@
pcie8: pcie@8,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x8c000 0 0x2000>;
assigned-addresses = <0x82004000 0 0x8c000 0 0x2000>;
reg = <0x4000 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;
@ -238,7 +238,7 @@
pcie9: pcie@9,0 {
device_type = "pci";
assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
assigned-addresses = <0x82004800 0 0x42000 0 0x2000>;
reg = <0x4800 0 0 0 0>;
#address-cells = <3>;
#size-cells = <2>;

View File

@ -129,7 +129,7 @@
pcie1: pcie@2 {
device_type = "pci";
status = "disabled";
assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
assigned-addresses = <0x82001000 0 0x80000 0 0x2000>;
reg = <0x1000 0 0 0 0>;
clocks = <&gate_clk 5>;
marvell,pcie-port = <1>;

View File

@ -461,7 +461,7 @@
scl-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
status = "okay";
i2c-switch@70 {
i2c-mux@70 {
compatible = "nxp,pca9547";
#address-cells = <1>;
#size-cells = <0>;

View File

@ -464,7 +464,6 @@
&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1>;
uart-has-rtscts;
rts-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
status = "okay";
};

View File

@ -1570,7 +1570,7 @@
};
etb@1a01000 {
compatible = "coresight-etb10", "arm,primecell";
compatible = "arm,coresight-etb10", "arm,primecell";
reg = <0x1a01000 0x1000>;
clocks = <&rpmcc RPM_QDSS_CLK>;

View File

@ -31,7 +31,7 @@
&i2c1 {
status = "okay";
hym8563: hym8563@51 {
hym8563: rtc@51 {
compatible = "haoyu,hym8563";
reg = <0x51>;
#clock-cells = <0>;

View File

@ -67,7 +67,7 @@
#sound-dai-cells = <0>;
};
ir_recv: gpio-ir-receiver {
ir_recv: ir-receiver {
compatible = "gpio-ir-receiver";
gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";

View File

@ -404,7 +404,7 @@
rockchip,pins = <2 RK_PD3 1 &pcfg_pull_none>;
};
lcdc1_rgb24: ldcd1-rgb24 {
lcdc1_rgb24: lcdc1-rgb24 {
rockchip,pins = <2 RK_PA0 1 &pcfg_pull_none>,
<2 RK_PA1 1 &pcfg_pull_none>,
<2 RK_PA2 1 &pcfg_pull_none>,
@ -632,7 +632,6 @@
&global_timer {
interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
status = "disabled";
};
&local_timer {

View File

@ -53,7 +53,7 @@
vin-supply = <&vcc_sys>;
};
hym8563@51 {
rtc@51 {
compatible = "haoyu,hym8563";
reg = <0x51>;

View File

@ -233,7 +233,7 @@
vin-supply = <&vcc_sys>;
};
hym8563: hym8563@51 {
hym8563: rtc@51 {
compatible = "haoyu,hym8563";
reg = <0x51>;
#clock-cells = <0>;

View File

@ -145,7 +145,7 @@
vin-supply = <&vcc_sys>;
};
hym8563: hym8563@51 {
hym8563: rtc@51 {
compatible = "haoyu,hym8563";
reg = <0x51>;
#clock-cells = <0>;

View File

@ -165,7 +165,7 @@
};
&i2c0 {
hym8563: hym8563@51 {
hym8563: rtc@51 {
compatible = "haoyu,hym8563";
reg = <0x51>;
#clock-cells = <0>;

View File

@ -108,6 +108,13 @@
reg = <0x1013c200 0x20>;
interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
clocks = <&cru CORE_PERI>;
status = "disabled";
/* The clock source and the sched_clock provided by the arm_global_timer
* on Rockchip rk3066a/rk3188 are quite unstable because their rates
* depend on the CPU frequency.
* Keep the arm_global_timer disabled in order to have the
* DW_APB_TIMER (rk3066a) or ROCKCHIP_TIMER (rk3188) selected by default.
*/
};
local_timer: local-timer@1013c600 {

View File

@ -47,7 +47,7 @@
compatible = "arm,pl110", "arm,primecell";
reg = <0xfc200000 0x1000>;
interrupt-parent = <&vic1>;
interrupts = <12>;
interrupts = <13>;
status = "disabled";
};

View File

@ -17,7 +17,7 @@ extern unsigned long perf_misc_flags(struct pt_regs *regs);
#define perf_arch_fetch_caller_regs(regs, __ip) { \
(regs)->ARM_pc = (__ip); \
(regs)->ARM_fp = (unsigned long) __builtin_frame_address(0); \
frame_pointer((regs)) = (unsigned long) __builtin_frame_address(0); \
(regs)->ARM_sp = current_stack_pointer; \
(regs)->ARM_cpsr = SVC_MODE; \
}

View File

@ -51,12 +51,6 @@
typedef pte_t *pte_addr_t;
/*
* ZERO_PAGE is a global shared page that is always zero: used
* for zero-mapped memory areas etc..
*/
#define ZERO_PAGE(vaddr) (virt_to_page(0))
/*
* Mark the prot value as uncacheable and unbufferable.
*/

View File

@ -10,6 +10,15 @@
#include <linux/const.h>
#include <asm/proc-fns.h>
#ifndef __ASSEMBLY__
/*
* ZERO_PAGE is a global shared page that is always zero: used
* for zero-mapped memory areas etc..
*/
extern struct page *empty_zero_page;
#define ZERO_PAGE(vaddr) (empty_zero_page)
#endif
#ifndef CONFIG_MMU
#include <asm-generic/4level-fixup.h>
@ -166,13 +175,6 @@ extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
#define __S111 __PAGE_SHARED_EXEC
#ifndef __ASSEMBLY__
/*
* ZERO_PAGE is a global shared page that is always zero: used
* for zero-mapped memory areas etc..
*/
extern struct page *empty_zero_page;
#define ZERO_PAGE(vaddr) (empty_zero_page)
extern pgd_t swapper_pg_dir[PTRS_PER_PGD];

View File

@ -341,7 +341,7 @@ static void oops_end(unsigned long flags, struct pt_regs *regs, int signr)
if (panic_on_oops)
panic("Fatal exception");
if (signr)
do_exit(signr);
make_task_dead(signr);
}
/*

View File

@ -23,6 +23,7 @@ static int mx25_read_cpu_rev(void)
np = of_find_compatible_node(NULL, NULL, "fsl,imx25-iim");
iim_base = of_iomap(np, 0);
of_node_put(np);
BUG_ON(!iim_base);
rev = readl(iim_base + MXC_IIMSREV);
iounmap(iim_base);

View File

@ -9,6 +9,7 @@
*/
#include <linux/io.h>
#include <linux/of_address.h>
#include <linux/module.h>
#include "hardware.h"
@ -17,16 +18,24 @@ static int mx27_cpu_rev = -1;
static int mx27_cpu_partnumber;
#define SYS_CHIP_ID 0x00 /* The offset of CHIP ID register */
#define SYSCTRL_OFFSET 0x800 /* Offset from CCM base address */
static int mx27_read_cpu_rev(void)
{
void __iomem *ccm_base;
struct device_node *np;
u32 val;
np = of_find_compatible_node(NULL, NULL, "fsl,imx27-ccm");
ccm_base = of_iomap(np, 0);
of_node_put(np);
BUG_ON(!ccm_base);
/*
* now we have access to the IO registers. As we need
* the silicon revision very early we read it here to
* avoid any further hooks
*/
val = imx_readl(MX27_IO_ADDRESS(MX27_SYSCTRL_BASE_ADDR + SYS_CHIP_ID));
val = imx_readl(ccm_base + SYSCTRL_OFFSET + SYS_CHIP_ID);
mx27_cpu_partnumber = (int)((val >> 12) & 0xFFFF);

View File

@ -6,6 +6,7 @@
*/
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/io.h>
#include "common.h"
@ -32,10 +33,17 @@ static struct {
static int mx31_read_cpu_rev(void)
{
void __iomem *iim_base;
struct device_node *np;
u32 i, srev;
np = of_find_compatible_node(NULL, NULL, "fsl,imx31-iim");
iim_base = of_iomap(np, 0);
of_node_put(np);
BUG_ON(!iim_base);
/* read SREV register from IIM module */
srev = imx_readl(MX31_IO_ADDRESS(MX31_IIM_BASE_ADDR + MXC_IIMSREV));
srev = imx_readl(iim_base + MXC_IIMSREV);
srev &= 0xff;
for (i = 0; i < ARRAY_SIZE(mx31_cpu_type); i++)

View File

@ -5,6 +5,7 @@
* Copyright (c) 2009 Daniel Mack <daniel@caiaq.de>
*/
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/io.h>
#include "hardware.h"
@ -14,9 +15,16 @@ static int mx35_cpu_rev = -1;
static int mx35_read_cpu_rev(void)
{
void __iomem *iim_base;
struct device_node *np;
u32 rev;
rev = imx_readl(MX35_IO_ADDRESS(MX35_IIM_BASE_ADDR + MXC_IIMSREV));
np = of_find_compatible_node(NULL, NULL, "fsl,imx35-iim");
iim_base = of_iomap(np, 0);
of_node_put(np);
BUG_ON(!iim_base);
rev = imx_readl(iim_base + MXC_IIMSREV);
switch (rev) {
case 0x00:
return IMX_CHIP_REVISION_1_0;

View File

@ -28,6 +28,7 @@ static u32 imx5_read_srev_reg(const char *compat)
np = of_find_compatible_node(NULL, NULL, compat);
iim_base = of_iomap(np, 0);
of_node_put(np);
WARN_ON(!iim_base);
srev = readl(iim_base + IIM_SREV) & 0xff;

View File

@ -44,18 +44,21 @@
static void __iomem *mmp_timer_base = TIMERS_VIRT_BASE;
/*
* FIXME: the timer needs some delay to stablize the counter capture
* Read the timer through the CVWR register. Delay is required after requesting
* a read. The CR register cannot be directly read due to metastability issues
* documented in the PXA168 software manual.
*/
static inline uint32_t timer_read(void)
{
int delay = 100;
uint32_t val;
int delay = 3;
__raw_writel(1, mmp_timer_base + TMR_CVWR(1));
while (delay--)
cpu_relax();
val = __raw_readl(mmp_timer_base + TMR_CVWR(1));
return __raw_readl(mmp_timer_base + TMR_CVWR(1));
return val;
}
static u64 notrace mmp_read_sched_clock(void)

View File

@ -124,7 +124,7 @@ __do_kernel_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr,
show_pte(KERN_ALERT, mm, addr);
die("Oops", regs, fsr);
bust_spinlocks(0);
do_exit(SIGKILL);
make_task_dead(SIGKILL);
}
/*

View File

@ -26,6 +26,13 @@
unsigned long vectors_base;
/*
* empty_zero_page is a special page that is used for
* zero-initialized data and COW.
*/
struct page *empty_zero_page;
EXPORT_SYMBOL(empty_zero_page);
#ifdef CONFIG_ARM_MPU
struct mpu_rgn_info mpu_rgn_info;
#endif
@ -148,9 +155,21 @@ void __init adjust_lowmem_bounds(void)
*/
void __init paging_init(const struct machine_desc *mdesc)
{
void *zero_page;
early_trap_init((void *)vectors_base);
mpu_setup();
/* allocate the zero page. */
zero_page = (void *)memblock_alloc(PAGE_SIZE, PAGE_SIZE);
if (!zero_page)
panic("%s: Failed to allocate %lu bytes align=0x%lx\n",
__func__, PAGE_SIZE, PAGE_SIZE);
bootmem_init();
empty_zero_page = virt_to_page(zero_page);
flush_dcache_page(empty_zero_page);
}
/*

View File

@ -11,3 +11,9 @@ nwfpe-y += fpa11.o fpa11_cpdo.o fpa11_cpdt.o \
entry.o
nwfpe-$(CONFIG_FPE_NWFPE_XP) += extended_cpdo.o
# Try really hard to avoid generating calls to __aeabi_uldivmod() from
# float64_rem() due to loop elision.
ifdef CONFIG_CC_IS_CLANG
CFLAGS_softfloat.o += -mllvm -replexitval=never
endif

View File

@ -1705,7 +1705,7 @@
sd_emmc_b: sd@5000 {
compatible = "amlogic,meson-axg-mmc";
reg = <0x0 0x5000 0x0 0x800>;
interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
clocks = <&clkc CLKID_SD_EMMC_B>,
<&clkc CLKID_SD_EMMC_B_CLK0>,
@ -1717,7 +1717,7 @@
sd_emmc_c: mmc@7000 {
compatible = "amlogic,meson-axg-mmc";
reg = <0x0 0x7000 0x0 0x800>;
interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
clocks = <&clkc CLKID_SD_EMMC_C>,
<&clkc CLKID_SD_EMMC_C_CLK0>,

View File

@ -2317,7 +2317,7 @@
sd_emmc_a: sd@ffe03000 {
compatible = "amlogic,meson-axg-mmc";
reg = <0x0 0xffe03000 0x0 0x800>;
interrupts = <GIC_SPI 189 IRQ_TYPE_EDGE_RISING>;
interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
clocks = <&clkc CLKID_SD_EMMC_A>,
<&clkc CLKID_SD_EMMC_A_CLK0>,
@ -2329,7 +2329,7 @@
sd_emmc_b: sd@ffe05000 {
compatible = "amlogic,meson-axg-mmc";
reg = <0x0 0xffe05000 0x0 0x800>;
interrupts = <GIC_SPI 190 IRQ_TYPE_EDGE_RISING>;
interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
clocks = <&clkc CLKID_SD_EMMC_B>,
<&clkc CLKID_SD_EMMC_B_CLK0>,
@ -2341,7 +2341,7 @@
sd_emmc_c: mmc@ffe07000 {
compatible = "amlogic,meson-axg-mmc";
reg = <0x0 0xffe07000 0x0 0x800>;
interrupts = <GIC_SPI 191 IRQ_TYPE_EDGE_RISING>;
interrupts = <GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
clocks = <&clkc CLKID_SD_EMMC_C>,
<&clkc CLKID_SD_EMMC_C_CLK0>,

View File

@ -528,21 +528,21 @@
sd_emmc_a: mmc@70000 {
compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
reg = <0x0 0x70000 0x0 0x800>;
interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
interrupts = <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};
sd_emmc_b: mmc@72000 {
compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
reg = <0x0 0x72000 0x0 0x800>;
interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};
sd_emmc_c: mmc@74000 {
compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
reg = <0x0 0x74000 0x0 0x800>;
interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};
};

View File

@ -585,7 +585,7 @@
#define MX8MM_IOMUXC_UART1_RXD_GPIO5_IO22 0x234 0x49C 0x000 0x5 0x0
#define MX8MM_IOMUXC_UART1_RXD_TPSMP_HDATA24 0x234 0x49C 0x000 0x7 0x0
#define MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x238 0x4A0 0x000 0x0 0x0
#define MX8MM_IOMUXC_UART1_TXD_UART1_DTE_RX 0x238 0x4A0 0x4F4 0x0 0x0
#define MX8MM_IOMUXC_UART1_TXD_UART1_DTE_RX 0x238 0x4A0 0x4F4 0x0 0x1
#define MX8MM_IOMUXC_UART1_TXD_ECSPI3_MOSI 0x238 0x4A0 0x000 0x1 0x0
#define MX8MM_IOMUXC_UART1_TXD_GPIO5_IO23 0x238 0x4A0 0x000 0x5 0x0
#define MX8MM_IOMUXC_UART1_TXD_TPSMP_HDATA25 0x238 0x4A0 0x000 0x7 0x0

View File

@ -122,9 +122,12 @@
/delete-property/ mrvl,i2c-fast-mode;
status = "okay";
/* MCP7940MT-I/MNY RTC */
rtc@6f {
compatible = "microchip,mcp7940x";
reg = <0x6f>;
interrupt-parent = <&gpiosb>;
interrupts = <5 0>; /* GPIO2_5 */
};
};

View File

@ -26,14 +26,14 @@
stdout-path = "serial0:921600n8";
};
cpus_fixed_vproc0: fixedregulator@0 {
cpus_fixed_vproc0: regulator-vproc-buck0 {
compatible = "regulator-fixed";
regulator-name = "vproc_buck0";
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <1000000>;
};
cpus_fixed_vproc1: fixedregulator@1 {
cpus_fixed_vproc1: regulator-vproc-buck1 {
compatible = "regulator-fixed";
regulator-name = "vproc_buck1";
regulator-min-microvolt = <1000000>;
@ -50,7 +50,7 @@
id-gpio = <&pio 14 GPIO_ACTIVE_HIGH>;
};
usb_p0_vbus: regulator@2 {
usb_p0_vbus: regulator-usb-p0-vbus {
compatible = "regulator-fixed";
regulator-name = "p0_vbus";
regulator-min-microvolt = <5000000>;
@ -59,7 +59,7 @@
enable-active-high;
};
usb_p1_vbus: regulator@3 {
usb_p1_vbus: regulator-usb-p1-vbus {
compatible = "regulator-fixed";
regulator-name = "p1_vbus";
regulator-min-microvolt = <5000000>;
@ -68,7 +68,7 @@
enable-active-high;
};
usb_p2_vbus: regulator@4 {
usb_p2_vbus: regulator-usb-p2-vbus {
compatible = "regulator-fixed";
regulator-name = "p2_vbus";
regulator-min-microvolt = <5000000>;
@ -77,7 +77,7 @@
enable-active-high;
};
usb_p3_vbus: regulator@5 {
usb_p3_vbus: regulator-usb-p3-vbus {
compatible = "regulator-fixed";
regulator-name = "p3_vbus";
regulator-min-microvolt = <5000000>;

View File

@ -160,70 +160,70 @@
#clock-cells = <0>;
};
clk26m: oscillator@0 {
clk26m: oscillator-26m {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <26000000>;
clock-output-names = "clk26m";
};
clk32k: oscillator@1 {
clk32k: oscillator-32k {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <32768>;
clock-output-names = "clk32k";
};
clkfpc: oscillator@2 {
clkfpc: oscillator-50m {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <50000000>;
clock-output-names = "clkfpc";
};
clkaud_ext_i_0: oscillator@3 {
clkaud_ext_i_0: oscillator-aud0 {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <6500000>;
clock-output-names = "clkaud_ext_i_0";
};
clkaud_ext_i_1: oscillator@4 {
clkaud_ext_i_1: oscillator-aud1 {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <196608000>;
clock-output-names = "clkaud_ext_i_1";
};
clkaud_ext_i_2: oscillator@5 {
clkaud_ext_i_2: oscillator-aud2 {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <180633600>;
clock-output-names = "clkaud_ext_i_2";
};
clki2si0_mck_i: oscillator@6 {
clki2si0_mck_i: oscillator-i2s0 {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <30000000>;
clock-output-names = "clki2si0_mck_i";
};
clki2si1_mck_i: oscillator@7 {
clki2si1_mck_i: oscillator-i2s1 {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <30000000>;
clock-output-names = "clki2si1_mck_i";
};
clki2si2_mck_i: oscillator@8 {
clki2si2_mck_i: oscillator-i2s2 {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <30000000>;
clock-output-names = "clki2si2_mck_i";
};
clktdmin_mclk_i: oscillator@9 {
clktdmin_mclk_i: oscillator-mclk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <30000000>;
@ -266,7 +266,7 @@
reg = <0 0x10005000 0 0x1000>;
};
pio: pinctrl@10005000 {
pio: pinctrl@1000b000 {
compatible = "mediatek,mt2712-pinctrl";
reg = <0 0x1000b000 0 0x1000>;
mediatek,pctl-regmap = <&syscfg_pctl_a>;

View File

@ -102,7 +102,7 @@
};
};
clk26m: oscillator@0 {
clk26m: oscillator-26m {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <26000000>;

View File

@ -1310,7 +1310,7 @@ ap_ts_i2c: &i2c14 {
config {
pins = "gpio126";
function = "gpio";
bias-no-pull;
bias-disable;
drive-strength = <2>;
output-low;
};
@ -1320,7 +1320,7 @@ ap_ts_i2c: &i2c14 {
config {
pins = "gpio126";
function = "gpio";
bias-no-pull;
bias-disable;
drive-strength = <2>;
output-high;
};

View File

@ -298,8 +298,10 @@
};
&qup_i2c12_default {
drive-strength = <2>;
bias-disable;
pinmux {
drive-strength = <2>;
bias-disable;
};
};
&qup_uart6_default {

View File

@ -441,7 +441,6 @@
&i2s1 {
rockchip,playback-channels = <2>;
rockchip,capture-channels = <2>;
status = "okay";
};
&i2s2 {

View File

@ -12,19 +12,6 @@
#include <linux/stringify.h>
#if IS_ENABLED(CONFIG_ARM64_LSE_ATOMICS) && IS_ENABLED(CONFIG_AS_LSE)
#define __LL_SC_FALLBACK(asm_ops) \
" b 3f\n" \
" .subsection 1\n" \
"3:\n" \
asm_ops "\n" \
" b 4f\n" \
" .previous\n" \
"4:\n"
#else
#define __LL_SC_FALLBACK(asm_ops) asm_ops
#endif
#ifndef CONFIG_CC_HAS_K_CONSTRAINT
#define K
#endif
@ -43,12 +30,11 @@ __ll_sc_atomic_##op(int i, atomic_t *v) \
int result; \
\
asm volatile("// atomic_" #op "\n" \
__LL_SC_FALLBACK( \
" prfm pstl1strm, %2\n" \
"1: ldxr %w0, %2\n" \
" " #asm_op " %w0, %w0, %w3\n" \
" stxr %w1, %w0, %2\n" \
" cbnz %w1, 1b\n") \
" prfm pstl1strm, %2\n" \
"1: ldxr %w0, %2\n" \
" " #asm_op " %w0, %w0, %w3\n" \
" stxr %w1, %w0, %2\n" \
" cbnz %w1, 1b\n" \
: "=&r" (result), "=&r" (tmp), "+Q" (v->counter) \
: __stringify(constraint) "r" (i)); \
}
@ -61,13 +47,12 @@ __ll_sc_atomic_##op##_return##name(int i, atomic_t *v) \
int result; \
\
asm volatile("// atomic_" #op "_return" #name "\n" \
__LL_SC_FALLBACK( \
" prfm pstl1strm, %2\n" \
"1: ld" #acq "xr %w0, %2\n" \
" " #asm_op " %w0, %w0, %w3\n" \
" st" #rel "xr %w1, %w0, %2\n" \
" cbnz %w1, 1b\n" \
" " #mb ) \
" prfm pstl1strm, %2\n" \
"1: ld" #acq "xr %w0, %2\n" \
" " #asm_op " %w0, %w0, %w3\n" \
" st" #rel "xr %w1, %w0, %2\n" \
" cbnz %w1, 1b\n" \
" " #mb \
: "=&r" (result), "=&r" (tmp), "+Q" (v->counter) \
: __stringify(constraint) "r" (i) \
: cl); \
@ -83,13 +68,12 @@ __ll_sc_atomic_fetch_##op##name(int i, atomic_t *v) \
int val, result; \
\
asm volatile("// atomic_fetch_" #op #name "\n" \
__LL_SC_FALLBACK( \
" prfm pstl1strm, %3\n" \
"1: ld" #acq "xr %w0, %3\n" \
" " #asm_op " %w1, %w0, %w4\n" \
" st" #rel "xr %w2, %w1, %3\n" \
" cbnz %w2, 1b\n" \
" " #mb ) \
" prfm pstl1strm, %3\n" \
"1: ld" #acq "xr %w0, %3\n" \
" " #asm_op " %w1, %w0, %w4\n" \
" st" #rel "xr %w2, %w1, %3\n" \
" cbnz %w2, 1b\n" \
" " #mb \
: "=&r" (result), "=&r" (val), "=&r" (tmp), "+Q" (v->counter) \
: __stringify(constraint) "r" (i) \
: cl); \
@ -142,12 +126,11 @@ __ll_sc_atomic64_##op(s64 i, atomic64_t *v) \
unsigned long tmp; \
\
asm volatile("// atomic64_" #op "\n" \
__LL_SC_FALLBACK( \
" prfm pstl1strm, %2\n" \
"1: ldxr %0, %2\n" \
" " #asm_op " %0, %0, %3\n" \
" stxr %w1, %0, %2\n" \
" cbnz %w1, 1b") \
" prfm pstl1strm, %2\n" \
"1: ldxr %0, %2\n" \
" " #asm_op " %0, %0, %3\n" \
" stxr %w1, %0, %2\n" \
" cbnz %w1, 1b" \
: "=&r" (result), "=&r" (tmp), "+Q" (v->counter) \
: __stringify(constraint) "r" (i)); \
}
@ -160,13 +143,12 @@ __ll_sc_atomic64_##op##_return##name(s64 i, atomic64_t *v) \
unsigned long tmp; \
\
asm volatile("// atomic64_" #op "_return" #name "\n" \
__LL_SC_FALLBACK( \
" prfm pstl1strm, %2\n" \
"1: ld" #acq "xr %0, %2\n" \
" " #asm_op " %0, %0, %3\n" \
" st" #rel "xr %w1, %0, %2\n" \
" cbnz %w1, 1b\n" \
" " #mb ) \
" prfm pstl1strm, %2\n" \
"1: ld" #acq "xr %0, %2\n" \
" " #asm_op " %0, %0, %3\n" \
" st" #rel "xr %w1, %0, %2\n" \
" cbnz %w1, 1b\n" \
" " #mb \
: "=&r" (result), "=&r" (tmp), "+Q" (v->counter) \
: __stringify(constraint) "r" (i) \
: cl); \
@ -176,19 +158,18 @@ __ll_sc_atomic64_##op##_return##name(s64 i, atomic64_t *v) \
#define ATOMIC64_FETCH_OP(name, mb, acq, rel, cl, op, asm_op, constraint)\
static inline long \
__ll_sc_atomic64_fetch_##op##name(s64 i, atomic64_t *v) \
__ll_sc_atomic64_fetch_##op##name(s64 i, atomic64_t *v) \
{ \
s64 result, val; \
unsigned long tmp; \
\
asm volatile("// atomic64_fetch_" #op #name "\n" \
__LL_SC_FALLBACK( \
" prfm pstl1strm, %3\n" \
"1: ld" #acq "xr %0, %3\n" \
" " #asm_op " %1, %0, %4\n" \
" st" #rel "xr %w2, %1, %3\n" \
" cbnz %w2, 1b\n" \
" " #mb ) \
" prfm pstl1strm, %3\n" \
"1: ld" #acq "xr %0, %3\n" \
" " #asm_op " %1, %0, %4\n" \
" st" #rel "xr %w2, %1, %3\n" \
" cbnz %w2, 1b\n" \
" " #mb \
: "=&r" (result), "=&r" (val), "=&r" (tmp), "+Q" (v->counter) \
: __stringify(constraint) "r" (i) \
: cl); \
@ -240,15 +221,14 @@ __ll_sc_atomic64_dec_if_positive(atomic64_t *v)
unsigned long tmp;
asm volatile("// atomic64_dec_if_positive\n"
__LL_SC_FALLBACK(
" prfm pstl1strm, %2\n"
"1: ldxr %0, %2\n"
" subs %0, %0, #1\n"
" b.lt 2f\n"
" stlxr %w1, %0, %2\n"
" cbnz %w1, 1b\n"
" dmb ish\n"
"2:")
" prfm pstl1strm, %2\n"
"1: ldxr %0, %2\n"
" subs %0, %0, #1\n"
" b.lt 2f\n"
" stlxr %w1, %0, %2\n"
" cbnz %w1, 1b\n"
" dmb ish\n"
"2:"
: "=&r" (result), "=&r" (tmp), "+Q" (v->counter)
:
: "cc", "memory");
@ -274,7 +254,6 @@ __ll_sc__cmpxchg_case_##name##sz(volatile void *ptr, \
old = (u##sz)old; \
\
asm volatile( \
__LL_SC_FALLBACK( \
" prfm pstl1strm, %[v]\n" \
"1: ld" #acq "xr" #sfx "\t%" #w "[oldval], %[v]\n" \
" eor %" #w "[tmp], %" #w "[oldval], %" #w "[old]\n" \
@ -282,7 +261,7 @@ __ll_sc__cmpxchg_case_##name##sz(volatile void *ptr, \
" st" #rel "xr" #sfx "\t%w[tmp], %" #w "[new], %[v]\n" \
" cbnz %w[tmp], 1b\n" \
" " #mb "\n" \
"2:") \
"2:" \
: [tmp] "=&r" (tmp), [oldval] "=&r" (oldval), \
[v] "+Q" (*(u##sz *)ptr) \
: [old] __stringify(constraint) "r" (old), [new] "r" (new) \
@ -326,7 +305,6 @@ __ll_sc__cmpxchg_double##name(unsigned long old1, \
unsigned long tmp, ret; \
\
asm volatile("// __cmpxchg_double" #name "\n" \
__LL_SC_FALLBACK( \
" prfm pstl1strm, %2\n" \
"1: ldxp %0, %1, %2\n" \
" eor %0, %0, %3\n" \
@ -336,8 +314,8 @@ __ll_sc__cmpxchg_double##name(unsigned long old1, \
" st" #rel "xp %w0, %5, %6, %2\n" \
" cbnz %w0, 1b\n" \
" " #mb "\n" \
"2:") \
: "=&r" (tmp), "=&r" (ret), "+Q" (*(unsigned long *)ptr) \
"2:" \
: "=&r" (tmp), "=&r" (ret), "+Q" (*(__uint128_t *)ptr) \
: "r" (old1), "r" (old2), "r" (new1), "r" (new2) \
: cl); \
\

View File

@ -11,11 +11,11 @@
#define __ASM_ATOMIC_LSE_H
#define ATOMIC_OP(op, asm_op) \
static inline void __lse_atomic_##op(int i, atomic_t *v) \
static inline void __lse_atomic_##op(int i, atomic_t *v) \
{ \
asm volatile( \
__LSE_PREAMBLE \
" " #asm_op " %w[i], %[v]\n" \
" " #asm_op " %w[i], %[v]\n" \
: [i] "+r" (i), [v] "+Q" (v->counter) \
: "r" (v)); \
}
@ -32,7 +32,7 @@ static inline int __lse_atomic_fetch_##op##name(int i, atomic_t *v) \
{ \
asm volatile( \
__LSE_PREAMBLE \
" " #asm_op #mb " %w[i], %w[i], %[v]" \
" " #asm_op #mb " %w[i], %w[i], %[v]" \
: [i] "+r" (i), [v] "+Q" (v->counter) \
: "r" (v) \
: cl); \
@ -130,7 +130,7 @@ static inline int __lse_atomic_sub_return##name(int i, atomic_t *v) \
" add %w[i], %w[i], %w[tmp]" \
: [i] "+&r" (i), [v] "+Q" (v->counter), [tmp] "=&r" (tmp) \
: "r" (v) \
: cl); \
: cl); \
\
return i; \
}
@ -168,7 +168,7 @@ static inline void __lse_atomic64_##op(s64 i, atomic64_t *v) \
{ \
asm volatile( \
__LSE_PREAMBLE \
" " #asm_op " %[i], %[v]\n" \
" " #asm_op " %[i], %[v]\n" \
: [i] "+r" (i), [v] "+Q" (v->counter) \
: "r" (v)); \
}
@ -185,7 +185,7 @@ static inline long __lse_atomic64_fetch_##op##name(s64 i, atomic64_t *v)\
{ \
asm volatile( \
__LSE_PREAMBLE \
" " #asm_op #mb " %[i], %[i], %[v]" \
" " #asm_op #mb " %[i], %[i], %[v]" \
: [i] "+r" (i), [v] "+Q" (v->counter) \
: "r" (v) \
: cl); \
@ -272,7 +272,7 @@ static inline void __lse_atomic64_sub(s64 i, atomic64_t *v)
}
#define ATOMIC64_OP_SUB_RETURN(name, mb, cl...) \
static inline long __lse_atomic64_sub_return##name(s64 i, atomic64_t *v) \
static inline long __lse_atomic64_sub_return##name(s64 i, atomic64_t *v)\
{ \
unsigned long tmp; \
\
@ -403,7 +403,7 @@ __lse__cmpxchg_double##name(unsigned long old1, \
" eor %[old2], %[old2], %[oldval2]\n" \
" orr %[old1], %[old1], %[old2]" \
: [old1] "+&r" (x0), [old2] "+&r" (x1), \
[v] "+Q" (*(unsigned long *)ptr) \
[v] "+Q" (*(__uint128_t *)ptr) \
: [new1] "r" (x2), [new2] "r" (x3), [ptr] "r" (x4), \
[oldval1] "r" (oldval1), [oldval2] "r" (oldval2) \
: cl); \

View File

@ -378,8 +378,26 @@ static inline int kvm_vcpu_sys_get_rt(struct kvm_vcpu *vcpu)
static inline bool kvm_is_write_fault(struct kvm_vcpu *vcpu)
{
if (kvm_vcpu_abt_iss1tw(vcpu))
return true;
if (kvm_vcpu_abt_iss1tw(vcpu)) {
/*
* Only a permission fault on a S1PTW should be
* considered as a write. Otherwise, page tables baked
* in a read-only memslot will result in an exception
* being delivered in the guest.
*
* The drawback is that we end-up faulting twice if the
* guest is using any of HW AF/DB: a translation fault
* to map the page containing the PT (read only at
* first), then a permission fault to allow the flags
* to be set.
*/
switch (kvm_vcpu_trap_get_fault_type(vcpu)) {
case ESR_ELx_FSC_PERM:
return true;
default:
return false;
}
}
if (kvm_vcpu_trap_is_iabt(vcpu))
return false;

View File

@ -202,7 +202,7 @@ void die(const char *str, struct pt_regs *regs, int err)
raw_spin_unlock_irqrestore(&die_lock, flags);
if (ret != NOTIFY_STOP)
do_exit(SIGSEGV);
make_task_dead(SIGSEGV);
}
static void arm64_show_signal(int signo, const char *str)

View File

@ -296,7 +296,7 @@ static void die_kernel_fault(const char *msg, unsigned long addr,
show_pte(addr);
die("Oops", regs, esr);
bust_spinlocks(0);
do_exit(SIGKILL);
make_task_dead(SIGKILL);
}
static void __do_kernel_fault(unsigned long addr, unsigned int esr,

View File

@ -294,7 +294,7 @@ bad_area:
__func__, opcode, rz, rx, imm, addr);
show_regs(regs);
bust_spinlocks(0);
do_exit(SIGKILL);
make_task_dead(SIGKILL);
}
force_sig_fault(SIGBUS, BUS_ADRALN, (void __user *)addr);

View File

@ -85,7 +85,7 @@ void die_if_kernel(char *str, struct pt_regs *regs, int nr)
pr_err("%s: %08x\n", str, nr);
show_regs(regs);
add_taint(TAINT_DIE, LOCKDEP_NOW_UNRELIABLE);
do_exit(SIGSEGV);
make_task_dead(SIGSEGV);
}
void buserr(struct pt_regs *regs)

View File

@ -17,6 +17,7 @@
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/sched/debug.h>
#include <linux/sched/task.h>
#include <linux/mm_types.h>
#include <linux/kernel.h>
#include <linux/errno.h>
@ -110,7 +111,7 @@ void die(const char *str, struct pt_regs *fp, unsigned long err)
dump(fp);
spin_unlock_irq(&die_lock);
do_exit(SIGSEGV);
make_task_dead(SIGSEGV);
}
static int kstack_depth_to_print = 24;

View File

@ -52,7 +52,7 @@ asmlinkage int do_page_fault(struct pt_regs *regs, unsigned long address,
printk(" at virtual address %08lx\n", address);
if (!user_mode(regs))
die("Oops", regs, error_code);
do_exit(SIGKILL);
make_task_dead(SIGKILL);
return 1;
}

View File

@ -221,7 +221,7 @@ int die(const char *str, struct pt_regs *regs, long err)
panic("Fatal exception");
oops_exit();
do_exit(err);
make_task_dead(err);
return 0;
}

View File

@ -360,7 +360,7 @@ config ARCH_PROC_KCORE_TEXT
depends on PROC_KCORE
config IA64_MCA_RECOVERY
tristate "MCA recovery from errors other than TLB."
bool "MCA recovery from errors other than TLB."
config PERFMON
bool "Performance monitor support"

View File

@ -12,6 +12,7 @@
#include <linux/types.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/sched/task.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/kallsyms.h>
@ -176,7 +177,7 @@ mca_handler_bh(unsigned long paddr, void *iip, unsigned long ipsr)
spin_unlock(&mca_bh_lock);
/* This process is about to be killed itself */
do_exit(SIGKILL);
make_task_dead(SIGKILL);
}
/**

View File

@ -85,7 +85,7 @@ die (const char *str, struct pt_regs *regs, long err)
if (panic_on_oops)
panic("Fatal exception");
do_exit(SIGSEGV);
make_task_dead(SIGSEGV);
return 0;
}

View File

@ -272,7 +272,7 @@ retry:
regs = NULL;
bust_spinlocks(0);
if (regs)
do_exit(SIGKILL);
make_task_dead(SIGKILL);
return;
out_of_memory:

View File

@ -1139,7 +1139,7 @@ void die_if_kernel (char *str, struct pt_regs *fp, int nr)
pr_crit("%s: %08x\n", str, nr);
show_registers(fp);
add_taint(TAINT_DIE, LOCKDEP_NOW_UNRELIABLE);
do_exit(SIGSEGV);
make_task_dead(SIGSEGV);
}
asmlinkage void set_esp0(unsigned long ssp)

View File

@ -48,7 +48,7 @@ int send_fault_sig(struct pt_regs *regs)
pr_alert("Unable to handle kernel access");
pr_cont(" at virtual address %p\n", addr);
die_if_kernel("Oops", regs, 0 /*error_code*/);
do_exit(SIGKILL);
make_task_dead(SIGKILL);
}
return 1;

View File

@ -44,10 +44,10 @@ void die(const char *str, struct pt_regs *fp, long err)
pr_warn("Oops: %s, sig: %ld\n", str, err);
show_regs(fp);
spin_unlock_irq(&die_lock);
/* do_exit() should take care of panic'ing from an interrupt
/* make_task_dead() should take care of panic'ing from an interrupt
* context so we don't handle it here
*/
do_exit(err);
make_task_dead(err);
}
/* for user application debugging */

View File

@ -361,6 +361,8 @@ static struct clk clk_periph = {
*/
int clk_enable(struct clk *clk)
{
if (!clk)
return 0;
mutex_lock(&clocks_mutex);
clk_enable_unlocked(clk);
mutex_unlock(&clocks_mutex);

View File

@ -211,7 +211,7 @@ cvmx_helper_link_info_t __cvmx_helper_board_link_get(int ipd_port)
{
cvmx_helper_link_info_t result;
WARN(!octeon_is_simulation(),
WARN_ONCE(!octeon_is_simulation(),
"Using deprecated link status - please update your DT");
/* Unless we fix it later, all links are defaulted to down */

View File

@ -1100,7 +1100,7 @@ cvmx_helper_link_info_t cvmx_helper_link_get(int ipd_port)
if (index == 0)
result = __cvmx_helper_rgmii_link_get(ipd_port);
else {
WARN(1, "Using deprecated link status - please update your DT");
WARN_ONCE(1, "Using deprecated link status - please update your DT");
result.s.full_duplex = 1;
result.s.link_up = 1;
result.s.speed = 1000;

View File

@ -415,7 +415,7 @@ void __noreturn die(const char *str, struct pt_regs *regs)
if (regs && kexec_should_crash(current))
crash_kexec(regs);
do_exit(sig);
make_task_dead(sig);
}
extern struct exception_table_entry __start___dbe_table[];

View File

@ -75,7 +75,6 @@ ATTRIBUTE_GROUPS(vpe);
static void vpe_device_release(struct device *cd)
{
kfree(cd);
}
static struct class vpe_class = {
@ -157,6 +156,7 @@ out_dev:
device_del(&vpe_device);
out_class:
put_device(&vpe_device);
class_unregister(&vpe_class);
out_chrdev:
@ -169,7 +169,7 @@ void __exit vpe_module_exit(void)
{
struct vpe *v, *n;
device_del(&vpe_device);
device_unregister(&vpe_device);
class_unregister(&vpe_class);
unregister_chrdev(major, VPE_MODULE_NAME);

View File

@ -313,7 +313,6 @@ ATTRIBUTE_GROUPS(vpe);
static void vpe_device_release(struct device *cd)
{
kfree(cd);
}
static struct class vpe_class = {
@ -497,6 +496,7 @@ out_dev:
device_del(&vpe_device);
out_class:
put_device(&vpe_device);
class_unregister(&vpe_class);
out_chrdev:
@ -509,7 +509,7 @@ void __exit vpe_module_exit(void)
{
struct vpe *v, *n;
device_del(&vpe_device);
device_unregister(&vpe_device);
class_unregister(&vpe_class);
unregister_chrdev(major, VPE_MODULE_NAME);

View File

@ -223,7 +223,7 @@ inline void handle_fpu_exception(struct pt_regs *regs)
}
} else if (fpcsr & FPCSR_mskRIT) {
if (!user_mode(regs))
do_exit(SIGILL);
make_task_dead(SIGILL);
si_signo = SIGILL;
}

View File

@ -184,7 +184,7 @@ void die(const char *str, struct pt_regs *regs, int err)
bust_spinlocks(0);
spin_unlock_irq(&die_lock);
do_exit(SIGSEGV);
make_task_dead(SIGSEGV);
}
EXPORT_SYMBOL(die);
@ -288,7 +288,7 @@ void unhandled_interruption(struct pt_regs *regs)
pr_emerg("unhandled_interruption\n");
show_regs(regs);
if (!user_mode(regs))
do_exit(SIGKILL);
make_task_dead(SIGKILL);
force_sig(SIGKILL);
}
@ -299,7 +299,7 @@ void unhandled_exceptions(unsigned long entry, unsigned long addr,
addr, type);
show_regs(regs);
if (!user_mode(regs))
do_exit(SIGKILL);
make_task_dead(SIGKILL);
force_sig(SIGKILL);
}
@ -326,7 +326,7 @@ void do_revinsn(struct pt_regs *regs)
pr_emerg("Reserved Instruction\n");
show_regs(regs);
if (!user_mode(regs))
do_exit(SIGILL);
make_task_dead(SIGILL);
force_sig(SIGILL);
}

View File

@ -37,10 +37,10 @@ void die(const char *str, struct pt_regs *regs, long err)
show_regs(regs);
spin_unlock_irq(&die_lock);
/*
* do_exit() should take care of panic'ing from an interrupt
* make_task_dead() should take care of panic'ing from an interrupt
* context so we don't handle it here
*/
do_exit(err);
make_task_dead(err);
}
void _exception(int signo, struct pt_regs *regs, int code, unsigned long addr)

View File

@ -218,7 +218,7 @@ void die(const char *str, struct pt_regs *regs, long err)
__asm__ __volatile__("l.nop 1");
do {} while (1);
#endif
do_exit(SIGSEGV);
make_task_dead(SIGSEGV);
}
/* This is normally the 'Oops' routine */

View File

@ -48,28 +48,27 @@
#define MADV_DONTFORK 10 /* don't inherit across fork */
#define MADV_DOFORK 11 /* do inherit across fork */
#define MADV_MERGEABLE 12 /* KSM may merge identical pages */
#define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages */
#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */
#define MADV_NOHUGEPAGE 15 /* Not worth backing with hugepages */
#define MADV_DONTDUMP 16 /* Explicity exclude from the core dump,
overrides the coredump filter bits */
#define MADV_DODUMP 17 /* Clear the MADV_NODUMP flag */
#define MADV_WIPEONFORK 18 /* Zero memory on fork, child only */
#define MADV_KEEPONFORK 19 /* Undo MADV_WIPEONFORK */
#define MADV_COLD 20 /* deactivate these pages */
#define MADV_PAGEOUT 21 /* reclaim these pages */
#define MADV_MERGEABLE 65 /* KSM may merge identical pages */
#define MADV_UNMERGEABLE 66 /* KSM may not merge identical pages */
#define MADV_HUGEPAGE 67 /* Worth backing with hugepages */
#define MADV_NOHUGEPAGE 68 /* Not worth backing with hugepages */
#define MADV_DONTDUMP 69 /* Explicity exclude from the core dump,
overrides the coredump filter bits */
#define MADV_DODUMP 70 /* Clear the MADV_NODUMP flag */
#define MADV_WIPEONFORK 71 /* Zero memory on fork, child only */
#define MADV_KEEPONFORK 72 /* Undo MADV_WIPEONFORK */
#define MADV_HWPOISON 100 /* poison a page for testing */
#define MADV_SOFT_OFFLINE 101 /* soft offline page for testing */
/* compatibility flags */
#define MAP_FILE 0
#define MAP_VARIABLE 0
#define PKEY_DISABLE_ACCESS 0x1
#define PKEY_DISABLE_WRITE 0x2

View File

@ -1229,7 +1229,7 @@ static char __attribute__((aligned(64))) iodc_dbuf[4096];
*/
int pdc_iodc_print(const unsigned char *str, unsigned count)
{
unsigned int i;
unsigned int i, found = 0;
unsigned long flags;
for (i = 0; i < count;) {
@ -1238,6 +1238,7 @@ int pdc_iodc_print(const unsigned char *str, unsigned count)
iodc_dbuf[i+0] = '\r';
iodc_dbuf[i+1] = '\n';
i += 2;
found = 1;
goto print;
default:
iodc_dbuf[i] = str[i];
@ -1254,7 +1255,7 @@ print:
__pa(iodc_retbuf), 0, __pa(iodc_dbuf), i, 0);
spin_unlock_irqrestore(&pdc_lock, flags);
return i;
return i - found;
}
#if !defined(BOOTLOADER)

View File

@ -128,6 +128,12 @@ long arch_ptrace(struct task_struct *child, long request,
unsigned long tmp;
long ret = -EIO;
unsigned long user_regs_struct_size = sizeof(struct user_regs_struct);
#ifdef CONFIG_64BIT
if (is_compat_task())
user_regs_struct_size /= 2;
#endif
switch (request) {
/* Read the word at location addr in the USER area. For ptraced
@ -183,14 +189,14 @@ long arch_ptrace(struct task_struct *child, long request,
return copy_regset_to_user(child,
task_user_regset_view(current),
REGSET_GENERAL,
0, sizeof(struct user_regs_struct),
0, user_regs_struct_size,
datap);
case PTRACE_SETREGS: /* Set all gp regs in the child. */
return copy_regset_from_user(child,
task_user_regset_view(current),
REGSET_GENERAL,
0, sizeof(struct user_regs_struct),
0, user_regs_struct_size,
datap);
case PTRACE_GETFPREGS: /* Get the child FPU state. */
@ -304,6 +310,11 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
}
}
break;
case PTRACE_GETREGS:
case PTRACE_SETREGS:
case PTRACE_GETFPREGS:
case PTRACE_SETFPREGS:
return arch_ptrace(child, request, addr, data);
default:
ret = compat_ptrace_request(child, request, addr, data);

View File

@ -373,3 +373,30 @@ long parisc_personality(unsigned long personality)
return err;
}
/*
* madvise() wrapper
*
* Up to kernel v6.1 parisc has different values than all other
* platforms for the MADV_xxx flags listed below.
* To keep binary compatibility with existing userspace programs
* translate the former values to the new values.
*
* XXX: Remove this wrapper in year 2025 (or later)
*/
asmlinkage notrace long parisc_madvise(unsigned long start, size_t len_in, int behavior)
{
switch (behavior) {
case 65: behavior = MADV_MERGEABLE; break;
case 66: behavior = MADV_UNMERGEABLE; break;
case 67: behavior = MADV_HUGEPAGE; break;
case 68: behavior = MADV_NOHUGEPAGE; break;
case 69: behavior = MADV_DONTDUMP; break;
case 70: behavior = MADV_DODUMP; break;
case 71: behavior = MADV_WIPEONFORK; break;
case 72: behavior = MADV_KEEPONFORK; break;
}
return sys_madvise(start, len_in, behavior);
}

View File

@ -131,7 +131,7 @@
116 common sysinfo sys_sysinfo compat_sys_sysinfo
117 common shutdown sys_shutdown
118 common fsync sys_fsync
119 common madvise sys_madvise
119 common madvise parisc_madvise
120 common clone sys_clone_wrapper
121 common setdomainname sys_setdomainname
122 common sendfile sys_sendfile compat_sys_sendfile

View File

@ -268,7 +268,7 @@ void die_if_kernel(char *str, struct pt_regs *regs, long err)
panic("Fatal exception");
oops_exit();
do_exit(SIGSEGV);
make_task_dead(SIGSEGV);
}
/* gdb uses break 4,8 */

View File

@ -0,0 +1,44 @@
// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later
/*
* QorIQ FMan v3 10g port #2 device tree stub [ controller @ offset 0x400000 ]
*
* Copyright 2022 Sean Anderson <sean.anderson@seco.com>
* Copyright 2012 - 2015 Freescale Semiconductor Inc.
*/
fman@400000 {
fman0_rx_0x08: port@88000 {
cell-index = <0x8>;
compatible = "fsl,fman-v3-port-rx";
reg = <0x88000 0x1000>;
fsl,fman-10g-port;
};
fman0_tx_0x28: port@a8000 {
cell-index = <0x28>;
compatible = "fsl,fman-v3-port-tx";
reg = <0xa8000 0x1000>;
fsl,fman-10g-port;
};
ethernet@e0000 {
cell-index = <0>;
compatible = "fsl,fman-memac";
reg = <0xe0000 0x1000>;
fsl,fman-ports = <&fman0_rx_0x08 &fman0_tx_0x28>;
ptp-timer = <&ptp_timer0>;
pcsphy-handle = <&pcsphy0>;
};
mdio@e1000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
reg = <0xe1000 0x1000>;
fsl,erratum-a011043; /* must ignore read errors */
pcsphy0: ethernet-phy@0 {
reg = <0x0>;
};
};
};

View File

@ -0,0 +1,44 @@
// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later
/*
* QorIQ FMan v3 10g port #3 device tree stub [ controller @ offset 0x400000 ]
*
* Copyright 2022 Sean Anderson <sean.anderson@seco.com>
* Copyright 2012 - 2015 Freescale Semiconductor Inc.
*/
fman@400000 {
fman0_rx_0x09: port@89000 {
cell-index = <0x9>;
compatible = "fsl,fman-v3-port-rx";
reg = <0x89000 0x1000>;
fsl,fman-10g-port;
};
fman0_tx_0x29: port@a9000 {
cell-index = <0x29>;
compatible = "fsl,fman-v3-port-tx";
reg = <0xa9000 0x1000>;
fsl,fman-10g-port;
};
ethernet@e2000 {
cell-index = <1>;
compatible = "fsl,fman-memac";
reg = <0xe2000 0x1000>;
fsl,fman-ports = <&fman0_rx_0x09 &fman0_tx_0x29>;
ptp-timer = <&ptp_timer0>;
pcsphy-handle = <&pcsphy1>;
};
mdio@e3000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
reg = <0xe3000 0x1000>;
fsl,erratum-a011043; /* must ignore read errors */
pcsphy1: ethernet-phy@0 {
reg = <0x0>;
};
};
};

View File

@ -609,8 +609,8 @@
/include/ "qoriq-bman1.dtsi"
/include/ "qoriq-fman3-0.dtsi"
/include/ "qoriq-fman3-0-1g-0.dtsi"
/include/ "qoriq-fman3-0-1g-1.dtsi"
/include/ "qoriq-fman3-0-10g-2.dtsi"
/include/ "qoriq-fman3-0-10g-3.dtsi"
/include/ "qoriq-fman3-0-1g-2.dtsi"
/include/ "qoriq-fman3-0-1g-3.dtsi"
/include/ "qoriq-fman3-0-1g-4.dtsi"
@ -659,3 +659,19 @@
interrupts = <16 2 1 9>;
};
};
&fman0_rx_0x08 {
/delete-property/ fsl,fman-10g-port;
};
&fman0_tx_0x28 {
/delete-property/ fsl,fman-10g-port;
};
&fman0_rx_0x09 {
/delete-property/ fsl,fman-10g-port;
};
&fman0_tx_0x29 {
/delete-property/ fsl,fman-10g-port;
};

View File

@ -132,7 +132,7 @@ struct imc_pmu {
* are inited.
*/
struct imc_pmu_ref {
struct mutex lock;
spinlock_t lock;
unsigned int id;
int refc;
};

View File

@ -714,6 +714,7 @@ void __noreturn rtas_halt(void)
/* Must be in the RMO region, so we place it here */
static char rtas_os_term_buf[2048];
static s32 ibm_os_term_token = RTAS_UNKNOWN_SERVICE;
void rtas_os_term(char *str)
{
@ -725,16 +726,20 @@ void rtas_os_term(char *str)
* this property may terminate the partition which we want to avoid
* since it interferes with panic_timeout.
*/
if (RTAS_UNKNOWN_SERVICE == rtas_token("ibm,os-term") ||
RTAS_UNKNOWN_SERVICE == rtas_token("ibm,extended-os-term"))
if (ibm_os_term_token == RTAS_UNKNOWN_SERVICE)
return;
snprintf(rtas_os_term_buf, 2048, "OS panic: %s", str);
/*
* Keep calling as long as RTAS returns a "try again" status,
* but don't use rtas_busy_delay(), which potentially
* schedules.
*/
do {
status = rtas_call(rtas_token("ibm,os-term"), 1, 1, NULL,
status = rtas_call(ibm_os_term_token, 1, 1, NULL,
__pa(rtas_os_term_buf));
} while (rtas_busy_delay(status));
} while (rtas_busy_delay_time(status));
if (status != 0)
printk(KERN_EMERG "ibm,os-term call failed %d\n", status);
@ -1215,6 +1220,13 @@ void __init rtas_initialize(void)
no_entry = of_property_read_u32(rtas.dev, "linux,rtas-entry", &entry);
rtas.entry = no_entry ? rtas.base : entry;
/*
* Discover these now to avoid device tree lookups in the
* panic path.
*/
if (of_property_read_bool(rtas.dev, "ibm,extended-os-term"))
ibm_os_term_token = rtas_token("ibm,os-term");
/* If RTAS was found, allocate the RMO buffer for it and look for
* the stop-self token if any
*/

View File

@ -246,7 +246,7 @@ static void oops_end(unsigned long flags, struct pt_regs *regs,
if (panic_on_oops)
panic("Fatal exception");
do_exit(signr);
make_task_dead(signr);
}
NOKPROBE_SYMBOL(oops_end);

View File

@ -64,6 +64,7 @@ perf_callchain_kernel(struct perf_callchain_entry_ctx *entry, struct pt_regs *re
next_sp = fp[0];
if (next_sp == sp + STACK_INT_FRAME_SIZE &&
validate_sp(sp, current, STACK_INT_FRAME_SIZE) &&
fp[STACK_FRAME_MARKER] == STACK_FRAME_REGS_MARKER) {
/*
* This looks like an interrupt frame for an

View File

@ -79,6 +79,7 @@ REQUEST(__field(0, 8, partition_id)
)
#include I(REQUEST_END)
#ifdef ENABLE_EVENTS_COUNTERINFO_V6
/*
* Not available for counter_info_version >= 0x8, use
* run_instruction_cycles_by_partition(0x100) instead.
@ -92,6 +93,7 @@ REQUEST(__field(0, 8, partition_id)
__count(0x10, 8, cycles)
)
#include I(REQUEST_END)
#endif
#define REQUEST_NAME system_performance_capabilities
#define REQUEST_NUM 0x40
@ -103,6 +105,7 @@ REQUEST(__field(0, 1, perf_collect_privileged)
)
#include I(REQUEST_END)
#ifdef ENABLE_EVENTS_COUNTERINFO_V6
#define REQUEST_NAME processor_bus_utilization_abc_links
#define REQUEST_NUM 0x50
#define REQUEST_IDX_KIND "hw_chip_id=?"
@ -194,6 +197,7 @@ REQUEST(__field(0, 4, phys_processor_idx)
__count(0x28, 8, instructions_completed)
)
#include I(REQUEST_END)
#endif
/* Processor_core_power_mode (0x95) skipped, no counters */
/* Affinity_domain_information_by_virtual_processor (0xA0) skipped,

View File

@ -70,7 +70,7 @@ static struct attribute_group format_group = {
static struct attribute_group event_group = {
.name = "events",
.attrs = hv_gpci_event_attrs,
/* .attrs is set in init */
};
#define HV_CAPS_ATTR(_name, _format) \
@ -280,6 +280,7 @@ static int hv_gpci_init(void)
int r;
unsigned long hret;
struct hv_perf_caps caps;
struct hv_gpci_request_buffer *arg;
hv_gpci_assert_offsets_correct();
@ -298,6 +299,36 @@ static int hv_gpci_init(void)
/* sampling not supported */
h_gpci_pmu.capabilities |= PERF_PMU_CAP_NO_INTERRUPT;
arg = (void *)get_cpu_var(hv_gpci_reqb);
memset(arg, 0, HGPCI_REQ_BUFFER_SIZE);
/*
* hcall H_GET_PERF_COUNTER_INFO populates the output
* counter_info_version value based on the system hypervisor.
* Pass the counter request 0x10 corresponds to request type
* 'Dispatch_timebase_by_processor', to get the supported
* counter_info_version.
*/
arg->params.counter_request = cpu_to_be32(0x10);
r = plpar_hcall_norets(H_GET_PERF_COUNTER_INFO,
virt_to_phys(arg), HGPCI_REQ_BUFFER_SIZE);
if (r) {
pr_devel("hcall failed, can't get supported counter_info_version: 0x%x\n", r);
arg->params.counter_info_version_out = 0x8;
}
/*
* Use counter_info_version_out value to assign
* required hv-gpci event list.
*/
if (arg->params.counter_info_version_out >= 0x8)
event_group.attrs = hv_gpci_event_attrs;
else
event_group.attrs = hv_gpci_event_attrs_v6;
put_cpu_var(hv_gpci_reqb);
r = perf_pmu_register(&h_gpci_pmu, h_gpci_pmu.name, -1);
if (r)
return r;

Some files were not shown because too many files have changed in this diff Show More