From: Jiri Slaby <jirislaby@gmail.com>
To: Jiri Slaby <jirislaby@gmail.com>
Cc: Andi Kleen <andi@firstfloor.org>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, dri-devel@lists.sourceforge.net,
airlied@linux.ie
Subject: Re: X freezes kernel during exit [Re: 2.6.23-rc3-mm1]
Date: Mon, 17 Sep 2007 13:09:20 +0200 [thread overview]
Message-ID: <46EE6060.8090609@gmail.com> (raw)
In-Reply-To: <46E40699.7060000@gmail.com>
On 09/09/2007 04:43 PM, Jiri Slaby wrote:
> On 09/09/2007 04:33 PM, Andi Kleen wrote:
>> On Sun, Sep 09, 2007 at 04:26:22PM +0200, Jiri Slaby wrote:
>>> BTW it is reproducible for me on two different machines (i386-x86_64,
>>> radeon-intel), don't you have the problem too?
>> No problems here with a radeon, no.
>>
>> Does your CPU have clflush or not in /proc/cpuinfo?
>
> BTW this is how my flush_kernel_map looks like:
>
> static void flush_kernel_map(void *arg)
> {
> struct flush_arg *a = (struct flush_arg *)arg;
> struct page *pg;
> unsigned int xx = 0;
>
> /* When clflush is available use it because it is
> much cheaper than WBINVD. */
> printk("%s: 1\n", __func__);
> if (a->full_flush || !cpu_has_clflush)
> asm volatile("wbinvd" ::: "memory");
> else list_for_each_entry(pg, &a->l, lru) {
> printk("%s: %10u 1a\n", __func__, xx++);
> if (PageFlush(pg))
> clflush_cache_range(page_address(pg), PAGE_SIZE);
> }
> printk("%s: 2\n", __func__);
> __flush_tlb_all();
> printk("%s: 3\n", __func__);
> }
>
> It outputs 1a in the infinite loop with incrementing xx. But only in this case,
> some global_flush_tlb are OK. e.g.:
> Sep 10 01:39:19 localhost kernel: agpgart: Detected an Intel G33 Chipset.
> Sep 10 01:39:19 localhost kernel: global_flush_tlb: 1
> Sep 10 01:39:19 localhost kernel: flush_kernel_map: 1
> Sep 10 01:39:19 localhost kernel: flush_kernel_map: 0 1a
> Sep 10 01:39:19 localhost kernel: flush_kernel_map: 1 1a
> Sep 10 01:39:19 localhost kernel: flush_kernel_map: 2
> Sep 10 01:39:19 localhost kernel: flush_kernel_map: 3
> Sep 10 01:39:19 localhost kernel: flush_kernel_map: 1
> Sep 10 01:39:19 localhost kernel: flush_kernel_map: 0 1a
> Sep 10 01:39:19 localhost kernel: flush_kernel_map: 1 1a
> Sep 10 01:39:19 localhost kernel: flush_kernel_map: 2
> Sep 10 01:39:19 localhost kernel: flush_kernel_map: 3
> Sep 10 01:39:19 localhost kernel: global_flush_tlb: 2
> Sep 10 01:39:19 localhost kernel: global_flush_tlb: 3
> Sep 10 01:39:19 localhost kernel: agpgart: Detected 6140K stolen memory.
>
> It seems, that the list is broken only on X shutdown. How can be deferred-pages
> list inited in some bad manner, when list_replace_init is called on it? Weird.
Ok, here comes a BUG with trace:
set status page addr 0x00033000
list_add corruption. next->prev should be prev (ffffffff8068ae70), but was
ffffffff80697a50. (next=ffff81000117fbd0).
------------[ cut here ]------------
kernel BUG at /home/l/latest/xxx/lib/list_debug.c:27!
invalid opcode: 0000 [1] SMP
last sysfs file: /devices/pci0000:00/0000:00:02.0/enable
CPU 0
Modules linked in: ipv6 floppy sr_mod rtc_cmos rtc_core cdrom ehci_hcd rtc_lib
usbhid
Pid: 1639, comm: X Not tainted 2.6.23-rc4-mm1_64 #23
RIP: 0010:[<ffffffff80332f49>] [<ffffffff80332f49>] __list_add+0x39/0x60
RSP: 0018:ffff81000547bd48 EFLAGS: 00010296
RAX: 0000000000000079 RBX: ffff81000117a380 RCX: ffffffff8068b450
RDX: ffff81000317d6a0 RSI: 0000000000000001 RDI: ffffffff8068b420
RBP: ffff81000547bd48 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000006da2
R13: ffff810006c10d10 R14: ffff810006da2000 R15: 8000000000000163
FS: 00007f7a05258710(0000) GS:ffffffff806d1000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000a33040 CR3: 0000000004a43000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process X (pid: 1639, threadinfo ffff81000547a000, task ffff81000317d6a0)
Stack: ffff81000547bd58 ffffffff80332f7c ffff81000547bdc8 ffffffff80225c56
ffffffff80225cb5 8000000000000163 ffffffff806830e8 ffffffff806830a0
ffffffff806830a0 ffff810006da2000 ffff81000547bda8 0000000000006da2
Call Trace:
[<ffffffff80332f7c>] list_add+0xc/0x10
[<ffffffff80225c56>] __change_page_attr+0x376/0x390
[<ffffffff80225cb5>] change_page_attr_addr+0x45/0x140
[<ffffffff80225d16>] change_page_attr_addr+0xa6/0x140
[<ffffffff80225de3>] change_page_attr+0x33/0x40
[<ffffffff80387b64>] agp_generic_destroy_page+0x44/0x70
[<ffffffff80388645>] agp_free_memory+0x65/0xd0
[<ffffffff80386d49>] agp_free_memory_wrap+0x39/0x60
[<ffffffff803873fb>] agp_release+0xdb/0x1c0
[<ffffffff80299551>] __fput+0xd1/0x1b0
[<ffffffff802996b6>] fput+0x16/0x20
[<ffffffff802964e6>] filp_close+0x56/0x90
[<ffffffff80297bed>] sys_close+0xad/0x110
[<ffffffff8020bd0e>] system_call+0x7e/0x83
INFO: lockdep is turned off.
Code: 0f 0b eb fe 0f 1f 00 48 89 f1 4c 89 c2 48 89 c6 48 c7 c7 e8
RIP [<ffffffff80332f49>] __list_add+0x39/0x60
RSP <ffff81000547bd48>
regards,
--
Jiri Slaby (jirislaby@gmail.com)
Faculty of Informatics, Masaryk University
next prev parent reply other threads:[~2007-09-17 11:09 UTC|newest]
Thread overview: 220+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-22 9:06 2.6.23-rc3-mm1 Andrew Morton
2007-08-22 10:11 ` [BUG] fs/xfs/xfs_bmap_btree.c:2312: error: 'b' undeclared (first use in this function) (Was Re: 2.6.23-rc3-mm1) Michal Piotrowski
2007-08-22 10:27 ` Michal Piotrowski
2007-08-23 5:27 ` Tim Shimmin
2007-08-22 13:02 ` [BUG] 2.6.23-rc3-mm1 - kernel BUG at net/core/skbuff.c:95! Kamalesh Babulal
2007-08-22 15:50 ` Andrew Morton
2007-08-22 17:58 ` Kay Sievers
2007-08-22 19:04 ` Balbir Singh
2007-08-22 20:55 ` Kay Sievers
2007-08-22 21:10 ` Balbir Singh
2007-08-23 18:59 ` Balbir Singh
2007-08-22 13:33 ` 2.6.23-rc3-mm1 Gabriel C
2007-08-22 16:09 ` 2.6.23-rc3-mm1 Andrew Morton
2007-08-22 17:01 ` 2.6.23-rc3-mm1 Gabriel C
2007-08-27 21:27 ` [-mm patch] make types.h usable for non-gcc C parsers Adrian Bunk
2007-08-27 21:34 ` Mike Frysinger
2007-08-27 21:36 ` Adrian Bunk
2007-08-27 21:42 ` Mike Frysinger
2007-08-28 7:37 ` Andrew Morton
2007-08-28 8:43 ` Sam Ravnborg
2007-08-28 14:19 ` Michael Matz
2007-08-28 14:40 ` Randy Dunlap
2007-08-28 14:42 ` Adrian Bunk
2007-08-28 17:06 ` Sam Ravnborg
2007-08-28 17:42 ` Mike Frysinger
2007-08-28 17:59 ` Adrian Bunk
2007-08-28 18:37 ` Sam Ravnborg
2007-08-22 14:19 ` 2.6.23-rc3-mm1 Michal Piotrowski
2007-08-22 16:17 ` 2.6.23-rc3-mm1 Andrew Morton
2007-08-22 15:30 ` net/ipv4/fib_trie.c - compile error (Re: 2.6.23-rc3-mm1) Gabriel C
2007-08-22 15:41 ` Adrian Bunk
2007-08-22 16:32 ` Gabriel C
2007-08-22 17:03 ` Paul E. McKenney
2007-08-27 6:36 ` Jarek Poplawski
2007-08-27 16:23 ` Paul E. McKenney
2007-08-22 16:15 ` drivers/scsi/advansys.c - ld error ( Re: 2.6.23-rc3-mm1 ) Gabriel C
2007-08-22 16:28 ` Matthew Wilcox
2007-08-22 16:57 ` Gabriel C
2007-08-22 16:33 ` 2.6.23-rc3-mm1: fix b43 compilation Rafael J. Wysocki
2007-08-22 21:56 ` Michael Buesch
2007-08-23 2:56 ` John W. Linville
2007-08-23 7:07 ` Andrew Morton
2007-08-22 17:10 ` drivers/net/ppp_generic - __modpost error ( Re: 2.6.23-rc3-mm1 ) Gabriel C
2007-08-22 17:17 ` 2.6.23-rc3-mm1 Mel Gorman
2007-08-22 18:10 ` 2.6.23-rc3-mm1 Andrew Morton
2007-08-23 11:39 ` 2.6.23-rc3-mm1 Mel Gorman
2007-08-23 12:03 ` 2.6.23-rc3-mm1 Andy Whitcroft
2007-08-23 12:22 ` 2.6.23-rc3-mm1 Andi Kleen
2007-08-23 12:34 ` 2.6.23-rc3-mm1 Andy Whitcroft
2007-08-23 12:28 ` 2.6.23-rc3-mm1 Sam Ravnborg
2007-08-23 14:24 ` 2.6.23-rc3-mm1 Sam Ravnborg
2007-08-23 12:07 ` 2.6.23-rc3-mm1 Andi Kleen
2007-08-23 16:25 ` 2.6.23-rc3-mm1 Mel Gorman
2007-08-22 17:24 ` 2.6.23-rc3-mm1 Torsten Kaiser
2007-08-22 18:14 ` 2.6.23-rc3-mm1 Andrew Morton
2007-08-22 17:26 ` 2.6.23-rc3-mm1: locking boot-time self-test failure Mariusz Kozlowski
2007-08-22 21:27 ` Frederik Deweerdt
2007-08-22 17:30 ` 2.6.23-rc3-mm1: WARNING: during resume from suspend on x86_64 Rafael J. Wysocki
2007-08-22 18:03 ` 2.6.23-rc3-mm1 Randy Dunlap
2007-08-22 18:32 ` 2.6.23-rc3-mm1 Andrew Morton
2007-08-22 19:38 ` 2.6.23-rc3-mm1 Andi Kleen
2007-08-22 19:17 ` 2.6.23-rc3-mm1 Randy Dunlap
2007-08-22 20:53 ` 2.6.23-rc3-mm1 Andi Kleen
2007-08-22 20:03 ` 2.6.23-rc3-mm1 Randy Dunlap
2007-08-22 21:14 ` 2.6.23-rc3-mm1 Andi Kleen
2007-08-22 20:37 ` 2.6.23-rc3-mm1 Randy Dunlap
2007-08-22 19:04 ` 2.6.23-rc3-mm1: kgdb build failure on powerpc Mariusz Kozlowski
2007-08-22 19:04 ` Mariusz Kozlowski
2007-08-22 19:47 ` Andrew Morton
2007-08-22 19:47 ` Andrew Morton
2007-08-22 22:44 ` [Kgdb-bugreport] " Jason Wessel
2007-08-22 22:44 ` Jason Wessel
2007-08-22 23:53 ` Andrew Morton
2007-08-22 23:53 ` Andrew Morton
2007-08-23 3:25 ` Jason Wessel
2007-08-29 23:43 ` Pete/Piet Delaney
2007-08-29 23:43 ` Pete/Piet Delaney
2007-08-30 0:05 ` Pete/Piet Delaney
2007-08-30 0:05 ` Pete/Piet Delaney
2007-08-30 1:19 ` Pete/Piet Delaney
2007-08-30 1:19 ` Pete/Piet Delaney
2007-08-30 1:38 ` Randy Dunlap
2007-08-30 1:38 ` Randy Dunlap
2007-08-30 2:07 ` Jason Wessel
2007-08-30 2:07 ` Jason Wessel
2007-08-30 2:13 ` Jason Wessel
2007-08-30 2:13 ` Jason Wessel
2007-08-22 19:16 ` 2.6.23-rc3-mm1: net/wireless/rt2x00mac.c build failure Mariusz Kozlowski
2007-08-22 19:31 ` Ivo van Doorn
2007-08-22 19:54 ` Mariusz Kozlowski
2007-08-22 20:12 ` Ivo van Doorn
2007-08-22 20:22 ` Rafael J. Wysocki
2007-08-22 19:58 ` John W. Linville
2007-08-25 0:27 ` Ulrich Kunitz
2007-08-22 20:23 ` 2.6.23-rc3-mm1: inlining failures in sound/pci/hda/hda_codec.c Mariusz Kozlowski
2007-08-22 21:07 ` Takashi Iwai
2007-08-22 21:18 ` Mariusz Kozlowski
2007-08-22 21:44 ` Adrian Bunk
2007-08-22 20:25 ` [-mm patch] enforce noreplace-smp in alternative_instructions() Frederik Deweerdt
2007-08-23 21:50 ` Andrew Morton
2007-08-24 6:04 ` Frederik Deweerdt
2007-08-24 6:46 ` Jeremy Fitzhardinge
2007-08-24 8:22 ` Frederik Deweerdt
2007-08-25 12:07 ` Rusty Russell
2007-08-25 12:23 ` Frederik Deweerdt
2007-08-25 21:14 ` Frederik Deweerdt
2007-08-27 16:09 ` [PATCH] Fix lguest page-pinning logic ("lguest: bad stack page 0xc057a000") Rusty Russell
2007-08-30 16:38 ` Frederik Deweerdt
2007-08-30 22:12 ` Rusty Russell
2007-08-30 22:14 ` [PATCH] Fix out-by-one error in traps.c Rusty Russell
2007-08-31 4:44 ` Linus Torvalds
2007-08-31 6:03 ` Rusty Russell
2007-08-31 7:51 ` Linus Torvalds
2007-08-31 17:37 ` Rusty Russell
2007-08-31 18:24 ` Linus Torvalds
2007-09-04 18:18 ` Rusty Russell
2007-08-23 23:16 ` [-mm patch] enforce noreplace-smp in alternative_instructions() Jeremy Fitzhardinge
2007-08-24 6:06 ` Frederik Deweerdt
2007-08-22 23:30 ` drivers/char/nozomi.c - compile error ( Re: 2.6.23-rc3-mm1 ) Gabriel C
2007-08-23 3:45 ` Randy Dunlap
2007-08-22 23:34 ` fs/xfs/xfs_bmap_btree.c - compile error (Re: 2.6.23-rc3-mm1) Gabriel C
2007-08-23 3:47 ` Randy Dunlap
2007-08-23 2:08 ` 2.6.23-rc3-mm1 - memory layout change? - lost support for MAP_32BIT? - mono crashes Zan Lynx
2007-08-23 6:57 ` Andrew Morton
2007-08-23 9:28 ` Jiri Kosina
2007-08-23 17:32 ` Zan Lynx
2007-08-23 23:52 ` Andrew Morton
2007-08-24 0:09 ` Jiri Kosina
2007-08-24 16:17 ` Arjan van de Ven
2007-08-23 11:24 ` x86_64-dynticks-disable-hpet_id_legsup-hpets.patch hangs the system Gautham R Shenoy
2007-08-23 20:47 ` Andrew Morton
2007-08-23 20:56 ` Thomas Gleixner
2007-08-23 13:33 ` 2.6.23-rc3-mm1 - irda goes belly up Valdis.Kletnieks
2007-08-23 17:37 ` Alexey Dobriyan
2007-08-23 18:45 ` Valdis.Kletnieks
2007-08-23 21:16 ` Andrew Morton
2007-08-24 3:11 ` Eric W. Biederman
2007-08-24 3:46 ` Eric W. Biederman
2007-08-24 3:53 ` [PATCH 1/2] sysctl: Properly register the irda binary sysctl numbers Eric W. Biederman
2007-08-24 3:55 ` [PATCH 2/2] sysctl: For irda update sysctl_checks list of binary paths Eric W. Biederman
2007-08-26 22:03 ` Samuel Ortiz
2007-08-25 8:29 ` [PATCH 1/2] sysctl: Properly register the irda binary sysctl numbers Valdis.Kletnieks
2007-08-25 12:57 ` Eric W. Biederman
2007-08-25 14:07 ` Valdis.Kletnieks
2007-08-25 17:59 ` Eric W. Biederman
2007-08-28 18:40 ` Valdis.Kletnieks
2007-08-28 21:06 ` Eric W. Biederman
2007-08-25 18:03 ` [PATCH] sysctl: Update sysctl_check to handle compiled out code Eric W. Biederman
2007-08-28 18:44 ` Valdis.Kletnieks
2007-08-26 22:02 ` [PATCH 1/2] sysctl: Properly register the irda binary sysctl numbers Samuel Ortiz
2007-08-24 23:27 ` 2.6.23-rc3-mm1 Tilman Schmidt
2007-08-25 0:07 ` 2.6.23-rc3-mm1 Andrew Morton
2007-08-25 0:13 ` 2.6.23-rc3-mm1 Pallipadi, Venkatesh
2007-08-25 0:13 ` 2.6.23-rc3-mm1 Pallipadi, Venkatesh
2007-08-25 0:38 ` 2.6.23-rc3-mm1 Pallipadi, Venkatesh
2007-08-25 0:38 ` 2.6.23-rc3-mm1 Pallipadi, Venkatesh
2007-08-25 23:26 ` 2.6.23-rc3-mm1 Tilman Schmidt
2007-08-25 23:57 ` 2.6.23-rc3-mm1 Randy Dunlap
2007-08-27 13:35 ` 2.6.23-rc3-mm1 Tilman Schmidt
2007-08-25 0:14 ` 2.6.23-rc3-mm1 Dave Jones
2007-08-25 0:21 ` 2.6.23-rc3-mm1 john stultz
2007-08-25 22:39 ` 2.6.23-rc3-mm1 Tilman Schmidt
2007-08-25 0:47 ` 2.6.23-rc3-mm1 Tilman Schmidt
2007-08-25 3:30 ` 2.6.23-rc3-mm1 Andrew Morton
2007-08-25 4:28 ` 2.6.23-rc3-mm1 Dave Jones
2007-08-25 7:55 ` 2.6.23-rc3-mm1 Paul Rolland
2007-08-25 23:37 ` 2.6.23-rc3-mm1 Tilman Schmidt
2007-09-05 20:41 ` Clock trouble retest results with 2.6.23-rc4-mm1 (was: 2.6.23-rc3-mm1) Tilman Schmidt
2007-08-26 13:04 ` X freezes kernel during exit [Re: 2.6.23-rc3-mm1] Jiri Slaby
2007-08-28 11:41 ` Jiri Slaby
2007-09-09 11:44 ` Jiri Slaby
2007-09-09 12:47 ` Andrew Morton
2007-09-09 13:04 ` Jiri Slaby
2007-09-09 14:08 ` Jiri Slaby
2007-09-09 14:17 ` Andi Kleen
2007-09-09 14:26 ` Jiri Slaby
2007-09-09 14:33 ` Andi Kleen
2007-09-09 14:35 ` Jiri Slaby
2007-09-09 14:43 ` Jiri Slaby
2007-09-09 15:01 ` Andi Kleen
2007-09-09 15:49 ` Jiri Slaby
2007-09-11 15:18 ` Dave Airlie
2007-09-17 11:09 ` Jiri Slaby [this message]
2007-08-27 21:27 ` [-mm patch] make "struct menu_governor" static (again) Adrian Bunk
2007-08-27 22:32 ` Adam Belay
2007-08-27 21:27 ` [-mm patch] remove parport_device_num() Adrian Bunk
2007-08-27 21:27 ` [-mm patch] make do_restart_poll() static Adrian Bunk
2007-08-27 21:27 ` [-mm patch] unexport snd_ctl_elem_{read,write} Adrian Bunk
2007-08-27 21:27 ` [-mm patch] unexport sys_{open,read} Adrian Bunk
2007-08-27 22:53 ` Arjan van de Ven
2007-08-27 23:17 ` Adrian Bunk
2007-08-27 21:27 ` 2.6.23-rc3-mm1: m32r defconfig compile error Adrian Bunk
2007-08-28 3:50 ` Hirokazu Takata
2007-08-27 21:27 ` [-mm patch] remove unwind exports Adrian Bunk
2007-08-27 21:28 ` [-mm patch] unexport noautodma Adrian Bunk
2007-08-27 21:28 ` [-mm patch] mousedev.c:mixdev_open_devices() bugfix Adrian Bunk
2007-08-27 21:29 ` [-mm patch] ivtv-fb.c bugfix Adrian Bunk
2007-08-28 6:30 ` [v4l-dvb-maintainer] " Hans Verkuil
2007-08-27 21:29 ` [-mm patch] iwl-base.c bugfixes Adrian Bunk
2007-08-27 22:34 ` Tomas Winkler
2007-08-27 21:29 ` 2.6.23-rc3-mm1: i386: -maccumulate-outgoing-args unconditionally Adrian Bunk
2007-08-28 11:32 ` oops at sr_block_release [Re: 2.6.23-rc3-mm1] Jiri Slaby
2007-08-28 15:08 ` Satyam Sharma
2007-08-28 15:21 ` Jiri Slaby
2007-08-29 2:58 ` Andrew Morton
2007-08-29 14:04 ` 2.6.23-rc3-mm1 Valdis.Kletnieks
2007-08-29 17:37 ` 2.6.23-rc3-mm1 - vdso and gettimeofday issues with glibc Valdis.Kletnieks
2007-08-29 23:15 ` Andrew Morton
2007-08-30 2:46 ` Ulrich Drepper
2007-08-30 14:08 ` Valdis.Kletnieks
2007-08-31 21:21 ` Chuck Ebbert
2007-08-30 16:27 ` Chuck Ebbert
2007-09-09 0:24 ` Valdis.Kletnieks
2007-09-09 7:27 ` Andi Kleen
2007-09-10 19:07 ` Valdis.Kletnieks
2007-08-30 16:30 ` Chuck Ebbert
2007-09-01 10:07 ` Andi Kleen
2007-09-07 19:39 ` Chuck Ebbert
2007-09-08 8:57 ` Andi Kleen
2007-09-09 3:20 ` Valdis.Kletnieks
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46EE6060.8090609@gmail.com \
--to=jirislaby@gmail.com \
--cc=airlied@linux.ie \
--cc=akpm@linux-foundation.org \
--cc=andi@firstfloor.org \
--cc=dri-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.