Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLPX-84907 CVE-2022-3628 #29

Conversation

prakashsurya
Copy link

No description provided.

@prakashsurya prakashsurya force-pushed the dlpx/pr/prakashsurya/5bc52641-0937-49c4-a74b-bc4b52fe26f4 branch 2 times, most recently from aceb62f to 72497ae Compare February 28, 2023 19:39
debian.aws/config/OVERRIDES Outdated Show resolved Hide resolved
debian.aws/config/OVERRIDES Outdated Show resolved Hide resolved
debian.aws/config/OVERRIDES Outdated Show resolved Hide resolved
@prakashsurya prakashsurya force-pushed the dlpx/pr/prakashsurya/5bc52641-0937-49c4-a74b-bc4b52fe26f4 branch from 72497ae to a4cb333 Compare February 28, 2023 20:07
@prakashsurya prakashsurya marked this pull request as ready for review March 1, 2023 17:01
@prakashsurya prakashsurya enabled auto-merge (squash) March 1, 2023 17:03
@prakashsurya prakashsurya merged commit e5dd7f7 into 6.0/stage Mar 1, 2023
@prakashsurya prakashsurya deleted the dlpx/pr/prakashsurya/5bc52641-0937-49c4-a74b-bc4b52fe26f4 branch March 1, 2023 17:08
delphix-devops-bot pushed a commit that referenced this pull request Mar 4, 2023
prakashsurya pushed a commit that referenced this pull request Mar 11, 2023
prakashsurya pushed a commit that referenced this pull request Mar 14, 2023
prakashsurya pushed a commit that referenced this pull request Mar 14, 2023
delphix-devops-bot pushed a commit that referenced this pull request Mar 30, 2023
delphix-devops-bot pushed a commit that referenced this pull request Apr 20, 2023
delphix-devops-bot pushed a commit that referenced this pull request Apr 28, 2023
delphix-devops-bot pushed a commit that referenced this pull request May 31, 2023
delphix-devops-bot pushed a commit that referenced this pull request Jun 3, 2023
delphix-devops-bot pushed a commit that referenced this pull request Jun 4, 2023
delphix-devops-bot pushed a commit that referenced this pull request Jun 5, 2023
prakashsurya pushed a commit that referenced this pull request Aug 8, 2023
delphix-devops-bot pushed a commit that referenced this pull request Aug 17, 2023
delphix-devops-bot pushed a commit that referenced this pull request Aug 18, 2023
delphix-devops-bot pushed a commit that referenced this pull request Aug 19, 2023
delphix-devops-bot pushed a commit that referenced this pull request Aug 20, 2023
delphix-devops-bot pushed a commit that referenced this pull request Aug 21, 2023
delphix-devops-bot pushed a commit that referenced this pull request Aug 22, 2023
delphix-devops-bot pushed a commit that referenced this pull request Aug 23, 2023
delphix-devops-bot pushed a commit that referenced this pull request Aug 22, 2024
delphix-devops-bot pushed a commit that referenced this pull request Aug 23, 2024
delphix-devops-bot pushed a commit that referenced this pull request Sep 14, 2024
BugLink: https://bugs.launchpad.net/bugs/2072617

[ Upstream commit e64746e74f717961250a155e14c156616fcd981f ]

cpumask_of_node() can be called for NUMA_NO_NODE inside do_map_benchmark()
resulting in the following sanitizer report:

UBSAN: array-index-out-of-bounds in ./arch/x86/include/asm/topology.h:72:28
index -1 is out of range for type 'cpumask [64][1]'
CPU: 1 PID: 990 Comm: dma_map_benchma Not tainted 6.9.0-rc6 #29
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996)
Call Trace:
 <TASK>
dump_stack_lvl (lib/dump_stack.c:117)
ubsan_epilogue (lib/ubsan.c:232)
__ubsan_handle_out_of_bounds (lib/ubsan.c:429)
cpumask_of_node (arch/x86/include/asm/topology.h:72) [inline]
do_map_benchmark (kernel/dma/map_benchmark.c:104)
map_benchmark_ioctl (kernel/dma/map_benchmark.c:246)
full_proxy_unlocked_ioctl (fs/debugfs/file.c:333)
__x64_sys_ioctl (fs/ioctl.c:890)
do_syscall_64 (arch/x86/entry/common.c:83)
entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130)

Use cpumask_of_node() in place when binding a kernel thread to a cpuset
of a particular node.

Note that the provided node id is checked inside map_benchmark_ioctl().
It's just a NUMA_NO_NODE case which is not handled properly later.

Found by Linux Verification Center (linuxtesting.org).

Fixes: 65789da ("dma-mapping: add benchmark support for streaming DMA APIs")
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Acked-by: Barry Song <baohua@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Portia Stephens <portia.stephens@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
prakashsurya pushed a commit that referenced this pull request Sep 23, 2024
delphix-devops-bot pushed a commit that referenced this pull request Oct 20, 2024
delphix-devops-bot pushed a commit that referenced this pull request Oct 21, 2024
palash-gandhi pushed a commit that referenced this pull request Oct 24, 2024
delphix-devops-bot pushed a commit that referenced this pull request Nov 10, 2024
delphix-devops-bot pushed a commit that referenced this pull request Dec 18, 2024
delphix-devops-bot pushed a commit that referenced this pull request Dec 19, 2024
delphix-devops-bot pushed a commit that referenced this pull request Dec 20, 2024
delphix-devops-bot pushed a commit that referenced this pull request Dec 21, 2024
delphix-devops-bot pushed a commit that referenced this pull request Dec 22, 2024
delphix-devops-bot pushed a commit that referenced this pull request Dec 23, 2024
delphix-devops-bot pushed a commit that referenced this pull request Dec 24, 2024
delphix-devops-bot pushed a commit that referenced this pull request Dec 25, 2024
delphix-devops-bot pushed a commit that referenced this pull request Dec 26, 2024
delphix-devops-bot pushed a commit that referenced this pull request Dec 27, 2024
delphix-devops-bot pushed a commit that referenced this pull request Dec 28, 2024
delphix-devops-bot pushed a commit that referenced this pull request Dec 29, 2024
delphix-devops-bot pushed a commit that referenced this pull request Dec 30, 2024
delphix-devops-bot pushed a commit that referenced this pull request Dec 31, 2024
delphix-devops-bot pushed a commit that referenced this pull request Jan 1, 2025
delphix-devops-bot pushed a commit that referenced this pull request Jan 2, 2025
delphix-devops-bot pushed a commit that referenced this pull request Jan 3, 2025
delphix-devops-bot pushed a commit that referenced this pull request Jan 4, 2025
delphix-devops-bot pushed a commit that referenced this pull request Jan 5, 2025
delphix-devops-bot pushed a commit that referenced this pull request Jan 7, 2025
delphix-devops-bot pushed a commit that referenced this pull request Feb 12, 2025
delphix-devops-bot pushed a commit that referenced this pull request Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants