Revision 56ee254d23c59fd48fb6f192d79858f60cfe2bf6 authored by David Sterba on 27 October 2021, 08:42:27 UTC, committed by David Sterba on 29 October 2021, 11:02:50 UTC
This reverts commit bbaf9715f3f5b5ff0de71da91fcc34ee9c198ed8. The kmaps in compression code are still needed and cause crashes on 32bit machines (ARM, x86). Reproducible eg. by running fstest btrfs/004 with enabled LZO or ZSTD compression. Example stacktrace with ZSTD on a 32bit ARM machine: Unable to handle kernel NULL pointer dereference at virtual address 00000000 pgd = c4159ed3 [00000000] *pgd=00000000 Internal error: Oops: 5 [#1] PREEMPT SMP ARM Modules linked in: CPU: 0 PID: 210 Comm: kworker/u2:3 Not tainted 5.14.0-rc79+ #12 Hardware name: Allwinner sun4i/sun5i Families Workqueue: btrfs-delalloc btrfs_work_helper PC is at mmiocpy+0x48/0x330 LR is at ZSTD_compressStream_generic+0x15c/0x28c (mmiocpy) from [<c0629648>] (ZSTD_compressStream_generic+0x15c/0x28c) (ZSTD_compressStream_generic) from [<c06297dc>] (ZSTD_compressStream+0x64/0xa0) (ZSTD_compressStream) from [<c049444c>] (zstd_compress_pages+0x170/0x488) (zstd_compress_pages) from [<c0496798>] (btrfs_compress_pages+0x124/0x12c) (btrfs_compress_pages) from [<c043c068>] (compress_file_range+0x3c0/0x834) (compress_file_range) from [<c043c4ec>] (async_cow_start+0x10/0x28) (async_cow_start) from [<c0475c3c>] (btrfs_work_helper+0x100/0x230) (btrfs_work_helper) from [<c014ef68>] (process_one_work+0x1b4/0x418) (process_one_work) from [<c014f210>] (worker_thread+0x44/0x524) (worker_thread) from [<c0156aa4>] (kthread+0x180/0x1b0) (kthread) from [<c0100150>] Link: https://lore.kernel.org/all/CAJCQCtT+OuemovPO7GZk8Y8=qtOObr0XTDp8jh4OHD6y84AFxw@mail.gmail.com/ Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=214839 Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 3a60f65
File | Mode | Size |
---|---|---|
kasan | ||
kfence | ||
Kconfig | -rw-r--r-- | 28.1 KB |
Kconfig.debug | -rw-r--r-- | 5.6 KB |
Makefile | -rw-r--r-- | 4.7 KB |
backing-dev.c | -rw-r--r-- | 26.9 KB |
balloon_compaction.c | -rw-r--r-- | 8.2 KB |
bootmem_info.c | -rw-r--r-- | 3.3 KB |
cleancache.c | -rw-r--r-- | 9.8 KB |
cma.c | -rw-r--r-- | 15.4 KB |
cma.h | -rw-r--r-- | 1.4 KB |
cma_debug.c | -rw-r--r-- | 4.5 KB |
cma_sysfs.c | -rw-r--r-- | 2.4 KB |
compaction.c | -rw-r--r-- | 82.4 KB |
debug.c | -rw-r--r-- | 8.2 KB |
debug_page_ref.c | -rw-r--r-- | 1.4 KB |
debug_vm_pgtable.c | -rw-r--r-- | 31.4 KB |
dmapool.c | -rw-r--r-- | 13.6 KB |
early_ioremap.c | -rw-r--r-- | 6.8 KB |
fadvise.c | -rw-r--r-- | 5.3 KB |
failslab.c | -rw-r--r-- | 1.4 KB |
filemap.c | -rw-r--r-- | 108.3 KB |
frontswap.c | -rw-r--r-- | 14.2 KB |
gup.c | -rw-r--r-- | 86.0 KB |
gup_test.c | -rw-r--r-- | 5.6 KB |
gup_test.h | -rw-r--r-- | 938 bytes |
highmem.c | -rw-r--r-- | 19.4 KB |
hmm.c | -rw-r--r-- | 16.6 KB |
huge_memory.c | -rw-r--r-- | 86.5 KB |
hugetlb.c | -rw-r--r-- | 174.1 KB |
hugetlb_cgroup.c | -rw-r--r-- | 21.5 KB |
hugetlb_vmemmap.c | -rw-r--r-- | 13.0 KB |
hugetlb_vmemmap.h | -rw-r--r-- | 1.1 KB |
hwpoison-inject.c | -rw-r--r-- | 2.6 KB |
init-mm.c | -rw-r--r-- | 1.6 KB |
internal.h | -rw-r--r-- | 20.5 KB |
interval_tree.c | -rw-r--r-- | 3.1 KB |
io-mapping.c | -rw-r--r-- | 993 bytes |
ioremap.c | -rw-r--r-- | 1.9 KB |
khugepaged.c | -rw-r--r-- | 59.3 KB |
kmemleak.c | -rw-r--r-- | 56.4 KB |
ksm.c | -rw-r--r-- | 88.5 KB |
list_lru.c | -rw-r--r-- | 14.1 KB |
maccess.c | -rw-r--r-- | 8.7 KB |
madvise.c | -rw-r--r-- | 32.4 KB |
mapping_dirty_helpers.c | -rw-r--r-- | 10.5 KB |
memblock.c | -rw-r--r-- | 59.5 KB |
memcontrol.c | -rw-r--r-- | 193.0 KB |
memfd.c | -rw-r--r-- | 7.9 KB |
memory-failure.c | -rw-r--r-- | 59.0 KB |
memory.c | -rw-r--r-- | 148.2 KB |
memory_hotplug.c | -rw-r--r-- | 55.9 KB |
mempolicy.c | -rw-r--r-- | 74.7 KB |
mempool.c | -rw-r--r-- | 15.9 KB |
memremap.c | -rw-r--r-- | 14.4 KB |
memtest.c | -rw-r--r-- | 2.8 KB |
migrate.c | -rw-r--r-- | 77.2 KB |
mincore.c | -rw-r--r-- | 7.0 KB |
mlock.c | -rw-r--r-- | 22.4 KB |
mm_init.c | -rw-r--r-- | 5.3 KB |
mmap.c | -rw-r--r-- | 102.5 KB |
mmap_lock.c | -rw-r--r-- | 6.2 KB |
mmu_gather.c | -rw-r--r-- | 8.5 KB |
mmu_notifier.c | -rw-r--r-- | 35.0 KB |
mmzone.c | -rw-r--r-- | 2.2 KB |
mprotect.c | -rw-r--r-- | 17.7 KB |
mremap.c | -rw-r--r-- | 27.8 KB |
msync.c | -rw-r--r-- | 2.8 KB |
nommu.c | -rw-r--r-- | 44.6 KB |
oom_kill.c | -rw-r--r-- | 30.3 KB |
page-writeback.c | -rw-r--r-- | 85.1 KB |
page_alloc.c | -rw-r--r-- | 262.4 KB |
page_counter.c | -rw-r--r-- | 6.8 KB |
page_ext.c | -rw-r--r-- | 10.9 KB |
page_idle.c | -rw-r--r-- | 5.3 KB |
page_io.c | -rw-r--r-- | 11.2 KB |
page_isolation.c | -rw-r--r-- | 9.2 KB |
page_owner.c | -rw-r--r-- | 16.1 KB |
page_poison.c | -rw-r--r-- | 2.5 KB |
page_reporting.c | -rw-r--r-- | 10.3 KB |
page_reporting.h | -rw-r--r-- | 1.6 KB |
page_vma_mapped.c | -rw-r--r-- | 8.7 KB |
pagewalk.c | -rw-r--r-- | 15.5 KB |
percpu-internal.h | -rw-r--r-- | 6.6 KB |
percpu-km.c | -rw-r--r-- | 3.2 KB |
percpu-stats.c | -rw-r--r-- | 5.9 KB |
percpu-vm.c | -rw-r--r-- | 11.7 KB |
percpu.c | -rw-r--r-- | 101.1 KB |
pgalloc-track.h | -rw-r--r-- | 1.3 KB |
pgtable-generic.c | -rw-r--r-- | 5.6 KB |
process_vm_access.c | -rw-r--r-- | 8.2 KB |
ptdump.c | -rw-r--r-- | 4.0 KB |
readahead.c | -rw-r--r-- | 19.5 KB |
rmap.c | -rw-r--r-- | 67.8 KB |
rodata_test.c | -rw-r--r-- | 1.3 KB |
secretmem.c | -rw-r--r-- | 5.5 KB |
shmem.c | -rw-r--r-- | 108.4 KB |
shuffle.c | -rw-r--r-- | 4.7 KB |
shuffle.h | -rw-r--r-- | 1.2 KB |
slab.c | -rw-r--r-- | 106.5 KB |
slab.h | -rw-r--r-- | 17.3 KB |
slab_common.c | -rw-r--r-- | 33.3 KB |
slob.c | -rw-r--r-- | 18.2 KB |
slub.c | -rw-r--r-- | 144.7 KB |
sparse-vmemmap.c | -rw-r--r-- | 15.7 KB |
sparse.c | -rw-r--r-- | 26.6 KB |
swap.c | -rw-r--r-- | 31.9 KB |
swap_cgroup.c | -rw-r--r-- | 5.1 KB |
swap_slots.c | -rw-r--r-- | 9.2 KB |
swap_state.c | -rw-r--r-- | 24.0 KB |
swapfile.c | -rw-r--r-- | 96.2 KB |
truncate.c | -rw-r--r-- | 25.0 KB |
usercopy.c | -rw-r--r-- | 9.5 KB |
userfaultfd.c | -rw-r--r-- | 17.6 KB |
util.c | -rw-r--r-- | 26.2 KB |
vmacache.c | -rw-r--r-- | 2.7 KB |
vmalloc.c | -rw-r--r-- | 98.9 KB |
vmpressure.c | -rw-r--r-- | 13.9 KB |
vmscan.c | -rw-r--r-- | 129.7 KB |
vmstat.c | -rw-r--r-- | 53.3 KB |
workingset.c | -rw-r--r-- | 21.4 KB |
z3fold.c | -rw-r--r-- | 47.0 KB |
zbud.c | -rw-r--r-- | 18.4 KB |
zpool.c | -rw-r--r-- | 11.5 KB |
zsmalloc.c | -rw-r--r-- | 61.0 KB |
zswap.c | -rw-r--r-- | 38.9 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...