random bug generator (was: 2.6.21-git4 Scheduler, NOHZ, VFS bugs)

2007-05-05 Thread Michal Piotrowski
Hi,

Michal Piotrowski napisał(a):
 On 04/05/07, Andrew Morton [EMAIL PROTECTED] wrote:
 On Fri, 04 May 2007 18:20:51 +0200 Michal Piotrowski
 [EMAIL PROTECTED] wrote:

  I ran this script tree times,
 
  #! /bin/sh
 
  for i in `find /sys/ -type f`
  do
  echo wyświetlam $i
  sudo cat $i  /dev/null
  done
 
  First run - scheduler bug
  Second run - NOHZ bug
  Third - VFS bug
 
  H...
 
  [93298.252601] BUG: at /mnt/md0/devel/linux-git/kernel/sched.c:3241
 add_preempt_count()
  [93298.260334]  [c0105039] show_trace_log_lvl+0x1a/0x2f
  [93298.265507]  [c0105720] show_trace+0x12/0x14
  [93298.269974]  [c01057d2] dump_stack+0x16/0x18
  [93298.274434]  [c011d18a] add_preempt_count+0x89/0x8b
  [93298.279501]  [c0126492] irq_enter+0xd/0x2e
  [93298.283788]  [c0114c1e] smp_apic_timer_interrupt+0x2a/0x84
  [93298.289458]  [c0104b2b] apic_timer_interrupt+0x33/0x38
  [93298.294783]  [c0257b79] show_uevent+0x58/0xcd
  [93298.299329]  ===
  [93390.468056] NOHZ: local_softirq_pending 22
  [93447.105850] NOHZ: local_softirq_pending 22
  [93450.332884] BUG: unable to handle kernel paging request at
 virtual address 3e343c0c
  [93450.340626]  printing eip:
  [93450.34] c018e2bc
  [93450.345520] *pde = 
  [93450.348314] Oops:  [#1]

 Nice.  What was the last file which it read before crashing?

 Are you able to consistently crash it by reading just that file?
 
 Random files, random bugs (usually it starts with a slab corruption).
 
 git-bisect will give an answer.

So this is a random bug generator...

git-bisect bad
16574dccd8f62dc1b585325f8a6a0aab10047ed8 is first bad commit
commit 16574dccd8f62dc1b585325f8a6a0aab10047ed8
Author: Kay Sievers [EMAIL PROTECTED]
Date:   Fri Apr 6 01:40:38 2007 +0200

Driver core: make uevent-environment available in uevent-file

This allows sysfs to show the environment variables that are available
if the uevent happens.  This lets userspace not have to cache all of
this information as the kernel already knows it.

Signed-off-by: Kay Sievers [EMAIL PROTECTED]
Signed-off-by: Greg Kroah-Hartman [EMAIL PROTECTED]

:04 04 34152258985968083c04ab003ced54d73e92a790 
c3301e8cd7705c293817c6747b3cc59d6cbf14bb M  drivers

http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.21-git4/git-config

Regards,
Michal

-- 
Michal K. K. Piotrowski
Kernel Monkeys
(http://kernel.wikidot.com/start)
-
To unsubscribe from this list: send the line unsubscribe linux-ext4 in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


2.6.21-git4 Scheduler, NOHZ, VFS bugs

2007-05-04 Thread Michal Piotrowski
Hi,

I ran this script tree times,

#! /bin/sh

for i in `find /sys/ -type f`
do
echo wyświetlam $i
sudo cat $i  /dev/null
done

First run - scheduler bug
Second run - NOHZ bug
Third - VFS bug

H...

[93298.252601] BUG: at /mnt/md0/devel/linux-git/kernel/sched.c:3241 
add_preempt_count()
[93298.260334]  [c0105039] show_trace_log_lvl+0x1a/0x2f
[93298.265507]  [c0105720] show_trace+0x12/0x14
[93298.269974]  [c01057d2] dump_stack+0x16/0x18
[93298.274434]  [c011d18a] add_preempt_count+0x89/0x8b
[93298.279501]  [c0126492] irq_enter+0xd/0x2e
[93298.283788]  [c0114c1e] smp_apic_timer_interrupt+0x2a/0x84
[93298.289458]  [c0104b2b] apic_timer_interrupt+0x33/0x38
[93298.294783]  [c0257b79] show_uevent+0x58/0xcd
[93298.299329]  ===
[93390.468056] NOHZ: local_softirq_pending 22
[93447.105850] NOHZ: local_softirq_pending 22
[93450.332884] BUG: unable to handle kernel paging request at virtual address 
3e343c0c
[93450.340626]  printing eip:
[93450.34] c018e2bc
[93450.345520] *pde = 
[93450.348314] Oops:  [#1]
[93450.351105] PREEMPT SMP 
[93450.353683] Modules linked in: iptable_filter ip_tables oprofile 
snd_rtctimer ipt_MASQUERADE nf_nat autofs4 af_packet nf_conntrack_netbios_ns 
ipt_REJECT nf_conntrack_ipv4 xt_state nf_conntrack nfnetlink ip6t_REJECT 
xt_tcpudp ip6table_filter ip6_tables x_tables ipv6 binfmt_misc thermal 
processor fan container nvram snd_intel8x0 snd_ac97_codec ac97_bus 
snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss 
snd_mixer_oss evdev snd_pcm snd_timer snd intel_agp soundcore agpgart 
snd_page_alloc i2c_i801 ide_cd cdrom rtc unix
[93450.402543] CPU:1
[93450.402544] EIP:0060:[c018e2bc]Not tainted VLI
[93450.402546] EFLAGS: 00010213   (2.6.21-gdc87c398-dirty #170)
[93450.415753] EIP is at __find_get_block_slow+0x66/0x105
[93450.420874] eax:    ebx: 3e343c00   ecx: e750adcc   edx: 
[93450.427642] esi: c54ae840   edi: 6665   ebp: f7e26e8c   esp: f7e26e64
[93450.434412] ds: 007b   es: 007b   fs: 00d8  gs:   ss: 0068
[93450.440228] Process kjournald (pid: 379, ti=f7e26000 task=f7e40ad0 
task.ti=f7e26000)
[93450.447774] Stack: f7c742bc f7da2c24 f7e26e84 c01ae271 0046 f7cf90f4 
f7cf9210  
[93450.456278]c602ae40 1000 f7e26ed0 c018e5c7 6665 f7cf9034 
f7e26ec8 0246 
[93450.464786] c01c06e2 f7c742e4 f7c742d0 c01c074b 0246 
f7c742d0 5e41 
[93450.473308] Call Trace:
[93450.475946]  [c0105039] show_trace_log_lvl+0x1a/0x2f
[93450.481098]  [c01050eb] show_stack_log_lvl+0x9d/0xa5
[93450.486249]  [c01052e0] show_registers+0x1ed/0x32c
[93450.491228]  [c0105537] die+0x118/0x22f
[93450.495257]  [c0119729] do_page_fault+0x43a/0x50d
[93450.500149]  [c031f44c] error_code+0x7c/0x84
[93450.504610]  [c018e5c7] __find_get_block+0x91/0x15d
[93450.509675]  [c018e6a9] __getblk+0x16/0x1fb
[93450.514049]  [c01c1157] journal_get_descriptor_buffer+0x2f/0x8c
[93450.520152]  [c01bd042] journal_commit_transaction+0xbfd/0x11d3
[93450.526255]  [c01c0aae] kjournald+0xab/0x1e8
[93450.530714]  [c013341d] kthread+0xb5/0xe0
[93450.534916]  [c0104ccf] kernel_thread_helper+0x7/0x10
[93450.540153]  ===
[93450.543723] Code: 8b 45 f0 83 c0 7c e8 46 09 19 00 8b 06 f6 c4 08 0f 84 96 
00 00 00 8b 06 f6 c4 08 75 04 0f 0b eb fe 8b 5e 0c 89 d9 ba 01 00 00 00 39 7b 
0c 74 76 8b 03 a8 20 b8 00 00 00 00 0f 44 d0 8b 5b 04 39 
[93450.563736] EIP: [c018e2bc] __find_get_block_slow+0x66/0x105 SS:ESP 
0068:f7e26e64

l *0xc018e2bc
0xc018e2bc is in __find_get_block_slow 
(/mnt/md0/devel/linux-git/fs/buffer.c:273).
268 if (!page_has_buffers(page))
269 goto out_unlock;
270 head = page_buffers(page);
271 bh = head;
272 do {
273 if (bh-b_blocknr == block) {
274 ret = bh;
275 get_bh(bh);
276 goto out_unlock;
277 }


[93450.571447] note: kjournald[379] exited with preempt_count 1
[93450.577125] BUG: sleeping function called from invalid context at 
/mnt/md0/devel/linux-git/fs/inode.c:246
[93450.586668] in_atomic():1, irqs_disabled():0
[93450.590937] INFO: lockdep is turned off.
[93450.594862]  [c0105039] show_trace_log_lvl+0x1a/0x2f
[93450.600030]  [c0105720] show_trace+0x12/0x14
[93450.604490]  [c01057d2] dump_stack+0x16/0x18
[93450.608960]  [c011b58c] __might_sleep+0xc9/0xcf
[93450.613695]  [c0183386] clear_inode+0x19/0x118
[93450.618338]  [c019ecf8] proc_delete_inode+0x42/0x46
[93450.623413]  [c018352b] generic_delete_inode+0xa6/0x110
[93450.628840]  [c0182bb8] iput+0x63/0x66
[93450.632783]  [c0180d65] dentry_iput+0x88/0xa2
[93450.637348]  [c0181b9e] prune_one_dentry+0x42/0x65
[93450.642342]  [c0181d4f] prune_dcache+0xcd/0x138
[93450.647071]  [c0181e07] shrink_dcache_parent+0x1c/0xe5
[93450.652397]  [c01a0079] proc_flush_task+0x54/0x1d1
[93450.657392]  [c0123a53] release_task+0x29e/0x2c5

Re: 2.6.21-git4 Scheduler, NOHZ, VFS bugs

2007-05-04 Thread Andrew Morton
On Fri, 04 May 2007 18:20:51 +0200 Michal Piotrowski [EMAIL PROTECTED] wrote:

 I ran this script tree times,
 
 #! /bin/sh
 
 for i in `find /sys/ -type f`
 do
 echo wyświetlam $i
 sudo cat $i  /dev/null
 done
 
 First run - scheduler bug
 Second run - NOHZ bug
 Third - VFS bug
 
 H...
 
 [93298.252601] BUG: at /mnt/md0/devel/linux-git/kernel/sched.c:3241 
 add_preempt_count()
 [93298.260334]  [c0105039] show_trace_log_lvl+0x1a/0x2f
 [93298.265507]  [c0105720] show_trace+0x12/0x14
 [93298.269974]  [c01057d2] dump_stack+0x16/0x18
 [93298.274434]  [c011d18a] add_preempt_count+0x89/0x8b
 [93298.279501]  [c0126492] irq_enter+0xd/0x2e
 [93298.283788]  [c0114c1e] smp_apic_timer_interrupt+0x2a/0x84
 [93298.289458]  [c0104b2b] apic_timer_interrupt+0x33/0x38
 [93298.294783]  [c0257b79] show_uevent+0x58/0xcd
 [93298.299329]  ===
 [93390.468056] NOHZ: local_softirq_pending 22
 [93447.105850] NOHZ: local_softirq_pending 22
 [93450.332884] BUG: unable to handle kernel paging request at virtual address 
 3e343c0c
 [93450.340626]  printing eip:
 [93450.34] c018e2bc
 [93450.345520] *pde = 
 [93450.348314] Oops:  [#1]

Nice.  What was the last file which it read before crashing?

Are you able to consistently crash it by reading just that file?
-
To unsubscribe from this list: send the line unsubscribe linux-ext4 in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html