From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 28 Jan 2003 11:36:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 28 Jan 2003 11:36:18 -0500 Received: from asplinux.ru ([195.133.213.194]:39694 "EHLO relay.asplinux.ru") by vger.kernel.org with ESMTP id ; Tue, 28 Jan 2003 11:36:15 -0500 From: "Denis V. Lunev" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15926.45962.729604.789545@artemis.asplinux.ru> Date: Tue, 28 Jan 2003 19:44:58 +0300 To: linux-kernel@vger.kernel.org Subject: [BUG] 100% reproducable OOPS in 2.4.20 on ext3 after swapon X-Mailer: VM 7.00 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hello! Recently I have found a serious problem in sys_swapon/ext3 code. The host configuration is the following [root@ts3 root]# mount /dev/sda2 on / type ext2 (rw) /dev/sdd1 on /vz type ext3 (rw) [root@ts3 root]# if one executes [root@ts3 root]# strace swapon /dev/sdd1 ......skipped..... stat64("/dev/sdd1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 49), ...}) = 0 swapon("/dev/sdd1") = -1 EINVAL (Invalid argument) OOPS will occure after some time (kjournald, unmapped buffer in __make_request), see the letter end. The shit was caused by the following trace discard_buffer Trace; c0140d94 Trace; c012e208 Trace; c012e224 Trace; c012e3e6 Trace; c012e49a Trace; c0144770 Trace; c0144866 Trace; c0138bc0 Trace; c0106fd2 which discards buffer held in the journal->j_sb_buffer :((( I do not see the obvious way to fix the problem right now. Please note, that this partition is already mounted and swapon fails, but the journal becomes corrupted :( Regards, Denis V. Lunev P.S. OOPS decoded root@ts3 root]# dmesg | tail -17 | ksymoops -VKLO -m /boot/System.map-2.4.20-smp ksymoops 2.4.4 on i686 2.4.20-smp. Options used -V (specified) -K (specified) -L (specified) -O (specified) -m /boot/System.map-2.4.20-smp (specified) invalid operand: 0000 CPU: 0 EIP: 0010:[] Tainted: P Using defaults from ksymoops -t elf32-i386 -a i386 EFLAGS: 00010246 eax: 00004000 ebx: 00000002 ecx: 00000831 edx: 00000002 esi: f3373440 edi: 00000001 ebp: 0222e3d7 esp: f3367d6c ds: 0018 es: 0018 ss: 0018 Process kjournald (pid: 140, stackpage=f3367000) Stack: 00004000 f3ab9bf8 db6db6db 6db6db6d 00000000 00000000 00000002 00000934 db6db6db 6db6db6d db6db6db 6db6db6d db6db6db 6db6db6d db6db6db 6db6db6d db6db6db 6db6db6d db6db6db 6db6db6d db6db6db 00000002 f3373440 00000934 Call Trace: [] [] [] [] [] [] [] [] [] [] [] [] Code: 0f 0b 56 57 e8 0a e9 f7 ff 5b 89 c6 0f b7 4e 14 5d 89 c8 c1 >>EIP; c01bd46d <__make_request+7d/620> <===== Trace; c01bdb1f Trace; c0140703 <__refile_buffer+53/60> Trace; c01bdb7d Trace; c01bdd17 Trace; c0140703 <__refile_buffer+53/60> Trace; c01723a3 Trace; c016e465 Trace; c0114c1a Trace; c0171490 Trace; c01712d0 Trace; c0105626 Trace; c01712f0 Code; c01bd46d <__make_request+7d/620> 00000000 <_EIP>: Code; c01bd46d <__make_request+7d/620> <===== 0: 0f 0b ud2a <===== Code; c01bd46f <__make_request+7f/620> 2: 56 push %esi Code; c01bd470 <__make_request+80/620> 3: 57 push %edi Code; c01bd471 <__make_request+81/620> 4: e8 0a e9 f7 ff call fff7e913 <_EIP+0xfff7e913> c013bd80 Code; c01bd476 <__make_request+86/620> 9: 5b pop %ebx Code; c01bd477 <__make_request+87/620> a: 89 c6 mov %eax,%esi Code; c01bd479 <__make_request+89/620> c: 0f b7 4e 14 movzwl 0x14(%esi),%ecx Code; c01bd47d <__make_request+8d/620> 10: 5d pop %ebp Code; c01bd47e <__make_request+8e/620> 11: 89 c8 mov %ecx,%eax Code; c01bd480 <__make_request+90/620> 13: c1 00 00 roll $0x0,(%eax) [root@ts3 root]#