[X86] Compute `CTLZ` using fp math for `v4i32` on SSE2 targets (#190930)
This PR implements optimization for the `ISD::CTLZ` and
`ISD::CTLZ_ZERO_POISON` for X86 SSE2 target.
This PR builds upon #167034
Closes #161746
Co-authored-by: NishiB137 <cs23btech11041 at iith.ac.in>
Co-authored-by: VindhyaP312 <cs23btech11044 at iith.ac.in>
Co-authored-by: Simon Pilgrim <llvm-dev at redking.me.uk>
Merge tag 'block-7.4-20261205' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux
Pull block fixes from Jens Axboe:
"A bit bigger than I would've liked, and honestly some of the NVMe
changes _could_ have waited for 7.5. But they are well tested and
Keith already bundled them up, and here we are... Expect only little
bits going forward to close out the 7.4 kernel.
- NVMe fixes via Keith:
- nvme-fc fixes for a use-after-free in LS disconnect matching,
uninitialized I/O queues on reconnect, and the result on
transport failure
- nvme-tcp fixes for a released socket in poll, the R2T length
check overflow, and PDU alignment and header digest on the
target side
- nvme-multipath fixes for the ANATT timer teardown and
delayed_removal_secs handling
- Handle a missed doorbell write on a passthrough request
- Limit Write Zeroes to 65536 logical blocks
[34 lines not shown]
Merge tag 'io_uring-7.4-20261205' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux
Pull io_uring fixes from Jens Axboe:
- Close a race between polling a disabled SINGLE_ISSUER ring and
IORING_REGISTER_ENABLE_RINGS, which could leave an epoll waiter not
getting notified of pending completions.
- Only arm local work wakeups for the submitter when cancelling, fixing
a NULL pointer dereference when a canceling task visits a disabled
ring that later receives ZCRX events.
- Don't dma_sync dma-buf backed zcrx buffers, as those follow their own
synchronisation rules.
- Enforce the per-task opcode restrictions and BPF filters on the
embedded request of IORING_REGISTER_SEND_MSG_RING.
* tag 'io_uring-7.4-20261205' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux:
[4 lines not shown]
nfscl: Remove cruft for NFSv4.0 callbacks
Commit 71ac1ec5c9d9 disabled callbacks for NFSv4.0.
This commit cleans up cruft related to NFSv4.0 callbacks.
Since callbacks are disabled for NFSv4.0, this patch
should not have any semantics effect.
A future commit will clean up the nfscbd(8) daemon.
MFC after: 2 weeks
Import xz-5.8.5 (previous was xz-5.8.3)
Security issues
++++
GHSA-vhhh-g38j-pr8q: LZMA2 encoder data corruption
++++
In XZ Utils 5.8.4 and older, the LZMA2 encoder can corrupt data (data recovery
should usually be possible with a slightly modified decoder). With dictionary
sizes smaller than 64 KiB, triggering the bug might also result in invalid
memory reads.
The bug has been fixed in XZ Utils 5.8.5 and in the Git repository branches
v5.8, v5.6, v5.4, and v5.2.
The bug was reported by Vladimir Kukharenko (GenProof).
++++
GHSA-6237-3fq8-r2hg: x86 filter deadlock and data corruption
[33 lines not shown]
ifconfig(8): avoid deprecated declaration warnings
The latest expat deprecates XML_GetCurrentLineNumber(), resulting in
fatal warnings that stop the build. Replace callouts with the recommended
XML_GetCurrentLineNumber64() function for a clean build.
ObsoleteFiles.inc: Correct two old paths
At the time we retired the cp(4) driver, we still had per-arch man
subdirectories.
Fixes: 895992bb66d2 ("retire cp(4) driver")
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D62503
Merge tag 'watchdog-for-v7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull watchdog fixes from Guenter Roeck:
- set set .owner = THIS_MODULE in watchdog_ops to prevent unloading
while /dev/watchdog is open (arm_smc_wdt, bd96801_wdt, ebc-c384_wdt,
max77620, meson_gxbb_wdt)
- atcwdt200: select REGMAP_MMIO in Kconfig to fix build failures
- npcm: enable clock before checking running state in probe
- sbsa: evaluate MediaTek WS0 workaround after IRQ fallback
- rzv2h: use 64-bit arithmetic to avoid 32-bit max_hw_heartbeat_ms
overflow
* tag 'watchdog-for-v7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
watchdog: rzv2h: Avoid 32-bit overflow in max_hw_heartbeat_ms calculation
[8 lines not shown]
www/elinks: Update 0.20.0 => 0.20.1
Changelog:
https://github.com/rkd77/elinks/releases/tag/v0.20.1
Port Changes:
- Removed SIXEL option, upstream replaced it with their own sixel code.
- Disabled QuickJSNG option for now, as it requires v0.18.0 and ports
only has v0.17.0.
PR: 301528
Merge tag 'hwmon-for-v7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull hwmon fixes from Guenter Roeck:
- Runtime, locking, and resource fixes for coretemp (uneven core
counts), tmp513 and emc2305 (divide-by-zero), it87 (missing device
lock on sensor type read), da9052 (tsiref regulator lifetime),
vexpress (modular regulator check), and pmbus/max34440 (legacy ASCII
revision)
- Kconfig, modular build, and OF modalias fixes for lan966x,
ltq-cputemp, pmbus/ltc4286, and pmbus/xdp710
* tag 'hwmon-for-v7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
hwmon: (coretemp) Fix missing sensors with uneven core counts
hwmon: (tmp513) avoid divide by zero from rounded-down current LSB
hwmon: (emc2305) fix division by zero for a small tach reading
hwmon: (it87) Lock the device while reading the temperature sensor type
hwmon: (pmbus/ltc4286) support building the sensor as a module
[6 lines not shown]
comms/xastir: Update to 2.2.6
Since Release 2.2.4 we have made the following improvements:
* The map border can now be rendered with anti-aliased fonts through
Cairo if the cairo library is detected when the code is
configured. This makes the border text much more readable on
modern high-resolution displays. (#364)
Cairo is automatically used if the library is found,
but can be disabled even if the library is present by specifying
"--without-cairo" at configure time.
The autoconf test that checks for cairo depends on pkgconfig
through the `PKG_PROG_PKG_CONFIG` macro installed by that package.
If the macro is not found at the time that configure is generated
by autoreconf or bootstrap, or the program it tries to detect
doesn't exist at the time configure is run, it is assumed that
cairo is not to be used.
[91 lines not shown]
py-cloud-init: More NetBSD fixes.
Disabled the disabling of sshd_keygen. It was a systemd thing.
Teach dmi.py what the machdep.dmi sysctl names are for various serial
numbers (UUIDs). Removed the "-q" from the sysctl command line that
does nothing on OpenBSD and breaks cloud-init on NetBSD.
Teach the NetBSD distro about /usr/pkg/libexec.
Prevent the NetBSD distro from trying to restart the dhcpcd
service. This just hangs because of some pipe interaction between
dhcpcd's subprocesses and cloud-init, and it's also completely
pointless. By moving the init-local stage back to the pre-network
phase that it is documented to be in, we don't need to run dhcpcd.
Prevent the Ec2 data source from trying to sneakily bootstrap an
ephemeral because that doesn't work. See init-local above.
[3 lines not shown]
[SampleProfile] Recover hot contexts rejected by indirect-call promotion (#243628)
A sample profile can record samples for an indirect-call target under
its caller, as if the compiler had inlined the target. If the compiler
leaves the target out of line, those samples belong in the target's
standalone profile. Leaving them under the caller makes the standalone
function appear colder than it is.
This patch recovers those samples in both sample-profile inliners:
- Priority inliner: A target can be hot in absolute terms but account
for too few calls at a site to qualify for promotion. Previously, the
loader stopped at the first target that failed the percentage check. It
now records that target and continues through the remaining hot targets.
It stops when the targets are no longer hot. Several rejected targets at
the same call can therefore recover their samples.
- Iterative inliner (line-based AutoFDO): When the compiler promotes and
inlines one target, an indirect fallback remains for the other targets.
A later scan can mistake the already-inlined target for one that still
needs recovery. Tracking only one target per call can also miss other
[19 lines not shown]