public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG]: kernel BUG at mm/swapfile.c:806! (2.6)
@ 2004-02-06  1:29 "Good Oleg" 
  2004-02-06  1:57 ` Andrew Morton
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: "Good Oleg"  @ 2004-02-06  1:29 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1704 bytes --]

PC(see below) 256Mib of RAM, linux-2.6.2, 300Mib swap file (swapon /mnt/swap/swap)
When programs cause big memory usage i have this
(since my 2.4.22 to 2.6.0-test11 migration):

Feb  6 02:26:27 gluon kernel: ------------[ cut here ]------------
Feb  6 02:26:27 gluon kernel: kernel BUG at mm/swapfile.c:806!
Feb  6 02:26:27 gluon kernel: invalid operand: 0000 [#1]
Feb  6 02:26:27 gluon kernel: CPU:    0
Feb  6 02:26:27 gluon kernel: EIP:    0060:[<c015c7c4>]    Tainted: PFS
Feb  6 02:26:27 gluon kernel: EFLAGS: 00010246
Feb  6 02:26:27 gluon kernel: EIP is at map_swap_page+0x34/0x60

As in /usr/src/linux/REPORTING-BUGS:
 - keyword:
kernel memory manager
 - version (cat /proc/version):
Linux version 2.6.2 (root@gluon) (gcc version 3.3.3 20040125 (prerelease) (Debian)) #2 SMP Thu Feb 5 03:45:58 EET 2004
 - A small shell script or example program which triggers the
   problem (if possible)
load gimp, sodipodi (graphic editors) and work for some hours
 - output of ./scripts/ver_linux:
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.
 
Linux gluon 2.6.2 #2 SMP Thu Feb 5 03:45:58 EET 2004 i686 GNU/Linux
 
Gnu C                  3.3.3
Gnu make               3.80
util-linux             2.12
mount                  2.12
module-init-tools      3.0-pre9
e2fsprogs              1.35-WIP
xfsprogs               2.6.3
nfs-utils              1.0.6
Linux C Library        2.3.2
Dynamic linker (ldd)   2.3.2
Procps                 3.1.15
Net-tools              1.60
Console-tools          0.2.3
Sh-utils               5.0.91
Modules Loaded         irda

 - my latest syslog, with that bug:
attached

TIA, olecom


[-- Attachment #2: syslog_output.txt --]
[-- Type: text/plain, Size: 20234 bytes --]

Feb  6 00:05:48 gluon -- MARK --
Feb  6 00:25:48 gluon -- MARK --
Feb  6 00:45:48 gluon -- MARK --
Feb  6 01:05:48 gluon -- MARK --
Feb  6 01:25:48 gluon -- MARK --
Feb  6 01:45:48 gluon -- MARK --
Feb  6 02:05:48 gluon -- MARK --
Feb  6 02:18:19 gluon kernel: Adding 204792k swap on /mnt/swap/swap.  Priority:-1 extents:798
Feb  6 02:18:35 gluon kernel: bridge-eth0: set IFF_PROMISC
Feb  6 02:18:35 gluon kernel: eth0: Promiscuous mode enabled.
Feb  6 02:18:37 gluon kernel: bridge-eth0: clear IFF_PROMISC
Feb  6 02:20:01 gluon kernel: bridge-eth0: set IFF_PROMISC
Feb  6 02:20:01 gluon kernel: eth0: Promiscuous mode enabled.
Feb  6 02:22:47 gluon kernel: bridge-eth0: clear IFF_PROMISC
Feb  6 02:24:10 gluon kernel: bridge-eth0: set IFF_PROMISC
Feb  6 02:24:10 gluon kernel: eth0: Promiscuous mode enabled.
Feb  6 02:26:27 gluon kernel: ------------[ cut here ]------------
Feb  6 02:26:27 gluon kernel: kernel BUG at mm/swapfile.c:806!
Feb  6 02:26:27 gluon kernel: invalid operand: 0000 [#1]
Feb  6 02:26:27 gluon kernel: CPU:    0
Feb  6 02:26:27 gluon kernel: EIP:    0060:[<c015c7c4>]    Tainted: PFS
Feb  6 02:26:27 gluon kernel: EFLAGS: 00010246
Feb  6 02:26:27 gluon kernel: EIP is at map_swap_page+0x34/0x60
Feb  6 02:26:27 gluon kernel: eax: cdc65360   ebx: 00000500   ecx: cdc65360   edx: 00000390
Feb  6 02:26:27 gluon kernel: esi: c05a1890   edi: cdc65360   ebp: c05a1880   esp: c135fd3c
Feb  6 02:26:27 gluon kernel: ds: 007b   es: 007b   ss: 0068
Feb  6 02:26:27 gluon kernel: Process kswapd0 (pid: 9, threadinfo=c135e000 task=c13746b0)
Feb  6 02:26:27 gluon kernel: Stack: 00000500 c05a1880 c5c79a80 c10e9f20 c015a9d2 c05a1880 00000500 c10e9f20 
Feb  6 02:26:27 gluon kernel:        c10e9f20 c135fdd4 00000000 c015ab11 00000010 c10e9f20 c015aa30 00000500 
Feb  6 02:26:27 gluon kernel:        c135e000 c10e9f20 c135fdd4 c135e000 c014cd15 c10e9f20 c135fdb4 00000082 
Feb  6 02:26:27 gluon kernel: Call Trace:
Feb  6 02:26:27 gluon kernel:  [<c015a9d2>] get_swap_bio+0x52/0xb0
Feb  6 02:26:27 gluon kernel:  [<c015ab11>] swap_writepage+0x41/0xf0
Feb  6 02:26:27 gluon kernel:  [<c015aa30>] end_swap_bio_write+0x0/0x50
Feb  6 02:26:27 gluon kernel:  [<c014cd15>] shrink_list+0x3e5/0x6b0
Feb  6 02:26:27 gluon kernel:  [<c014d1b1>] shrink_cache+0x1d1/0x390
Feb  6 02:26:27 gluon kernel:  [<c014d9f4>] shrink_zone+0x94/0xc0
Feb  6 02:26:27 gluon kernel:  [<c014de01>] balance_pgdat+0x1a1/0x230
Feb  6 02:26:27 gluon kernel:  [<c014dfbf>] kswapd+0x12f/0x150
Feb  6 02:26:27 gluon kernel:  [<c01245c0>] autoremove_wake_function+0x0/0x50
Feb  6 02:26:27 gluon kernel:  [<c010b4b2>] ret_from_fork+0x6/0x14
Feb  6 02:26:27 gluon kernel:  [<c01245c0>] autoremove_wake_function+0x0/0x50
Feb  6 02:26:27 gluon kernel:  [<c014de90>] kswapd+0x0/0x150
Feb  6 02:26:27 gluon kernel:  [<c01092a9>] kernel_thread_helper+0x5/0xc
Feb  6 02:26:27 gluon kernel: 
Feb  6 02:26:27 gluon kernel: Code: 0f 0b 26 03 72 44 46 c0 eb d6 8b 40 04 eb e8 29 d3 31 d2 89 
Feb  6 02:26:35 gluon kernel:  ------------[ cut here ]------------
Feb  6 02:26:35 gluon kernel: kernel BUG at mm/swapfile.c:806!
Feb  6 02:26:35 gluon kernel: invalid operand: 0000 [#2]
Feb  6 02:26:35 gluon kernel: CPU:    0
Feb  6 02:26:35 gluon kernel: EIP:    0060:[<c015c7c4>]    Tainted: PFS
Feb  6 02:26:35 gluon kernel: EFLAGS: 00013246
Feb  6 02:26:35 gluon kernel: EIP is at map_swap_page+0x34/0x60
Feb  6 02:26:35 gluon kernel: eax: cdc65360   ebx: 00000501   ecx: cdc65360   edx: 00000390
Feb  6 02:26:35 gluon kernel: esi: c05a1890   edi: cdc65360   ebp: c05a1880   esp: cc07fbc8
Feb  6 02:26:35 gluon kernel: ds: 007b   es: 007b   ss: 0068
Feb  6 02:26:35 gluon kernel: Process X (pid: 648, threadinfo=cc07e000 task=ccad26b0)
Feb  6 02:26:35 gluon kernel: Stack: 00000501 c05a1880 c32bc6c0 c109cc70 c015a9d2 c05a1880 00000501 c109cc70 
Feb  6 02:26:35 gluon kernel:        c109cc70 cc07fc60 00000000 c015ab11 00000010 c109cc70 c015aa30 00000501 
Feb  6 02:26:35 gluon kernel:        cc07e000 c109cc70 cc07fc60 cc07e000 c014cd15 c109cc70 cc07fc40 c1cd03b0 
Feb  6 02:26:35 gluon kernel: Call Trace:
Feb  6 02:26:35 gluon kernel:  [<c015a9d2>] get_swap_bio+0x52/0xb0
Feb  6 02:26:35 gluon kernel:  [<c015ab11>] swap_writepage+0x41/0xf0
Feb  6 02:26:35 gluon kernel:  [<c015aa30>] end_swap_bio_write+0x0/0x50
Feb  6 02:26:35 gluon kernel:  [<c014cd15>] shrink_list+0x3e5/0x6b0
Feb  6 02:26:35 gluon kernel:  [<c014d1b1>] shrink_cache+0x1d1/0x390
Feb  6 02:26:35 gluon kernel:  [<c0120679>] try_to_wake_up+0x1b9/0x270
Feb  6 02:26:35 gluon kernel:  [<c014d9f4>] shrink_zone+0x94/0xc0
Feb  6 02:26:35 gluon kernel:  [<c01220ca>] __wake_up_common+0x3a/0x60
Feb  6 02:26:35 gluon kernel:  [<c014dad8>] shrink_caches+0xb8/0xd0
Feb  6 02:26:35 gluon kernel:  [<c014db9c>] try_to_free_pages+0xac/0x170
Feb  6 02:26:35 gluon kernel:  [<c01465c2>] __alloc_pages+0x1d2/0x350
Feb  6 02:26:35 gluon kernel:  [<c014bd4c>] __pagevec_lru_add_active+0x10c/0x140
Feb  6 02:26:35 gluon kernel:  [<c0151054>] do_anonymous_page+0x84/0x250
Feb  6 02:26:35 gluon kernel:  [<c0151281>] do_no_page+0x61/0x360
Feb  6 02:26:35 gluon kernel:  [<c01517ac>] handle_mm_fault+0xfc/0x1b0
Feb  6 02:26:35 gluon kernel:  [<c011f401>] do_page_fault+0x341/0x53e
Feb  6 02:26:35 gluon kernel:  [<c012f96b>] update_wall_time+0xb/0x40
Feb  6 02:26:35 gluon kernel:  [<c012fde0>] do_timer+0xc0/0xd0
Feb  6 02:26:35 gluon kernel:  [<c0112396>] timer_interrupt+0x76/0x170
Feb  6 02:26:35 gluon kernel:  [<c010d91a>] handle_IRQ_event+0x3a/0x70
Feb  6 02:26:35 gluon kernel:  [<c010dd25>] do_IRQ+0xe5/0x190
Feb  6 02:26:35 gluon kernel:  [<c011f0c0>] do_page_fault+0x0/0x53e
Feb  6 02:26:35 gluon kernel:  [<c010c065>] error_code+0x2d/0x38
Feb  6 02:26:35 gluon kernel: 
Feb  6 02:26:35 gluon kernel: Code: 0f 0b 26 03 72 44 46 c0 eb d6 8b 40 04 eb e8 29 d3 31 d2 89 
Feb  6 02:26:35 gluon kernel:  <5>bridge-eth0: clear IFF_PROMISC
Feb  6 02:26:58 gluon kernel: SysRq : Emergency Sync
Feb  6 02:26:59 gluon kernel: Emergency Sync complete
Feb  6 02:26:59 gluon kernel: SysRq : Emergency Remount R/O
Feb  6 02:27:48 gluon syslogd 1.4.1#13: restart.
Feb  6 02:27:48 gluon kernel: klogd 1.4.1#13, log source = /proc/kmsg started.
Feb  6 02:27:48 gluon kernel: Cannot find map file.
Feb  6 02:27:48 gluon kernel: No module symbols loaded - kernel modules not enabled. 
Feb  6 02:27:48 gluon kernel: Linux version 2.6.2 (root@gluon) (gcc version 3.3.3 20040125 (prerelease) (Debian)) #2 SMP Thu Feb 5 03:45:58 EET 2004
Feb  6 02:27:48 gluon kernel: BIOS-provided physical RAM map:
Feb  6 02:27:48 gluon kernel:  BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
Feb  6 02:27:48 gluon kernel:  BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
Feb  6 02:27:48 gluon kernel:  BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
Feb  6 02:27:48 gluon kernel:  BIOS-e820: 0000000000100000 - 000000000ffec000 (usable)
Feb  6 02:27:48 gluon kernel:  BIOS-e820: 000000000ffec000 - 000000000ffef000 (ACPI data)
Feb  6 02:27:48 gluon kernel:  BIOS-e820: 000000000ffef000 - 000000000ffff000 (reserved)
Feb  6 02:27:48 gluon kernel:  BIOS-e820: 000000000ffff000 - 0000000010000000 (ACPI NVS)
Feb  6 02:27:48 gluon kernel:  BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
Feb  6 02:27:48 gluon kernel: 255MB LOWMEM available.
Feb  6 02:27:48 gluon kernel: On node 0 totalpages: 65516
Feb  6 02:27:48 gluon kernel:   DMA zone: 4096 pages, LIFO batch:1
Feb  6 02:27:48 gluon kernel:   Normal zone: 61420 pages, LIFO batch:14
Feb  6 02:27:48 gluon kernel:   HighMem zone: 0 pages, LIFO batch:1
Feb  6 02:27:48 gluon kernel: DMI 2.3 present.
Feb  6 02:27:48 gluon kernel: ACPI: RSDP (v000 ASUS                                      ) @ 0x000f6a80
Feb  6 02:27:48 gluon kernel: ACPI: RSDT (v001 ASUS   A7V133-C 0x30303031 MSFT 0x31313031) @ 0x0ffec000
Feb  6 02:27:48 gluon kernel: ACPI: FADT (v001 ASUS   A7V133-C 0x30303031 MSFT 0x31313031) @ 0x0ffec080
Feb  6 02:27:48 gluon kernel: ACPI: BOOT (v001 ASUS   A7V133-C 0x30303031 MSFT 0x31313031) @ 0x0ffec040
Feb  6 02:27:48 gluon kernel: ACPI: DSDT (v001   ASUS A7V133-C 0x00001000 MSFT 0x0100000b) @ 0x00000000
Feb  6 02:27:48 gluon kernel: Building zonelist for node : 0
Feb  6 02:27:48 gluon kernel: Kernel command line: rw root=/dev/hdb1
Feb  6 02:27:48 gluon kernel: Local APIC disabled by BIOS -- reenabling.
Feb  6 02:27:48 gluon kernel: Found and enabled local APIC!
Feb  6 02:27:48 gluon kernel: Initializing CPU#0
Feb  6 02:27:48 gluon kernel: PID hash table entries: 1024 (order 10: 8192 bytes)
Feb  6 02:27:48 gluon kernel: Detected 908.460 MHz processor.
Feb  6 02:27:48 gluon kernel: Using tsc for high-res timesource
Feb  6 02:27:48 gluon kernel: Console: colour VGA+ 80x25
Feb  6 02:27:48 gluon kernel: Memory: 253536k/262064k available (3348k kernel code, 7796k reserved, 916k data, 400k init, 0k highmem)
Feb  6 02:27:48 gluon kernel: Checking if this processor honours the WP bit even in supervisor mode... Ok.
Feb  6 02:27:48 gluon kernel: Calibrating delay loop... 1785.85 BogoMIPS
Feb  6 02:27:48 gluon kernel: Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Feb  6 02:27:48 gluon kernel: Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Feb  6 02:27:48 gluon kernel: Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Feb  6 02:27:48 gluon kernel: CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
Feb  6 02:27:48 gluon kernel: CPU: L2 Cache: 64K (64 bytes/line)
Feb  6 02:27:48 gluon kernel: Intel machine check architecture supported.
Feb  6 02:27:48 gluon kernel: Intel machine check reporting enabled on CPU#0.
Feb  6 02:27:48 gluon kernel: Enabling fast FPU save and restore... done.
Feb  6 02:27:48 gluon kernel: Checking 'hlt' instruction... OK.
Feb  6 02:27:48 gluon kernel: POSIX conformance testing by UNIFIX
Feb  6 02:27:48 gluon kernel: CPU0: AMD Duron(tm) Processor stepping 01
Feb  6 02:27:48 gluon kernel: per-CPU timeslice cutoff: 182.91 usecs.
Feb  6 02:27:48 gluon kernel: task migration cache decay timeout: 1 msecs.
Feb  6 02:27:48 gluon kernel: SMP motherboard not detected.
Feb  6 02:27:48 gluon kernel: enabled ExtINT on CPU#0
Feb  6 02:27:48 gluon kernel: ESR value before enabling vector: 00000000
Feb  6 02:27:48 gluon kernel: ESR value after enabling vector: 00000000
Feb  6 02:27:48 gluon kernel: Using local APIC timer interrupts.
Feb  6 02:27:48 gluon kernel: calibrating APIC timer ...
Feb  6 02:27:48 gluon kernel: ..... CPU clock speed is 907.0977 MHz.
Feb  6 02:27:48 gluon kernel: ..... host bus clock speed is 201.0772 MHz.
Feb  6 02:27:48 gluon kernel: Starting migration thread for cpu 0
Feb  6 02:27:48 gluon kernel: CPUS done 0
Feb  6 02:27:48 gluon kernel: NET: Registered protocol family 16
Feb  6 02:27:48 gluon kernel: spurious 8259A interrupt: IRQ7.
Feb  6 02:27:48 gluon kernel: PCI: PCI BIOS revision 2.10 entry at 0xf1180, last bus=1
Feb  6 02:27:48 gluon kernel: PCI: Using configuration type 1
Feb  6 02:27:48 gluon kernel: mtrr: v2.0 (20020519)
Feb  6 02:27:48 gluon kernel: ACPI: Subsystem revision 20040116
Feb  6 02:27:48 gluon kernel: ACPI: IRQ9 SCI: Edge set to Level Trigger.
Feb  6 02:27:48 gluon kernel: ACPI: Interpreter enabled
Feb  6 02:27:48 gluon kernel: ACPI: Using PIC for interrupt routing
Feb  6 02:27:48 gluon kernel: ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
Feb  6 02:27:48 gluon kernel: ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 12 14 15)
Feb  6 02:27:48 gluon kernel: ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 11 12 14 15)
Feb  6 02:27:48 gluon kernel: ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
Feb  6 02:27:48 gluon kernel: ACPI: PCI Root Bridge [PCI0] (00:00)
Feb  6 02:27:48 gluon kernel: PCI: Probing PCI hardware (bus 00)
Feb  6 02:27:48 gluon kernel: SCSI subsystem initialized
Feb  6 02:27:48 gluon kernel: drivers/usb/core/usb.c: registered new driver usbfs
Feb  6 02:27:48 gluon kernel: drivers/usb/core/usb.c: registered new driver hub
Feb  6 02:27:48 gluon kernel: ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
Feb  6 02:27:48 gluon kernel: ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
Feb  6 02:27:48 gluon kernel: PCI: Using ACPI for IRQ routing
Feb  6 02:27:48 gluon kernel: PCI: if you experience problems, try using option 'pci=noacpi' or even 'acpi=off'
Feb  6 02:27:48 gluon kernel: SBF: Simple Boot Flag extension found and enabled.
Feb  6 02:27:48 gluon kernel: SBF: Setting boot flags 0x1
Feb  6 02:27:48 gluon kernel: Machine check exception polling timer started.
Feb  6 02:27:48 gluon kernel: ikconfig 0.7 with /proc/config*
Feb  6 02:27:48 gluon kernel: VFS: Disk quotas dquot_6.5.1
Feb  6 02:27:48 gluon kernel: devfs: v1.22 (20021013) Richard Gooch (rgooch@atnf.csiro.au)
Feb  6 02:27:48 gluon kernel: devfs: boot_options: 0x1
Feb  6 02:27:48 gluon kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Feb  6 02:27:48 gluon kernel: udf: registering filesystem
Feb  6 02:27:48 gluon kernel: SGI XFS with ACLs, realtime, large block numbers, no debug enabled
Feb  6 02:27:48 gluon kernel: SGI XFS Quota Management subsystem
Feb  6 02:27:48 gluon kernel: Applying VIA southbridge workaround.
Feb  6 02:27:48 gluon kernel: PCI: Disabling Via external APIC routing
Feb  6 02:27:48 gluon kernel: ACPI: Power Button (FF) [PWRF]
Feb  6 02:27:48 gluon kernel: ACPI: Processor [CPU0] (supports C1 C2, 16 throttling states)
Feb  6 02:27:48 gluon kernel: pty: 256 Unix98 ptys configured
Feb  6 02:27:48 gluon kernel: lp: driver loaded but no devices found
Feb  6 02:27:48 gluon kernel: ppdev: user-space parallel port driver
Feb  6 02:27:48 gluon kernel: Linux agpgart interface v0.100 (c) Dave Jones
Feb  6 02:27:48 gluon kernel: agpgart: Detected VIA Twister-K/KT133x/KM133 chipset
Feb  6 02:27:48 gluon kernel: agpgart: Maximum main memory to use for agp memory: 203M
Feb  6 02:27:48 gluon kernel: agpgart: AGP aperture is 64M @ 0xe4000000
Feb  6 02:27:48 gluon kernel: Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
Feb  6 02:27:48 gluon kernel: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Feb  6 02:27:48 gluon kernel: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Feb  6 02:27:48 gluon kernel: parport0: PC-style at 0x378 [PCSPP,TRISTATE,EPP]
Feb  6 02:27:48 gluon kernel: lp0: using parport0 (polling).
Feb  6 02:27:48 gluon kernel: parport_pc: Via 686A parallel port: io=0x378
Feb  6 02:27:48 gluon kernel: RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Feb  6 02:27:48 gluon kernel: loop: loaded (max 8 devices)
Feb  6 02:27:48 gluon kernel: 8139too Fast Ethernet driver 0.9.26
Feb  6 02:27:48 gluon kernel: PCI: Enabling device 0000:00:0d.0 (0004 -> 0007)
Feb  6 02:27:48 gluon kernel: eth0: RealTek RTL8139 at 0xd0820000, 00:30:f1:50:8a:22, IRQ 10
Feb  6 02:27:48 gluon kernel: Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
Feb  6 02:27:48 gluon kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Feb  6 02:27:48 gluon kernel: VP_IDE: IDE controller at PCI slot 0000:00:04.1
Feb  6 02:27:48 gluon kernel: VP_IDE: chipset revision 6
Feb  6 02:27:48 gluon kernel: VP_IDE: not 100%% native mode: will probe irqs later
Feb  6 02:27:48 gluon kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Feb  6 02:27:48 gluon kernel: VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci0000:00:04.1
Feb  6 02:27:48 gluon kernel:     ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hda:pio, hdb:DMA
Feb  6 02:27:48 gluon kernel:     ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:pio, hdd:DMA
Feb  6 02:27:48 gluon kernel: hdb: Maxtor 4D040H2, ATA DISK drive
Feb  6 02:27:48 gluon kernel: Using anticipatory io scheduler
Feb  6 02:27:48 gluon kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Feb  6 02:27:48 gluon kernel: hdd: ASUS CRW-4824A, ATAPI CD/DVD-ROM drive
Feb  6 02:27:48 gluon kernel: ide1 at 0x170-0x177,0x376 on irq 15
Feb  6 02:27:48 gluon kernel: hdb: max request size: 1024KiB
Feb  6 02:27:48 gluon kernel: hdb: 80043264 sectors (40982 MB) w/2048KiB Cache, CHS=16383/255/63, UDMA(100)
Feb  6 02:27:48 gluon kernel:  /dev/ide/host0/bus0/target1/lun0: p1 p2 p3 p4 < p5 p6 p7 >
Feb  6 02:27:48 gluon kernel: hdd: ATAPI 52X CD-ROM CD-R/RW CD-MRW drive, 2048kB Cache, UDMA(33)
Feb  6 02:27:48 gluon kernel: Uniform CD-ROM driver Revision: 3.20
Feb  6 02:27:48 gluon kernel: drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1
Feb  6 02:27:48 gluon kernel: uhci_hcd 0000:00:04.2: UHCI Host Controller
Feb  6 02:27:48 gluon kernel: uhci_hcd 0000:00:04.2: irq 10, io base 0000b400
Feb  6 02:27:48 gluon kernel: uhci_hcd 0000:00:04.2: new USB bus registered, assigned bus number 1
Feb  6 02:27:48 gluon kernel: hub 1-0:1.0: USB hub found
Feb  6 02:27:48 gluon kernel: hub 1-0:1.0: 2 ports detected
Feb  6 02:27:48 gluon kernel: uhci_hcd 0000:00:04.3: UHCI Host Controller
Feb  6 02:27:48 gluon kernel: uhci_hcd 0000:00:04.3: irq 10, io base 0000b000
Feb  6 02:27:48 gluon kernel: uhci_hcd 0000:00:04.3: new USB bus registered, assigned bus number 2
Feb  6 02:27:48 gluon kernel: hub 2-0:1.0: USB hub found
Feb  6 02:27:48 gluon kernel: hub 2-0:1.0: 2 ports detected
Feb  6 02:27:48 gluon kernel: drivers/usb/core/usb.c: registered new driver usblp
Feb  6 02:27:48 gluon kernel: drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Feb  6 02:27:48 gluon kernel: Initializing USB Mass Storage driver...
Feb  6 02:27:48 gluon kernel: drivers/usb/core/usb.c: registered new driver usb-storage
Feb  6 02:27:48 gluon kernel: USB Mass Storage support registered.
Feb  6 02:27:48 gluon kernel: drivers/usb/core/usb.c: registered new driver hid
Feb  6 02:27:48 gluon kernel: drivers/usb/input/hid-core.c: v2.0:USB HID core driver
Feb  6 02:27:48 gluon kernel: mice: PS/2 mouse device common for all mice
Feb  6 02:27:48 gluon kernel: input: PC Speaker
Feb  6 02:27:48 gluon kernel: serio: i8042 AUX port at 0x60,0x64 irq 12
Feb  6 02:27:48 gluon kernel: input: GenPS/2 Genius Wheel Mouse on isa0060/serio1
Feb  6 02:27:48 gluon kernel: serio: i8042 KBD port at 0x60,0x64 irq 1
Feb  6 02:27:48 gluon kernel: input: AT Translated Set 2 keyboard on isa0060/serio0
Feb  6 02:27:48 gluon kernel: I2O Core - (C) Copyright 1999 Red Hat Software
Feb  6 02:27:48 gluon kernel: I2O: Event thread created as pid 15
Feb  6 02:27:48 gluon kernel: i2o: Checking for PCI I2O controllers...
Feb  6 02:27:48 gluon kernel: I2O configuration manager v 0.04.
Feb  6 02:27:48 gluon kernel:   (C) Copyright 1999 Red Hat Software
Feb  6 02:27:48 gluon kernel: Advanced Linux Sound Architecture Driver Version 0.9.7 (Thu Sep 25 19:16:36 2003 UTC).
Feb  6 02:27:48 gluon kernel: ALSA device list:
Feb  6 02:27:48 gluon kernel:   No soundcards found.
Feb  6 02:27:48 gluon kernel: pktgen.c: v1.3: Packet Generator for packet performance testing.
Feb  6 02:27:48 gluon kernel: NET: Registered protocol family 2
Feb  6 02:27:48 gluon kernel: IP: routing cache hash table of 2048 buckets, 16Kbytes
Feb  6 02:27:48 gluon kernel: TCP: Hash tables configured (established 16384 bind 16384)
Feb  6 02:27:48 gluon kernel: ip_tables: (C) 2000-2002 Netfilter core team
Feb  6 02:27:48 gluon kernel: ipt_recent v0.3.1: Stephen Frost <sfrost@snowman.net>.  http://snowman.net/projects/ipt_recent/
Feb  6 02:27:48 gluon kernel: arp_tables: (C) 2002 David S. Miller
Feb  6 02:27:48 gluon kernel: NET: Registered protocol family 1
Feb  6 02:27:48 gluon kernel: NET: Registered protocol family 17
Feb  6 02:27:48 gluon kernel: Bridge firewalling registered
Feb  6 02:27:48 gluon kernel: ACPI: (supports S0 S1 S4 S5)
Feb  6 02:27:48 gluon kernel: UDF-fs: No VRS found
Feb  6 02:27:48 gluon kernel: XFS mounting filesystem hdb1
Feb  6 02:27:48 gluon kernel: VFS: Mounted root (xfs filesystem).
Feb  6 02:27:48 gluon kernel: Mounted devfs on /dev
Feb  6 02:27:48 gluon kernel: Freeing unused kernel memory: 400k freed
Feb  6 02:27:48 gluon kernel: kjournald starting.  Commit interval 5 seconds
Feb  6 02:27:48 gluon kernel: EXT3 FS on hdb6, internal journal
Feb  6 02:27:48 gluon kernel: EXT3-fs: mounted filesystem with ordered data mode.
Feb  6 02:27:48 gluon kernel: XFS mounting filesystem hdb7
Feb  6 02:27:48 gluon kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG]: kernel BUG at mm/swapfile.c:806! (2.6)
  2004-02-06  1:29 [BUG]: kernel BUG at mm/swapfile.c:806! (2.6) "Good Oleg" 
@ 2004-02-06  1:57 ` Andrew Morton
  2004-02-06  2:40 ` Rik van Riel
  2004-02-06  7:21 ` Hugh Dickins
  2 siblings, 0 replies; 7+ messages in thread
