Merge tag 'android11-5.4.210_r00' into android11-5.4
This is the merge of the upstream LTS release of 5.4.210 into the android11-5.4 branch. It contains the following commits:ab6cb81d83Merge 5.4.210 into android11-5.4-ltsde0cd3ea70Linux 5.4.210b58882c69fx86/speculation: Add LFENCE to RSB fill sequencef2f41ef035x86/speculation: Add RSB VM Exit protections3a0ef79c6amacintosh/adb: fix oob read in do_adb_query() function54e1abbe85media: v4l2-mem2mem: Apply DST_QUEUE_OFF_BASE on MMAP buffers across ioctls17c2356e46selftests: KVM: Handle compiler optimizations in ucall170465715aKVM: Don't null dereference ops->destroy6098562ed9selftests/bpf: Fix "dubious pointer arithmetic" test6a9b3f0f3bselftests/bpf: Fix test_align verifier log patterns9d6f67365dbpf: Test_verifier, #70 error message updates for 32-bit right shift751f05bc6fselftests/bpf: Extend verifier and bpf_sock tests for dst_port loads7c1134c7dabpf: Verifer, adjust_scalar_min_max_vals to always call update_reg_bounds()a8ba72bbedACPI: APEI: Better fix to avoid spamming the console with old error logsfa829bd4afACPI: video: Shortening quirk list by identifying Clevo by board_name only8ed6e5c5e2ACPI: video: Force backlight native for some TongFang devices828f4c3168thermal: Fix NULL pointer dereferences in of_thermal_ functionscc62c7de3dANDROID: GKI: db845c: Update symbols list and ABI60bba945ebMerge 5.4.209 into android11-5.4-lts8d8935e76fLinux 5.4.2090b0088e475scsi: core: Fix race between handling STS_RESOURCE and completion85fe8623f0mt7601u: add USB device ID for some versions of XiaoDu WiFi Dongle.d5a596c148ARM: crypto: comment out gcc warning that breaks clang builds8d6dab81eesctp: leave the err path free in sctp_stream_init to sctp_stream_freea49282eca8sfc: disable softirqs for ptp TX7799f742f2perf symbol: Correct address for bss symbols388b3f14ffvirtio-net: fix the race between refill work and close52be29e8b6netfilter: nf_queue: do not allow packet truncation below transport header offset8e0ed463dbsctp: fix sleep in atomic context bug in timer handlersbc135e464di40e: Fix interface init with MSI interrupts (no MSI-X)46462e26e6tcp: Fix a data-race around sysctl_tcp_comp_sack_nr.d42f68a9cetcp: Fix a data-race around sysctl_tcp_comp_sack_delay_ns.c2b57a4d3fDocumentation: fix sctp_wmem in ip-sysctl.rst2d30375343tcp: Fix a data-race around sysctl_tcp_invalid_ratelimit.5d235c2fc2tcp: Fix a data-race around sysctl_tcp_autocorking.e02c7ee5a4tcp: Fix a data-race around sysctl_tcp_min_rtt_wlen.558a294960tcp: Fix a data-race around sysctl_tcp_min_tso_segs.fb200869eanet: sungem_phy: Add of_node_put() for reference returned by of_get_parent()e20dd1b0e0igmp: Fix data-races around sysctl_igmp_qrv.73e5a0b591ipv6/addrconf: fix a null-ptr-deref bug for ip6_ptr421e5dd1f1net: ping6: Fix memleak in ipv6_renew_options().3d492b008btcp: Fix a data-race around sysctl_tcp_challenge_ack_limit.dfdc635d55tcp: Fix a data-race around sysctl_tcp_limit_output_bytes.d62e255eccscsi: ufs: host: Hold reference returned by of_parse_phandle()b1343528c7ice: do not setup vlan for loopback VSI15d0198601ice: check (DD | EOF) bits on Rx descriptor rather than (EOP | RS)cd23a2ad7btcp: Fix a data-race around sysctl_tcp_nometrics_save.f9a03fd8edtcp: Fix a data-race around sysctl_tcp_frto.3be498bcf6tcp: Fix a data-race around sysctl_tcp_adv_win_scale.f4b83df011tcp: Fix a data-race around sysctl_tcp_app_win.f240d0cad2tcp: Fix data-races around sysctl_tcp_dsack.b9f937d3d5s390/archrandom: prevent CPACF trng invocations in interrupt context911904c577ntfs: fix use-after-free in ntfs_ucsncmp()098e07ef00Bluetooth: L2CAP: Fix use-after-free caused by l2cap_chan_put5b72a540b0ANDROID: restore some removed refcount functions380aec8a64ANDROID: add tty_schedule_flip() back to the kernelb1e3be07f2Merge 5.4.208 into android11-5.4-lts77ba2b9b46Linux 5.4.208ca5762c589x86: drop bogus "cc" clobber from __try_cmpxchg_user_asm()f88d8c1882net: usb: ax88179_178a needs FLAG_SEND_ZLPf7785092cbtty: use new tty_insert_flip_string_and_push_buffer() in pty_write()815d936e92tty: extract tty_flip_buffer_commit() from tty_flip_buffer_push()2ea77b0b6dtty: drop tty_schedule_flip()f20912215ctty: the rest, stop using tty_schedule_flip()aa60c0cce8tty: drivers/tty/, stop using tty_schedule_flip()126137a53dBluetooth: Fix bt_skb_sendmmsg not allocating partial chunks836b47e643Bluetooth: SCO: Fix sco_send_frame returning skb->lenaa2d34cab3Bluetooth: Fix passing NULL to PTR_ERR10bacb8917Bluetooth: RFCOMM: Replace use of memcpy_from_msg with bt_skb_sendmmsgbf46574d46Bluetooth: SCO: Replace use of memcpy_from_msg with bt_skb_sendmsgf00b06003bBluetooth: Add bt_skb_sendmmsg helper55bf99849bBluetooth: Add bt_skb_sendmsg helper015af30d37ALSA: memalloc: Align buffer allocations in page size352affc31ebitfield.h: Fix "type of reg too small for mask" test0a0fbbd6cbx86/mce: Deduplicate exception handlingb524137fa1mmap locking API: initial implementation as rwsem wrappers592a1c6066x86/uaccess: Implement macros for CMPXCHG on user addresses1d778b54a5x86: get rid of small constant size cases in raw_copy_{to,from}_user()d0d583484dlocking/refcount: Consolidate implementations of refcount_tdab787c73flocking/refcount: Consolidate REFCOUNT_{MAX,SATURATED} definitions0d3182fbe6locking/refcount: Move saturation warnings out of line809554147dlocking/refcount: Improve performance of generic REFCOUNT_FULL code9c9269977flocking/refcount: Move the bulk of the REFCOUNT_FULL implementation into the <linux/refcount.h> header04bff7d7b8locking/refcount: Remove unused refcount_*_checked() variants513b19a43blocking/refcount: Ensure integer operands are treated as signed68b4ee68e8locking/refcount: Define constants for saturation and max refcount values3f71d0e292ima: remove the IMA_TEMPLATE Kconfig optionbc7581e36ddlm: fix pending remove if msg allocation fails4f1d21c77bbpf: Make sure mac_header was set before using ita1f8765f68mm/mempolicy: fix uninit-value in mpol_rebind_policy()76668d2a2fspi: bcm2835: bcm2835_spi_handle_err(): fix NULL pointer deref for non DMA transfers50a1d3d097tcp: Fix data-races around sysctl_tcp_max_reordering.c64b99819dtcp: Fix a data-race around sysctl_tcp_rfc1337.6cc566df68tcp: Fix a data-race around sysctl_tcp_stdurg.7f68bed16ctcp: Fix a data-race around sysctl_tcp_retrans_collapse.369d99c2b8tcp: Fix data-races around sysctl_tcp_slow_start_after_idle.492f3713b2tcp: Fix a data-race around sysctl_tcp_thin_linear_timeouts.92c35113c6tcp: Fix data-races around sysctl_tcp_recovery.83767fe800tcp: Fix a data-race around sysctl_tcp_early_retrans.795aee11fdtcp: Fix data-races around sysctl knobs related to SYN option.f39b03bd72udp: Fix a data-race around sysctl_udp_l3mdev_accept.6727f39e99ipv4: Fix a data-race around sysctl_fib_multipath_use_neigh.a8569f76dfbe2net: Fix buffer overflow in be_get_module_eeprom91d6aa19ddgpio: pca953x: only use single read/write for No AI mode031af9e617ixgbe: Add locking to prevent panic when setting sriov_numvfs to zero55a2a28b32i40e: Fix erroneous adapter reinitialization during recovery processd88d59faf4iavf: Fix handling of dummy receive descriptors25d53d858atcp: Fix data-races around sysctl_tcp_fastopen.78420d8e46tcp: Fix data-races around sysctl_max_syn_backlog.dc58e68d1etcp: Fix a data-race around sysctl_tcp_tw_reuse.e9362a9938tcp: Fix a data-race around sysctl_tcp_notsent_lowat.b0d9f04c87tcp: Fix data-races around some timeout sysctl knobs.ea309c467dtcp: Fix data-races around sysctl_tcp_reordering.b222de2560tcp: Fix data-races around sysctl_tcp_syncookies.ff55c025e6igmp: Fix a data-race around sysctl_igmp_max_memberships.1656ecaddfigmp: Fix data-races around sysctl_igmp_llm_reports.2aad2c5745net/tls: Fix race in TLS device down flow573768dedenet: stmmac: fix dma queue left shift overflow issue911b81fca2i2c: cadence: Change large transfer count reset logic to be unconditional73a1158875tcp: Fix a data-race around sysctl_tcp_probe_interval.b04817c94ftcp: Fix a data-race around sysctl_tcp_probe_threshold.033963b220tcp: Fix a data-race around sysctl_tcp_mtu_probe_floor.fdb96b69f5tcp: Fix data-races around sysctl_tcp_min_snd_mss.30b73edc1dtcp: Fix data-races around sysctl_tcp_base_mss.f966773e13tcp: Fix data-races around sysctl_tcp_mtu_probing.a7386602a2tcp/dccp: Fix a data-race around sysctl_tcp_fwmark_accept.25a635a67cip: Fix a data-race around sysctl_fwmark_reflect.281de37199ip: Fix data-races around sysctl_ip_nonlocal_bind.7828309df0ip: Fix data-races around sysctl_ip_fwd_use_pmtu.5af6d92263ip: Fix data-races around sysctl_ip_no_pmtu_disc.16cb6717f4igc: Reinstate IGC_REMOVED logic and implement it properly98c3c8fd0dperf/core: Fix data race between perf_event_set_output() and perf_mmap_close()6194c02149pinctrl: ralink: Check for null return of devm_kcalloc78bdf732cfpower/reset: arm-versatile: Fix refcount leak in versatile_reboot_probef4248bdb7dxfrm: xfrm_policy: fix a possible double xfrm_pols_put() in xfrm_bundle_lookup()c68f6e2e4fserial: mvebu-uart: correctly report configured baudrate value2230428fb8PCI: hv: Fix interrupt mapping for multi-MSI7121d7120fPCI: hv: Reuse existing IRTE allocation in compose_msi_msg()584c9d4180PCI: hv: Fix hv_arch_irq_unmask() for multi-MSI8e94cc8830PCI: hv: Fix multi-MSI to allow more than one MSI vector3048666143xen/gntdev: Ignore failure to unmap INVALID_GRANT_HANDLEed3fea5506lockdown: Fix kexec lockdown bypass with ima policyc3856fe718mlxsw: spectrum_router: Fix IPv4 nexthop gateway indicationc3dc751184riscv: add as-options for modules with assembly compontentse5a6b05d0cpinctrl: stm32: fix optional IRQ support to gpios06f012f2c0Merge branch 'android11-5.4' into branch 'android11-5.4-lts'd3891851c5Revert "cgroup: Use separate src/dst nodes when preloading css_sets for migration"836d95bfdcMerge 5.4.207 into android11-5.4-lts002c3bbb47Linux 5.4.20708d90846e4can: m_can: m_can_tx_handler(): fix use after free of skb579c8a2e63serial: pl011: UPSTAT_AUTORTS requires .throttle/unthrottle0c8649a497serial: stm32: Clear prev values before setting RTS delaysf4c7f5028bserial: 8250: fix return error code in serial8250_request_std_resource()07379bd79dtty: serial: samsung_tty: set dma burst_size to 1edcb261221usb: dwc3: gadget: Fix event pending check40034fe6b8usb: typec: add missing uevent when partner support PD42373b717aUSB: serial: ftdi_sio: add Belimo device idscbc98dcc38signal handling: don't use BUG_ON() for debugging172cd32adaARM: dts: stm32: use the correct clock source for CEC on stm32mp151c7d4b3ec63soc: ixp4xx/npe: Fix unused match warninga3c7c1a726x86: Clear .brk area at early boot549f70b299irqchip: or1k-pic: Undefine mask_ack for level triggered hardwareb0f41db500ASoC: madera: Fix event generation for rate controls79067a6632ASoC: madera: Fix event generation for OUT1 demux0e7e515a67ASoC: cs47l15: Fix event generation for low power mux control20b921f22aASoC: wm5110: Fix DRE controlf298d2e4c6ASoC: ops: Fix off by one in range control validationede990cfc4net: sfp: fix memory leak in sfp_probe()555cee1bc4nvme: fix regression when disconnect a recovering ctrl08082a642aNFC: nxp-nci: don't print header length mismatch on i2c error4919d82f70net: tipc: fix possible refcount leak in tipc_sk_create()70d8aee1deplatform/x86: hp-wmi: Ignore Sanitization Mode event8dda30f81ccpufreq: pmac32-cpufreq: Fix refcount leak bugb749af1b8fnetfilter: br_netfilter: do not skip all hooks with 0 priority0c9203e75dvirtio_mmio: Restore guest page size on resume569f1ee032virtio_mmio: Add missing PM calls to freeze/restore70433d9ea6mm: sysctl: fix missing numa_stat when !CONFIG_HUGETLB_PAGEda346adcf5sfc: fix kernel panic when creating VFba60ca0ed1seg6: bpf: fix skb checksum in bpf_push_seg6_encap()de7849d9deseg6: fix skb checksum in SRv6 End.B6 and End.B6.Encaps behaviors487f0f77f1seg6: fix skb checksum evaluation in SRH encapsulation/insertionbcad880865sfc: fix use after free when disabling sriovb8d77f2396net: ftgmac100: Hold reference returned by of_get_child_by_name()9b61d3f6dfipv4: Fix data-races around sysctl_ip_dynaddr.cc9540ba5braw: Fix a data-race around sysctl_raw_l3mdev_accept.df691b9910icmp: Fix a data-race around sysctl_icmp_ratemask.8bc1f68714icmp: Fix a data-race around sysctl_icmp_ratelimit.3093a6fe31drm/i915/gt: Serialize TLB invalidates with GT resets40d58aad2fARM: dts: sunxi: Fix SPI NOR campatible on Orange Pi Zerobf676c9408ARM: dts: at91: sama5d2: Fix typo in i2s1 node7c1acd98fbipv4: Fix a data-race around sysctl_fib_sync_mem.0cba7ca667icmp: Fix data-races around sysctl.0e41a0f73ccipso: Fix data-races around sysctl.861f1852afnet: Fix data-races around sysctl_mem.8d2daf565finetpeer: Fix data-races around sysctl.2968830c9bnet: stmmac: dwc-qos: Disable split header for Tegra1941273fd5153ASoC: sgtl5000: Fix noise on shutdown/remove388f3df7c3ima: Fix a potential integer overflow in ima_appraise_measurement72f231b9a8drm/i915: fix a possible refcount leak in intel_dp_add_mst_connector()0f02e7c02bARM: 9210/1: Mark the FDT_FIXED sections as shareable41ea241fb3ARM: 9209/1: Spectre-BHB: avoid pr_info() every time a CPU comes out of idle851730a198ARM: dts: imx6qdl-ts7970: Fix ngpio typo and count18881d7e51ext4: fix race condition between ext4_write and ext4_convert_inline_data423f269500sched/rt: Disable RT_RUNTIME_SHARE by default31e99fa969Revert "evm: Fix memleak in init_desc"d85d19f3b6nilfs2: fix incorrect masking of permission flags for symlinks393594aad5drm/panfrost: Fix shrinker list corruption by madvise IOCTLad44e05f3ecgroup: Use separate src/dst nodes when preloading css_sets for migration444be5a02bwifi: mac80211: fix queue selection for mesh/OCB interfacesdba5484769ARM: 9214/1: alignment: advance IT state after emulating Thumb instructionb4d99aa5aeARM: 9213/1: Print message about disabled Spectre workarounds only once2c1cc40fb2ip: fix dflt addr selection for connected nexthopfb5a7f1548net: sock: tracing: Fix sock_exceed_buf_limit not to dereference stale pointerecc6dec12ctracing/histograms: Fix memory leak problem7425479d20xen/netback: avoid entering xenvif_rx_next_skb() with an empty rx queue9026b280ebALSA: hda/realtek - Enable the headset-mic on a Xiaomi's laptopbbb82d4d9bALSA: hda/realtek - Fix headset mic problem for a HP machine with alc2217e2fbf2d9bALSA: hda/realtek - Fix headset mic problem for a HP machine with alc67133d33a66e3ALSA: hda/conexant: Apply quirk for another HP ProDesk 600 G3 model5e7cc47ab9ALSA: hda - Add fixup for Dell Latitidue E5430f0aba2ea80Merge 5.4.206 into android11-5.4-lts6584107915Linux 5.4.20615a3adfe75Revert "mtd: rawnand: gpmi: Fix setting busy timeout setting"a5112e9833Merge 5.4.205 into android11-5.4-lts0ec831fa97Linux 5.4.2051be11d7f3cdmaengine: ti: Add missing put_device in ti_dra7_xbar_route_allocateb31ab13256dmaengine: ti: Fix refcount leak in ti_dra7_xbar_route_allocatef19026ede2dmaengine: at_xdma: handle errors of at_xdmac_alloc_desc() correctly164e88024fdmaengine: pl330: Fix lockdep warning about non-static key5af3f2a697ida: don't use BUG_ON() for debuggingd88022b41edt-bindings: dma: allwinner,sun50i-a64-dma: Fix min/max typoaaf875578fmisc: rtsx_usb: set return value in rsp_buf alloc err path29612c43a2misc: rtsx_usb: use separate command and response buffers0e517d0d7fmisc: rtsx_usb: fix use of dma mapped buffer for usb bulk transfer858c2d0708dmaengine: imx-sdma: Allow imx8m for imx7 FW revs6758690689i2c: cadence: Unregister the clk notifier in error pathacb72388aeselftests: forwarding: fix error message in learning_test7adf3d45c4selftests: forwarding: fix learning_test when h1 supports IFF_UNICAST_FLT681738560bselftests: forwarding: fix flood_unicast_test when h2 supports IFF_UNICAST_FLT0711d15ccbibmvnic: Properly dispose of all skbs during a failover.aa698affa6ARM: at91: pm: use proper compatibles for sam9x60's rtc and rtt6b4747d5afARM: at91: pm: use proper compatible for sama5d2's rtc1235402750pinctrl: sunxi: sunxi_pconf_set: use correct offset12a6905369pinctrl: sunxi: a83t: Fix NAND function name for some pins3cf8ece911ARM: meson: Fix refcount leak in meson_smp_prepare_cpusc465bbcd3cxfs: remove incorrect ASSERT in xfs_rename845dac0276can: kvaser_usb: kvaser_usb_leaf: fix bittiming limits9afdff9dd8can: kvaser_usb: kvaser_usb_leaf: fix CAN clock frequency regression93f228fcbecan: kvaser_usb: replace run-time checks with struct kvaser_usb_driver_info0adb049bacpowerpc/powernv: delay rng platform device creation until later in boot782b65ee7bvideo: of_display_timing.h: include errno.haf93e82197fbcon: Prevent that screen size is smaller than font size4f34f380f9fbcon: Disallow setting font bigger than screen size997d86cd3efbmem: Check virtual screen sizes in fb_set_var()407c1b491ffbdev: fbmem: Fix logo center image dx issue14ff118431iommu/vt-d: Fix PCI bus rescan device hot add800bb66ab2net: rose: fix UAF bug caused by rose_t0timer_expiry04894ab34fusbnet: fix memory leak in error case6f655b5e13can: gs_usb: gs_usb_open/close(): fix memory leakeb7bbd7728can: grcan: grcan_probe(): remove extra of_node_get()5b48f5711fcan: bcm: use call_rcu() instead of costly synchronize_rcu()e7e3e90d67mm/slub: add missing TID updates on slab deactivation3defefd22aesp: limit skb_page_frag_refill use to a single page63b83aede5Merge 5.4.204 into android11-5.4-lts49286fbdadLinux 5.4.2040ac2845937clocksource/drivers/ixp4xx: remove EXPORT_SYMBOL_GPL from ixp4xx_timer_setup()d40057538bnet: usb: qmi_wwan: add Telit 0x1070 compositionea89a522b4net: usb: qmi_wwan: add Telit 0x1060 composition5c03cad51bxen/arm: Fix race in RB-tree based P2M accounting60ac50daadxen/blkfront: force data bouncing when backend is untrustedede57be88axen/netfront: force data bouncing when backend is untrusted04945b5bebxen/netfront: fix leaking data in shared pages42112e8f94xen/blkfront: fix leaking data in shared pagesb7c996abe5selftests/rseq: Change type of rseq_offset to ptrdiff_tdc28252880selftests/rseq: x86-32: use %gs segment selector for accessing rseq thread areaf89d15c986selftests/rseq: x86-64: use %fs segment selector for accessing rseq thread area618da2318eselftests/rseq: Fix: work-around asm goto compiler bugs58082d4e81selftests/rseq: Remove arm/mips asm goto compiler work-around1c9f13880fselftests/rseq: Fix warnings about #if checks of undefined tokens6f87493c3aselftests/rseq: Fix ppc32 offsets by using long rather than off_t4e9c8fd7f7selftests/rseq: Fix ppc32 missing instruction selection "u" and "x" for load/stored0ca70238fselftests/rseq: Fix ppc32: wrong rseq_cs 32-bit field pointer on big endian20e2f01085selftests/rseq: Uplift rseq selftests for compatibility with glibc-2.3571c04fdf59selftests/rseq: Introduce thread pointer gettersf491e073b9selftests/rseq: Introduce rseq_get_abi() helper158d91ffe0selftests/rseq: Remove volatile from __rseq_abi7037c511f6selftests/rseq: Remove useless assignment to cpu variable9aa134cb66selftests/rseq: introduce own copy of rseq uapi header8417f44759selftests/rseq: remove ARRAY_SIZE define from individual testsb131190070rseq/selftests,x86_64: Add rseq_offset_deref_addv()7b6bffcfb9ipv6/sit: fix ipip6_tunnel_get_prl return value05387c4ff5sit: use mine99a986161net: dsa: bcm_sf2: force pause link settingsac9cd4f66ahwmon: (ibmaem) don't call platform_device_del() if platform_device_add() failsee25841221xen/gntdev: Avoid blocking in unmap_grant_pages()5eac00ef2anet: tun: avoid disabling NAPI twice8f968872ecNFC: nxp-nci: Don't issue a zero length i2c_master_read()37287fd28fnfc: nfcmrvl: Fix irq_of_parse_and_map() return value893825289bnet: bonding: fix use-after-free after 802.3ad slave unbind6fdef80e7enet: bonding: fix possible NULL deref in rlb codebb1dc7cc57net/sched: act_api: Notify user space if any actions were flushed before error3b2ddeb89fnetfilter: nft_dynset: restore set element counter when failing to update5b3a1c6bcas390: remove unneeded 'select BUILD_BIN2C'bdecd912e9PM / devfreq: exynos-ppmu: Fix refcount leak in of_get_devfreq_eventse1284ec4a6caif_virtio: fix race between virtio_device_ready() and ndo_open()9204bc3e87net: ipv6: unexport __init-annotated seg6_hmac_net_init()7a79f71f69usbnet: fix memory allocation in helpers5af106f8e0linux/dim: Fix divide by 0 in RDMA DIM85d7d672e8RDMA/qedr: Fix reporting QP timeout attributeea0519bc57net: tun: stop NAPI when detaching queuesa8cf919022net: tun: unlink NAPI from device on destruction22e7546101selftests/net: pass ipv6_args to udpgso_bench's IPv6 TCP test1d877327davirtio-net: fix race between ndo_open() and virtio_device_ready()7f89bb5d71net: usb: ax88179_178a: Fix packet receivingbb91556d2anet: rose: fix UAF bugs caused by timer handler76a477d398SUNRPC: Fix READ_PLUS crasher13816057eas390/archrandom: simplify back to earlier design and initialize earlierf157bd9cf3dm raid: fix KASAN warning in raid5_add_disks90de153575dm raid: fix accesses beyond end of raid member arrayb6125c5dc3powerpc/bpf: Fix use of user_pt_regs in uapi1ef2e87736powerpc/prom_init: Fix kernel config grepd5e32f08e7nvdimm: Fix badblocks clear off-by-one error53fb996f27ipv6: take care of disable_policy when restoring routes15a9d795ebMerge 5.4.203 into android11-5.4-lts871cbc208bLinux 5.4.203572cc34503crypto: arm/ghash-ce - define fpu before fpu registers are referenced3bf992f9d9crypto: arm - use Kconfig based compiler checks for crypto opcodes1b43c30cd5ARM: 9029/1: Make iwmmxt.S support Clang's integrated assembler9e00e5d195ARM: OMAP2+: drop unnecessary adrl3657432a75ARM: 8929/1: use APSR_nzcv instead of r15 as mrc operand02c200fdbaARM: 8933/1: replace Sun/Solaris style flag on section directive54e6ecd5b7crypto: arm/sha512-neon - avoid ADRL pseudo instruction5e6f800332crypto: arm/sha256-neon - avoid ADRL pseudo instructione120403c0eARM: 8971/1: replace the sole use of a symbol with its definition0a43679016ARM: 8990/1: use VFP assembler mnemonics in register load/store macros472671eec9ARM: 8989/1: use .fpu assembler directives instead of assembler arguments2bfb0d43a4net: mscc: ocelot: allow unregistered IP multicast flooding223d551a66kexec_file: drop weak attribute from arch_kexec_apply_relocations[_add]ab3ed204a1powerpc/ftrace: Remove ftrace init tramp once kernel init is complete77e2ad0918drm: remove drm_fb_helper_modinit476819f502Merge branch 'android11-5.4' into branch 'android11-5.4-lts'8e932637c7Merge 5.4.202 into android11-5.4-lts9ef3ad40a8Linux 5.4.202ceda71d49fpowerpc/pseries: wire up rng during setup_arch()ece9838902kbuild: link vmlinux only once for CONFIG_TRIM_UNUSED_KSYMS (2nd attempt)2a81e81314random: update comment from copy_to_user() -> copy_to_iter()80f0038d75modpost: fix section mismatch check for exported init/exit sectionsd1359e4129ARM: cns3xxx: Fix refcount leak in cns3xxx_init29ca9c4efaARM: Fix refcount leak in axxia_boot_secondary734a4d1514soc: bcm: brcmstb: pm: pm-arm: Fix refcount leak in brcmstb_pm_probef9b77a5293ARM: exynos: Fix refcount leak in exynos_map_pmu615907ccc4ARM: dts: imx6qdl: correct PU regulator ramp delay93e6137d2apowerpc/powernv: wire up rng during setup_arch97808c7817powerpc/rtas: Allow ibm,platform-dump RTAS call with null buffer addressb623297932powerpc: Enable execve syscall exit tracepointe0701f150bparisc: Enable ARCH_HAS_STRICT_MODULE_RWXe5234a9d64xtensa: Fix refcount leak bug in time.ca52972ee70xtensa: xtfpga: Fix refcount leak bug in setupf0fc7cdf5fiio: adc: axp288: Override TS pin bias current for some models11c7ea38beiio: adc: stm32: fix maximum clock rate for stm32mp15x5e39397d60iio: trigger: sysfs: fix use-after-free on remove6d2e68d021iio: gyro: mpu3050: Fix the error handling in mpu3050_power_up()1ad6d66854iio: accel: mma8452: ignore the return value of reset operationa391bced84iio:accel:mxc4005: rearrange iio trigger get and register23c158caa0iio:accel:bma180: rearrange iio trigger get and register8ea16a64aaiio:chemical:ccs811: rearrange iio trigger get and register2333db14d8usb: chipidea: udc: check request status before setting device address47e41b4dabxhci: turn off port power in shutdownd62d1c606diio: adc: vf610: fix conversion mode sysfs node name741b6c8363s390/cpumf: Handle events cycles and instructions identical4837d1c812gpio: winbond: Fix error code in winbond_gpio_get()bb18ad00c0Revert "net/tls: fix tls_sk_proto_close executed repeatedly"8c7a32b7c1virtio_net: fix xdp_rxq_info bug after suspend/resume28a78414f2igb: Make DMA faster when CPU is active on the PCIe linka5ed066bc2regmap-irq: Fix a bug in regmap_irq_enable() for type_in_mask chips844168a5daice: ethtool: advertise 1000M speeds properlye3a232e576afs: Fix dynamic root getattrcacab1e620MIPS: Remove repetitive increase irq_err_count788c954f19x86/xen: Remove undefined behavior in setup_features()c7bdaad9cbudmabuf: add back sanity check05c6c36c79net/tls: fix tls_sk_proto_close executed repeatedly02da602bc2erspan: do not assume transport header is always setd1592d3e36drm/msm/mdp4: Fix refcount leak in mdp4_modeset_init_intff1f9c2a5a3net/sched: sch_netem: Fix arithmetic in netem_dump() for 32-bit platforms47d31b97bfbonding: ARP monitor spams NETDEV_NOTIFY_PEERS notifiers104a59b745phy: aquantia: Fix AN when higher speeds than 1G are not advertised8ffe2e50e9bpf: Fix request_sock leak in sk lookup helpersf074ab2539USB: serial: option: add Quectel RM500K module supportea7b23eadeUSB: serial: option: add Quectel EM05-G modem613c849d73USB: serial: option: add Telit LE910Cx 0x1250 compositionae183969bdrandom: quiet urandom warning ratelimit suppression message06a24ddba9dm mirror log: clear log bits up to BITS_PER_LONG boundary1f350f3cf0dm era: commit metadata in postsuspend after worker stops0e75acbe1bata: libata: add qc->flags in ata_qc_complete_template tracepoint71c76f56b9mtd: rawnand: gpmi: Fix setting busy timeout settingc8d37e6ca1mmc: sdhci-pci-o2micro: Fix card detect by dealing with debouncingaf28f602dfnet: openvswitch: fix parsing of nw_proto for IPv6 fragments6fda65dabdALSA: hda/realtek: Add quirk for Clevo PD70PNT5fbad99e76ALSA: hda/realtek - ALC897 headset MIC no soundcf81f367cfALSA: hda/conexant: Fix missing beep setupeca9b5e36eALSA: hda/via: Fix missing beep setup1df5178fderandom: schedule mix_interrupt_randomness() less oftenc87e851b23vt: drop old FONT ioctlsd7a5d91fa5Merge 5.4.201 into android11-5.4-lts23db944f75Linux 5.4.2013994d2ee55Revert "hwmon: Make chip parameter for with_info API mandatory"7b9c3bfbadarm64: mm: Don't invalidate FROM_DEVICE buffers at start of DMA transfer2e1591c27btcp: drop the hash_32() part from the index calculationc26e1addf1tcp: increase source port perturb table to 2^1677d29f3b18tcp: dynamically allocate the perturb table used by source ports7c0a777b7dtcp: add small random increments to the source port53c5de3092tcp: use different parts of the port_offset for index and offset95921a3babtcp: add some entropy in __inet_hash_connect()bdcbf2602fusb: gadget: u_ether: fix regression in setting fixed MAC address2577d67a9adm: remove special-casing of bio-based immutable singleton target on NVMe4143503b48s390/mm: use non-quiescing sske for KVM switch to keyed guest1dd92ce7e8UPSTREAM: ext4: verify dir block before splitting it1765fa5267UPSTREAM: ext4: fix use-after-free in ext4_rename_dir_prepare24ee3133e7BACKPORT: ext4: Only advertise encrypted_casefold when encryption and unicode are enabled4adf828284BACKPORT: ext4: fix no-key deletion for encrypt+casefold7f4133a55eBACKPORT: ext4: optimize match for casefolded encrypted dirsce3b26019cBACKPORT: ext4: handle casefolding with encryption8515bb68eeRevert "ANDROID: ext4: Handle casefolding with encryption"91b58da1b3Revert "ANDROID: ext4: Optimize match for casefolded encrypted dirs"467eb53acdANDROID: cpu/hotplug: avoid breaking Android ABI by fusing cpuhp stepsc566c065e8ANDROID: change function signatures for some random functions.b2351c2368Merge 5.4.200 into android11-5.4-lts4c5060a549Merge 5.4.199 into android11-5.4-ltsbba1b765b9Revert "mailbox: forward the hrtimer if not queued and under a lock"829ffaa71cRevert "drm: fix EDID struct for old ARM OABI format"864659cb5fRevert "ALSA: jack: Access input_dev under mutex"f0c280af0eLinux 5.4.200ab8dff4b71powerpc/mm: Switch obsolete dssall to .long1a48a41f14riscv: Less inefficient gcc tishift helpers (and export their symbols)2464a1c0deRISC-V: fix barrier() use in <vdso/processor.h>490a02cd82arm64: kprobes: Use BRK instead of single-step when executing instructions out-of-lineef6f9ce0a7net: openvswitch: fix leak of nested actions6bb3c77c74net: openvswitch: fix misuse of the cached connection on tuple changesb47319b4aanet/sched: act_police: more accurate MTU policing13fbdea118virtio-pci: Remove wrong address verification in vp_del_vqs()80e4d8a274ALSA: hda/realtek: fix right sounds and mute/micmute LEDs for HP machine119e0268ccALSA: hda/realtek: fix mute/micmute LEDs for HP 440 G8fba5428917ext4: add reserved GDT blocks check4ca0d2f1e0ext4: make variable "count" signeda6b31616e5ext4: fix bug_on ext4_mb_use_inode_paae46031287dm mirror log: round up region bitmap size to BITS_PER_LONG64d2df6480serial: 8250: Store to lsr_save_flags after lsr readb75bddfcc1usb: gadget: lpc32xx_udc: Fix refcount leak in lpc32xx_udc_probe6506aff2dcusb: dwc2: Fix memory leak in dwc2_hcd_init940653b51cUSB: serial: io_ti: add Agilent E5805A support31363b2b86USB: serial: option: add support for Cinterion MV31 with new baselined0c3730f27comedi: vmk80xx: fix expression for tx buffer sizebf833c4848i2c: designware: Use standard optional ref clock implementation8d884c08eeirqchip/gic-v3: Fix refcount leak in gic_populate_ppi_partitions58e67c81e2irqchip/gic-v3: Fix error handling in gic_populate_ppi_partitions56526c3883irqchip/gic/realview: Fix refcount leak in realview_gic_of_init4695bafabffaddr2line: Fix overlapping text section failures, the sequel1b34d6a938certs/blacklist_hashes.c: fix const confusion in certs blacklistfb775ee3cfarm64: ftrace: fix branch range checks0e21311ba4net: bgmac: Fix an erroneous kfree() in bgmac_remove()c19cdd72b3mlxsw: spectrum_cnt: Reorder counter poolsc03304dc42misc: atmel-ssc: Fix IRQ check in ssc_probef7183c76d5tty: goldfish: Fix free_irq() on removeff6e03fe84i40e: Fix call trace in setup_tx_descriptors4b94408e16i40e: Fix calculating the number of queue pairs43f65970eei40e: Fix adding ADQ filter to TC0cff3a7ce6eclocksource: hyper-v: unexport __init-annotated hv_init_clocksource()11c870c0b5pNFS: Don't keep retrying if the server replied NFS4ERR_LAYOUTUNAVAILABLEe32fe87afcrandom: credit cpu and bootloader seeds by default9e4cab02b7net: ethernet: mtk_eth_soc: fix misuse of mem alloc interface netdev[napi]_alloc_frag2f42389d27ipv6: Fix signed integer overflow in l2tp_ip6_sendmsg6b4d8b44e7nfc: nfcmrvl: Fix memory leak in nfcmrvl_play_deferred786428a1devirtio-mmio: fix missing put_device() when vm_cmdline_parent registration failedaacb264d54ALSA: hda/realtek - Add HW8326 supportff882404dfscsi: pmcraid: Fix missing resource cleanup in error casec481192236scsi: ipr: Fix missing/incorrect resource cleanup in error casefe0855944ascsi: lpfc: Allow reduced polling rate for nvme_admin_async_event cmd completion1f1be79189scsi: lpfc: Fix port stuck in bypassed state after LIP in PT2PT topology001de3d8cescsi: vmw_pvscsi: Expand vcpuHint to 16 bits9e3a0d3fc7ASoC: wm_adsp: Fix event generation for wm_adsp_fw_put()bc046649c5ASoC: es8328: Fix event generation for deemphasis controla81f5a7f7aASoC: wm8962: Fix suspend while playing music253334f84cata: libata-core: fix NULL pointer deref in ata_host_alloc_pinfo()052cd621acASoC: cs42l56: Correct typo in minimum level for SX volume controls6d180913b3ASoC: cs42l52: Correct TLV for Bypass Volume385a031c56ASoC: cs53l30: Correct number of volume levels on SX controls675b6a49cfASoC: cs35l36: Update digital volume TLVb00f63dba5ASoC: cs42l52: Fix TLV scales for mixer controlscd8c1e6c01dma-debug: make things less spammy under memory pressurea45e19fd6eASoC: nau8822: Add operation for internal PLL off and on348831a9e8powerpc/kasan: Silence KASAN warnings in __get_wchan()5624055c8frandom: account for arch randomness in bitsc0bf6bfce7random: mark bootloader randomness code as __initf96250197brandom: avoid checking crng_ready() twice in random_init()072cd87d12crypto: drbg - make reseeding from get_random_bytes() synchronouse9eb0c4741crypto: drbg - always try to free Jitter RNG instancef284afc3a9crypto: drbg - move dynamic ->reseed_threshold adjustments to __drbg_seed()babba4bf53crypto: drbg - track whether DRBG was seeded with !rng_is_initialized()1b93b302e9crypto: drbg - prepare for more fine-grained tracking of seeding state98e574a734crypto: drbg - always seeded with SP800-90B compliant noise source61f87ea3f9Revert "random: use static branch for crng_ready()"3faf33a856random: check for signals after page of pool writes2177cef53erandom: wire up fops->splice_{read,write}_iter()35db2a0731random: convert to using fops->write_iter()43e62db84arandom: convert to using fops->read_iter()c23188facdrandom: unify batched entropy implementations1aeedbe02brandom: move randomize_page() into mm where it belongsceaf1feeferandom: move initialization functions out of hot pagesd3bf98d61frandom: make consistent use of buf and len70fce7f105random: use proper return types on get_random_{int,long}_wait()d05948dc23random: remove extern from functions in headerd8b4296417random: use static branch for crng_ready()087a14b9cfrandom: credit architectural init the exact amountac48f7bee1random: handle latent entropy and command line from random_init()736a22645drandom: use proper jiffies comparison macro3266fba206random: remove ratelimiting for in-kernel unseeded randomnessc5373bd6e4random: move initialization out of reseeding hot path0747ad152frandom: avoid initializing twice in credit race0baeec0effrandom: use symbolic constants for crng_init states55d64df3adsiphash: use one source of truth for siphash permutationse4e8a9f8a6random: help compiler out with fast_mix() by using simpler argumentsbf3b51eb0frandom: do not use input pool from hard IRQs6d4203a2cdrandom: order timer entropy functions below interrupt functions58da574f10random: do not pretend to handle premature next security modele739d5bd14random: use first 128 bits of input as fast initc44f8b3863random: do not use batches when !crng_ready()e247ea8d97random: insist on random_get_entropy() existing in order to simplify9bfbcb37e5xtensa: use fallback for random_get_entropy() instead of zerofa15650b51sparc: use fallback for random_get_entropy() instead of zero9dfc14590cum: use fallback for random_get_entropy() instead of zero0cc41e2c73x86/tsc: Use fallback for random_get_entropy() instead of zerof2a6e87270nios2: use fallback for random_get_entropy() instead of zerodb1d13fe4carm: use fallback for random_get_entropy() instead of zero6fa912f987mips: use fallback for random_get_entropy() instead of just c0 random36f38f838cm68k: use fallback for random_get_entropy() instead of zeroa7d04ca9datimekeeping: Add raw clock fallback for random_get_entropy()eb2f9d72f3powerpc: define get_cycles macro for arch-override10455a367calpha: define get_cycles macro for arch-override5f0b77ca19parisc: define get_cycles macro for arch-override80459abc9fs390: define get_cycles macro for arch-override7338564449ia64: define get_cycles macro for arch-override5fac866639init: call time_init() before rand_initialize()b88ae87b10random: fix sysctl documentation nits4654257483random: document crng_fast_key_erasure() destination possibilityec07b34945random: make random_get_entropy() return an unsigned longfe156368f9random: allow partial reads if later user copies fail70788723darandom: check for signals every PAGE_SIZE chunk of /dev/[u]random2ce859d91frandom: check for signal_pending() outside of need_resched() check0e8030c9e0random: do not allow user to keep crng key around on stack95aed891f7random: do not split fast init input in add_hwgenerator_randomness()1d53d5a097random: mix build-time latent entropy into pool at init0aba75c617random: re-add removed comment about get_random_{u32,u64} reseeding81ea8a609brandom: treat bootloader trust toggle the same way as cpu trust togglea08d52a608random: skip fast_init if hwrng provides large chunk of entropy8320bc665crandom: check for signal and try earlier when generating entropy3a53b818bbrandom: reseed more often immediately after booting905759e0fcrandom: make consistent usage of crng_ready()ad4c6bd98crandom: use SipHash as interrupt entropy accumulator631503001crandom: replace custom notifier chain with standard one1ae73fb2a6random: don't let 644 read-only sysctls be written toed40975710random: give sysctl_random_min_urandom_seed a more sensible value75d95c1b5drandom: do crng pre-init loading in worker rather than irq219c84fe93random: unify cycles_t and jiffies usage and types673637c4c9random: cleanup UUID handling4d5151cc28random: only wake up writers after zap if threshold was passedac0081dec7random: round-robin registers as ulong, not u3262cd795e46random: clear fast pool, crng, and batches in cpuhp bring upa7f8f385bbrandom: pull add_hwgenerator_randomness() declaration into random.hff607fc760random: check for crng_init == 0 in add_device_randomness()20788eb4cerandom: unify early init crng load accounting49567f9477random: do not take pool spinlock at boot4a61bf7f9brandom: defer fast pool mixing to worker944d1bd0e5random: rewrite header introductory commentc0e35949c7random: group sysctl functionsd946084180random: group userspace read/write functions565a66043brandom: group entropy collection functionsf2d587c493random: group entropy extraction functionsa8786d5476random: group crng functionsc12dfec1aarandom: group initialization wait functions22e3db57abrandom: remove whitespace and reorder includescee64be605random: remove useless header comment904e6123c4random: introduce drain_entropy() helper to declutter crng_reseed()47c56790d5random: deobfuscate irq u32/u64 contributionse280b79c31random: add proper SPDX header776927dfd4random: remove unused tracepointsd68883956drandom: remove ifdef'd out interrupt bench4a14a5a696random: tie batched entropy generation to base_crng generationd8a6684950random: fix locking for crng_init in crng_reseed()b1d5611381random: zero buffer after reading entropy from userspace21da00f8cbrandom: remove outdated INT_MAX >> 6 check in urandom_read()b530684129random: make more consistent use of integer types3eed6af93erandom: use hash function for crng_slow_load()cee3c70569random: use simpler fast key erasure flow on per-cpu keysea9941fd6erandom: absorb fast pool into input pool after fast loada3562bf4e8random: do not xor RDRAND when writing into /dev/random574c883950random: ensure early RDSEED goes through mixer on initd3d3c1c214random: inline leaves of rand_initialize()817315517arandom: get rid of secondary crngsc15fc80b7drandom: use RDSEED instead of RDRAND in entropy extraction72db8151c8random: fix locking in crng_fast_load()7229c6d90arandom: remove batched entropy locking6c89115792random: remove use_input_pool parameter from crng_reseed()4ef908fb81random: make credit_entropy_bits() always safe42a9a7e807random: always wake up entropy writers after extraction373ef51f3erandom: use linear min-entropy accumulation creditinga1a2bae5efrandom: simplify entropy debiting4e5814bd2erandom: use computational hash for entropy extraction99a0f8e22drandom: only call crng_finalize_init() for primary_crng88609b892frandom: access primary_pool directly rather than through pointer0b9f9b94f1random: continually use hwgenerator randomness811e333c4erandom: simplify arithmetic function flow in account()56de23dcf9random: selectively clang-format where it makes sense86eac12b1crandom: access input_pool_data directly rather than through pointer4f5400ca7frandom: cleanup fractional entropy shift constants1b6f1d32a8random: prepend remaining pool constants with POOL_0fe4a64fd9random: de-duplicate INPUT_POOL constantse35576c4cbrandom: remove unused OUTPUT_POOL constants74cb3093f2random: rather than entropy_store abstraction, use global14652d8642random: remove unused extract_entropy() reserved argument12f17e3f3arandom: remove incomplete last_data logicadcbbb44ccrandom: cleanup integer types4ac4c7f057random: cleanup poolinfo abstraction5c3818e3bdrandom: fix typo in comments0a7e658102random: don't reset crng_init_cnt on urandom_read()8d7c55563erandom: avoid superfluous call to RDRAND in CRNG extraction8b4695640brandom: early initialization of ChaCha constantscfc6906500random: initialize ChaCha20 constants with correct endianness922d082e33random: use IS_ENABLED(CONFIG_NUMA) instead of ifdefs565b3af168random: harmonize "crng init done" messages346c4a697crandom: mix bootloader randomness into poolafce74c0c0random: do not re-init if crng_reseed completes before primary initd76758c712random: do not sign extend bytes for rotation when mixingc2f0a89cd1random: use BLAKE2s instead of SHA1 in extraction6e6ae70c1erandom: remove unused irq_flags argument from add_interrupt_randomness()2580b0b3fdrandom: document add_hwgenerator_randomness() with other input functions3cc36a4aa1crypto: blake2s - adjust include guard naming09342a544ccrypto: blake2s - include <linux/bug.h> instead of <asm/bug.h>f850f3643dMAINTAINERS: co-maintain random.c967e3a136frandom: remove dead code left over from blocking pool610f0b439arandom: avoid arch_get_random_seed_long() when collecting IRQ randomnessad3fce6691random: add arch_get_random_*long_early()41b0d3e86cpowerpc: Use bool in archrandom.h89533373e1linux/random.h: Mark CONFIG_ARCH_RANDOM functions __must_check0222f9f1d1linux/random.h: Use false with bool15f93060b7linux/random.h: Remove arch_has_random, arch_has_random_seeda95ed04e21s390: Remove arch_has_random, arch_has_random_seedaab52172d9powerpc: Remove arch_has_random, arch_has_random_seed35e28a05f6x86: Remove arch_has_random, arch_has_random_seed98f749e297random: avoid warnings for !CONFIG_NUMA buildsc13b9c3627random: split primary/secondary crng init pathsc070b07aafrandom: remove some dead code of poolinfo898498bb44random: fix typo in add_timer_randomness()2c53d6d6a7random: Add and use pr_fmt()f3375cfe31random: convert to ENTROPY_BITS for better code readability9f757cad20random: remove unnecessary unlikely()4431c366ferandom: remove kernel.random.read_wakeup_thresholdec134003ccrandom: delete code to pull data into poolsa9564e14c6random: remove the blocking pool940cbc47b3random: make /dev/random be almost like /dev/urandomc4edc1055crandom: ignore GRND_RANDOM in getentropy(2)7f9f864af0random: add GRND_INSECURE to return best-effort non-cryptographic bytes479d39707frandom: Add a urandom_read_nowait() for random APIs that don't warn69441ba56frandom: Don't wake crng_init_wait when crng_init == 169ef3109d4random: don't forget compat_ioctl on urandom927fc225afcompat_ioctl: remove /dev/random commands996fba14falib/crypto: sha1: re-roll loops to reduce code sizec4f4837440lib/crypto: blake2s: move hmac construction into wireguard97126d2f65crypto: blake2s - generic C library implementation and selftest76101f1b7fnfc: st21nfca: fix incorrect sizing calculations in EVT_TRANSACTIONe804587ecdbpf: Fix incorrect memory charge cost calculation in stack_map_alloc()f91da317e69p: missing chunk of "fs/9p: Don't update file type when updating file attributes"cf729493b6Revert "ext4: fix use-after-free in ext4_rename_dir_prepare"10f5759c4eRevert "ext4: verify dir block before splitting it"a778a36923Merge 5.4.198 into android11-5.4-ltsa31bd36611Linux 5.4.1994cc40b1022x86/speculation/mmio: Print SMT warningd49c22094eKVM: x86/speculation: Disable Fill buffer clear within guestsd961592635x86/speculation/mmio: Reuse SRBDS mitigation for SBDSbc64f38b5ax86/speculation/srbds: Update SRBDS mitigation selection020ce7495cx86/speculation/mmio: Add sysfs reporting for Processor MMIO Stale Data8d25482fc9x86/speculation/mmio: Enable CPU Fill buffer clearing on idle7f898baa20x86/bugs: Group MDS, TAA & Processor MMIO Stale Data mitigations0800f1b45bx86/speculation/mmio: Add mitigation for Processor MMIO Stale Dataae649e0cbfx86/speculation: Add a common function for MD_CLEAR mitigation update814ccb6730x86/speculation/mmio: Enumerate Processor MMIO Stale Data bug91f8147c83Documentation: Add documentation for Processor MMIO Stale Data1e9f4e8a7ax86/cpu: Add another Alder Lake CPU to the Intel family45e744de25x86/cpu: Add Lakefield, Alder Lake and Rocket Lake models to the to Intel CPU family79568d5515x86/cpu: Add Jasper Lake to Intel family9e2efaa5ddcpu/speculation: Add prototype for cpu_show_srbds()9d6e67bf50Linux 5.4.198602b338e3ctcp: fix tcp_mtup_probe_success vs wrong snd_cwndb35e08edb2mtd: cfi_cmdset_0002: Use chip_ready() for write on S29GL064N0c12d76255md/raid0: Ignore RAID0 layout if the second zone has only one device0c4bc0a2f8powerpc/32: Fix overread/overwrite of thread_struct via ptrace3c953d47ebInput: bcm5974 - set missing URB_NO_TRANSFER_DMA_MAP urb flag6ec537c500ixgbe: fix unexpected VLAN Rx in promisc mode on VF24030768a7ixgbe: fix bcast packets Rx on VF after promisc removal3eca2c42danfc: st21nfca: fix memory leaks in EVT_TRANSACTION handling31f9c39b4anfc: st21nfca: fix incorrect validating logic in EVT_TRANSACTION4f4ab50046mmc: block: Fix CQE recovery reset success0245434e38ata: libata-transport: fix {dma|pio|xfer}_mode sysfs filesb651f70ed3cifs: return errors during session setup during reconnects850965edc8ALSA: hda/conexant - Fix loopback issue with CX206326c04a2ae03scripts/gdb: change kernel config dumping method1a36f77dc2vringh: Fix loop descriptors check in the indirect casesa3f9b0afd8nodemask: Fix return values to be unsigned9b306339a5cifs: version operations for smb20 unneeded when legacy support disabled5cb13cdc18s390/gmap: voluntarily schedule during key setting69893d6d7fnbd: fix io hung while disconnecting device8a7da4ced2nbd: fix race between nbd_alloc_config() and module removal1be608e1eenbd: call genl_unregister_family() first in nbd_cleanup()045045b522x86/cpu: Elide KCSAN for cpu_has() and friends460083de66modpost: fix undefined behavior of is_arm_mapping_symbol()28fd384c78drm/radeon: fix a possible null pointer dereference9223144fddceph: allow ceph.dir.rctime xattr to be updatable7df12bee54Revert "net: af_key: add check for pfkey_broadcast in function pfkey_process"0331d261c3scsi: myrb: Fix up null pointer access on myrb_cleanup()cf6b931687md: protect md_unregister_thread from reentrancy99e4c67a55watchdog: wdat_wdt: Stop watchdog when rebooting the system6fd031799ekernfs: Separate kernfs_pr_cont_buf and rename_lock.19f4b51b83serial: msm_serial: disable interrupts in __msm_console_write()52a0d88c32staging: rtl8712: fix uninit-value in r871xu_drv_init()58762f1c63staging: rtl8712: fix uninit-value in usb_read8() and friends1bcfb95de1clocksource/drivers/sp804: Avoid error on multiple instancesd472c78cc8extcon: Modify extcon device to be created after driver data is setfa0b2dd682misc: rtsx: set NULL intfdata when probe failsd232ca0bbcusb: dwc2: gadget: don't reset gadget's driver->bus3a7170a3deUSB: hcd-pci: Fully suspend across freeze/thaw cycle2dcec0bc14drivers: usb: host: Fix deadlock in oxu_bus_suspend()09a5958a24drivers: tty: serial: Fix deadlock in sa1100_set_termios()c91a74b1f0USB: host: isp116x: check return value after calling platform_get_resource()64b05fa212drivers: staging: rtl8192e: Fix deadlock in rtllib_beacons_stop()1fbe033c52drivers: staging: rtl8192u: Fix deadlock in ieee80211_beacons_stop()8c014373f1tty: Fix a possible resource leak in icom_probef6e07eb7ebtty: synclink_gt: Fix null-pointer-dereference in slgt_clean()1b04c934e1lkdtm/usercopy: Expand size of "out of frame" objectca2498cce8iio: st_sensors: Add a local lock for protecting odrab75e02366iio: dummy: iio_simple_dummy: check the return value of kstrdup()36acb4d9cedrm: imx: fix compiler warning with gcc-128174acbef8net: altera: Fix refcount leak in altera_tse_mdio_create3d08bc3a5dip_gre: test csum_start instead of transport header957d298526net/mlx5: fs, fail conflicting actions8a6740fdc5net/mlx5: Rearm the FW tracer after each tracer event317260b3ebnet: ipv6: unexport __init-annotated seg6_hmac_init()ef6d2354denet: xfrm: unexport __init-annotated xfrm4_protocol_init()6a90a44d53net: mdio: unexport __init-annotated mdio_bus_init()978dcc55cfSUNRPC: Fix the calculation of xdr->end in xdr_get_next_encode_buffer()180473e8e4net/mlx4_en: Fix wrong return value on ioctl EEPROM query failure7c8df6fad4net: dsa: lantiq_gswip: Fix refcount leak in gswip_gphy_fw_liste412b3d178bpf, arm64: Clear prog->jited_len along prog->jited556720013caf_unix: Fix a data-race in unix_dgram_peer_wake_me().b49c884146xen: unexport __init-annotated xen_xlate_map_ballooned_pages()5b8d63489cnetfilter: nf_tables: memleak flow rule from commit pathd5a1e7f33cata: pata_octeon_cf: Fix refcount leak in octeon_cf_probee0212033ffnetfilter: nat: really support inet nat without l3 addressda99331fa6xprtrdma: treat all calls not a bcall when bc_serv is NULL48dea4d3a1video: fbdev: pxa3xx-gcu: release the resources correctly in pxa3xx_gcu_probe/remove()a2b3be930eNFSv4: Don't hold the layoutget locks across multiple RPC calls83960276ffdmaengine: zynqmp_dma: In struct zynqmp_dma_chan fix desc_size data type4917e43bcam68knommu: fix undefined reference to `_init_sp'f6bdafbb9bm68knommu: set ZERO_PAGE() to the allocated zeroed page27fdb45723i2c: cadence: Increase timeout per message if necessary0a7a1fc7e7f2fs: remove WARN_ON in f2fs_is_valid_blkaddr23b2163b88tracing: Avoid adding tracer option before update_tracer_options48c6ee7d6ctracing: Fix sleeping function called from invalid context on RT kernelcc0aed22d3mips: cpc: Fix refcount leak in mips_cpc_default_phys_baseff66ae4359perf c2c: Fix sorting in percent_rmt_hitm_cmp()8b91d0dfc8tipc: check attribute length for bearer namec2eba68d18afs: Fix infinite loop found by xfstest generic/676d05c2fdf8etcp: tcp_rtx_synack() can be called from process context1bd2f7f38bnet: sched: add barrier to fix packet stuck problem for lockless qdisc77b954ce2dnet/mlx5e: Update netdev features after changing XDP statea4c52440acnet/mlx5: Don't use already freed action pointer00803d3051nfp: only report pause frame configuration for physical device8302620aebubi: ubi_create_volume: Fix use-after-free when volume creation failedd3a4fff1e7jffs2: fix memory leak in jffs2_do_fill_superacf92b5257modpost: fix removing numeric suffixesa101793994net: dsa: mv88e6xxx: Fix refcount leak in mv88e6xxx_mdios_register2bd1faedb7net: ethernet: mtk_eth_soc: out of bounds read in mtk_hwlro_get_fdir_entry()be73e3bf68net: sched: fixed barrier to prevent skbuff sticking in qdisc backlog51ed32c1cfs390/crypto: fix scatterwalk_unmap() callers in AES-GCM80f6712f24clocksource/drivers/oxnas-rps: Fix irq_of_parse_and_map() return valuee5d479d73fASoC: fsl_sai: Fix FSL_SAI_xDR/xFR definition5b110d9404watchdog: ts4800_wdt: Fix refcount leak in ts4800_wdt_probe593b595332driver core: fix deadlock in __device_attach5d709f58c7driver: base: fix UAF when driver_attach failed3157118c17bus: ti-sysc: Fix warnings for unbind for seriala724634b2afirmware: dmi-sysfs: Fix memory leak in dmi_sysfs_register_handlec3a16e7c86serial: stm32-usart: Correct CSIZE, bits, and parity29d963635eserial: st-asc: Sanitize CSIZE and correct PARENB for CS75c01c19f64serial: sifive: Sanitize CSIZE and c_iflag841cab744cserial: sh-sci: Don't allow CS5-6942aa88467serial: txx9: Don't allow CS5-6eb8de4bac3serial: rda-uart: Don't allow CS5-60de3d2344eserial: digicolor-usart: Don't allow CS5-6035bc3b734serial: 8250_fintek: Check SER_RS485_RTS_* only with RS4851b3ae6d850serial: meson: acquire port->lock in startup()d77f28c1bcrtc: mt6397: check return value after calling platform_get_resource()d041e88574clocksource/drivers/riscv: Events are stopped during CPU suspend69a30b2ed6soc: rockchip: Fix refcount leak in rockchip_grf_init0f91755514coresight: cpu-debug: Replace mutex with mutex_trylock on panic notifier47e4c42faaserial: sifive: Report actual baud base rather than fixed 115200f2a16af2eephy: qcom-qmp: fix pipe-clock imbalance on power-on failureb6b0f8904brpmsg: qcom_smd: Fix returning 0 if irq_of_parse_and_map() fails088f449d9diio: adc: sc27xx: Fine tune the scale calibration valuese5d48301d1iio: adc: sc27xx: fix read big scale voltage not right0f57d13930iio: adc: stmpe-adc: Fix wait_for_completion_timeout return value checkbec18bb00ffirmware: stratix10-svc: fix a missing check on list iterator8ad7b3d9f8usb: dwc3: pci: Fix pm_runtime_get_sync() error checking1026ee392brpmsg: qcom_smd: Fix irq_of_parse_and_map() return value89d1b9dfccpwm: lp3943: Fix duty calculation in case period was clamped8e9f3f508astaging: fieldbus: Fix the error handling path in anybuss_host_common_probe()67c2aa77b4usb: musb: Fix missing of_node_put() in omap2430_probeb78499772fUSB: storage: karma: fix rio_karma_init return72ab0f6f2busb: usbip: add missing device lock on tweak configuration cmd2f0ae93ec3usb: usbip: fix a refcount leak in stub_probe()077f58e469tty: serial: fsl_lpuart: fix potential bug when using both of_alias_get_id and ida_simple_get7320308b18tty: serial: owl: Fix missing clk_disable_unprepare() in owl_uart_probe9ae3d073f7tty: goldfish: Use tty_port_destroy() to destroy portd88fdea147iio: adc: ad7124: Remove shift from scan_type1aa30dc883staging: greybus: codecs: fix type confusion of list iterator variable6c8c536e00pcmcia: db1xxx_ss: restrict to MIPS_DB1XXX boards4faa6308e1md: bcache: check the return value of kzalloc() in detached_dev_do_request()5f62b21b7cblock: fix bio_clone_blkg_association() to associate with proper blkcg_gqccddf8cd41bfq: Make sure bfqg for which we are queueing requests is online8afc13b958bfq: Get rid of __bio_blkcg() usagebe1b78f949bfq: Remove pointless bfq_init_rq() callsf885f55033bfq: Drop pointless unlock-lock pair97be7d13fbbfq: Avoid merging queues with different parents5407341053MIPS: IP27: Remove incorrect `cpu_has_fpu' override427c3c7ebdRDMA/rxe: Generate a completion for unsupported/invalid opcode4946cfd1c8Kconfig: add config option for asm goto w/ outputs7ac21b24afphy: qcom-qmp: fix reset-controller leak on probe errorsd19fa8f252blk-iolatency: Fix inflight count imbalances and IO hangs on offline8a068913d1dt-bindings: gpio: altera: correct interrupt-cells3b8c37780ddocs/conf.py: Cope with removal of language=None in Sphinx 5.0.0da9634374dARM: pxa: maybe fix gpio lookup tables1668ad1036phy: qcom-qmp: fix struct clk leak on probe errors2040b60765arm64: dts: qcom: ipq8074: fix the sleep clock frequency8dd2e5f9c1gma500: fix an incorrect NULL check on list iteratora62591e361tilcdc: tilcdc_external: fix an incorrect NULL check on list iterator77ec584d3dserial: pch: don't overwrite xmit->buf[0] by x_charf6cb1470bacarl9170: tx: fix an incorrect use of list iterator2ea49d6310ASoC: rt5514: Fix event generation for "DSP Voice Wake Up" controlb8ce58ab80rtl818x: Prevent using not initialized queues6f4a489d84hugetlb: fix huge_pmd_unshare address update73bdb2359dnodemask.h: fix compilation error with GCC126e071eaf50iommu/msm: Fix an incorrect NULL check on list iterator9caad70819um: Fix out-of-bounds read in LDT setup6cbe83680fum: chan_user: Fix winch_tramp() return value3466e42652mac80211: upgrade passive scan to active scan on DFS channels after beacon rxcf465ecfe3irqchip: irq-xtensa-mx: fix initial IRQ affinity36bab24bb8irqchip/armada-370-xp: Do not touch Performance Counter Overflow on A375, A38x, A39x8858284dd7RDMA/hfi1: Fix potential integer multiplication overflow errors6462323626Kconfig: Add option for asm goto w/ tied outputs to workaround clang-13 bug532aa3f7a5media: coda: Add more H264 levels for CODA960adcea1c8eemedia: coda: Fix reported H264 profilef2c2ad538emtd: cfi_cmdset_0002: Move and rename chip_check/chip_ready/chip_good_for_write16e993ac7cmd: fix an incorrect NULL check in md_reload_sbd0bdc809f7md: fix an incorrect NULL check in does_sb_need_changing3623f833e1drm/bridge: analogix_dp: Grab runtime PM reference for DP-AUX8fa6eb03e3drm/nouveau/clk: Fix an incorrect NULL check on list iterator19323b3671drm/etnaviv: check for reaped mapping in etnaviv_iommu_unmap_gemc12984cdb0drm/amdgpu/cs: make commands with 0 chunks illegal behaviour.8e105178c2scsi: ufs: qcom: Add a readl() to make sure ref_clk gets enabled494685db00scsi: dc395x: Fix a missing check on list iterator82bf8e7271ocfs2: dlmfs: fix error handling of user_dlm_destroy_lock17ea634849dlm: fix missing lkb refcount handling49cd9eb7b9dlm: fix plock invalid readf160e7b4b0mm, compaction: fast_find_migrateblock() should return pfn in the target zone665602c837PCI: qcom: Fix unbalanced PHY init on probe errorsc3919b10c4PCI: qcom: Fix runtime PM imbalance on probe errorsc99306cf59PCI/PM: Fix bridge_d3_blacklist[] Elo i2 overwrite of Gigabyte X299c27f744ceetracing: Fix potential double free in create_var_ref()742736dc9cACPI: property: Release subnode properties with data nodese157c8f87eext4: avoid cycles in directory h-tree17034d45ecext4: verify dir block before splitting it73fd5b1928ext4: fix bug_on in ext4_writepages0ab308d72aext4: fix warning in ext4_handle_inode_extensioneaecf7ebfdext4: fix use-after-free in ext4_rename_dir_preparef36736fbd4netfilter: nf_tables: disallow non-stateful expression in sets earlier28a8060a0bbfq: Track whether bfq_group is still onlineda9f3025d5bfq: Update cgroup information before merging bio31326bf551bfq: Split shared queues on move between cgroupsb1cda6dd2cefi: Do not import certificates from UEFI Secure Boot for T2 Macs440d345d02fs-writeback: writeback_sb_inodes:Recalculate 'wrote' according skipped pagese0dddab01fiwlwifi: mvm: fix assert 1F04 upon reconfig265bec4779wifi: mac80211: fix use-after-free in chanctx code9259227605f2fs: fix fallocate to use file_modified to update permissions consistently1f926457c3f2fs: don't need inode lock for system hidden quota12ffc0044af2fs: fix deadloop in foreground GC54c116615cf2fs: fix to clear dirty inode in f2fs_evict_inode()7361c9f2bdf2fs: fix to do sanity check on block address in f2fs_do_zero_range()f8b3c3fcf3f2fs: fix to avoid f2fs_bug_on() in dec_valid_node_count()7f51f27345perf jevents: Fix event syntax error caused by ExtSel9eb684dc41perf c2c: Use stdio interface if slang is not supportede23eb2f43fiommu/amd: Increase timeout waiting for GA log enablementdb7ea8b261dmaengine: stm32-mdma: remove GISR1 register8db59df7f5video: fbdev: clcdfb: Fix refcount leak in clcdfb_of_vram_setupdcc00106c3NFSv4/pNFS: Do not fail I/O when we fail to allocate the pNFS layout3d216510f8NFS: Don't report errors from nfs_pageio_complete() more than once55f0fc32b2NFS: Do not report flush errors in nfs_write_end()59137943afNFS: Do not report EINTR/ERESTARTSYS as mapping errors4826af9a07i2c: at91: Initialize dma_buf in at91_twi_xfer()d77a0f2842i2c: at91: use dma safe bufferse4db5f4b68iommu/mediatek: Add list_del in mtk_iommu_remove5e47a7add3f2fs: fix dereference of stale list iterator after loop bodyc8735252f9Input: stmfts - do not leave device disabled in stmfts_input_openaddb192000RDMA/hfi1: Prevent use of lock before it is initialized6d8b9f574bmailbox: forward the hrtimer if not queued and under a lock49c1e32e7bmfd: davinci_voicecodec: Fix possible null-ptr-deref davinci_vc_probe()bcb6c4c5ebpowerpc/fsl_rio: Fix refcount leak in fsl_rio_setup2631fe5b53macintosh: via-pmu and via-cuda need RTC_LIBbc21634ce4powerpc/perf: Fix the threshold compare group constraint for power9cf0b52858fpowerpc/64: Only WARN if __pa()/__va() called with bad addressesbbc2b0ce60Input: sparcspkr - fix refcount leak in bbc_beep_probe6d7b2cf5c7crypto: cryptd - Protect per-CPU resource by disabling BH.3219ac364atty: fix deadlock caused by calling printk() under tty_port->lockded067f24bPCI: imx6: Fix PERST# start-up sequence0b35a685d9ipc/mqueue: use get_tree_nodev() in mqueue_get_tree()203537caadproc: fix dentry/inode overinstantiating under /proc/${pid}/net6cdb6582b5powerpc/4xx/cpm: Fix return value of __setup() handler337eef19aapowerpc/idle: Fix return value of __setup() handler1d83f30421powerpc/8xx: export 'cpm_setbrg' for modules662b70a45bdax: fix cache flush on PMD-mapped pages386e69e068drivers/base/node.c: fix compaction sysfs file leakd1f908bd01pinctrl: mvebu: Fix irq_of_parse_and_map() return value9282496aacnvdimm: Allow overwrite in the presence of disabled dimmsb0e4bafac8firmware: arm_scmi: Fix list protocols enumeration in the base protocolffd3bed66bscsi: fcoe: Fix Wstringop-overflow warnings in fcoe_wwn_from_mac()829ea47487mfd: ipaq-micro: Fix error check return value of platform_get_irq()8c4eeab726powerpc/fadump: fix PT_LOAD segment for boot memory areabbf58e9742arm: mediatek: select arch timer for mt7629e7a0d0c280crypto: marvell/cesa - ECB does not IVde65c32acemisc: ocxl: fix possible double free in ocxl_file_register_afu7f287d0c70ARM: dts: bcm2835-rpi-b: Fix GPIO line names3a37022d48ARM: dts: bcm2837-rpi-3-b-plus: Fix GPIO line name of power LEDfd1c098b3bARM: dts: bcm2837-rpi-cm3-io3: Fix GPIO line names for SMPS I2Ce0bf7f0844ARM: dts: bcm2835-rpi-zero-w: Fix GPIO line name for Wifi/BTe4594ca90bcan: xilinx_can: mark bit timing constants as const6077a1e637KVM: nVMX: Leave most VM-Exit info fields unmodified on failed VM-Entry9cccb3f6edPCI: rockchip: Fix find_first_zero_bit() limitf063429ac3PCI: cadence: Fix find_first_zero_bit() limit5543752a48soc: qcom: smsm: Fix missing of_node_put() in smsm_parse_ipc6695755216soc: qcom: smp2p: Fix missing of_node_put() in smp2p_parse_ipc56b8d748ecARM: dts: suniv: F1C100: fix watchdog compatible754ef324b7arm64: dts: rockchip: Move drive-impedance-ohm to emmc phy on rk339960546c0b4bnet/smc: postpone sk_refcnt increment in connect()91121ee574rxrpc: Fix decision on when to generate an IDLE ACKd7b16ee15frxrpc: Don't let ack.previousPacket regress2fd958ae29rxrpc: Fix overlapping ACK accounting5aa14dafd2rxrpc: Don't try to resend the request if we're receiving the reply91b34bf040rxrpc: Fix listen() setting the bar too high for the prealloc rings0bfaff00d1NFC: hci: fix sleep in atomic context bugs in nfc_hci_hcp_message_tx9934025c4dASoC: wm2000: fix missing clk_disable_unprepare() on error in wm2000_anc_transition()b3461ccaa5thermal/drivers/broadcom: Fix potential NULL dereference in sr_thermal_probe449374565fdrm: msm: fix possible memory leak in mdp5_crtc_cursor_set()6832e36f15drm/msm/a6xx: Fix refcount leak in a6xx_gpu_init48d331a03bext4: reject the 'commit' option on ext2 filesystems3dc0323755media: ov7670: remove ov7670_power_off from ov7670_removedc794fa2b3sctp: read sk->sk_bound_dev_if once in sctp_rcv()d43a87d660m68k: math-emu: Fix dependencies of math emulation support6f55fac0afBluetooth: fix dangling sco_conn and use-after-free in sco_sock_timeoutc3c8c7e409media: vsp1: Fix offset calculation for plane cropping1310fc3538media: pvrusb2: fix array-index-out-of-bounds in pvr2_i2c_core_init83345b5365media: exynos4-is: Change clk_disable to clk_disable_unprepareb87d3a043bmedia: st-delta: Fix PM disable depth imbalance in delta_probe12480f7578media: aspeed: Fix an error handling path in aspeed_video_probe()d2b1dc3a04scripts/faddr2line: Fix overlapping text section failures0be5d9da57regulator: pfuze100: Fix refcount leak in pfuze_parse_regulators_dt18b907ff0aASoC: mxs-saif: Fix refcount leak in mxs_saif_probe96fc3da618ASoC: fsl: Fix refcount leak in imx_sgtl5000_probeddb1a77f94perf/amd/ibs: Use interrupt regs ip for stack unwindingf2e2e934d2Revert "cpufreq: Fix possible race in cpufreq online error path"1253811c71iomap: iomap_write_failed fix6b8291e574media: uvcvideo: Fix missing check to determine if element is found in listab888b1a9adrm/msm: return an error pointer in msm_gem_prime_get_sg_table()22d8424913drm/msm/mdp5: Return error code in mdp5_mixer_release when deadlock is detectedb2aa2c4efedrm/msm/mdp5: Return error code in mdp5_pipe_release when deadlock is detectedcd4cfd99ecregulator: core: Fix enable_count imbalance with EXCLUSIVE_GETdb5a21f2ddx86/mm: Cleanup the control_va_addr_alignment() __setup handlerd2476a1fc5irqchip/aspeed-i2c-ic: Fix irq_of_parse_and_map() return valueb97eb924a2irqchip/exiu: Fix acknowledgment of edge triggered interrupts9777de28cfx86: Fix return value of __setup handlersee3901d7c7virtio_blk: fix the discard_granularity and discard_alignment queue limitsa9b4599665drm/rockchip: vop: fix possible null-ptr-deref in vop_bind()35d9a84e3bdrm/msm/hdmi: fix error check return value of irq_of_parse_and_map()2b3ed7547bdrm/msm/hdmi: check return value after calling platform_get_resource_byname()11709592b3drm/msm/dsi: fix error checks and return values for DSI xmit functionsef10d0c68edrm/msm/disp/dpu1: set vbif hw config to NULL to avoid use after memory free during pm runtime resumedb681127e9perf tools: Add missing headers needed by util/data.h31de06ef06ASoC: rk3328: fix disabling mclk on pclk probe failureed8d5cf1dcx86/speculation: Add missing prototype for unpriv_ebpf_notify()1d0c4bc628x86/pm: Fix false positive kmemleak report in msr_build_context()b889619ebascsi: ufs: core: Exclude UECxx from SFR dump liste120d31d04of: overlay: do not break notify on NOTIFY_{OK|STOP}b0be017bc5fsnotify: fix wrong lockdep annotations60d159e0d0inotify: show inotify mask flags in proc fdinfo2326d398ccath9k_htc: fix potential out of bounds access with invalid rxstatus->rs_keyixcd1f386120cpufreq: Fix possible race in cpufreq online error pathe7f0fd6f25spi: img-spfi: Fix pm_runtime_get_sync() error checking735b57a960sched/fair: Fix cfs_rq_clock_pelt() for throttled cfs_rq55fddbb1e2drm/bridge: Fix error handling in analogix_dp_probef1d4f19a79HID: elan: Fix potential double free in elan_input_configured75a89bc1baHID: hid-led: fix maximum brightness for Dream Cheeky3caa2d7943drbd: fix duplicate array initializer65065f96d5efi: Add missing prototype for efi_capsule_setup_infofbf9c4c714NFC: NULL out the dev->rfkill to prevent UAF2c59535b6bspi: spi-ti-qspi: Fix return value handling of wait_for_completion_timeoutfa0d7ba25adrm: mali-dp: potential dereference of null pointer797f8ee35fdrm/komeda: Fix an undefined behavior bug in komeda_plane_add()1a994f1f18nl80211: show SSID for P2P_GO interfaces93c0f9d78dbpf: Fix excessive memory allocation in stack_map_alloc()c398c2149bdrm/vc4: txp: Force alpha to be 0xff if it's disabled8a60b54e41drm/vc4: txp: Don't set TXP_VSTART_AT_EOFa0c890c0aedrm/mediatek: Fix mtk_cec_mask()ea8b2ecc92x86/delay: Fix the wrong asm constraint in delay_loop()c71494f5f2ASoC: mediatek: Fix missing of_node_put in mt2701_wm8960_machine_probe23f340ed90ASoC: mediatek: Fix error handling in mt8173_max98090_dev_probee92b927fffdrm/bridge: adv7511: clean up CEC adapter when probe fails224e1eef03drm/edid: fix invalid EDID extension block filtering6577348668ath9k: fix ar9003_get_eepmiscebede9aadfdrm: fix EDID struct for old ARM OABI formate60ad83f64RDMA/hfi1: Prevent panic when SDMA is disabledcb4f2dc513powerpc/iommu: Add missing of_node_put in iommu_init_early_dart6557555a86macintosh/via-pmu: Fix build failure when CONFIG_INPUT is disabled793b82d1c4powerpc/powernv: fix missing of_node_put in uv_init()537a317e5fpowerpc/xics: fix refcount leak in icp_opal_init()a910e96131tracing: incorrect isolate_mote_t cast in mm_vmscan_lru_isolatec9a81f9ed6PCI: Avoid pci_dev_lock() AB/BA deadlock with sriov_numvfs_store()e109058165ARM: hisi: Add missing of_node_put after of_find_compatible_node2f46a955b6ARM: dts: exynos: add atmel,24c128 fallback to Samsung EEPROMfcd1999ba9ARM: versatile: Add missing of_node_put in dcscb_initfd48cf8f97fat: add ratelimit to fat*_ent_bread()60ce637c19powerpc/fadump: Fix fadump to work with a different endian capture kernel41c7096286ARM: OMAP1: clock: Fix UART rate reporting algorithme54fd01178fs: jfs: fix possible NULL pointer dereference in dbFree()a0180e324aPM / devfreq: rk3399_dmc: Disable edev on remove()1995a60be7ARM: dts: ox820: align interrupt controller node name with dtschema58e55f4f5aIB/rdmavt: add missing locks in rvt_ruc_loopback56fd9dcfe1selftests/bpf: fix btf_dump/btf_dump due to recent clang change063d945795eth: tg3: silence the GCC 12 array-bounds warning88d730463erxrpc: Return an error to sendmsg if call failed1ec0bc72f5hwmon: Make chip parameter for with_info API mandatorya7a41dd473ASoC: max98357a: remove dependency on GPIOLIB3cf43978ffmedia: exynos4-is: Fix compile warning1e5fbfc2a6net: phy: micrel: Allow probing without .driver_data9d1764b926nbd: Fix hung on disconnect request if socket is closed beforeabe7554da6ASoC: rt5645: Fix errorenous cleanup orderf767296626nvme-pci: fix a NULL pointer dereference in nvme_alloc_admin_tags69edf28d2copenrisc: start CPU timer early in boot67fb494388media: cec-adap.c: fix is_configuring state4172a34ef9media: coda: limit frame interval enumeration to supported encoder frame sizes8f2a5721cdrtlwifi: Use pr_warn instead of WARN_ONCE2d966c94adipmi: Fix pr_fmt to avoid compilation issues2064a1eab2ipmi:ssif: Check for NULL msg when handling events and messages17cfc94558ACPI: PM: Block ASUS B1400CEAE from suspend to idle by default5a71f14a9bdma-debug: change allocation mode from GFP_NOWAIT to GFP_ATIOMIC6583d0d6adspi: stm32-qspi: Fix wait_cmd timeout in APM mode1651a95517s390/preempt: disable __preempt_count_add() optimization for PROFILE_ALL_BRANCHES890b16b470ASoC: tscs454: Add endianness flag in snd_soc_component_driver00771de7ccHID: bigben: fix slab-out-of-bounds Write in bigben_probe0d7074792bdrm/amdgpu/ucode: Remove firmware load type check in amdgpu_ucode_free_bo2317f3bfdamlxsw: spectrum_dcb: Do not warn about priority changes121f56a9a8ASoC: dapm: Don't fold register value changes into notifications430af81135net/mlx5: fs, delete the FTE when there are no rules attached to itf857855a8aipv6: Don't send rs packets to the interface of ARPHRD_TUNNELb507f067e9drm: msm: fix error check return value of irq_of_parse_and_map()efd183d988arm64: compat: Do not treat syscall number as ESR_ELx for a bad syscalla610cfe56cdrm/amd/pm: fix the compile warning1e29d829addrm/plane: Move range check for format_count earliere1599ced6bscsi: megaraid: Fix error check return value of register_chrdev()7923f95997mmc: jz4740: Apply DMA engine limits to maximum segment size0959aa00f9md/bitmap: don't set sb values if can't pass sanity check222292930cmedia: cx25821: Fix the warning when removing the modulefa636e9ee4media: pci: cx23885: Fix the error handling in cx23885_initdev()0ac84ab507media: venus: hfi: avoid null dereference in deinitde16cdf0b7ath9k: fix QCA9561 PA bias levelaf832028afdrm/amd/pm: fix double free in si_parse_power_table()7bd0ac1e23tools/power turbostat: fix ICX DRAM power numbers6266ab1f31spi: spi-rspi: Remove setting {src,dst}_{addr,addr_width} based on DMA directionf68bed124cALSA: jack: Access input_dev under mutexaea748501ddrm/komeda: return early if drm_universal_plane_init() fails.8ded0af90eACPICA: Avoid cache flush inside virtual machinesc7b41fd76cfbcon: Consistently protect deferred_takeover with console_lock()4460066eb2ipv6: fix locking issues with loops over idev->addr_list8fb1b9beb0ipw2x00: Fix potential NULL dereference in libipw_xmit()303380919db43: Fix assigning negative value to unsigned variable60d515fd87b43legacy: Fix assigning negative value to unsigned variable92225d3c22mwifiex: add mutex lock for call in mwifiex_dfs_chan_sw_work_queuef85cb059fadrm/virtio: fix NULL pointer dereference in virtio_gpu_conn_get_modes670f5e40d7btrfs: repair super block num_devices automatically622ced791ebtrfs: add "0x" prefix for unsupported optional features0ca5112047ptrace: Reimplement PTRACE_KILL by always sending SIGKILLf5faa24137ptrace/xtensa: Replace PT_SINGLESTEP with TIF_SINGLESTEPe10356eae1ptrace/um: Replace PT_DTRACE with TIF_SINGLESTEP00c93ce266perf/x86/intel: Fix event constraints for ICL1b767500d1usb: core: hcd: Add support for deferring roothub registration1147908763USB: new quirk for Dell Gen 2 devices7c5a52dd4dUSB: serial: option: add Quectel BG95 modem6b3ecb2d92ALSA: hda/realtek - Fix microphone noise on ASUS TUF B550M-PLUS1c6cfb9e8abinfmt_flat: do not stop relocating GOT entries prematurely on riscv ABI .xml file was updated to add a new function that is now tracked: 1 Added function: [A] 'function void refcount_warn_saturate(refcount_struct*, refcount_saturation_type)' Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I93ce4a950729a57206f775a11adeec35b7b30fca
This commit is contained in:
@@ -107,13 +107,14 @@ Description:
|
||||
described in ATA8 7.16 and 7.17. Only valid if
|
||||
the device is not a PM.
|
||||
|
||||
pio_mode: (RO) Transfer modes supported by the device when
|
||||
in PIO mode. Mostly used by PATA device.
|
||||
pio_mode: (RO) PIO transfer mode used by the device.
|
||||
Mostly used by PATA devices.
|
||||
|
||||
xfer_mode: (RO) Current transfer mode
|
||||
xfer_mode: (RO) Current transfer mode. Mostly used by
|
||||
PATA devices.
|
||||
|
||||
dma_mode: (RO) Transfer modes supported by the device when
|
||||
in DMA mode. Mostly used by PATA device.
|
||||
dma_mode: (RO) DMA transfer mode used by the device.
|
||||
Mostly used by PATA devices.
|
||||
|
||||
class: (RO) Device class. Can be "ata" for disk,
|
||||
"atapi" for packet device, "pmp" for PM, or
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
What: /sys/bus/iio/devices/iio:deviceX/conversion_mode
|
||||
What: /sys/bus/iio/devices/iio:deviceX/in_conversion_mode
|
||||
KernelVersion: 4.2
|
||||
Contact: linux-iio@vger.kernel.org
|
||||
Description:
|
||||
|
||||
@@ -489,6 +489,7 @@ What: /sys/devices/system/cpu/vulnerabilities
|
||||
/sys/devices/system/cpu/vulnerabilities/srbds
|
||||
/sys/devices/system/cpu/vulnerabilities/tsx_async_abort
|
||||
/sys/devices/system/cpu/vulnerabilities/itlb_multihit
|
||||
/sys/devices/system/cpu/vulnerabilities/mmio_stale_data
|
||||
Date: January 2018
|
||||
Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
|
||||
Description: Information about CPU vulnerabilities
|
||||
|
||||
@@ -15,3 +15,4 @@ are configurable at compile, boot or run time.
|
||||
tsx_async_abort
|
||||
multihit.rst
|
||||
special-register-buffer-data-sampling.rst
|
||||
processor_mmio_stale_data.rst
|
||||
|
||||
246
Documentation/admin-guide/hw-vuln/processor_mmio_stale_data.rst
Normal file
246
Documentation/admin-guide/hw-vuln/processor_mmio_stale_data.rst
Normal file
@@ -0,0 +1,246 @@
|
||||
=========================================
|
||||
Processor MMIO Stale Data Vulnerabilities
|
||||
=========================================
|
||||
|
||||
Processor MMIO Stale Data Vulnerabilities are a class of memory-mapped I/O
|
||||
(MMIO) vulnerabilities that can expose data. The sequences of operations for
|
||||
exposing data range from simple to very complex. Because most of the
|
||||
vulnerabilities require the attacker to have access to MMIO, many environments
|
||||
are not affected. System environments using virtualization where MMIO access is
|
||||
provided to untrusted guests may need mitigation. These vulnerabilities are
|
||||
not transient execution attacks. However, these vulnerabilities may propagate
|
||||
stale data into core fill buffers where the data can subsequently be inferred
|
||||
by an unmitigated transient execution attack. Mitigation for these
|
||||
vulnerabilities includes a combination of microcode update and software
|
||||
changes, depending on the platform and usage model. Some of these mitigations
|
||||
are similar to those used to mitigate Microarchitectural Data Sampling (MDS) or
|
||||
those used to mitigate Special Register Buffer Data Sampling (SRBDS).
|
||||
|
||||
Data Propagators
|
||||
================
|
||||
Propagators are operations that result in stale data being copied or moved from
|
||||
one microarchitectural buffer or register to another. Processor MMIO Stale Data
|
||||
Vulnerabilities are operations that may result in stale data being directly
|
||||
read into an architectural, software-visible state or sampled from a buffer or
|
||||
register.
|
||||
|
||||
Fill Buffer Stale Data Propagator (FBSDP)
|
||||
-----------------------------------------
|
||||
Stale data may propagate from fill buffers (FB) into the non-coherent portion
|
||||
of the uncore on some non-coherent writes. Fill buffer propagation by itself
|
||||
does not make stale data architecturally visible. Stale data must be propagated
|
||||
to a location where it is subject to reading or sampling.
|
||||
|
||||
Sideband Stale Data Propagator (SSDP)
|
||||
-------------------------------------
|
||||
The sideband stale data propagator (SSDP) is limited to the client (including
|
||||
Intel Xeon server E3) uncore implementation. The sideband response buffer is
|
||||
shared by all client cores. For non-coherent reads that go to sideband
|
||||
destinations, the uncore logic returns 64 bytes of data to the core, including
|
||||
both requested data and unrequested stale data, from a transaction buffer and
|
||||
the sideband response buffer. As a result, stale data from the sideband
|
||||
response and transaction buffers may now reside in a core fill buffer.
|
||||
|
||||
Primary Stale Data Propagator (PSDP)
|
||||
------------------------------------
|
||||
The primary stale data propagator (PSDP) is limited to the client (including
|
||||
Intel Xeon server E3) uncore implementation. Similar to the sideband response
|
||||
buffer, the primary response buffer is shared by all client cores. For some
|
||||
processors, MMIO primary reads will return 64 bytes of data to the core fill
|
||||
buffer including both requested data and unrequested stale data. This is
|
||||
similar to the sideband stale data propagator.
|
||||
|
||||
Vulnerabilities
|
||||
===============
|
||||
Device Register Partial Write (DRPW) (CVE-2022-21166)
|
||||
-----------------------------------------------------
|
||||
Some endpoint MMIO registers incorrectly handle writes that are smaller than
|
||||
the register size. Instead of aborting the write or only copying the correct
|
||||
subset of bytes (for example, 2 bytes for a 2-byte write), more bytes than
|
||||
specified by the write transaction may be written to the register. On
|
||||
processors affected by FBSDP, this may expose stale data from the fill buffers
|
||||
of the core that created the write transaction.
|
||||
|
||||
Shared Buffers Data Sampling (SBDS) (CVE-2022-21125)
|
||||
----------------------------------------------------
|
||||
After propagators may have moved data around the uncore and copied stale data
|
||||
into client core fill buffers, processors affected by MFBDS can leak data from
|
||||
the fill buffer. It is limited to the client (including Intel Xeon server E3)
|
||||
uncore implementation.
|
||||
|
||||
Shared Buffers Data Read (SBDR) (CVE-2022-21123)
|
||||
------------------------------------------------
|
||||
It is similar to Shared Buffer Data Sampling (SBDS) except that the data is
|
||||
directly read into the architectural software-visible state. It is limited to
|
||||
the client (including Intel Xeon server E3) uncore implementation.
|
||||
|
||||
Affected Processors
|
||||
===================
|
||||
Not all the CPUs are affected by all the variants. For instance, most
|
||||
processors for the server market (excluding Intel Xeon E3 processors) are
|
||||
impacted by only Device Register Partial Write (DRPW).
|
||||
|
||||
Below is the list of affected Intel processors [#f1]_:
|
||||
|
||||
=================== ============ =========
|
||||
Common name Family_Model Steppings
|
||||
=================== ============ =========
|
||||
HASWELL_X 06_3FH 2,4
|
||||
SKYLAKE_L 06_4EH 3
|
||||
BROADWELL_X 06_4FH All
|
||||
SKYLAKE_X 06_55H 3,4,6,7,11
|
||||
BROADWELL_D 06_56H 3,4,5
|
||||
SKYLAKE 06_5EH 3
|
||||
ICELAKE_X 06_6AH 4,5,6
|
||||
ICELAKE_D 06_6CH 1
|
||||
ICELAKE_L 06_7EH 5
|
||||
ATOM_TREMONT_D 06_86H All
|
||||
LAKEFIELD 06_8AH 1
|
||||
KABYLAKE_L 06_8EH 9 to 12
|
||||
ATOM_TREMONT 06_96H 1
|
||||
ATOM_TREMONT_L 06_9CH 0
|
||||
KABYLAKE 06_9EH 9 to 13
|
||||
COMETLAKE 06_A5H 2,3,5
|
||||
COMETLAKE_L 06_A6H 0,1
|
||||
ROCKETLAKE 06_A7H 1
|
||||
=================== ============ =========
|
||||
|
||||
If a CPU is in the affected processor list, but not affected by a variant, it
|
||||
is indicated by new bits in MSR IA32_ARCH_CAPABILITIES. As described in a later
|
||||
section, mitigation largely remains the same for all the variants, i.e. to
|
||||
clear the CPU fill buffers via VERW instruction.
|
||||
|
||||
New bits in MSRs
|
||||
================
|
||||
Newer processors and microcode update on existing affected processors added new
|
||||
bits to IA32_ARCH_CAPABILITIES MSR. These bits can be used to enumerate
|
||||
specific variants of Processor MMIO Stale Data vulnerabilities and mitigation
|
||||
capability.
|
||||
|
||||
MSR IA32_ARCH_CAPABILITIES
|
||||
--------------------------
|
||||
Bit 13 - SBDR_SSDP_NO - When set, processor is not affected by either the
|
||||
Shared Buffers Data Read (SBDR) vulnerability or the sideband stale
|
||||
data propagator (SSDP).
|
||||
Bit 14 - FBSDP_NO - When set, processor is not affected by the Fill Buffer
|
||||
Stale Data Propagator (FBSDP).
|
||||
Bit 15 - PSDP_NO - When set, processor is not affected by Primary Stale Data
|
||||
Propagator (PSDP).
|
||||
Bit 17 - FB_CLEAR - When set, VERW instruction will overwrite CPU fill buffer
|
||||
values as part of MD_CLEAR operations. Processors that do not
|
||||
enumerate MDS_NO (meaning they are affected by MDS) but that do
|
||||
enumerate support for both L1D_FLUSH and MD_CLEAR implicitly enumerate
|
||||
FB_CLEAR as part of their MD_CLEAR support.
|
||||
Bit 18 - FB_CLEAR_CTRL - Processor supports read and write to MSR
|
||||
IA32_MCU_OPT_CTRL[FB_CLEAR_DIS]. On such processors, the FB_CLEAR_DIS
|
||||
bit can be set to cause the VERW instruction to not perform the
|
||||
FB_CLEAR action. Not all processors that support FB_CLEAR will support
|
||||
FB_CLEAR_CTRL.
|
||||
|
||||
MSR IA32_MCU_OPT_CTRL
|
||||
---------------------
|
||||
Bit 3 - FB_CLEAR_DIS - When set, VERW instruction does not perform the FB_CLEAR
|
||||
action. This may be useful to reduce the performance impact of FB_CLEAR in
|
||||
cases where system software deems it warranted (for example, when performance
|
||||
is more critical, or the untrusted software has no MMIO access). Note that
|
||||
FB_CLEAR_DIS has no impact on enumeration (for example, it does not change
|
||||
FB_CLEAR or MD_CLEAR enumeration) and it may not be supported on all processors
|
||||
that enumerate FB_CLEAR.
|
||||
|
||||
Mitigation
|
||||
==========
|
||||
Like MDS, all variants of Processor MMIO Stale Data vulnerabilities have the
|
||||
same mitigation strategy to force the CPU to clear the affected buffers before
|
||||
an attacker can extract the secrets.
|
||||
|
||||
This is achieved by using the otherwise unused and obsolete VERW instruction in
|
||||
combination with a microcode update. The microcode clears the affected CPU
|
||||
buffers when the VERW instruction is executed.
|
||||
|
||||
Kernel reuses the MDS function to invoke the buffer clearing:
|
||||
|
||||
mds_clear_cpu_buffers()
|
||||
|
||||
On MDS affected CPUs, the kernel already invokes CPU buffer clear on
|
||||
kernel/userspace, hypervisor/guest and C-state (idle) transitions. No
|
||||
additional mitigation is needed on such CPUs.
|
||||
|
||||
For CPUs not affected by MDS or TAA, mitigation is needed only for the attacker
|
||||
with MMIO capability. Therefore, VERW is not required for kernel/userspace. For
|
||||
virtualization case, VERW is only needed at VMENTER for a guest with MMIO
|
||||
capability.
|
||||
|
||||
Mitigation points
|
||||
-----------------
|
||||
Return to user space
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
Same mitigation as MDS when affected by MDS/TAA, otherwise no mitigation
|
||||
needed.
|
||||
|
||||
C-State transition
|
||||
^^^^^^^^^^^^^^^^^^
|
||||
Control register writes by CPU during C-state transition can propagate data
|
||||
from fill buffer to uncore buffers. Execute VERW before C-state transition to
|
||||
clear CPU fill buffers.
|
||||
|
||||
Guest entry point
|
||||
^^^^^^^^^^^^^^^^^
|
||||
Same mitigation as MDS when processor is also affected by MDS/TAA, otherwise
|
||||
execute VERW at VMENTER only for MMIO capable guests. On CPUs not affected by
|
||||
MDS/TAA, guest without MMIO access cannot extract secrets using Processor MMIO
|
||||
Stale Data vulnerabilities, so there is no need to execute VERW for such guests.
|
||||
|
||||
Mitigation control on the kernel command line
|
||||
---------------------------------------------
|
||||
The kernel command line allows to control the Processor MMIO Stale Data
|
||||
mitigations at boot time with the option "mmio_stale_data=". The valid
|
||||
arguments for this option are:
|
||||
|
||||
========== =================================================================
|
||||
full If the CPU is vulnerable, enable mitigation; CPU buffer clearing
|
||||
on exit to userspace and when entering a VM. Idle transitions are
|
||||
protected as well. It does not automatically disable SMT.
|
||||
full,nosmt Same as full, with SMT disabled on vulnerable CPUs. This is the
|
||||
complete mitigation.
|
||||
off Disables mitigation completely.
|
||||
========== =================================================================
|
||||
|
||||
If the CPU is affected and mmio_stale_data=off is not supplied on the kernel
|
||||
command line, then the kernel selects the appropriate mitigation.
|
||||
|
||||
Mitigation status information
|
||||
-----------------------------
|
||||
The Linux kernel provides a sysfs interface to enumerate the current
|
||||
vulnerability status of the system: whether the system is vulnerable, and
|
||||
which mitigations are active. The relevant sysfs file is:
|
||||
|
||||
/sys/devices/system/cpu/vulnerabilities/mmio_stale_data
|
||||
|
||||
The possible values in this file are:
|
||||
|
||||
.. list-table::
|
||||
|
||||
* - 'Not affected'
|
||||
- The processor is not vulnerable
|
||||
* - 'Vulnerable'
|
||||
- The processor is vulnerable, but no mitigation enabled
|
||||
* - 'Vulnerable: Clear CPU buffers attempted, no microcode'
|
||||
- The processor is vulnerable, but microcode is not updated. The
|
||||
mitigation is enabled on a best effort basis.
|
||||
* - 'Mitigation: Clear CPU buffers'
|
||||
- The processor is vulnerable and the CPU buffer clearing mitigation is
|
||||
enabled.
|
||||
|
||||
If the processor is vulnerable then the following information is appended to
|
||||
the above information:
|
||||
|
||||
======================== ===========================================
|
||||
'SMT vulnerable' SMT is enabled
|
||||
'SMT disabled' SMT is disabled
|
||||
'SMT Host state unknown' Kernel runs in a VM, Host SMT state unknown
|
||||
======================== ===========================================
|
||||
|
||||
References
|
||||
----------
|
||||
.. [#f1] Affected Processors
|
||||
https://www.intel.com/content/www/us/en/developer/topic-technology/software-security-guidance/processors-affected-consolidated-product-cpu-model.html
|
||||
@@ -422,6 +422,14 @@ The possible values in this file are:
|
||||
'RSB filling' Protection of RSB on context switch enabled
|
||||
============= ===========================================
|
||||
|
||||
- EIBRS Post-barrier Return Stack Buffer (PBRSB) protection status:
|
||||
|
||||
=========================== =======================================================
|
||||
'PBRSB-eIBRS: SW sequence' CPU is affected and protection of RSB on VMEXIT enabled
|
||||
'PBRSB-eIBRS: Vulnerable' CPU is vulnerable
|
||||
'PBRSB-eIBRS: Not affected' CPU is not affected by PBRSB
|
||||
=========================== =======================================================
|
||||
|
||||
Full mitigation might require a microcode update from the CPU
|
||||
vendor. When the necessary microcode is not available, the kernel will
|
||||
report vulnerability.
|
||||
|
||||
@@ -2681,6 +2681,7 @@
|
||||
kvm.nx_huge_pages=off [X86]
|
||||
no_entry_flush [PPC]
|
||||
no_uaccess_flush [PPC]
|
||||
mmio_stale_data=off [X86]
|
||||
|
||||
Exceptions:
|
||||
This does not have any effect on
|
||||
@@ -2702,6 +2703,7 @@
|
||||
Equivalent to: l1tf=flush,nosmt [X86]
|
||||
mds=full,nosmt [X86]
|
||||
tsx_async_abort=full,nosmt [X86]
|
||||
mmio_stale_data=full,nosmt [X86]
|
||||
|
||||
mminit_loglevel=
|
||||
[KNL] When CONFIG_DEBUG_MEMORY_INIT is set, this
|
||||
@@ -2711,6 +2713,40 @@
|
||||
log everything. Information is printed at KERN_DEBUG
|
||||
so loglevel=8 may also need to be specified.
|
||||
|
||||
mmio_stale_data=
|
||||
[X86,INTEL] Control mitigation for the Processor
|
||||
MMIO Stale Data vulnerabilities.
|
||||
|
||||
Processor MMIO Stale Data is a class of
|
||||
vulnerabilities that may expose data after an MMIO
|
||||
operation. Exposed data could originate or end in
|
||||
the same CPU buffers as affected by MDS and TAA.
|
||||
Therefore, similar to MDS and TAA, the mitigation
|
||||
is to clear the affected CPU buffers.
|
||||
|
||||
This parameter controls the mitigation. The
|
||||
options are:
|
||||
|
||||
full - Enable mitigation on vulnerable CPUs
|
||||
|
||||
full,nosmt - Enable mitigation and disable SMT on
|
||||
vulnerable CPUs.
|
||||
|
||||
off - Unconditionally disable mitigation
|
||||
|
||||
On MDS or TAA affected machines,
|
||||
mmio_stale_data=off can be prevented by an active
|
||||
MDS or TAA mitigation as these vulnerabilities are
|
||||
mitigated with the same mechanism so in order to
|
||||
disable this mitigation, you need to specify
|
||||
mds=off and tsx_async_abort=off too.
|
||||
|
||||
Not specifying this option is equivalent to
|
||||
mmio_stale_data=full.
|
||||
|
||||
For details see:
|
||||
Documentation/admin-guide/hw-vuln/processor_mmio_stale_data.rst
|
||||
|
||||
module.sig_enforce
|
||||
[KNL] When CONFIG_MODULE_SIG is set, this means that
|
||||
modules without (valid) signatures will fail to load.
|
||||
@@ -3812,6 +3848,12 @@
|
||||
fully seed the kernel's CRNG. Default is controlled
|
||||
by CONFIG_RANDOM_TRUST_CPU.
|
||||
|
||||
random.trust_bootloader={on,off}
|
||||
[KNL] Enable or disable trusting the use of a
|
||||
seed passed by the bootloader (if available) to
|
||||
fully seed the kernel's CRNG. Default is controlled
|
||||
by CONFIG_RANDOM_TRUST_BOOTLOADER.
|
||||
|
||||
ras=option[,option,...] [KNL] RAS-specific options
|
||||
|
||||
cec_disable [X86]
|
||||
|
||||
@@ -862,9 +862,40 @@ The kernel command line parameter printk.devkmsg= overrides this and is
|
||||
a one-time setting until next reboot: once set, it cannot be changed by
|
||||
this sysctl interface anymore.
|
||||
|
||||
pty
|
||||
===
|
||||
|
||||
randomize_va_space:
|
||||
===================
|
||||
See Documentation/filesystems/devpts.rst.
|
||||
|
||||
|
||||
random
|
||||
======
|
||||
|
||||
This is a directory, with the following entries:
|
||||
|
||||
* ``boot_id``: a UUID generated the first time this is retrieved, and
|
||||
unvarying after that;
|
||||
|
||||
* ``uuid``: a UUID generated every time this is retrieved (this can
|
||||
thus be used to generate UUIDs at will);
|
||||
|
||||
* ``entropy_avail``: the pool's entropy count, in bits;
|
||||
|
||||
* ``poolsize``: the entropy pool size, in bits;
|
||||
|
||||
* ``urandom_min_reseed_secs``: obsolete (used to determine the minimum
|
||||
number of seconds between urandom pool reseeding). This file is
|
||||
writable for compatibility purposes, but writing to it has no effect
|
||||
on any RNG behavior;
|
||||
|
||||
* ``write_wakeup_threshold``: when the entropy count drops below this
|
||||
(as a number of bits), processes waiting to write to ``/dev/random``
|
||||
are woken up. This file is writable for compatibility purposes, but
|
||||
writing to it has no effect on any RNG behavior.
|
||||
|
||||
|
||||
randomize_va_space
|
||||
==================
|
||||
|
||||
This option can be used to select the type of process address
|
||||
space randomization that is used in the system, for architectures
|
||||
|
||||
@@ -98,7 +98,7 @@ finally:
|
||||
#
|
||||
# This is also used if you do content translation via gettext catalogs.
|
||||
# Usually you set "language" from the command line for these cases.
|
||||
language = None
|
||||
language = 'en'
|
||||
|
||||
# There are two options for replacing |today|: either, you set today to some
|
||||
# non-false value, then it is used:
|
||||
|
||||
@@ -58,7 +58,7 @@ if:
|
||||
then:
|
||||
properties:
|
||||
clocks:
|
||||
maxItems: 2
|
||||
minItems: 2
|
||||
|
||||
required:
|
||||
- clock-names
|
||||
|
||||
@@ -9,8 +9,9 @@ Required properties:
|
||||
- The second cell is reserved and is currently unused.
|
||||
- gpio-controller : Marks the device node as a GPIO controller.
|
||||
- interrupt-controller: Mark the device node as an interrupt controller
|
||||
- #interrupt-cells : Should be 1. The interrupt type is fixed in the hardware.
|
||||
- #interrupt-cells : Should be 2. The interrupt type is fixed in the hardware.
|
||||
- The first cell is the GPIO offset number within the GPIO controller.
|
||||
- The second cell is the interrupt trigger type and level flags.
|
||||
- interrupts: Specify the interrupt.
|
||||
- altr,interrupt-type: Specifies the interrupt trigger type the GPIO
|
||||
hardware is synthesized. This field is required if the Altera GPIO controller
|
||||
@@ -38,6 +39,6 @@ gpio_altr: gpio@ff200000 {
|
||||
altr,interrupt-type = <IRQ_TYPE_EDGE_RISING>;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
#interrupt-cells = <1>;
|
||||
#interrupt-cells = <2>;
|
||||
interrupt-controller;
|
||||
};
|
||||
|
||||
@@ -876,7 +876,7 @@ cipso_cache_enable - BOOLEAN
|
||||
cipso_cache_bucket_size - INTEGER
|
||||
The CIPSO label cache consists of a fixed size hash table with each
|
||||
hash bucket containing a number of cache entries. This variable limits
|
||||
the number of entries in each hash bucket; the larger the value the
|
||||
the number of entries in each hash bucket; the larger the value is, the
|
||||
more CIPSO label mappings that can be cached. When the number of
|
||||
entries in a given hash bucket reaches this limit adding new entries
|
||||
causes the oldest entry in the bucket to be removed to make room.
|
||||
@@ -966,7 +966,7 @@ ip_nonlocal_bind - BOOLEAN
|
||||
which can be quite useful - but may break some applications.
|
||||
Default: 0
|
||||
|
||||
ip_dynaddr - BOOLEAN
|
||||
ip_dynaddr - INTEGER
|
||||
If set non-zero, enables support for dynamic addresses.
|
||||
If set to a non-zero value larger than 1, a kernel log
|
||||
message will be printed when dynamic address rewriting
|
||||
@@ -2297,7 +2297,14 @@ sctp_rmem - vector of 3 INTEGERs: min, default, max
|
||||
Default: 4K
|
||||
|
||||
sctp_wmem - vector of 3 INTEGERs: min, default, max
|
||||
Currently this tunable has no effect.
|
||||
Only the first value ("min") is used, "default" and "max" are
|
||||
ignored.
|
||||
|
||||
min: Minimum size of send buffer that can be used by SCTP sockets.
|
||||
It is guaranteed to each SCTP socket (but not association) even
|
||||
under moderate memory pressure.
|
||||
|
||||
Default: 4K
|
||||
|
||||
addr_scope_policy - INTEGER
|
||||
Control IPv4 address scoping - draft-stewart-tsvwg-sctp-ipv4-00
|
||||
|
||||
@@ -13652,6 +13652,7 @@ F: arch/mips/configs/generic/board-ranchu.config
|
||||
|
||||
RANDOM NUMBER DRIVER
|
||||
M: "Theodore Ts'o" <tytso@mit.edu>
|
||||
M: Jason A. Donenfeld <Jason@zx2c4.com>
|
||||
S: Maintained
|
||||
F: drivers/char/random.c
|
||||
|
||||
|
||||
4
Makefile
4
Makefile
@@ -1,7 +1,7 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
VERSION = 5
|
||||
PATCHLEVEL = 4
|
||||
SUBLEVEL = 197
|
||||
SUBLEVEL = 210
|
||||
EXTRAVERSION =
|
||||
NAME = Kleptomaniac Octopus
|
||||
|
||||
@@ -1146,7 +1146,7 @@ PHONY += autoksyms_recursive
|
||||
ifdef CONFIG_TRIM_UNUSED_KSYMS
|
||||
autoksyms_recursive: descend modules.order
|
||||
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/adjust_autoksyms.sh \
|
||||
"$(MAKE) -f $(srctree)/Makefile vmlinux"
|
||||
"$(MAKE) -f $(srctree)/Makefile autoksyms_recursive"
|
||||
endif
|
||||
|
||||
# For the kernel to actually contain only the needed exported symbols,
|
||||
|
||||
168239
android/abi_gki_aarch64.xml
168239
android/abi_gki_aarch64.xml
File diff suppressed because it is too large
Load Diff
@@ -227,6 +227,7 @@
|
||||
ktime_get_mono_fast_ns
|
||||
__list_add_valid
|
||||
__list_del_entry_valid
|
||||
__local_bh_enable_ip
|
||||
mbox_client_txdone
|
||||
mbox_free_channel
|
||||
mbox_request_channel
|
||||
@@ -366,8 +367,7 @@
|
||||
_raw_spin_unlock_irq
|
||||
_raw_spin_unlock_irqrestore
|
||||
rdev_get_drvdata
|
||||
refcount_dec_and_test_checked
|
||||
refcount_inc_checked
|
||||
refcount_warn_saturate
|
||||
register_reboot_notifier
|
||||
__register_rpmsg_driver
|
||||
regmap_bulk_read
|
||||
@@ -584,7 +584,6 @@
|
||||
__kfifo_free
|
||||
kmalloc_order_trace
|
||||
ktime_get_with_offset
|
||||
__local_bh_enable_ip
|
||||
memmove
|
||||
param_ops_ulong
|
||||
pskb_expand_head
|
||||
@@ -1129,8 +1128,9 @@
|
||||
usb_create_hcd
|
||||
|
||||
# required by phy-qcom-qmp.ko
|
||||
of_clk_get_by_name
|
||||
devm_get_clk_from_child
|
||||
__of_reset_control_get
|
||||
reset_control_put
|
||||
|
||||
# required by phy-qcom-qusb2.ko
|
||||
devm_nvmem_cell_get
|
||||
@@ -1307,7 +1307,6 @@
|
||||
_raw_write_lock_bh
|
||||
_raw_write_unlock_bh
|
||||
refcount_dec_and_mutex_lock
|
||||
refcount_dec_checked
|
||||
release_sock
|
||||
rtnl_is_locked
|
||||
rtnl_register_module
|
||||
|
||||
21
arch/Kconfig
21
arch/Kconfig
@@ -1021,27 +1021,6 @@ config STRICT_MODULE_RWX
|
||||
config ARCH_HAS_PHYS_TO_DMA
|
||||
bool
|
||||
|
||||
config ARCH_HAS_REFCOUNT
|
||||
bool
|
||||
help
|
||||
An architecture selects this when it has implemented refcount_t
|
||||
using open coded assembly primitives that provide an optimized
|
||||
refcount_t implementation, possibly at the expense of some full
|
||||
refcount state checks of CONFIG_REFCOUNT_FULL=y.
|
||||
|
||||
The refcount overflow check behavior, however, must be retained.
|
||||
Catching overflows is the primary security concern for protecting
|
||||
against bugs in reference counts.
|
||||
|
||||
config REFCOUNT_FULL
|
||||
bool "Perform full reference count validation at the expense of speed"
|
||||
help
|
||||
Enabling this switches the refcounting infrastructure from a fast
|
||||
unchecked atomic_t implementation to a fully state checked
|
||||
implementation, which can be (slightly) slower but provides protections
|
||||
against various use-after-free conditions that can be used in
|
||||
security flaw exploits.
|
||||
|
||||
config HAVE_ARCH_COMPILER_H
|
||||
bool
|
||||
help
|
||||
|
||||
@@ -28,5 +28,6 @@ static inline cycles_t get_cycles (void)
|
||||
__asm__ __volatile__ ("rpcc %0" : "=r"(ret));
|
||||
return ret;
|
||||
}
|
||||
#define get_cycles get_cycles
|
||||
|
||||
#endif
|
||||
|
||||
@@ -59,7 +59,7 @@ srmcons_do_receive_chars(struct tty_port *port)
|
||||
} while((result.bits.status & 1) && (++loops < 10));
|
||||
|
||||
if (count)
|
||||
tty_schedule_flip(port);
|
||||
tty_flip_buffer_push(port);
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
@@ -119,7 +119,6 @@ config ARM
|
||||
select OLD_SIGSUSPEND3
|
||||
select PCI_SYSCALL if PCI
|
||||
select PERF_USE_VMALLOC
|
||||
select REFCOUNT_FULL
|
||||
select RTC_LIB
|
||||
select SYS_SUPPORTS_APM_EMULATION
|
||||
# Above selects are sorted alphabetically; please add new ones
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* size immediately following the kernel, we could build this into
|
||||
* a binary blob, and concatenate the zImage using the cat command.
|
||||
*/
|
||||
.section .start,#alloc,#execinstr
|
||||
.section .start, "ax"
|
||||
.type _start, #function
|
||||
.globl _start
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
* Author: Nicolas Pitre
|
||||
*/
|
||||
|
||||
.section ".start", #alloc, #execinstr
|
||||
.section ".start", "ax"
|
||||
|
||||
mrc p15, 0, r0, c1, c0, 0 @ read control reg
|
||||
orr r0, r0, #(1 << 7) @ enable big endian mode
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
#endif
|
||||
.endm
|
||||
|
||||
.section ".start", #alloc, #execinstr
|
||||
.section ".start", "ax"
|
||||
/*
|
||||
* sort out different calling conventions
|
||||
*/
|
||||
@@ -1274,7 +1274,7 @@ iflush:
|
||||
__armv5tej_mmu_cache_flush:
|
||||
tst r4, #1
|
||||
movne pc, lr
|
||||
1: mrc p15, 0, r15, c7, c14, 3 @ test,clean,invalidate D cache
|
||||
1: mrc p15, 0, APSR_nzcv, c7, c14, 3 @ test,clean,invalidate D cache
|
||||
bne 1b
|
||||
mcr p15, 0, r0, c7, c5, 0 @ flush I cache
|
||||
mcr p15, 0, r0, c7, c10, 4 @ drain WB
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
.section .piggydata,#alloc
|
||||
.section .piggydata, "a"
|
||||
.globl input_data
|
||||
input_data:
|
||||
.incbin "arch/arm/boot/compressed/piggy_data"
|
||||
|
||||
@@ -53,18 +53,17 @@
|
||||
"GPIO18",
|
||||
"NC", /* GPIO19 */
|
||||
"NC", /* GPIO20 */
|
||||
"GPIO21",
|
||||
"CAM_GPIO0",
|
||||
"GPIO22",
|
||||
"GPIO23",
|
||||
"GPIO24",
|
||||
"GPIO25",
|
||||
"NC", /* GPIO26 */
|
||||
"CAM_GPIO0",
|
||||
/* Binary number representing build/revision */
|
||||
"CONFIG0",
|
||||
"CONFIG1",
|
||||
"CONFIG2",
|
||||
"CONFIG3",
|
||||
"GPIO27",
|
||||
"GPIO28",
|
||||
"GPIO29",
|
||||
"GPIO30",
|
||||
"GPIO31",
|
||||
"NC", /* GPIO32 */
|
||||
"NC", /* GPIO33 */
|
||||
"NC", /* GPIO34 */
|
||||
|
||||
@@ -74,16 +74,18 @@
|
||||
"GPIO27",
|
||||
"SDA0",
|
||||
"SCL0",
|
||||
"NC", /* GPIO30 */
|
||||
"NC", /* GPIO31 */
|
||||
"NC", /* GPIO32 */
|
||||
"NC", /* GPIO33 */
|
||||
"NC", /* GPIO34 */
|
||||
"NC", /* GPIO35 */
|
||||
"NC", /* GPIO36 */
|
||||
"NC", /* GPIO37 */
|
||||
"NC", /* GPIO38 */
|
||||
"NC", /* GPIO39 */
|
||||
/* Used by BT module */
|
||||
"CTS0",
|
||||
"RTS0",
|
||||
"TXD0",
|
||||
"RXD0",
|
||||
/* Used by Wifi */
|
||||
"SD1_CLK",
|
||||
"SD1_CMD",
|
||||
"SD1_DATA0",
|
||||
"SD1_DATA1",
|
||||
"SD1_DATA2",
|
||||
"SD1_DATA3",
|
||||
"CAM_GPIO1", /* GPIO40 */
|
||||
"WL_ON", /* GPIO41 */
|
||||
"NC", /* GPIO42 */
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#gpio-cells = <2>;
|
||||
gpio-line-names = "BT_ON",
|
||||
"WL_ON",
|
||||
"STATUS_LED_R",
|
||||
"PWR_LED_R",
|
||||
"LAN_RUN",
|
||||
"",
|
||||
"CAM_GPIO0",
|
||||
|
||||
@@ -63,8 +63,8 @@
|
||||
"GPIO43",
|
||||
"GPIO44",
|
||||
"GPIO45",
|
||||
"GPIO46",
|
||||
"GPIO47",
|
||||
"SMPS_SCL",
|
||||
"SMPS_SDA",
|
||||
/* Used by eMMC */
|
||||
"SD_CLK_R",
|
||||
"SD_CMD_R",
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
samsung,i2c-max-bus-freq = <20000>;
|
||||
|
||||
eeprom@50 {
|
||||
compatible = "samsung,s524ad0xd1";
|
||||
compatible = "samsung,s524ad0xd1", "atmel,24c128";
|
||||
reg = <0x50>;
|
||||
};
|
||||
|
||||
@@ -287,7 +287,7 @@
|
||||
samsung,i2c-max-bus-freq = <20000>;
|
||||
|
||||
eeprom@51 {
|
||||
compatible = "samsung,s524ad0xd1";
|
||||
compatible = "samsung,s524ad0xd1", "atmel,24c128";
|
||||
reg = <0x51>;
|
||||
};
|
||||
|
||||
|
||||
@@ -226,7 +226,7 @@
|
||||
reg = <0x28>;
|
||||
#gpio-cells = <2>;
|
||||
gpio-controller;
|
||||
ngpio = <32>;
|
||||
ngpios = <62>;
|
||||
};
|
||||
|
||||
sgtl5000: codec@a {
|
||||
|
||||
@@ -766,7 +766,7 @@
|
||||
regulator-name = "vddpu";
|
||||
regulator-min-microvolt = <725000>;
|
||||
regulator-max-microvolt = <1450000>;
|
||||
regulator-enable-ramp-delay = <150>;
|
||||
regulator-enable-ramp-delay = <380>;
|
||||
anatop-reg-offset = <0x140>;
|
||||
anatop-vol-bit-shift = <9>;
|
||||
anatop-vol-bit-width = <5>;
|
||||
|
||||
@@ -287,7 +287,7 @@
|
||||
clocks = <&armclk>;
|
||||
};
|
||||
|
||||
gic: gic@1000 {
|
||||
gic: interrupt-controller@1000 {
|
||||
compatible = "arm,arm11mp-gic";
|
||||
interrupt-controller;
|
||||
#interrupt-cells = <3>;
|
||||
|
||||
@@ -933,7 +933,7 @@
|
||||
clocks = <&pmc PMC_TYPE_PERIPHERAL 55>, <&pmc PMC_TYPE_GCK 55>;
|
||||
clock-names = "pclk", "gclk";
|
||||
assigned-clocks = <&pmc PMC_TYPE_CORE PMC_I2S1_MUX>;
|
||||
assigned-parrents = <&pmc PMC_TYPE_GCK 55>;
|
||||
assigned-clock-parents = <&pmc PMC_TYPE_GCK 55>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
|
||||
@@ -515,7 +515,7 @@
|
||||
compatible = "st,stm32-cec";
|
||||
reg = <0x40016000 0x400>;
|
||||
interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
|
||||
clocks = <&rcc CEC_K>, <&clk_lse>;
|
||||
clocks = <&rcc CEC_K>, <&rcc CEC>;
|
||||
clock-names = "cec", "hdmi-cec";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
@@ -169,7 +169,7 @@
|
||||
flash@0 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "mxicy,mx25l1606e", "winbond,w25q128";
|
||||
compatible = "mxicy,mx25l1606e", "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
spi-max-frequency = <40000000>;
|
||||
};
|
||||
|
||||
@@ -104,8 +104,10 @@
|
||||
|
||||
wdt: watchdog@1c20ca0 {
|
||||
compatible = "allwinner,suniv-f1c100s-wdt",
|
||||
"allwinner,sun4i-a10-wdt";
|
||||
"allwinner,sun6i-a31-wdt";
|
||||
reg = <0x01c20ca0 0x20>;
|
||||
interrupts = <16>;
|
||||
clocks = <&osc32k>;
|
||||
};
|
||||
|
||||
uart0: serial@1c25000 {
|
||||
|
||||
@@ -30,7 +30,7 @@ config CRYPTO_SHA1_ARM_NEON
|
||||
|
||||
config CRYPTO_SHA1_ARM_CE
|
||||
tristate "SHA1 digest algorithm (ARM v8 Crypto Extensions)"
|
||||
depends on KERNEL_MODE_NEON
|
||||
depends on KERNEL_MODE_NEON && (CC_IS_CLANG || GCC_VERSION >= 40800)
|
||||
select CRYPTO_SHA1_ARM
|
||||
select CRYPTO_HASH
|
||||
help
|
||||
@@ -39,7 +39,7 @@ config CRYPTO_SHA1_ARM_CE
|
||||
|
||||
config CRYPTO_SHA2_ARM_CE
|
||||
tristate "SHA-224/256 digest algorithm (ARM v8 Crypto Extensions)"
|
||||
depends on KERNEL_MODE_NEON
|
||||
depends on KERNEL_MODE_NEON && (CC_IS_CLANG || GCC_VERSION >= 40800)
|
||||
select CRYPTO_SHA256_ARM
|
||||
select CRYPTO_HASH
|
||||
help
|
||||
@@ -115,7 +115,7 @@ config CRYPTO_AES_ARM_BS
|
||||
|
||||
config CRYPTO_AES_ARM_CE
|
||||
tristate "Accelerated AES using ARMv8 Crypto Extensions"
|
||||
depends on KERNEL_MODE_NEON
|
||||
depends on KERNEL_MODE_NEON && (CC_IS_CLANG || GCC_VERSION >= 40800)
|
||||
select CRYPTO_BLKCIPHER
|
||||
select CRYPTO_LIB_AES
|
||||
select CRYPTO_SIMD
|
||||
@@ -125,7 +125,7 @@ config CRYPTO_AES_ARM_CE
|
||||
|
||||
config CRYPTO_GHASH_ARM_CE
|
||||
tristate "PMULL-accelerated GHASH using NEON/ARMv8 Crypto Extensions"
|
||||
depends on KERNEL_MODE_NEON
|
||||
depends on KERNEL_MODE_NEON && (CC_IS_CLANG || GCC_VERSION >= 40800)
|
||||
select CRYPTO_HASH
|
||||
select CRYPTO_CRYPTD
|
||||
select CRYPTO_GF128MUL
|
||||
@@ -137,12 +137,14 @@ config CRYPTO_GHASH_ARM_CE
|
||||
|
||||
config CRYPTO_CRCT10DIF_ARM_CE
|
||||
tristate "CRCT10DIF digest algorithm using PMULL instructions"
|
||||
depends on KERNEL_MODE_NEON && CRC_T10DIF
|
||||
depends on KERNEL_MODE_NEON && (CC_IS_CLANG || GCC_VERSION >= 40800)
|
||||
depends on CRC_T10DIF
|
||||
select CRYPTO_HASH
|
||||
|
||||
config CRYPTO_CRC32_ARM_CE
|
||||
tristate "CRC32(C) digest algorithm using CRC and/or PMULL instructions"
|
||||
depends on KERNEL_MODE_NEON && CRC32
|
||||
depends on KERNEL_MODE_NEON && (CC_IS_CLANG || GCC_VERSION >= 40800)
|
||||
depends on CRC32
|
||||
select CRYPTO_HASH
|
||||
|
||||
config CRYPTO_CHACHA20_NEON
|
||||
|
||||
@@ -10,36 +10,17 @@ obj-$(CONFIG_CRYPTO_SHA1_ARM_NEON) += sha1-arm-neon.o
|
||||
obj-$(CONFIG_CRYPTO_SHA256_ARM) += sha256-arm.o
|
||||
obj-$(CONFIG_CRYPTO_SHA512_ARM) += sha512-arm.o
|
||||
obj-$(CONFIG_CRYPTO_BLAKE2S_ARM) += blake2s-arm.o
|
||||
obj-$(if $(CONFIG_CRYPTO_BLAKE2S_ARM),y) += libblake2s-arm.o
|
||||
obj-$(CONFIG_CRYPTO_BLAKE2B_NEON) += blake2b-neon.o
|
||||
obj-$(CONFIG_CRYPTO_CHACHA20_NEON) += chacha-neon.o
|
||||
obj-$(CONFIG_CRYPTO_NHPOLY1305_NEON) += nhpoly1305-neon.o
|
||||
|
||||
ce-obj-$(CONFIG_CRYPTO_AES_ARM_CE) += aes-arm-ce.o
|
||||
ce-obj-$(CONFIG_CRYPTO_SHA1_ARM_CE) += sha1-arm-ce.o
|
||||
ce-obj-$(CONFIG_CRYPTO_SHA2_ARM_CE) += sha2-arm-ce.o
|
||||
ce-obj-$(CONFIG_CRYPTO_GHASH_ARM_CE) += ghash-arm-ce.o
|
||||
ce-obj-$(CONFIG_CRYPTO_CRCT10DIF_ARM_CE) += crct10dif-arm-ce.o
|
||||
crc-obj-$(CONFIG_CRYPTO_CRC32_ARM_CE) += crc32-arm-ce.o
|
||||
|
||||
ifneq ($(crc-obj-y)$(crc-obj-m),)
|
||||
ifeq ($(call as-instr,.arch armv8-a\n.arch_extension crc,y,n),y)
|
||||
ce-obj-y += $(crc-obj-y)
|
||||
ce-obj-m += $(crc-obj-m)
|
||||
else
|
||||
$(warning These CRC Extensions modules need binutils 2.23 or higher)
|
||||
$(warning $(crc-obj-y) $(crc-obj-m))
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(ce-obj-y)$(ce-obj-m),)
|
||||
ifeq ($(call as-instr,.fpu crypto-neon-fp-armv8,y,n),y)
|
||||
obj-y += $(ce-obj-y)
|
||||
obj-m += $(ce-obj-m)
|
||||
else
|
||||
$(warning These ARMv8 Crypto Extensions modules need binutils 2.23 or higher)
|
||||
$(warning $(ce-obj-y) $(ce-obj-m))
|
||||
endif
|
||||
endif
|
||||
obj-$(CONFIG_CRYPTO_AES_ARM_CE) += aes-arm-ce.o
|
||||
obj-$(CONFIG_CRYPTO_SHA1_ARM_CE) += sha1-arm-ce.o
|
||||
obj-$(CONFIG_CRYPTO_SHA2_ARM_CE) += sha2-arm-ce.o
|
||||
obj-$(CONFIG_CRYPTO_GHASH_ARM_CE) += ghash-arm-ce.o
|
||||
obj-$(CONFIG_CRYPTO_CRCT10DIF_ARM_CE) += crct10dif-arm-ce.o
|
||||
obj-$(CONFIG_CRYPTO_CRC32_ARM_CE) += crc32-arm-ce.o
|
||||
|
||||
aes-arm-y := aes-cipher-core.o aes-cipher-glue.o
|
||||
aes-arm-bs-y := aes-neonbs-core.o aes-neonbs-glue.o
|
||||
@@ -49,7 +30,8 @@ sha256-arm-neon-$(CONFIG_KERNEL_MODE_NEON) := sha256_neon_glue.o
|
||||
sha256-arm-y := sha256-core.o sha256_glue.o $(sha256-arm-neon-y)
|
||||
sha512-arm-neon-$(CONFIG_KERNEL_MODE_NEON) := sha512-neon-glue.o
|
||||
sha512-arm-y := sha512-core.o sha512-glue.o $(sha512-arm-neon-y)
|
||||
blake2s-arm-y := blake2s-core.o blake2s-glue.o
|
||||
blake2s-arm-y := blake2s-shash.o
|
||||
libblake2s-arm-y:= blake2s-core.o blake2s-glue.o
|
||||
blake2b-neon-y := blake2b-neon-core.o blake2b-neon-glue.o
|
||||
sha1-arm-ce-y := sha1-ce-core.o sha1-ce-glue.o
|
||||
sha2-arm-ce-y := sha2-ce-core.o sha2-ce-glue.o
|
||||
|
||||
@@ -167,8 +167,8 @@
|
||||
.endm
|
||||
|
||||
//
|
||||
// void blake2s_compress_arch(struct blake2s_state *state,
|
||||
// const u8 *block, size_t nblocks, u32 inc);
|
||||
// void blake2s_compress(struct blake2s_state *state,
|
||||
// const u8 *block, size_t nblocks, u32 inc);
|
||||
//
|
||||
// Only the first three fields of struct blake2s_state are used:
|
||||
// u32 h[8]; (inout)
|
||||
@@ -176,7 +176,7 @@
|
||||
// u32 f[2]; (in)
|
||||
//
|
||||
.align 5
|
||||
ENTRY(blake2s_compress_arch)
|
||||
ENTRY(blake2s_compress)
|
||||
push {r0-r2,r4-r11,lr} // keep this an even number
|
||||
|
||||
.Lnext_block:
|
||||
@@ -303,4 +303,4 @@ ENTRY(blake2s_compress_arch)
|
||||
str r3, [r12], #4
|
||||
bne 1b
|
||||
b .Lcopy_block_done
|
||||
ENDPROC(blake2s_compress_arch)
|
||||
ENDPROC(blake2s_compress)
|
||||
|
||||
@@ -1,78 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
/*
|
||||
* BLAKE2s digest algorithm, ARM scalar implementation
|
||||
*
|
||||
* Copyright 2020 Google LLC
|
||||
*/
|
||||
|
||||
#include <crypto/internal/blake2s.h>
|
||||
#include <crypto/internal/hash.h>
|
||||
|
||||
#include <linux/module.h>
|
||||
|
||||
/* defined in blake2s-core.S */
|
||||
EXPORT_SYMBOL(blake2s_compress_arch);
|
||||
|
||||
static int crypto_blake2s_update_arm(struct shash_desc *desc,
|
||||
const u8 *in, unsigned int inlen)
|
||||
{
|
||||
return crypto_blake2s_update(desc, in, inlen, blake2s_compress_arch);
|
||||
}
|
||||
|
||||
static int crypto_blake2s_final_arm(struct shash_desc *desc, u8 *out)
|
||||
{
|
||||
return crypto_blake2s_final(desc, out, blake2s_compress_arch);
|
||||
}
|
||||
|
||||
#define BLAKE2S_ALG(name, driver_name, digest_size) \
|
||||
{ \
|
||||
.base.cra_name = name, \
|
||||
.base.cra_driver_name = driver_name, \
|
||||
.base.cra_priority = 200, \
|
||||
.base.cra_flags = CRYPTO_ALG_OPTIONAL_KEY, \
|
||||
.base.cra_blocksize = BLAKE2S_BLOCK_SIZE, \
|
||||
.base.cra_ctxsize = sizeof(struct blake2s_tfm_ctx), \
|
||||
.base.cra_module = THIS_MODULE, \
|
||||
.digestsize = digest_size, \
|
||||
.setkey = crypto_blake2s_setkey, \
|
||||
.init = crypto_blake2s_init, \
|
||||
.update = crypto_blake2s_update_arm, \
|
||||
.final = crypto_blake2s_final_arm, \
|
||||
.descsize = sizeof(struct blake2s_state), \
|
||||
}
|
||||
|
||||
static struct shash_alg blake2s_arm_algs[] = {
|
||||
BLAKE2S_ALG("blake2s-128", "blake2s-128-arm", BLAKE2S_128_HASH_SIZE),
|
||||
BLAKE2S_ALG("blake2s-160", "blake2s-160-arm", BLAKE2S_160_HASH_SIZE),
|
||||
BLAKE2S_ALG("blake2s-224", "blake2s-224-arm", BLAKE2S_224_HASH_SIZE),
|
||||
BLAKE2S_ALG("blake2s-256", "blake2s-256-arm", BLAKE2S_256_HASH_SIZE),
|
||||
};
|
||||
|
||||
static int __init blake2s_arm_mod_init(void)
|
||||
{
|
||||
return IS_REACHABLE(CONFIG_CRYPTO_HASH) ?
|
||||
crypto_register_shashes(blake2s_arm_algs,
|
||||
ARRAY_SIZE(blake2s_arm_algs)) : 0;
|
||||
}
|
||||
|
||||
static void __exit blake2s_arm_mod_exit(void)
|
||||
{
|
||||
if (IS_REACHABLE(CONFIG_CRYPTO_HASH))
|
||||
crypto_unregister_shashes(blake2s_arm_algs,
|
||||
ARRAY_SIZE(blake2s_arm_algs));
|
||||
}
|
||||
|
||||
module_init(blake2s_arm_mod_init);
|
||||
module_exit(blake2s_arm_mod_exit);
|
||||
|
||||
MODULE_DESCRIPTION("BLAKE2s digest algorithm, ARM scalar implementation");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Eric Biggers <ebiggers@google.com>");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-128");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-128-arm");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-160");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-160-arm");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-224");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-224-arm");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-256");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-256-arm");
|
||||
EXPORT_SYMBOL(blake2s_compress);
|
||||
|
||||
75
arch/arm/crypto/blake2s-shash.c
Normal file
75
arch/arm/crypto/blake2s-shash.c
Normal file
@@ -0,0 +1,75 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
/*
|
||||
* BLAKE2s digest algorithm, ARM scalar implementation
|
||||
*
|
||||
* Copyright 2020 Google LLC
|
||||
*/
|
||||
|
||||
#include <crypto/internal/blake2s.h>
|
||||
#include <crypto/internal/hash.h>
|
||||
|
||||
#include <linux/module.h>
|
||||
|
||||
static int crypto_blake2s_update_arm(struct shash_desc *desc,
|
||||
const u8 *in, unsigned int inlen)
|
||||
{
|
||||
return crypto_blake2s_update(desc, in, inlen, false);
|
||||
}
|
||||
|
||||
static int crypto_blake2s_final_arm(struct shash_desc *desc, u8 *out)
|
||||
{
|
||||
return crypto_blake2s_final(desc, out, false);
|
||||
}
|
||||
|
||||
#define BLAKE2S_ALG(name, driver_name, digest_size) \
|
||||
{ \
|
||||
.base.cra_name = name, \
|
||||
.base.cra_driver_name = driver_name, \
|
||||
.base.cra_priority = 200, \
|
||||
.base.cra_flags = CRYPTO_ALG_OPTIONAL_KEY, \
|
||||
.base.cra_blocksize = BLAKE2S_BLOCK_SIZE, \
|
||||
.base.cra_ctxsize = sizeof(struct blake2s_tfm_ctx), \
|
||||
.base.cra_module = THIS_MODULE, \
|
||||
.digestsize = digest_size, \
|
||||
.setkey = crypto_blake2s_setkey, \
|
||||
.init = crypto_blake2s_init, \
|
||||
.update = crypto_blake2s_update_arm, \
|
||||
.final = crypto_blake2s_final_arm, \
|
||||
.descsize = sizeof(struct blake2s_state), \
|
||||
}
|
||||
|
||||
static struct shash_alg blake2s_arm_algs[] = {
|
||||
BLAKE2S_ALG("blake2s-128", "blake2s-128-arm", BLAKE2S_128_HASH_SIZE),
|
||||
BLAKE2S_ALG("blake2s-160", "blake2s-160-arm", BLAKE2S_160_HASH_SIZE),
|
||||
BLAKE2S_ALG("blake2s-224", "blake2s-224-arm", BLAKE2S_224_HASH_SIZE),
|
||||
BLAKE2S_ALG("blake2s-256", "blake2s-256-arm", BLAKE2S_256_HASH_SIZE),
|
||||
};
|
||||
|
||||
static int __init blake2s_arm_mod_init(void)
|
||||
{
|
||||
return IS_REACHABLE(CONFIG_CRYPTO_HASH) ?
|
||||
crypto_register_shashes(blake2s_arm_algs,
|
||||
ARRAY_SIZE(blake2s_arm_algs)) : 0;
|
||||
}
|
||||
|
||||
static void __exit blake2s_arm_mod_exit(void)
|
||||
{
|
||||
if (IS_REACHABLE(CONFIG_CRYPTO_HASH))
|
||||
crypto_unregister_shashes(blake2s_arm_algs,
|
||||
ARRAY_SIZE(blake2s_arm_algs));
|
||||
}
|
||||
|
||||
module_init(blake2s_arm_mod_init);
|
||||
module_exit(blake2s_arm_mod_exit);
|
||||
|
||||
MODULE_DESCRIPTION("BLAKE2s digest algorithm, ARM scalar implementation");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Eric Biggers <ebiggers@google.com>");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-128");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-128-arm");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-160");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-160-arm");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-224");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-224-arm");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-256");
|
||||
MODULE_ALIAS_CRYPTO("blake2s-256-arm");
|
||||
@@ -72,7 +72,7 @@
|
||||
#endif
|
||||
|
||||
.text
|
||||
.arch armv7-a
|
||||
.arch armv8-a
|
||||
.fpu crypto-neon-fp-armv8
|
||||
|
||||
init_crc .req r0
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/assembler.h>
|
||||
|
||||
.arch armv8-a
|
||||
.fpu crypto-neon-fp-armv8
|
||||
|
||||
SHASH .req q0
|
||||
T1 .req q1
|
||||
XL .req q2
|
||||
@@ -88,7 +91,6 @@
|
||||
T3_H .req d17
|
||||
|
||||
.text
|
||||
.fpu crypto-neon-fp-armv8
|
||||
|
||||
.macro __pmull_p64, rd, rn, rm, b1, b2, b3, b4
|
||||
vmull.p64 \rd, \rn, \rm
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <asm/assembler.h>
|
||||
|
||||
.text
|
||||
.arch armv8-a
|
||||
.fpu crypto-neon-fp-armv8
|
||||
|
||||
k0 .req q0
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <asm/assembler.h>
|
||||
|
||||
.text
|
||||
.arch armv8-a
|
||||
.fpu crypto-neon-fp-armv8
|
||||
|
||||
k0 .req q7
|
||||
|
||||
@@ -175,7 +175,6 @@ $code=<<___;
|
||||
#else
|
||||
.syntax unified
|
||||
# ifdef __thumb2__
|
||||
# define adrl adr
|
||||
.thumb
|
||||
# else
|
||||
.code 32
|
||||
@@ -471,7 +470,8 @@ sha256_block_data_order_neon:
|
||||
stmdb sp!,{r4-r12,lr}
|
||||
|
||||
sub $H,sp,#16*4+16
|
||||
adrl $Ktbl,K256
|
||||
adr $Ktbl,.Lsha256_block_data_order
|
||||
sub $Ktbl,$Ktbl,#.Lsha256_block_data_order-K256
|
||||
bic $H,$H,#15 @ align for 128-bit stores
|
||||
mov $t2,sp
|
||||
mov sp,$H @ alloca
|
||||
|
||||
@@ -56,7 +56,6 @@
|
||||
#else
|
||||
.syntax unified
|
||||
# ifdef __thumb2__
|
||||
# define adrl adr
|
||||
.thumb
|
||||
# else
|
||||
.code 32
|
||||
@@ -1885,7 +1884,8 @@ sha256_block_data_order_neon:
|
||||
stmdb sp!,{r4-r12,lr}
|
||||
|
||||
sub r11,sp,#16*4+16
|
||||
adrl r14,K256
|
||||
adr r14,.Lsha256_block_data_order
|
||||
sub r14,r14,#.Lsha256_block_data_order-K256
|
||||
bic r11,r11,#15 @ align for 128-bit stores
|
||||
mov r12,sp
|
||||
mov sp,r11 @ alloca
|
||||
|
||||
@@ -212,7 +212,6 @@ $code=<<___;
|
||||
#else
|
||||
.syntax unified
|
||||
# ifdef __thumb2__
|
||||
# define adrl adr
|
||||
.thumb
|
||||
# else
|
||||
.code 32
|
||||
@@ -602,7 +601,8 @@ sha512_block_data_order_neon:
|
||||
dmb @ errata #451034 on early Cortex A8
|
||||
add $len,$inp,$len,lsl#7 @ len to point at the end of inp
|
||||
VFP_ABI_PUSH
|
||||
adrl $Ktbl,K512
|
||||
adr $Ktbl,.Lsha512_block_data_order
|
||||
sub $Ktbl,$Ktbl,.Lsha512_block_data_order-K512
|
||||
vldmia $ctx,{$A-$H} @ load context
|
||||
.Loop_neon:
|
||||
___
|
||||
|
||||
@@ -79,7 +79,6 @@
|
||||
#else
|
||||
.syntax unified
|
||||
# ifdef __thumb2__
|
||||
# define adrl adr
|
||||
.thumb
|
||||
# else
|
||||
.code 32
|
||||
@@ -543,7 +542,8 @@ sha512_block_data_order_neon:
|
||||
dmb @ errata #451034 on early Cortex A8
|
||||
add r2,r1,r2,lsl#7 @ len to point at the end of inp
|
||||
VFP_ABI_PUSH
|
||||
adrl r3,K512
|
||||
adr r3,.Lsha512_block_data_order
|
||||
sub r3,r3,.Lsha512_block_data_order-K512
|
||||
vldmia r0,{d16-d23} @ load context
|
||||
.Loop_neon:
|
||||
vshr.u64 d24,d20,#14 @ 0
|
||||
|
||||
@@ -279,10 +279,9 @@
|
||||
.endif ;\
|
||||
.popsection
|
||||
#define ALT_UP_B(label) \
|
||||
.equ up_b_offset, label - 9998b ;\
|
||||
.pushsection ".alt.smp.init", "a" ;\
|
||||
.long 9998b ;\
|
||||
W(b) . + up_b_offset ;\
|
||||
W(b) . + (label - 9998b) ;\
|
||||
.popsection
|
||||
#else
|
||||
#define ALT_SMP(instr...)
|
||||
|
||||
@@ -27,6 +27,7 @@ enum {
|
||||
MT_HIGH_VECTORS,
|
||||
MT_MEMORY_RWX,
|
||||
MT_MEMORY_RW,
|
||||
MT_MEMORY_RO,
|
||||
MT_ROM,
|
||||
MT_MEMORY_RWX_NONCACHED,
|
||||
MT_MEMORY_RW_DTCM,
|
||||
|
||||
@@ -164,5 +164,31 @@ static inline unsigned long user_stack_pointer(struct pt_regs *regs)
|
||||
((current_stack_pointer | (THREAD_SIZE - 1)) - 7) - 1; \
|
||||
})
|
||||
|
||||
|
||||
/*
|
||||
* Update ITSTATE after normal execution of an IT block instruction.
|
||||
*
|
||||
* The 8 IT state bits are split into two parts in CPSR:
|
||||
* ITSTATE<1:0> are in CPSR<26:25>
|
||||
* ITSTATE<7:2> are in CPSR<15:10>
|
||||
*/
|
||||
static inline unsigned long it_advance(unsigned long cpsr)
|
||||
{
|
||||
if ((cpsr & 0x06000400) == 0) {
|
||||
/* ITSTATE<2:0> == 0 means end of IT block, so clear IT state */
|
||||
cpsr &= ~PSR_IT_MASK;
|
||||
} else {
|
||||
/* We need to shift left ITSTATE<4:0> */
|
||||
const unsigned long mask = 0x06001c00; /* Mask ITSTATE<4:0> */
|
||||
unsigned long it = cpsr & mask;
|
||||
it <<= 1;
|
||||
it |= it >> (27 - 10); /* Carry ITSTATE<2> to correct place */
|
||||
it &= mask;
|
||||
cpsr &= ~mask;
|
||||
cpsr |= it;
|
||||
}
|
||||
return cpsr;
|
||||
}
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#endif
|
||||
|
||||
@@ -11,5 +11,6 @@
|
||||
|
||||
typedef unsigned long cycles_t;
|
||||
#define get_cycles() ({ cycles_t c; read_current_timer(&c) ? 0 : c; })
|
||||
#define random_get_entropy() (((unsigned long)get_cycles()) ?: random_get_entropy_fallback())
|
||||
|
||||
#endif
|
||||
|
||||
@@ -19,23 +19,25 @@
|
||||
|
||||
@ read all the working registers back into the VFP
|
||||
.macro VFPFLDMIA, base, tmp
|
||||
.fpu vfpv2
|
||||
#if __LINUX_ARM_ARCH__ < 6
|
||||
LDC p11, cr0, [\base],#33*4 @ FLDMIAX \base!, {d0-d15}
|
||||
fldmiax \base!, {d0-d15}
|
||||
#else
|
||||
LDC p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d0-d15}
|
||||
vldmia \base!, {d0-d15}
|
||||
#endif
|
||||
#ifdef CONFIG_VFPv3
|
||||
.fpu vfpv3
|
||||
#if __LINUX_ARM_ARCH__ <= 6
|
||||
ldr \tmp, =elf_hwcap @ may not have MVFR regs
|
||||
ldr \tmp, [\tmp, #0]
|
||||
tst \tmp, #HWCAP_VFPD32
|
||||
ldclne p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d16-d31}
|
||||
vldmiane \base!, {d16-d31}
|
||||
addeq \base, \base, #32*4 @ step over unused register space
|
||||
#else
|
||||
VFPFMRX \tmp, MVFR0 @ Media and VFP Feature Register 0
|
||||
and \tmp, \tmp, #MVFR0_A_SIMD_MASK @ A_SIMD field
|
||||
cmp \tmp, #2 @ 32 x 64bit registers?
|
||||
ldcleq p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d16-d31}
|
||||
vldmiaeq \base!, {d16-d31}
|
||||
addne \base, \base, #32*4 @ step over unused register space
|
||||
#endif
|
||||
#endif
|
||||
@@ -44,22 +46,23 @@
|
||||
@ write all the working registers out of the VFP
|
||||
.macro VFPFSTMIA, base, tmp
|
||||
#if __LINUX_ARM_ARCH__ < 6
|
||||
STC p11, cr0, [\base],#33*4 @ FSTMIAX \base!, {d0-d15}
|
||||
fstmiax \base!, {d0-d15}
|
||||
#else
|
||||
STC p11, cr0, [\base],#32*4 @ FSTMIAD \base!, {d0-d15}
|
||||
vstmia \base!, {d0-d15}
|
||||
#endif
|
||||
#ifdef CONFIG_VFPv3
|
||||
.fpu vfpv3
|
||||
#if __LINUX_ARM_ARCH__ <= 6
|
||||
ldr \tmp, =elf_hwcap @ may not have MVFR regs
|
||||
ldr \tmp, [\tmp, #0]
|
||||
tst \tmp, #HWCAP_VFPD32
|
||||
stclne p11, cr0, [\base],#32*4 @ FSTMIAD \base!, {d16-d31}
|
||||
vstmiane \base!, {d16-d31}
|
||||
addeq \base, \base, #32*4 @ step over unused register space
|
||||
#else
|
||||
VFPFMRX \tmp, MVFR0 @ Media and VFP Feature Register 0
|
||||
and \tmp, \tmp, #MVFR0_A_SIMD_MASK @ A_SIMD field
|
||||
cmp \tmp, #2 @ 32 x 64bit registers?
|
||||
stcleq p11, cr0, [\base],#32*4 @ FSTMIAD \base!, {d16-d31}
|
||||
vstmiaeq \base!, {d16-d31}
|
||||
addne \base, \base, #32*4 @ step over unused register space
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <asm/thread_info.h>
|
||||
#include <asm/asm-offsets.h>
|
||||
#include <asm/assembler.h>
|
||||
#include "iwmmxt.h"
|
||||
|
||||
#if defined(CONFIG_CPU_PJ4) || defined(CONFIG_CPU_PJ4B)
|
||||
#define PJ4(code...) code
|
||||
@@ -113,33 +114,33 @@ concan_save:
|
||||
|
||||
concan_dump:
|
||||
|
||||
wstrw wCSSF, [r1, #MMX_WCSSF]
|
||||
wstrw wCASF, [r1, #MMX_WCASF]
|
||||
wstrw wCGR0, [r1, #MMX_WCGR0]
|
||||
wstrw wCGR1, [r1, #MMX_WCGR1]
|
||||
wstrw wCGR2, [r1, #MMX_WCGR2]
|
||||
wstrw wCGR3, [r1, #MMX_WCGR3]
|
||||
wstrw wCSSF, r1, MMX_WCSSF
|
||||
wstrw wCASF, r1, MMX_WCASF
|
||||
wstrw wCGR0, r1, MMX_WCGR0
|
||||
wstrw wCGR1, r1, MMX_WCGR1
|
||||
wstrw wCGR2, r1, MMX_WCGR2
|
||||
wstrw wCGR3, r1, MMX_WCGR3
|
||||
|
||||
1: @ MUP? wRn
|
||||
tst r2, #0x2
|
||||
beq 2f
|
||||
|
||||
wstrd wR0, [r1, #MMX_WR0]
|
||||
wstrd wR1, [r1, #MMX_WR1]
|
||||
wstrd wR2, [r1, #MMX_WR2]
|
||||
wstrd wR3, [r1, #MMX_WR3]
|
||||
wstrd wR4, [r1, #MMX_WR4]
|
||||
wstrd wR5, [r1, #MMX_WR5]
|
||||
wstrd wR6, [r1, #MMX_WR6]
|
||||
wstrd wR7, [r1, #MMX_WR7]
|
||||
wstrd wR8, [r1, #MMX_WR8]
|
||||
wstrd wR9, [r1, #MMX_WR9]
|
||||
wstrd wR10, [r1, #MMX_WR10]
|
||||
wstrd wR11, [r1, #MMX_WR11]
|
||||
wstrd wR12, [r1, #MMX_WR12]
|
||||
wstrd wR13, [r1, #MMX_WR13]
|
||||
wstrd wR14, [r1, #MMX_WR14]
|
||||
wstrd wR15, [r1, #MMX_WR15]
|
||||
wstrd wR0, r1, MMX_WR0
|
||||
wstrd wR1, r1, MMX_WR1
|
||||
wstrd wR2, r1, MMX_WR2
|
||||
wstrd wR3, r1, MMX_WR3
|
||||
wstrd wR4, r1, MMX_WR4
|
||||
wstrd wR5, r1, MMX_WR5
|
||||
wstrd wR6, r1, MMX_WR6
|
||||
wstrd wR7, r1, MMX_WR7
|
||||
wstrd wR8, r1, MMX_WR8
|
||||
wstrd wR9, r1, MMX_WR9
|
||||
wstrd wR10, r1, MMX_WR10
|
||||
wstrd wR11, r1, MMX_WR11
|
||||
wstrd wR12, r1, MMX_WR12
|
||||
wstrd wR13, r1, MMX_WR13
|
||||
wstrd wR14, r1, MMX_WR14
|
||||
wstrd wR15, r1, MMX_WR15
|
||||
|
||||
2: teq r0, #0 @ anything to load?
|
||||
reteq lr @ if not, return
|
||||
@@ -147,30 +148,30 @@ concan_dump:
|
||||
concan_load:
|
||||
|
||||
@ Load wRn
|
||||
wldrd wR0, [r0, #MMX_WR0]
|
||||
wldrd wR1, [r0, #MMX_WR1]
|
||||
wldrd wR2, [r0, #MMX_WR2]
|
||||
wldrd wR3, [r0, #MMX_WR3]
|
||||
wldrd wR4, [r0, #MMX_WR4]
|
||||
wldrd wR5, [r0, #MMX_WR5]
|
||||
wldrd wR6, [r0, #MMX_WR6]
|
||||
wldrd wR7, [r0, #MMX_WR7]
|
||||
wldrd wR8, [r0, #MMX_WR8]
|
||||
wldrd wR9, [r0, #MMX_WR9]
|
||||
wldrd wR10, [r0, #MMX_WR10]
|
||||
wldrd wR11, [r0, #MMX_WR11]
|
||||
wldrd wR12, [r0, #MMX_WR12]
|
||||
wldrd wR13, [r0, #MMX_WR13]
|
||||
wldrd wR14, [r0, #MMX_WR14]
|
||||
wldrd wR15, [r0, #MMX_WR15]
|
||||
wldrd wR0, r0, MMX_WR0
|
||||
wldrd wR1, r0, MMX_WR1
|
||||
wldrd wR2, r0, MMX_WR2
|
||||
wldrd wR3, r0, MMX_WR3
|
||||
wldrd wR4, r0, MMX_WR4
|
||||
wldrd wR5, r0, MMX_WR5
|
||||
wldrd wR6, r0, MMX_WR6
|
||||
wldrd wR7, r0, MMX_WR7
|
||||
wldrd wR8, r0, MMX_WR8
|
||||
wldrd wR9, r0, MMX_WR9
|
||||
wldrd wR10, r0, MMX_WR10
|
||||
wldrd wR11, r0, MMX_WR11
|
||||
wldrd wR12, r0, MMX_WR12
|
||||
wldrd wR13, r0, MMX_WR13
|
||||
wldrd wR14, r0, MMX_WR14
|
||||
wldrd wR15, r0, MMX_WR15
|
||||
|
||||
@ Load wCx
|
||||
wldrw wCSSF, [r0, #MMX_WCSSF]
|
||||
wldrw wCASF, [r0, #MMX_WCASF]
|
||||
wldrw wCGR0, [r0, #MMX_WCGR0]
|
||||
wldrw wCGR1, [r0, #MMX_WCGR1]
|
||||
wldrw wCGR2, [r0, #MMX_WCGR2]
|
||||
wldrw wCGR3, [r0, #MMX_WCGR3]
|
||||
wldrw wCSSF, r0, MMX_WCSSF
|
||||
wldrw wCASF, r0, MMX_WCASF
|
||||
wldrw wCGR0, r0, MMX_WCGR0
|
||||
wldrw wCGR1, r0, MMX_WCGR1
|
||||
wldrw wCGR2, r0, MMX_WCGR2
|
||||
wldrw wCGR3, r0, MMX_WCGR3
|
||||
|
||||
@ clear CUP/MUP (only if r1 != 0)
|
||||
teq r1, #0
|
||||
|
||||
47
arch/arm/kernel/iwmmxt.h
Normal file
47
arch/arm/kernel/iwmmxt.h
Normal file
@@ -0,0 +1,47 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
|
||||
#ifndef __IWMMXT_H__
|
||||
#define __IWMMXT_H__
|
||||
|
||||
.irp b, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
|
||||
.set .LwR\b, \b
|
||||
.set .Lr\b, \b
|
||||
.endr
|
||||
|
||||
.set .LwCSSF, 0x2
|
||||
.set .LwCASF, 0x3
|
||||
.set .LwCGR0, 0x8
|
||||
.set .LwCGR1, 0x9
|
||||
.set .LwCGR2, 0xa
|
||||
.set .LwCGR3, 0xb
|
||||
|
||||
.macro wldrd, reg:req, base:req, offset:req
|
||||
.inst 0xedd00100 | (.L\reg << 12) | (.L\base << 16) | (\offset >> 2)
|
||||
.endm
|
||||
|
||||
.macro wldrw, reg:req, base:req, offset:req
|
||||
.inst 0xfd900100 | (.L\reg << 12) | (.L\base << 16) | (\offset >> 2)
|
||||
.endm
|
||||
|
||||
.macro wstrd, reg:req, base:req, offset:req
|
||||
.inst 0xedc00100 | (.L\reg << 12) | (.L\base << 16) | (\offset >> 2)
|
||||
.endm
|
||||
|
||||
.macro wstrw, reg:req, base:req, offset:req
|
||||
.inst 0xfd800100 | (.L\reg << 12) | (.L\base << 16) | (\offset >> 2)
|
||||
.endm
|
||||
|
||||
#ifdef __clang__
|
||||
|
||||
#define wCon c1
|
||||
|
||||
.macro tmrc, dest:req, control:req
|
||||
mrc p1, 0, \dest, \control, c0, 0
|
||||
.endm
|
||||
|
||||
.macro tmcr, control:req, src:req
|
||||
mcr p1, 0, \src, \control, c0, 0
|
||||
.endm
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -26,8 +26,9 @@ MODULE_LICENSE("GPL");
|
||||
* While older versions of GCC do not generate incorrect code, they fail to
|
||||
* recognize the parallel nature of these functions, and emit plain ARM code,
|
||||
* which is known to be slower than the optimized ARM code in asm-arm/xor.h.
|
||||
*
|
||||
* #warning This code requires at least version 4.6 of GCC
|
||||
*/
|
||||
#warning This code requires at least version 4.6 of GCC
|
||||
#endif
|
||||
|
||||
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||
|
||||
@@ -103,7 +103,7 @@ static const struct wakeup_source_info ws_info[] = {
|
||||
|
||||
static const struct of_device_id sama5d2_ws_ids[] = {
|
||||
{ .compatible = "atmel,sama5d2-gem", .data = &ws_info[0] },
|
||||
{ .compatible = "atmel,at91rm9200-rtc", .data = &ws_info[1] },
|
||||
{ .compatible = "atmel,sama5d2-rtc", .data = &ws_info[1] },
|
||||
{ .compatible = "atmel,sama5d3-udc", .data = &ws_info[2] },
|
||||
{ .compatible = "atmel,at91rm9200-ohci", .data = &ws_info[2] },
|
||||
{ .compatible = "usb-ohci", .data = &ws_info[2] },
|
||||
@@ -114,12 +114,12 @@ static const struct of_device_id sama5d2_ws_ids[] = {
|
||||
};
|
||||
|
||||
static const struct of_device_id sam9x60_ws_ids[] = {
|
||||
{ .compatible = "atmel,at91sam9x5-rtc", .data = &ws_info[1] },
|
||||
{ .compatible = "microchip,sam9x60-rtc", .data = &ws_info[1] },
|
||||
{ .compatible = "atmel,at91rm9200-ohci", .data = &ws_info[2] },
|
||||
{ .compatible = "usb-ohci", .data = &ws_info[2] },
|
||||
{ .compatible = "atmel,at91sam9g45-ehci", .data = &ws_info[2] },
|
||||
{ .compatible = "usb-ehci", .data = &ws_info[2] },
|
||||
{ .compatible = "atmel,at91sam9260-rtt", .data = &ws_info[4] },
|
||||
{ .compatible = "microchip,sam9x60-rtt", .data = &ws_info[4] },
|
||||
{ .compatible = "cdns,sam9x60-macb", .data = &ws_info[5] },
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
|
||||
@@ -39,6 +39,7 @@ static int axxia_boot_secondary(unsigned int cpu, struct task_struct *idle)
|
||||
return -ENOENT;
|
||||
|
||||
syscon = of_iomap(syscon_np, 0);
|
||||
of_node_put(syscon_np);
|
||||
if (!syscon)
|
||||
return -ENOMEM;
|
||||
|
||||
|
||||
@@ -376,6 +376,7 @@ static void __init cns3xxx_init(void)
|
||||
/* De-Asscer SATA Reset */
|
||||
cns3xxx_pwr_soft_rst(CNS3XXX_PWR_SOFTWARE_RST(SATA));
|
||||
}
|
||||
of_node_put(dn);
|
||||
|
||||
dn = of_find_compatible_node(NULL, NULL, "cavium,cns3420-sdhci");
|
||||
if (of_device_is_available(dn)) {
|
||||
@@ -389,6 +390,7 @@ static void __init cns3xxx_init(void)
|
||||
cns3xxx_pwr_clk_en(CNS3XXX_PWR_CLK_EN(SDIO));
|
||||
cns3xxx_pwr_soft_rst(CNS3XXX_PWR_SOFTWARE_RST(SDIO));
|
||||
}
|
||||
of_node_put(dn);
|
||||
|
||||
pm_power_off = cns3xxx_power_off;
|
||||
|
||||
|
||||
@@ -136,6 +136,7 @@ static void exynos_map_pmu(void)
|
||||
np = of_find_matching_node(NULL, exynos_dt_pmu_match);
|
||||
if (np)
|
||||
pmu_base_addr = of_iomap(np, 0);
|
||||
of_node_put(np);
|
||||
}
|
||||
|
||||
static void __init exynos_init_irq(void)
|
||||
|
||||
@@ -67,14 +67,17 @@ static void __init hi3xxx_smp_prepare_cpus(unsigned int max_cpus)
|
||||
}
|
||||
ctrl_base = of_iomap(np, 0);
|
||||
if (!ctrl_base) {
|
||||
of_node_put(np);
|
||||
pr_err("failed to map address\n");
|
||||
return;
|
||||
}
|
||||
if (of_property_read_u32(np, "smp-offset", &offset) < 0) {
|
||||
of_node_put(np);
|
||||
pr_err("failed to find smp-offset property\n");
|
||||
return;
|
||||
}
|
||||
ctrl_base += offset;
|
||||
of_node_put(np);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,6 +163,7 @@ static int hip01_boot_secondary(unsigned int cpu, struct task_struct *idle)
|
||||
if (WARN_ON(!node))
|
||||
return -1;
|
||||
ctrl_base = of_iomap(node, 0);
|
||||
of_node_put(node);
|
||||
|
||||
/* set the secondary core boot from DDR */
|
||||
remap_reg_value = readl_relaxed(ctrl_base + REG_SC_CTRL);
|
||||
|
||||
@@ -30,6 +30,7 @@ config MACH_MT7623
|
||||
config MACH_MT7629
|
||||
bool "MediaTek MT7629 SoCs support"
|
||||
default ARCH_MEDIATEK
|
||||
select HAVE_ARM_ARCH_TIMER
|
||||
|
||||
config MACH_MT8127
|
||||
bool "MediaTek MT8127 SoCs support"
|
||||
|
||||
@@ -71,6 +71,7 @@ static void __init meson_smp_prepare_cpus(const char *scu_compatible,
|
||||
}
|
||||
|
||||
sram_base = of_iomap(node, 0);
|
||||
of_node_put(node);
|
||||
if (!sram_base) {
|
||||
pr_err("Couldn't map SRAM registers\n");
|
||||
return;
|
||||
@@ -91,6 +92,7 @@ static void __init meson_smp_prepare_cpus(const char *scu_compatible,
|
||||
}
|
||||
|
||||
scu_base = of_iomap(node, 0);
|
||||
of_node_put(node);
|
||||
if (!scu_base) {
|
||||
pr_err("Couldn't map SCU registers\n");
|
||||
return;
|
||||
|
||||
@@ -41,7 +41,7 @@ static DEFINE_SPINLOCK(clockfw_lock);
|
||||
unsigned long omap1_uart_recalc(struct clk *clk)
|
||||
{
|
||||
unsigned int val = __raw_readl(clk->enable_reg);
|
||||
return val & clk->enable_bit ? 48000000 : 12000000;
|
||||
return val & 1 << clk->enable_bit ? 48000000 : 12000000;
|
||||
}
|
||||
|
||||
unsigned long omap1_sossi_recalc(struct clk *clk)
|
||||
|
||||
@@ -72,7 +72,7 @@ ENTRY(enable_omap3630_toggle_l2_on_restore)
|
||||
stmfd sp!, {lr} @ save registers on stack
|
||||
/* Setup so that we will disable and enable l2 */
|
||||
mov r1, #0x1
|
||||
adrl r3, l2dis_3630_offset @ may be too distant for plain adr
|
||||
adr r3, l2dis_3630_offset
|
||||
ldr r2, [r3] @ value for offset
|
||||
str r1, [r2, r3] @ write to l2dis_3630
|
||||
ldmfd sp!, {pc} @ restore regs and return
|
||||
|
||||
@@ -355,13 +355,13 @@ static struct platform_device cm_x300_spi_gpio = {
|
||||
static struct gpiod_lookup_table cm_x300_spi_gpiod_table = {
|
||||
.dev_id = "spi_gpio",
|
||||
.table = {
|
||||
GPIO_LOOKUP("gpio-pxa", GPIO_LCD_SCL,
|
||||
GPIO_LOOKUP("pca9555.1", GPIO_LCD_SCL - GPIO_LCD_BASE,
|
||||
"sck", GPIO_ACTIVE_HIGH),
|
||||
GPIO_LOOKUP("gpio-pxa", GPIO_LCD_DIN,
|
||||
GPIO_LOOKUP("pca9555.1", GPIO_LCD_DIN - GPIO_LCD_BASE,
|
||||
"mosi", GPIO_ACTIVE_HIGH),
|
||||
GPIO_LOOKUP("gpio-pxa", GPIO_LCD_DOUT,
|
||||
GPIO_LOOKUP("pca9555.1", GPIO_LCD_DOUT - GPIO_LCD_BASE,
|
||||
"miso", GPIO_ACTIVE_HIGH),
|
||||
GPIO_LOOKUP("gpio-pxa", GPIO_LCD_CS,
|
||||
GPIO_LOOKUP("pca9555.1", GPIO_LCD_CS - GPIO_LCD_BASE,
|
||||
"cs", GPIO_ACTIVE_HIGH),
|
||||
{ },
|
||||
},
|
||||
|
||||
@@ -675,7 +675,7 @@ static struct platform_device bq24022 = {
|
||||
static struct gpiod_lookup_table bq24022_gpiod_table = {
|
||||
.dev_id = "gpio-regulator",
|
||||
.table = {
|
||||
GPIO_LOOKUP("gpio-pxa", EGPIO_MAGICIAN_BQ24022_ISET2,
|
||||
GPIO_LOOKUP("htc-egpio-0", EGPIO_MAGICIAN_BQ24022_ISET2 - MAGICIAN_EGPIO_BASE,
|
||||
NULL, GPIO_ACTIVE_HIGH),
|
||||
GPIO_LOOKUP("gpio-pxa", GPIO30_MAGICIAN_BQ24022_nCHARGE_EN,
|
||||
"enable", GPIO_ACTIVE_LOW),
|
||||
|
||||
@@ -295,9 +295,9 @@ static struct gpiod_lookup_table tosa_mci_gpio_table = {
|
||||
.table = {
|
||||
GPIO_LOOKUP("gpio-pxa", TOSA_GPIO_nSD_DETECT,
|
||||
"cd", GPIO_ACTIVE_LOW),
|
||||
GPIO_LOOKUP("gpio-pxa", TOSA_GPIO_SD_WP,
|
||||
GPIO_LOOKUP("sharp-scoop.0", TOSA_GPIO_SD_WP - TOSA_SCOOP_GPIO_BASE,
|
||||
"wp", GPIO_ACTIVE_LOW),
|
||||
GPIO_LOOKUP("gpio-pxa", TOSA_GPIO_PWR_ON,
|
||||
GPIO_LOOKUP("sharp-scoop.0", TOSA_GPIO_PWR_ON - TOSA_SCOOP_GPIO_BASE,
|
||||
"power", GPIO_ACTIVE_HIGH),
|
||||
{ },
|
||||
},
|
||||
|
||||
@@ -143,6 +143,7 @@ static int __init dcscb_init(void)
|
||||
if (!node)
|
||||
return -ENODEV;
|
||||
dcscb_base = of_iomap(node, 0);
|
||||
of_node_put(node);
|
||||
if (!dcscb_base)
|
||||
return -EADDRNOTAVAIL;
|
||||
cfg = readl_relaxed(dcscb_base + DCS_CFG_R);
|
||||
|
||||
@@ -935,6 +935,9 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
|
||||
if (type == TYPE_LDST)
|
||||
do_alignment_finish_ldst(addr, instr, regs, offset);
|
||||
|
||||
if (thumb_mode(regs))
|
||||
regs->ARM_cpsr = it_advance(regs->ARM_cpsr);
|
||||
|
||||
return 0;
|
||||
|
||||
bad_or_fault:
|
||||
|
||||
@@ -316,6 +316,13 @@ static struct mem_type mem_types[] __ro_after_init = {
|
||||
.prot_sect = PMD_TYPE_SECT | PMD_SECT_AP_WRITE,
|
||||
.domain = DOMAIN_KERNEL,
|
||||
},
|
||||
[MT_MEMORY_RO] = {
|
||||
.prot_pte = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY |
|
||||
L_PTE_XN | L_PTE_RDONLY,
|
||||
.prot_l1 = PMD_TYPE_TABLE,
|
||||
.prot_sect = PMD_TYPE_SECT,
|
||||
.domain = DOMAIN_KERNEL,
|
||||
},
|
||||
[MT_ROM] = {
|
||||
.prot_sect = PMD_TYPE_SECT,
|
||||
.domain = DOMAIN_KERNEL,
|
||||
@@ -515,6 +522,7 @@ static void __init build_mem_type_table(void)
|
||||
|
||||
/* Also setup NX memory mapping */
|
||||
mem_types[MT_MEMORY_RW].prot_sect |= PMD_SECT_XN;
|
||||
mem_types[MT_MEMORY_RO].prot_sect |= PMD_SECT_XN;
|
||||
}
|
||||
if (cpu_arch >= CPU_ARCH_ARMv7 && (cr & CR_TRE)) {
|
||||
/*
|
||||
@@ -597,6 +605,7 @@ static void __init build_mem_type_table(void)
|
||||
mem_types[MT_ROM].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;
|
||||
mem_types[MT_MINICLEAN].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;
|
||||
mem_types[MT_CACHECLEAN].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;
|
||||
mem_types[MT_MEMORY_RO].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -617,6 +626,8 @@ static void __init build_mem_type_table(void)
|
||||
mem_types[MT_MEMORY_RWX].prot_pte |= L_PTE_SHARED;
|
||||
mem_types[MT_MEMORY_RW].prot_sect |= PMD_SECT_S;
|
||||
mem_types[MT_MEMORY_RW].prot_pte |= L_PTE_SHARED;
|
||||
mem_types[MT_MEMORY_RO].prot_sect |= PMD_SECT_S;
|
||||
mem_types[MT_MEMORY_RO].prot_pte |= L_PTE_SHARED;
|
||||
mem_types[MT_MEMORY_DMA_READY].prot_pte |= L_PTE_SHARED;
|
||||
mem_types[MT_MEMORY_RWX_NONCACHED].prot_sect |= PMD_SECT_S;
|
||||
mem_types[MT_MEMORY_RWX_NONCACHED].prot_pte |= L_PTE_SHARED;
|
||||
@@ -680,6 +691,8 @@ static void __init build_mem_type_table(void)
|
||||
mem_types[MT_MEMORY_RWX].prot_pte |= kern_pgprot;
|
||||
mem_types[MT_MEMORY_RW].prot_sect |= ecc_mask | cp->pmd;
|
||||
mem_types[MT_MEMORY_RW].prot_pte |= kern_pgprot;
|
||||
mem_types[MT_MEMORY_RO].prot_sect |= ecc_mask | cp->pmd;
|
||||
mem_types[MT_MEMORY_RO].prot_pte |= kern_pgprot;
|
||||
mem_types[MT_MEMORY_DMA_READY].prot_pte |= kern_pgprot;
|
||||
mem_types[MT_MEMORY_RWX_NONCACHED].prot_sect |= ecc_mask;
|
||||
mem_types[MT_ROM].prot_sect |= cp->pmd;
|
||||
@@ -1361,7 +1374,7 @@ static void __init devicemaps_init(const struct machine_desc *mdesc)
|
||||
map.pfn = __phys_to_pfn(__atags_pointer & SECTION_MASK);
|
||||
map.virtual = FDT_FIXED_BASE;
|
||||
map.length = FDT_FIXED_SIZE;
|
||||
map.type = MT_ROM;
|
||||
map.type = MT_MEMORY_RO;
|
||||
create_mapping(&map);
|
||||
}
|
||||
|
||||
|
||||
@@ -491,7 +491,7 @@ cpu_arm1020_name:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.type __arm1020_proc_info,#object
|
||||
__arm1020_proc_info:
|
||||
|
||||
@@ -449,7 +449,7 @@ arm1020e_crval:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.type __arm1020e_proc_info,#object
|
||||
__arm1020e_proc_info:
|
||||
|
||||
@@ -443,7 +443,7 @@ arm1022_crval:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.type __arm1022_proc_info,#object
|
||||
__arm1022_proc_info:
|
||||
|
||||
@@ -138,7 +138,7 @@ ENTRY(arm1026_flush_kern_cache_all)
|
||||
mov ip, #0
|
||||
__flush_whole_cache:
|
||||
#ifndef CONFIG_CPU_DCACHE_DISABLE
|
||||
1: mrc p15, 0, r15, c7, c14, 3 @ test, clean, invalidate
|
||||
1: mrc p15, 0, APSR_nzcv, c7, c14, 3 @ test, clean, invalidate
|
||||
bne 1b
|
||||
#endif
|
||||
tst r2, #VM_EXEC
|
||||
@@ -363,7 +363,7 @@ ENTRY(cpu_arm1026_switch_mm)
|
||||
#ifdef CONFIG_MMU
|
||||
mov r1, #0
|
||||
#ifndef CONFIG_CPU_DCACHE_DISABLE
|
||||
1: mrc p15, 0, r15, c7, c14, 3 @ test, clean, invalidate
|
||||
1: mrc p15, 0, APSR_nzcv, c7, c14, 3 @ test, clean, invalidate
|
||||
bne 1b
|
||||
#endif
|
||||
#ifndef CONFIG_CPU_ICACHE_DISABLE
|
||||
@@ -437,7 +437,7 @@ arm1026_crval:
|
||||
string cpu_arm1026_name, "ARM1026EJ-S"
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.type __arm1026_proc_info,#object
|
||||
__arm1026_proc_info:
|
||||
|
||||
@@ -172,7 +172,7 @@ arm720_crval:
|
||||
* See <asm/procinfo.h> for a definition of this structure.
|
||||
*/
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.macro arm720_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cpu_flush:req
|
||||
.type __\name\()_proc_info,#object
|
||||
|
||||
@@ -128,7 +128,7 @@ __arm740_setup:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
.type __arm740_proc_info,#object
|
||||
__arm740_proc_info:
|
||||
.long 0x41807400
|
||||
|
||||
@@ -72,7 +72,7 @@ __arm7tdmi_setup:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.macro arm7tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, \
|
||||
extra_hwcaps=0
|
||||
|
||||
@@ -434,7 +434,7 @@ arm920_crval:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.type __arm920_proc_info,#object
|
||||
__arm920_proc_info:
|
||||
|
||||
@@ -412,7 +412,7 @@ arm922_crval:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.type __arm922_proc_info,#object
|
||||
__arm922_proc_info:
|
||||
|
||||
@@ -477,7 +477,7 @@ arm925_crval:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.macro arm925_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache
|
||||
.type __\name\()_proc_info,#object
|
||||
|
||||
@@ -131,7 +131,7 @@ __flush_whole_cache:
|
||||
#ifdef CONFIG_CPU_DCACHE_WRITETHROUGH
|
||||
mcr p15, 0, ip, c7, c6, 0 @ invalidate D cache
|
||||
#else
|
||||
1: mrc p15, 0, r15, c7, c14, 3 @ test,clean,invalidate
|
||||
1: mrc p15, 0, APSR_nzcv, c7, c14, 3 @ test,clean,invalidate
|
||||
bne 1b
|
||||
#endif
|
||||
tst r2, #VM_EXEC
|
||||
@@ -358,7 +358,7 @@ ENTRY(cpu_arm926_switch_mm)
|
||||
mcr p15, 0, ip, c7, c6, 0 @ invalidate D cache
|
||||
#else
|
||||
@ && 'Clean & Invalidate whole DCache'
|
||||
1: mrc p15, 0, r15, c7, c14, 3 @ test,clean,invalidate
|
||||
1: mrc p15, 0, APSR_nzcv, c7, c14, 3 @ test,clean,invalidate
|
||||
bne 1b
|
||||
#endif
|
||||
mcr p15, 0, ip, c7, c5, 0 @ invalidate I cache
|
||||
@@ -460,7 +460,7 @@ arm926_crval:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.type __arm926_proc_info,#object
|
||||
__arm926_proc_info:
|
||||
|
||||
@@ -340,7 +340,7 @@ __arm940_setup:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.type __arm940_proc_info,#object
|
||||
__arm940_proc_info:
|
||||
|
||||
@@ -395,7 +395,7 @@ __arm946_setup:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
.type __arm946_proc_info,#object
|
||||
__arm946_proc_info:
|
||||
.long 0x41009460
|
||||
|
||||
@@ -66,7 +66,7 @@ __arm9tdmi_setup:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.macro arm9tdmi_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req
|
||||
.type __\name\()_proc_info, #object
|
||||
|
||||
@@ -185,7 +185,7 @@ fa526_cr1_set:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.type __fa526_proc_info,#object
|
||||
__fa526_proc_info:
|
||||
|
||||
@@ -571,7 +571,7 @@ feroceon_crval:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.macro feroceon_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache:req
|
||||
.type __\name\()_proc_info,#object
|
||||
|
||||
@@ -416,7 +416,7 @@ mohawk_crval:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.type __88sv331x_proc_info,#object
|
||||
__88sv331x_proc_info:
|
||||
|
||||
@@ -196,7 +196,7 @@ sa110_crval:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.type __sa110_proc_info,#object
|
||||
__sa110_proc_info:
|
||||
|
||||
@@ -239,7 +239,7 @@ sa1100_crval:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.macro sa1100_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req
|
||||
.type __\name\()_proc_info,#object
|
||||
|
||||
@@ -261,7 +261,7 @@ v6_crval:
|
||||
string cpu_elf_name, "v6"
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
/*
|
||||
* Match any ARMv6 processor core.
|
||||
|
||||
@@ -109,8 +109,7 @@ static unsigned int spectre_v2_install_workaround(unsigned int method)
|
||||
#else
|
||||
static unsigned int spectre_v2_install_workaround(unsigned int method)
|
||||
{
|
||||
pr_info("CPU%u: Spectre V2: workarounds disabled by configuration\n",
|
||||
smp_processor_id());
|
||||
pr_info_once("Spectre V2: workarounds disabled by configuration\n");
|
||||
|
||||
return SPECTRE_VULNERABLE;
|
||||
}
|
||||
@@ -222,10 +221,10 @@ static int spectre_bhb_install_workaround(int method)
|
||||
return SPECTRE_VULNERABLE;
|
||||
|
||||
spectre_bhb_method = method;
|
||||
}
|
||||
|
||||
pr_info("CPU%u: Spectre BHB: using %s workaround\n",
|
||||
smp_processor_id(), spectre_bhb_method_name(method));
|
||||
pr_info("CPU%u: Spectre BHB: enabling %s workaround for all CPUs\n",
|
||||
smp_processor_id(), spectre_bhb_method_name(method));
|
||||
}
|
||||
|
||||
return SPECTRE_MITIGATED;
|
||||
}
|
||||
|
||||
@@ -644,7 +644,7 @@ __v7_setup_stack:
|
||||
string cpu_elf_name, "v7"
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
/*
|
||||
* Standard v7 proc info content
|
||||
|
||||
@@ -93,7 +93,7 @@ ENTRY(cpu_cm7_proc_fin)
|
||||
ret lr
|
||||
ENDPROC(cpu_cm7_proc_fin)
|
||||
|
||||
.section ".init.text", #alloc, #execinstr
|
||||
.section ".init.text", "ax"
|
||||
|
||||
__v7m_cm7_setup:
|
||||
mov r8, #(V7M_SCB_CCR_DC | V7M_SCB_CCR_IC| V7M_SCB_CCR_BP)
|
||||
@@ -177,7 +177,7 @@ ENDPROC(__v7m_setup)
|
||||
string cpu_elf_name "v7m"
|
||||
string cpu_v7m_name "ARMv7-M"
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.macro __v7m_proc name, initfunc, cache_fns = nop_cache_fns, hwcaps = 0, proc_fns = v7m_processor_functions
|
||||
.long 0 /* proc_info_list.__cpu_mm_mmu_flags */
|
||||
|
||||
@@ -496,7 +496,7 @@ xsc3_crval:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.macro xsc3_proc_info name:req, cpu_val:req, cpu_mask:req
|
||||
.type __\name\()_proc_info,#object
|
||||
|
||||
@@ -610,7 +610,7 @@ xscale_crval:
|
||||
|
||||
.align
|
||||
|
||||
.section ".proc.info.init", #alloc
|
||||
.section ".proc.info.init", "a"
|
||||
|
||||
.macro xscale_proc_info name:req, cpu_val:req, cpu_mask:req, cpu_name:req, cache
|
||||
.type __\name\()_proc_info,#object
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include <linux/types.h>
|
||||
#include <linux/stddef.h>
|
||||
#include <asm/probes.h>
|
||||
#include <asm/ptrace.h>
|
||||
#include <asm/kprobes.h>
|
||||
|
||||
void __init arm_probes_decode_init(void);
|
||||
@@ -35,31 +36,6 @@ void __init find_str_pc_offset(void);
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Update ITSTATE after normal execution of an IT block instruction.
|
||||
*
|
||||
* The 8 IT state bits are split into two parts in CPSR:
|
||||
* ITSTATE<1:0> are in CPSR<26:25>
|
||||
* ITSTATE<7:2> are in CPSR<15:10>
|
||||
*/
|
||||
static inline unsigned long it_advance(unsigned long cpsr)
|
||||
{
|
||||
if ((cpsr & 0x06000400) == 0) {
|
||||
/* ITSTATE<2:0> == 0 means end of IT block, so clear IT state */
|
||||
cpsr &= ~PSR_IT_MASK;
|
||||
} else {
|
||||
/* We need to shift left ITSTATE<4:0> */
|
||||
const unsigned long mask = 0x06001c00; /* Mask ITSTATE<4:0> */
|
||||
unsigned long it = cpsr & mask;
|
||||
it <<= 1;
|
||||
it |= it >> (27 - 10); /* Carry ITSTATE<2> to correct place */
|
||||
it &= mask;
|
||||
cpsr &= ~mask;
|
||||
cpsr |= it;
|
||||
}
|
||||
return cpsr;
|
||||
}
|
||||
|
||||
static inline void __kprobes bx_write_pc(long pcv, struct pt_regs *regs)
|
||||
{
|
||||
long cpsr = regs->ARM_cpsr;
|
||||
|
||||
@@ -8,6 +8,4 @@
|
||||
# ccflags-y := -DDEBUG
|
||||
# asflags-y := -DDEBUG
|
||||
|
||||
KBUILD_AFLAGS :=$(KBUILD_AFLAGS:-msoft-float=-Wa,-mfpu=softvfp+vfp -mfloat-abi=soft)
|
||||
|
||||
obj-y += vfpmodule.o entry.o vfphw.o vfpsingle.o vfpdouble.o
|
||||
|
||||
@@ -253,11 +253,14 @@ vfp_current_hw_state_address:
|
||||
|
||||
ENTRY(vfp_get_float)
|
||||
tbl_branch r0, r3, #3
|
||||
.fpu vfpv2
|
||||
.irp dr,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
|
||||
1: mrc p10, 0, r0, c\dr, c0, 0 @ fmrs r0, s0
|
||||
1: vmov r0, s\dr
|
||||
ret lr
|
||||
.org 1b + 8
|
||||
1: mrc p10, 0, r0, c\dr, c0, 4 @ fmrs r0, s1
|
||||
.endr
|
||||
.irp dr,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
|
||||
1: vmov r0, s\dr
|
||||
ret lr
|
||||
.org 1b + 8
|
||||
.endr
|
||||
@@ -265,11 +268,14 @@ ENDPROC(vfp_get_float)
|
||||
|
||||
ENTRY(vfp_put_float)
|
||||
tbl_branch r1, r3, #3
|
||||
.fpu vfpv2
|
||||
.irp dr,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
|
||||
1: mcr p10, 0, r0, c\dr, c0, 0 @ fmsr r0, s0
|
||||
1: vmov s\dr, r0
|
||||
ret lr
|
||||
.org 1b + 8
|
||||
1: mcr p10, 0, r0, c\dr, c0, 4 @ fmsr r0, s1
|
||||
.endr
|
||||
.irp dr,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
|
||||
1: vmov s\dr, r0
|
||||
ret lr
|
||||
.org 1b + 8
|
||||
.endr
|
||||
@@ -277,15 +283,17 @@ ENDPROC(vfp_put_float)
|
||||
|
||||
ENTRY(vfp_get_double)
|
||||
tbl_branch r0, r3, #3
|
||||
.fpu vfpv2
|
||||
.irp dr,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
|
||||
1: fmrrd r0, r1, d\dr
|
||||
1: vmov r0, r1, d\dr
|
||||
ret lr
|
||||
.org 1b + 8
|
||||
.endr
|
||||
#ifdef CONFIG_VFPv3
|
||||
@ d16 - d31 registers
|
||||
.irp dr,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
|
||||
1: mrrc p11, 3, r0, r1, c\dr @ fmrrd r0, r1, d\dr
|
||||
.fpu vfpv3
|
||||
.irp dr,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
|
||||
1: vmov r0, r1, d\dr
|
||||
ret lr
|
||||
.org 1b + 8
|
||||
.endr
|
||||
@@ -299,15 +307,17 @@ ENDPROC(vfp_get_double)
|
||||
|
||||
ENTRY(vfp_put_double)
|
||||
tbl_branch r2, r3, #3
|
||||
.fpu vfpv2
|
||||
.irp dr,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
|
||||
1: fmdrr d\dr, r0, r1
|
||||
1: vmov d\dr, r0, r1
|
||||
ret lr
|
||||
.org 1b + 8
|
||||
.endr
|
||||
#ifdef CONFIG_VFPv3
|
||||
.fpu vfpv3
|
||||
@ d16 - d31 registers
|
||||
.irp dr,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
|
||||
1: mcrr p11, 3, r0, r1, c\dr @ fmdrr r0, r1, d\dr
|
||||
.irp dr,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
|
||||
1: vmov d\dr, r0, r1
|
||||
ret lr
|
||||
.org 1b + 8
|
||||
.endr
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user