lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20070206014501.753b406a.akpm@linux-foundation.org>
Date:	Tue, 6 Feb 2007 01:45:01 -0800
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Lukas Hejtmanek <xhejtman@...l.muni.cz>
Cc:	linux-kernel@...r.kernel.org,
	Chris Leech <christopher.leech@...el.com>
Subject: Re: 2.6.19.2, 2.6.20 Kernel oops

On Tue, 6 Feb 2007 10:16:17 +0100 Lukas Hejtmanek <xhejtman@...l.muni.cz> wrote:

> On Tue, Feb 06, 2007 at 01:09:07AM -0800, Andrew Morton wrote:
> > > these are lines above:
> > > 
> > > kernel: [  144.639984] ACPI: Power Button (FF) [PWRF]
> > > kernel: [  144.640006] input: Power Button (CM) as /class/input/input3
> > > kernel: [  144.640017] ACPI: Power Button (CM) [PWRB]
> > > kernel: [  222.002010] PGD 253115067 PUD 0
> > > 
> > > 
> > > > > kernel: [  222.002013] CPU 0
> > > > > kernel: [  222.002014] Modules linked in: container fan button ac thermal processor myri10ge megaraid_sas serio_raw psmouse evdev
> > > > > kernel: [  222.002020] Pid: 3234, comm: java Not tainted 2.6.20 #1
> > > > > kernel: [  222.002021] RIP: 0010:[page_to_pfn+0/64] [page_to_pfn+0/64] page_to_pfn+0x0/0x40
> > > > > kernel: [  222.002024] RSP: 0018:ffff81024ebf9ac0 EFLAGS: 00010246
> > > > > kernel: [  222.002026] RAX: ffff8102574213c0 RBX: ffff810256f07800 RCX: ffff81022e5600c0
> > > > > kernel: [  222.002027] RDX: 0000000000000740 RSI: 0000000000000000 RDI: 0000000000000000
> > > > > kernel: [  222.002028] RBP: 0000000000000740 R08: 0000000000000002 R09: ffff8102536b9a40
> > > > > kernel: [  222.002030] R10: 0000000000000007 R11: ffffffff80259650 R12: 0000000000000000
> > > > > kernel: [  222.002031] R13: ffff810257422460 R14: 0000000000000002 R15: ffff81022e5600c0
> > > > > kernel: [  222.002033] FS:  0000000041061950(0063) GS:ffffffff80649000(0000) knlGS:0000000000000000
> > > > > kernel: [  222.002034] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
> > > > > kernel: [  222.002036] CR2: 0000000000000000 CR3: 0000000251dbb000 CR4: 00000000000006e0
> > > > > kernel: [  222.002037] Process java (pid: 3234, threadinfo ffff81024ebf8000, task ffff81024ebdc7a0)
> > > > > kernel: [  222.002038] Stack:  ffffffff804c4f77 ffff810257422400 0000000000000002 ffff81024ebf9f28
> > > > > kernel: [  222.002042]  fffffffffffff240 0000000000000740 ffff810257422460 0000000000000002
> > > > > kernel: [  222.002044]  ffffffff804c3ba5 0000000000000010 ffff81022e5600c0 ffff8102536b9a40
> > > > > kernel: [  222.002046] Call Trace:
> > > > > kernel: [  222.002051] [ioat_dma_memcpy_buf_to_pg+71/224] ioat_dma_memcpy_buf_to_pg+0x47/0xe0
> > > > > kernel: [  222.002053]  [dma_memcpy_to_iovec+613/768] dma_memcpy_to_iovec+0x265/0x300
> > > > > kernel: [  222.002057] [dma_skb_copy_datagram_iovec+115/656] dma_skb_copy_datagram_iovec+0x73/0x290
> > > > > kernel: [  222.002060]  [tcp_recvmsg+1764/3296] tcp_recvmsg+0x6e4/0xce0
> > > > > kernel: [  222.002063]  [sock_common_recvmsg+48/80] sock_common_recvmsg+0x30/0x50
> > > > > kernel: [  222.002065]  [sock_recvmsg+281/352] sock_recvmsg+0x119/0x160
> > > > > kernel: [  222.002069]  [autoremove_wake_function+0/48] autoremove_wake_function+0x0/0x30
> > > > > kernel: [  222.002071]  [autoremove_wake_function+0/48] autoremove_wake_function+0x0/0x30
> > > > > kernel: [  222.002073]  [__handle_mm_fault+1741/2896] __handle_mm_fault+0x6cd/0xb50
> > > > > kernel: [  222.002076]  [sys_recvfrom+250/400] sys_recvfrom+0xfa/0x190
> > > > > kernel: [  222.002078]  [tty_ldisc_deref+100/128] tty_ldisc_deref+0x64/0x80
> > > > > kernel: [  222.002080]  [tty_write+540/592] tty_write+0x21c/0x250
> > > > > kernel: [  222.002083]  [system_call+126/131] system_call+0x7e/0x83
> > > > > kernel: [  222.002084]
> > > > > kernel: [  222.002085]
> > > > > kernel: [  222.002085] Code: 48 8b 07 48 c1 e8 3a 48 8b 14 c5 80 b8 65 80 48 b8 b7 6d db
> > > > > kernel: [  222.002092]  RSP <ffff81024ebf9ac0>
> > > > > 
> > > > 
> > > > Is that the whole oops message?  There should have been a few interesting
> > > > lines preceding the above.
> > > 
> > > I've posted it above.
> > 
> > That's peculiar.
> > 
> > Normally an oops on x86_64 looks like:
> > 
> > Unable to handle kernel NULL pointer dereference at 0000000000000038
> > RIP: [<ffffffff8022b9c8>] iput+0x18/0x80
> > PGD 3a607067 PUD 27b20067 PMD 0
> > Oops: 0000 [1] SMP
> > CPU 0
> > Modules linked in: psmouse battery ac thermal fan button
> > ...
> > 
> > but you seem to have lost the first few lines.
> 
> It looks like some of these messages have different priority. These lines have
> been in different log file...
> 
> kernel: [  222.002000] Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP:
> kernel: [  222.002004]  [page_to_pfn+0/64] page_to_pfn+0x0/0x40
> kernel: [  222.002010] PGD 253115067 PUD 0
> kernel: [  222.002011] Oops: 0000 [1] PREEMPT SMP
> kernel: [  222.002013] CPU 0

Ah, that makes things clearer, thanks.

Your page_to_pfn() is:

Code;  0000000000000000 Before first symbol
0000000000000000 <_RIP>:
Code;  0000000000000000 Before first symbol
   0:   48 8b 07                  mov    (%rdi),%rax
Code;  0000000000000003 Before first symbol
   3:   48 c1 e8 3a               shr    $0x3a,%rax
Code;  0000000000000007 Before first symbol
   7:   48 8b 14 c5 80 b8 65      mov    0xffffffff8065b880(,%rax,8),%rdx
Code;  000000000000000e Before first symbol
   e:   80 
Code;  000000000000000f Before first symbol
   f:   48 b8 b7 6d db 00 00      mov    $0xdb6db7,%rax

So ioat_dma_memcpy_buf_to_pg() is simply passing a null page pointer into
pci_map_page().

Over to you, Chris ;)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