From: Andrew Morton @ 2004-02-06  1:57 UTC (permalink / raw)
  To: Good Oleg; +Cc: linux-kernel

"Good Oleg"   <olecom.gnu-linux@mail.ru> wrote:
>
> PC(see below) 256Mib of RAM, linux-2.6.2, 300Mib swap file (swapon /mnt/swap/swap)
> When programs cause big memory usage i have this
> (since my 2.4.22 to 2.6.0-test11 migration):
> 
> Feb  6 02:26:27 gluon kernel: ------------[ cut here ]------------
> Feb  6 02:26:27 gluon kernel: kernel BUG at mm/swapfile.c:806!
> Feb  6 02:26:27 gluon kernel: invalid operand: 0000 [#1]
> Feb  6 02:26:27 gluon kernel: CPU:    0
> Feb  6 02:26:27 gluon kernel: EIP:    0060:[<c015c7c4>]    Tainted: PFS
> Feb  6 02:26:27 gluon kernel: EFLAGS: 00010246
> Feb  6 02:26:27 gluon kernel: EIP is at map_swap_page+0x34/0x60

Are you using the swapd daemon?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG]: kernel BUG at mm/swapfile.c:806! (2.6)
  2004-02-06  1:29 [BUG]: kernel BUG at mm/swapfile.c:806! (2.6) "Good Oleg" 
  2004-02-06  1:57 ` Andrew Morton
@ 2004-02-06  2:40 ` Rik van Riel
  2004-02-06  7:21 ` Hugh Dickins
  2 siblings, 0 replies; 7+ messages in thread
From: Rik van Riel @ 2004-02-06  2:40 UTC (permalink / raw)
  To: "Good Oleg" ; +Cc: linux-kernel

On Fri, 6 Feb 2004, [koi8-r] "Good Oleg[koi8-r] "  wrote:

> Feb  6 02:26:27 gluon kernel: ------------[ cut here ]------------
> Feb  6 02:26:27 gluon kernel: kernel BUG at mm/swapfile.c:806!
> Feb  6 02:26:27 gluon kernel: invalid operand: 0000 [#1]
> Feb  6 02:26:27 gluon kernel: CPU:    0
> Feb  6 02:26:27 gluon kernel: EIP:    0060:[<c015c7c4>]    Tainted: PFS
                                                                      ^^^
> Feb  6 02:26:27 gluon kernel: EFLAGS: 00010246
> Feb  6 02:26:27 gluon kernel: EIP is at map_swap_page+0x34/0x60

Can you reproduce the problem without proprietary drivers loaded ?

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG]: kernel BUG at mm/swapfile.c:806! (2.6)
  2004-02-06  1:29 [BUG]: kernel BUG at mm/swapfile.c:806! (2.6) "Good Oleg" 
  2004-02-06  1:57 ` Andrew Morton
  2004-02-06  2:40 ` Rik van Riel
@ 2004-02-06  7:21 ` Hugh Dickins
  2004-02-06 15:57   ` marcel cotta
  2 siblings, 1 reply; 7+ messages in thread
From: Hugh Dickins @ 2004-02-06  7:21 UTC (permalink / raw)
  To: "Good Oleg" ; +Cc: Andrew Morton, marcel cotta, linux-kernel

On Fri, 6 Feb 2004, [koi8-r] "Good Oleg[koi8-r] "  wrote:

> PC(see below) 256Mib of RAM, linux-2.6.2, 300Mib swap file (swapon /mnt/swap/swap)
> When programs cause big memory usage i have this
> (since my 2.4.22 to 2.6.0-test11 migration):
> 
> Feb  6 02:26:27 gluon kernel: ------------[ cut here ]------------
> Feb  6 02:26:27 gluon kernel: kernel BUG at mm/swapfile.c:806!
> Feb  6 02:26:27 gluon kernel: invalid operand: 0000 [#1]
> Feb  6 02:26:27 gluon kernel: CPU:    0
> Feb  6 02:26:27 gluon kernel: EIP:    0060:[<c015c7c4>]    Tainted: PFS
> Feb  6 02:26:27 gluon kernel: EFLAGS: 00010246
> Feb  6 02:26:27 gluon kernel: EIP is at map_swap_page+0x34/0x60

[ helpful info snipped ]

Interesting, thank you.  That's the second report (first on 16 Jan,
and in that case Not Tainted).  I looked around and found some bugs in
the swapfile page accounting (if swapfile filesystem blocksize < 4k:
is yours?  never heard back from Marcel on that) - still intermittently
working on and testing the fixes there - but in the end nothing which
would actually cause this BUG.  Was rather thinking it came from slab
corruption, but a second report makes that (a little) less likely.
I'll look again later on, but other eyes may find it sooner.

Hugh


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG]: kernel BUG at mm/swapfile.c:806! (2.6)
  2004-02-06  7:21 ` Hugh Dickins
