Displaying 20 results from an estimated 1788 matches for "dereference".
2009 Oct 20
3
[LLVMdev] Dereference PointerType?
Hello,
I'm wondering if it's possible to dereference a PointerType. I have an
AllocaInst and although I can find the number of elements allocated, (using
Instruction::getOperand(0)), I can't find a way to get the size of each
element. What I'd like to do is:
AllocaInst *alloca;
PointerType *ptr_type = dynamic_cast<PointerType*>(alloca...
2013 Feb 23
5
[PATCH] x86: fix null pointer dereference in intel_get_extended_msrs()
`memset(&mc_ext, 0, ...)'' leads to a buffer overflow and a subsequent
null pointer dereference. Replace `&mc_ext'' with `mc_ext''.
Signed-off-by: Xi Wang <xi@mit.edu>
---
xen/arch/x86/cpu/mcheck/mce_intel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/arch/x86/cpu/mcheck/mce_intel.c b/xen/arch/x86/cpu/mcheck/mce_intel.c
index d80f692...
2024 Jun 25
1
[PATCH] drm/nouveau/dispnv04: fix null pointer dereference in nv17_tv_get_ld_modes
> In nv17_tv_get_ld_modes(), the return value of drm_mode_duplicate() is
> assigned to mode, which will lead to a possible NULL pointer dereference
> on failure of drm_mode_duplicate(). Add a check to avoid npd.
Can a wording approach (like the following) be a better change description?
A null pointer is stored in the local variable ?mode? after a call
of the function ?drm_mode_duplicate? failed. This pointer was used
in a subsequen...
2009 Oct 20
0
[LLVMdev] Dereference PointerType?
2009/10/20 Daniel Waterworth <da.waterworth at googlemail.com>
> Hello,
>
> I'm wondering if it's possible to dereference a PointerType. I have an
> AllocaInst and although I can find the number of elements allocated, (using
> Instruction::getOperand(0)), I can't find a way to get the size of each
> element. What I'd like to do is:
>
> AllocaInst *alloca;
>
> PointerType *ptr_type = dynami...
2005 Jun 15
2
x86_64 - Dom0 will not boot on EMT64
....
pcnet32.c:v1.30i 06.28.2004 tsbogend@alpha.franken.de
e100: Intel(R) PRO/100 Network Driver, 3.3.6-k2-NAPI
e100: Copyright(c) 1999-2004 Intel Corporation
tg3.c:v3.23 (February 15, 2005)
ACPI: PCI interrupt 0000:05:01.0[A] -> GSI 77 (level, low) -> IRQ 77
Unable to handle kernel NULL pointer dereference at 0000000000000880 RIP:
<ffffffff80116d42>{do_page_fault+370}
Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP:
<ffffffff8011683f>{dump_pagetable+47}
Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP:
<ffffffff8011683f>{dump_pagetabl...
2015 Apr 08
2
[LLVMdev] want to intercept array dereferences
If I understand correctly, LLVM is a *typed* assembly language. Could
I just look for a pointer type plus an integer type followed by a
dereference? That would catch both a[n] and *(a+n).
Gry
On Tue, Apr 7, 2015 at 10:46 PM, Bruce Hoult <bruce at hoult.org> wrote:
> Far too late. That would need to be in Clang.
>
> On Wed, Apr 8, 2015 at 5:36 PM, Gry Gunvor <gry.gunvor at gmail.com> wrote:
>>
>> Normally for...
2015 Apr 08
2
[LLVMdev] want to intercept array dereferences
Normally for int n unknown at static time, "a[n]" and "*(a+n)" results
in an add and then a dereference. I want instead for it to compile to
a system call that takes two arguments, a and n. Where should I
intercept this in LLVM?
Gry
2024 Jun 25
0
[PATCH] drm/nouveau/dispnv04: fix null pointer dereference in nv17_tv_get_hd_modes
> In nv17_tv_get_hd_modes(), the return value of drm_mode_duplicate() is
> assigned to mode, which will lead to a possible NULL pointer dereference
> on failure of drm_mode_duplicate(). The same applies to drm_cvt_mode().
> Add a check to avoid null pointer dereference.
Can a wording approach (like the following) be a better change description?
A null pointer is stored in the local variable ?mode? after a call
of the function ?drm_...
2024 Jun 27
1
[PATCH v3] drm/nouveau: fix null pointer dereference in nouveau_connector_get_modes
> In nouveau_connector_get_modes(), the return value of drm_mode_duplicate()
> is assigned to mode, which will lead to a possible NULL pointer
> dereference on failure of drm_mode_duplicate(). Add a check to avoid npd.
A) Can a wording approach (like the following) be a better change description?
A null pointer is stored in the local variable ?mode? after a call
of the function ?drm_mode_duplicate? failed. This pointer was passed to
a subseq...
2017 Mar 25
1
NVAC - BUG: unable to handle kernel NULL pointer dereference
With lightweight desktoping,
the atomic modesetting seems far from robust.
BUG: unable to handle kernel NULL pointer dereference at 0000000000000021
IP: dma_fence_wait_timeout+0x36/0xf0
...
Oops: 0000 [#1] SMP
Modules linked in: ... nouveau ...
CPU: 0 PID: 6895 Comm: Xorg Not tainted 4.10.5-1001.fc24.x86_64 #1
...
Call Trace:
drm_atomic_helper_wait_for_fences+0x48/0x120 [drm_kms_helper]
nv50_disp_atomic_commit+0x19c/0x2a0...
2009 Aug 13
6
[Bug 23295] New: nouveau KMS: null pointer dereference if native mode is not found
http://bugs.freedesktop.org/show_bug.cgi?id=23295
Summary: nouveau KMS: null pointer dereference if native mode is
not found
Product: xorg
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
AssignedTo: nouveau at lists.fr...
2017 Jan 10
2
CentOS 7: BUG: unable to handle kernel NULL pointer dereference
We've just started seeing this. Anyone else?
reason: BUG: unable to handle kernel NULL pointer dereference at
00000000000000b8
component: kernel
count: 1
analyzer: vmcore
architecture: x86_64
event_log:
kernel: 3.10.0-327.18.2.el7.x86_64
last_occurrence: 1484067452
os_release: CentOS Linux release 7.3.1611 (Core)
runlevel: N 3
time: Tue 10 Jan 2017 11:57...
2020 Sep 20
2
Is it valid to dereference a pointer that have undef bits in its offset?
Hello all,
Is it valid to dereference a pointer that has undef bits in its offset?
For example,
%p = alloca [8 x i8]
%p2 = gep %p, (undef & 8)
store 0, %p2
undef & 8 is always less than 8, so technically it will store zero to one
of the array's elements.
The reason is that I want to improve no-undef analysis by suggesti...
2012 May 09
2
[LLVMdev] Null pointer dereference
Hi all,
Writing my own LLVM client I've noticed a potential null pointer
dereference in EngineBuilder::selectTarget.
The class has an optional pointer to the ErrorStr, which can be initialzied
through setErrorStr() method. Although, it's strictly optional,
selectTarget doesn't verify its value before assignment.
Please find patch for branch release_31, revision 155051 att...
2018 Feb 20
0
[Bug 105173] [MCP79][Regression] Unhandled NULL pointer dereference since kernel 4.15
...ed |Added
----------------------------------------------------------------------------
Summary|With kernel >=4.15 nouveau |[MCP79][Regression]
|- artefacts and freezes |Unhandled NULL pointer
| |dereference since kernel
| |4.15
Status|NEW |ASSIGNED
--- Comment #3 from Pierre Moreau <pierre.morrow at free.fr> ---
Thanks for the report. I’ll try to reproduce the issue on my laptop and if that
works, bisect the kern...
2019 Dec 13
3
[PATCH net 0/2] vsock/virtio: fix null-pointer dereference and related precautions
This series mainly solves a possible null-pointer dereference in
virtio_transport_recv_listen() introduced with the multi-transport
support [PATCH 1].
PATCH 2 adds a WARN_ON check for the same potential issue
and a returned error in the virtio_transport_send_pkt_info() function
to avoid crashing the kernel.
Stefano Garzarella (2):
vsock/virtio: fix null-p...
2019 Jul 22
6
[PATCH 0/2] Fix NULL pointer dereference with virtio-blk-pci and virtual IOMMU
When running a guest featuring a virtio-blk-pci protected with a virtual
IOMMU we hit a NULL pointer dereference.
This series removes the dma_max_mapping_size() call in
virtio_max_dma_size when the device does not have any dma_mask set.
A check is also added to early return in dma_addressing_limited()
if the dma_mask is NULL.
Eric Auger (2):
dma-mapping: Protect dma_addressing_limited against NULL dma_mas...
2020 Sep 21
2
Is it valid to dereference a pointer that have undef bits in its offset?
...culate a load without proving all the bits are well-defined.
-Eli
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Juneyoung Lee via llvm-dev
Sent: Sunday, September 20, 2020 3:54 PM
To: llvm-dev <llvm-dev at lists.llvm.org>
Subject: [EXT] Re: [llvm-dev] Is it valid to dereference a pointer that have undef bits in its offset?
> %p2 = gep %p, (undef & 8)
A silly typo: undef & 8 -> undef & 7
On Mon, Sep 21, 2020 at 7:47 AM Juneyoung Lee <juneyoung.lee at sf.snu.ac.kr<mailto:juneyoung.lee at sf.snu.ac.kr>> wrote:
Hello all,
Is it valid to derefe...
2010 Jan 30
1
[PATCH] nouveau: move dereferences after null checks
On Fri, Jan 29, 2010 at 12:00:49PM +0300, Dan Carpenter wrote:
> These bugs are when code dereferences a variable and then checks that it is not null.
> The new thing is that I wrote a shell script to try remove the false positives caused
> by macros. There are still some false positives because smatch is bad at handling
> loops and knowing when a container got redefined.
>
> Some...
2009 Oct 20
1
[LLVMdev] Dereference PointerType?
Hi Daniel,
> Type *allocated_type = ptr_type->dereference(); // this is the
> operation that doesn't seem to exist.
Type *allocated_type = ptr_type->getElementType();
Ciao,
Duncan.