@ 2004-02-06 15:57   ` marcel cotta
  0 siblings, 0 replies; 7+ messages in thread
From: marcel cotta @ 2004-02-06 15:57 UTC (permalink / raw)
  To: Hugh Dickins; +Cc: Good Oleg, Andrew Morton, linux-kernel

Hugh Dickins wrote:
> On Fri, 6 Feb 2004, [koi8-r] "Good Oleg[koi8-r] "  wrote:
> 
> 
>>PC(see below) 256Mib of RAM, linux-2.6.2, 300Mib swap file (swapon /mnt/swap/swap)
>>When programs cause big memory usage i have this
>>(since my 2.4.22 to 2.6.0-test11 migration):
>>
>>Feb  6 02:26:27 gluon kernel: ------------[ cut here ]------------
>>Feb  6 02:26:27 gluon kernel: kernel BUG at mm/swapfile.c:806!
>>Feb  6 02:26:27 gluon kernel: invalid operand: 0000 [#1]
>>Feb  6 02:26:27 gluon kernel: CPU:    0
>>Feb  6 02:26:27 gluon kernel: EIP:    0060:[<c015c7c4>]    Tainted: PFS
>>Feb  6 02:26:27 gluon kernel: EFLAGS: 00010246
>>Feb  6 02:26:27 gluon kernel: EIP is at map_swap_page+0x34/0x60
> 
> 
> [ helpful info snipped ]
> 
> Interesting, thank you.  That's the second report (first on 16 Jan,
> and in that case Not Tainted).  I looked around and found some bugs in
> the swapfile page accounting (if swapfile filesystem blocksize < 4k:
> is yours?  never heard back from Marcel on that) - still intermittently
> working on and testing the fixes there - but in the end nothing which
> would actually cause this BUG.  Was rather thinking it came from slab
> corruption, but a second report makes that (a little) less likely.
> I'll look again later on, but other eyes may find it sooner.
> 
> Hugh
> 
> 
> 

oops, i thought i told you that my blocksize is exactly 4k - sorry

btw, i hit this bug again a few days after i reported it
one time it went crazy and oopsed 8 times in about 8 minutes

i think it only happened when the system was swapping heavily
(swapd creating new swapfiles as fast as it could) and i manually
swapon'ed another (bigger, ~50MB) swapfile by hand

marcel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG]: kernel BUG at mm/swapfile.c:806! (2.6)
@ 2004-02-06 18:36 "Good Oleg" 
  2004-02-06 21:36 ` Hugh Dickins
  0 siblings, 1 reply; 7+ messages in thread
From: "Good Oleg"  @ 2004-02-06 18:36 UTC (permalink / raw)
  To: "Rik van Riel" ; +Cc: linux-kernel, "Hugh Dickins" 

[-- Attachment #1: Type: text/plain, Size: 2079 bytes --]

REM: TNX, for all that, and good luck with all of Your's

-----Original Message-----
From: Andrew Morton <akpm@osdl.org>
To: "Good Oleg"   <olecom.gnu-linux@mail.ru>
Date: Thu, 5 Feb 2004 17:57:23 -0800
Subject: Re: [BUG]: kernel BUG at mm/swapfile.c:806! (2.6)

> 
> Are you using the swapd daemon?
> 

gluon:/home/olecom# ps aux | grep swap
root         9  0.0  0.0     0    0 ?        SW   20:12   0:00 [kswapd0]
root       651  0.0  0.2  3632  720 pts/3    S    20:20   0:00 grep swap
gluon:/home/olecom# swapon /mnt/swap/swap 
gluon:/home/olecom# ps aux | grep swap
root         9  0.0  0.0     0    0 ?        SW   20:12   0:00 [kswapd0]
root       667  0.0  0.2  3632  720 pts/3    S    20:21   0:00 grep swap
gluon:/home/olecom# swapoff /mnt/swap/swap 
gluon:/home/olecom# ps aux | grep swap
root         9  0.0  0.0     0    0 ?        SW   20:12   0:00 [kswapd0]
root       683  0.0  0.2  3632  720 pts/3    S    20:21   0:00 grep swap
gluon:/home/olecom#

AFAIK, i use no additionaly daemons for swap.

-----Original Message-----
From: Rik van Riel <riel@redhat.com>
To: "Good Oleg"  <olecom.gnu-linux@mail.ru>
Date: Thu, 5 Feb 2004 21:40:31 -0500 (EST)
Subject: Re: [BUG]: kernel BUG at mm/swapfile.c:806! (2.6)

> 
> Can you reproduce the problem without proprietary drivers loaded ?
> 
> -- 

I'd remove all /lib/modules/2.6.2/, reboot my box, `swapon
/mnt/swap/swap`, gimp, gqview, and: see attach syslog_no_modules.txt
(it's "Tainted: G S"), my .config is in attach my_kconfig.txt (grep -e =y /usr/src/linux/.config > my_kconfig.txt)

-----Original Message-----
From: Hugh Dickins <hugh@veritas.com>
To: "Good Oleg"  <olecom.gnu-linux@mail.ru>
Date: Fri, 6 Feb 2004 07:21:54 +0000 (GMT)

Subject: Re: [BUG]: kernel BUG at mm/swapfile.c:806! (2.6)

> Interesting, thank you.  That's the second report (first on 16 Jan,
> and in that case Not Tainted).  I looked around and found some bugs in

I had "Tained: XFS". I have (as You can see) rootfs on xfs, i removed swap file,
i cheked /dev/hda1 completely via xfs_check, made swap via dd. That didn't help.

--
TNX


[-- Attachment #2: syslog_no_modules.txt --]
[-- Type: text/plain, Size: 3198 bytes --]

request_module: failed /sbin/modprobe -- net-pf-10. error = 256
------------[ cut here ]------------
kernel BUG at mm/swapfile.c:806!
invalid operand: 0000 [#1]
CPU:    0
EIP:    0060:[<c015c7c4>]    Tainted: G S
EFLAGS: 00010246
EIP is at map_swap_page+0x34/0x60
eax: cf23d220   ebx: 00000500   ecx: cf23d220   edx: 00000390
esi: c05a1890   edi: cf23d220   ebp: c05a1880   esp: c135fd3c
ds: 007b   es: 007b   ss: 0068
Process kswapd0 (pid: 9, threadinfo=c135e000 task=c13746b0)
Stack: 00000500 c05a1880 c3989e80 c11953c0 c015a9d2 c05a1880 00000500 c11953c0
       c11953c0 c135fdd4 00000000 c015ab11 00000010 c11953c0 c015aa30 00000500
       c135e000 c11953c0 c135fdd4 c135e000 c014cd15 c11953c0 c135fdb4 00000046
Call Trace:
 [<c015a9d2>] get_swap_bio+0x52/0xb0
 [<c015ab11>] swap_writepage+0x41/0xf0
 [<c015aa30>] end_swap_bio_write+0x0/0x50
 [<c014cd15>] shrink_list+0x3e5/0x6b0
 [<c014ba68>] __pagevec_release+0x28/0x40
 [<c014d1b1>] shrink_cache+0x1d1/0x390
 [<c014d9f4>] shrink_zone+0x94/0xc0
 [<c014de01>] balance_pgdat+0x1a1/0x230
 [<c014dfbf>] kswapd+0x12f/0x150
 [<c01245c0>] autoremove_wake_function+0x0/0x50
 [<c010b4b2>] ret_from_fork+0x6/0x14
 [<c01245c0>] autoremove_wake_function+0x0/0x50
 [<c014de90>] kswapd+0x0/0x150
 [<c01092a9>] kernel_thread_helper+0x5/0xc

Code: 0f 0b 26 03 72 44 46 c0 eb d6 8b 40 04 eb e8 29 d3 31 d2 89
 ------------[ cut here ]------------
kernel BUG at mm/swapfile.c:806!
invalid operand: 0000 [#2]
CPU:    0
EIP:    0060:[<c015c7c4>]    Tainted: G S
EFLAGS: 00010246
EIP is at map_swap_page+0x34/0x60
eax: cf23d420   ebx: 00000501   ecx: cf23d420   edx: 000000e0
esi: c05a1890   edi: cf23d420   ebp: c05a1880   esp: caf87a74
ds: 007b   es: 007b   ss: 0068
Process gimp (pid: 944, threadinfo=caf86000 task=cafaace0)
Stack: 00000501 c05a1880 cd109cc0 c1195370 c015a9d2 c05a1880 00000501 c1195370
       c1195370 caf87b0c 00000000 c015ab11 00000010 c1195370 c015aa30 00000501
       caf86000 c1195370 caf87b0c caf86000 c014cd15 c1195370 caf87aec cffe4a10
Call Trace:
 [<c015a9d2>] get_swap_bio+0x52/0xb0
 [<c015ab11>] swap_writepage+0x41/0xf0
 [<c015aa30>] end_swap_bio_write+0x0/0x50
 [<c014cd15>] shrink_list+0x3e5/0x6b0
 [<c014d1b1>] shrink_cache+0x1d1/0x390
 [<c014d9f4>] shrink_zone+0x94/0xc0
 [<c014dad8>] shrink_caches+0xb8/0xd0
 [<c014db9c>] try_to_free_pages+0xac/0x170
 [<c01465c2>] __alloc_pages+0x1d2/0x350
 [<c0148830>] do_page_cache_readahead+0x160/0x1c0
 [<c01489f3>] page_cache_readahead+0x163/0x1a0
 [<c0142791>] do_generic_mapping_read+0xe1/0x3e0
 [<c0142a90>] file_read_actor+0x0/0x100
 [<c0142d7f>] __generic_file_aio_read+0x1ef/0x220
 [<c0142a90>] file_read_actor+0x0/0x100
 [<c028e1fa>] xfs_ichgtime+0x10a/0x10c
 [<c02ba2f1>] xfs_read+0x171/0x2a0
 [<c033bd03>] __ide_dma_count+0x13/0x20
 [<c033ba30>] __ide_dma_read+0xd0/0xe0
 [<c033b650>] dma_timer_expiry+0x0/0x90
 [<c02b5c4d>] linvfs_read+0x8d/0xa0
 [<c016036b>] do_sync_read+0x8b/0xc0
 [<c011f401>] do_page_fault+0x341/0x53e
 [<c012f96b>] update_wall_time+0xb/0x40
 [<c0160458>] vfs_read+0xb8/0x130
 [<c015fd80>] generic_file_llseek+0x0/0xe0
 [<c0160702>] sys_read+0x42/0x70
 [<c010b5db>] syscall_call+0x7/0xb

Code: 0f 0b 26 03 72 44 46 c0 eb d6 8b 40 04 eb e8 29 d3 31 d2 89

[-- Attachment #3: my_kconfig.txt --]
[-- Type: text/plain, Size: 5912 bytes --]

CONFIG_X86=y
CONFIG_MMU=y
CONFIG_UID16=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_EXPERIMENTAL=y
CONFIG_CLEAN_COMPILE=y
CONFIG_STANDALONE=y
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSCTL=y
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_KALLSYMS=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
CONFIG_KMOD=y
CONFIG_X86_PC=y
CONFIG_MK7=y
CONFIG_X86_GENERIC=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_USE_3DNOW=y
CONFIG_HPET_TIMER=y
CONFIG_SMP=y
CONFIG_PREEMPT=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_TSC=y
CONFIG_X86_MCE=y
CONFIG_X86_MCE_NONFATAL=y
CONFIG_X86_MCE_P4THERMAL=y
CONFIG_X86_CPUID=y
CONFIG_NOHIGHMEM=y
CONFIG_MTRR=y
CONFIG_HAVE_DEC_LOCK=y
CONFIG_PM=y
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
CONFIG_APM_CPU_IDLE=y
CONFIG_APM_RTC_IS_GMT=y
CONFIG_PCI=y
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_NAMES=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_MISC=y
CONFIG_PARPORT=y
CONFIG_PARPORT_PC=y
CONFIG_PARPORT_1284=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_LBD=y
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDESCSI=y
CONFIG_IDE_TASKFILE_IO=y
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_CMD640=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_GENERIC=y
CONFIG_BLK_DEV_RZ1000=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_AMD74XX=y
CONFIG_BLK_DEV_PIIX=y
CONFIG_BLK_DEV_VIA82CXXX=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y
CONFIG_BLK_DEV_SD=y
CONFIG_CHR_DEV_SG=y
CONFIG_SCSI_REPORT_LUNS=y
CONFIG_SCSI_SATA=y
CONFIG_SCSI_QLA2XXX_CONFIG=y
CONFIG_I2O=y
CONFIG_NET=y
CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y
CONFIG_SYN_COOKIES=y
CONFIG_BRIDGE=y
CONFIG_NETFILTER=y
CONFIG_BRIDGE_NETFILTER=y
CONFIG_IP_NF_QUEUE=y
CONFIG_IP_NF_IPTABLES=y
CONFIG_IP_NF_MATCH_LIMIT=y
CONFIG_IP_NF_MATCH_IPRANGE=y
CONFIG_IP_NF_MATCH_MAC=y
CONFIG_IP_NF_MATCH_PKTTYPE=y
CONFIG_IP_NF_MATCH_MARK=y
CONFIG_IP_NF_MATCH_MULTIPORT=y
CONFIG_IP_NF_MATCH_TOS=y
CONFIG_IP_NF_MATCH_RECENT=y
CONFIG_IP_NF_MATCH_ECN=y
CONFIG_IP_NF_MATCH_DSCP=y
CONFIG_IP_NF_MATCH_AH_ESP=y
CONFIG_IP_NF_MATCH_LENGTH=y
CONFIG_IP_NF_MATCH_TTL=y
CONFIG_IP_NF_MATCH_TCPMSS=y
CONFIG_IP_NF_MATCH_OWNER=y
CONFIG_IP_NF_MATCH_PHYSDEV=y
CONFIG_IP_NF_FILTER=y
CONFIG_IP_NF_TARGET_REJECT=y
CONFIG_IP_NF_NAT_NEEDED=y
CONFIG_IP_NF_NAT_LOCAL=y
CONFIG_IP_NF_MANGLE=y
CONFIG_IP_NF_TARGET_TOS=y
CONFIG_IP_NF_TARGET_ECN=y
CONFIG_IP_NF_TARGET_DSCP=y
CONFIG_IP_NF_TARGET_MARK=y
CONFIG_IP_NF_TARGET_CLASSIFY=y
CONFIG_IP_NF_TARGET_LOG=y
CONFIG_IP_NF_TARGET_ULOG=y
CONFIG_IP_NF_TARGET_TCPMSS=y
CONFIG_IP_NF_ARPTABLES=y
CONFIG_IP_NF_ARPFILTER=y
CONFIG_IP_NF_ARP_MANGLE=y
CONFIG_IPV6_SCTP__=y
CONFIG_NET_PKTGEN=y
CONFIG_NETDEVICES=y
CONFIG_NET_ETHERNET=y
CONFIG_MII=y
CONFIG_NET_PCI=y
CONFIG_8139TOO=y
CONFIG_PPP_MULTILINK=y
CONFIG_IRDA_ULTRA=y
CONFIG_IRDA_DEBUG=y
CONFIG_INPUT=y
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_SOUND_GAMEPORT=y
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
CONFIG_MOUSE_SERIAL=y
CONFIG_INPUT_MISC=y
CONFIG_INPUT_PCSPKR=y
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
CONFIG_SERIAL_8250_ACPI=y
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_DETECT_IRQ=y
CONFIG_UNIX98_PTYS=y
CONFIG_PRINTER=y
CONFIG_PPDEV=y
CONFIG_GEN_RTC_X=y
CONFIG_AGP=y
CONFIG_AGP_VIA=y
CONFIG_DRM=y
CONFIG_VGA_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_SOUND=y
CONFIG_SND=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_STORAGE=y
CONFIG_USB_STORAGE_DEBUG=y
CONFIG_USB_GADGET_NET2280=y
CONFIG_EXT2_FS=y
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
CONFIG_JBD=y
CONFIG_FS_MBCACHE=y
CONFIG_FS_POSIX_ACL=y
CONFIG_XFS_FS=y
CONFIG_XFS_RT=y
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_ROMFS_FS=y
CONFIG_QUOTA=y
CONFIG_QUOTACTL=y
CONFIG_AUTOFS4_FS=y
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_UDF_FS=y
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_DEVFS_FS=y
CONFIG_DEVFS_MOUNT=y
CONFIG_DEVPTS_FS=y
CONFIG_DEVPTS_FS_XATTR=y
CONFIG_DEVPTS_FS_SECURITY=y
CONFIG_TMPFS=y
CONFIG_RAMFS=y
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_V4=y
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_TCP=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=y
CONFIG_SUNRPC=y
CONFIG_SMB_FS=y
CONFIG_SMB_NLS_DEFAULT=y
CONFIG_MSDOS_PARTITION=y
CONFIG_NLS=y
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_CODEPAGE_850=y
CONFIG_NLS_CODEPAGE_855=y
CONFIG_NLS_CODEPAGE_866=y
CONFIG_NLS_CODEPAGE_1251=y
CONFIG_NLS_ISO8859_1=y
CONFIG_NLS_ISO8859_5=y
CONFIG_NLS_ISO8859_15=y
CONFIG_NLS_KOI8_R=y
CONFIG_NLS_KOI8_U=y
CONFIG_NLS_UTF8=y
CONFIG_DEBUG_KERNEL=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_SPINLOCK_SLEEP=y
CONFIG_X86_FIND_SMP_CONFIG=y
CONFIG_X86_MPPARSE=y
CONFIG_CRC32=y
CONFIG_X86_SMP=y
CONFIG_X86_HT=y
CONFIG_X86_BIOS_REBOOT=y
CONFIG_X86_TRAMPOLINE=y
CONFIG_PC=y

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [BUG]: kernel BUG at mm/swapfile.c:806! (2.6)
  2004-02-06 18:36 "Good Oleg" 
@ 2004-02-06 21:36 ` Hugh Dickins
  0 siblings, 0 replies; 7+ messages in thread
From: Hugh Dickins @ 2004-02-06 21:36 UTC (permalink / raw)
  To: Good Oleg; +Cc: Andrew Morton, Rik van Riel, marcel cotta, linux-kernel

This should fix your swapfile.c:806.
Looks like mail.ru XFS users get more jumbled block allocations.
I've other fixes and tidyups hereabouts, but they can wait.

Hugh

--- 2.6.2/mm/swapfile.c	2004-02-04 02:45:17.000000000 +0000
+++ linux/mm/swapfile.c	2004-02-06 21:21:08.011274104 +0000
@@ -841,7 +841,8 @@
 	lh = sis->extent_list.next;	/* The highest-addressed block */
 	while (lh != &sis->extent_list) {
 		se = list_entry(lh, struct swap_extent, list);
-		if (se->start_block + se->nr_pages == start_block) {
+		if (se->start_block + se->nr_pages == start_block &&
+		    se->start_page  + se->nr_pages == start_page) {
 			/* Merge it */
 			se->nr_pages += nr_pages;
 			return 0;


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-02-06 21:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-06  1:29 [BUG]: kernel BUG at mm/swapfile.c:806! (2.6) "Good Oleg" 
2004-02-06  1:57 ` Andrew Morton
2004-02-06  2:40 ` Rik van Riel
2004-02-06  7:21 ` Hugh Dickins
2004-02-06 15:57   ` marcel cotta
  -- strict thread matches above, loose matches on Subject: below --
2004-02-06 18:36 "Good Oleg" 
2004-02-06 21:36 ` Hugh Dickins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox