Skip to contentSkip to conversation

Bug#620896: Bug when listing files/dirs on ncpfs

DISCUSSION Ben Hutchings 1 participant 1 message Apr 5, 2011 1 message not in the archive VFS

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Another report of ncpfs regression in 2.6.38:

Quoted 89 lines · Diego Rubert

Package: linux-2.6
Version: 2.6.38-2
Severity: grave

Got a bug message when listing items on ncpfs filesystem with 'ls' command. Makes mounted filesystem useless.
Trace:

[   48.940407] ------------[ cut here ]------------
[   48.941485] kernel BUG at /build/buildd-
linux-2.6_2.6.38-2-amd64-6G9fmV/linux-2.6-2.6.38/debian/build/source_amd64_none/fs/dcache.c:2134!
[   48.942559] invalid opcode: 0000 [#1] SMP
[   48.943651] last sysfs file: /sys/devices/virtual/sound/timer/uevent
[   48.944386] CPU 1
[   48.944386] Modules linked in: nls_cp437 nls_utf8 parport_pc ncpfs 

ppdev lp
parport snd_hrtimer fuse coretemp loop snd_hda_codec_analog snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_midi snd_rawmidi i915 snd_seq_midi_event snd_seq snd_timer snd_seq_device snd soundcore snd_page_alloc drm_kms_helper drm i2c_algo_bit wmi pcspkr tpm_tis psmouse i2c_i801 tpm i2c_core tpm_bios serio_raw container video processor thermal_sys evdev button ext4 mbcache jbd2 crc16 sg sd_mod sr_mod cdrom crc_t10dif usb_storage usbhid hid uas uhci_hcd ata_generic ata_piix libata ehci_hcd e1000e floppy usbcore scsi_mod nls_base [last unloaded:
scsi_wait_scan]

[   48.944386]
[   48.944386] Pid: 2176, comm: bash Not tainted 2.6.38-2-amd64 #1 LENOVO
6234CY8/LENOVO
[   48.944386] RIP: 0010:[<ffffffff8110716a>]  [<ffffffff8110716a>]
dentry_update_name_case+0x17/0x4f
[   48.944386] RSP: 0018:ffff88006fd8f9c8  EFLAGS: 00010246
[   48.944386] RAX: 0000000000000000 RBX: ffff88005dc853c0 RCX:
00000000ffff0bcc
[   48.944386] RDX: 0000000000000053 RSI: ffff88006fd8fa98 RDI:
ffff88005dc853c0
[   48.944386] RBP: ffff88006fd8fa98 R08: 0000000000000000 R09:
ffff88005dc853fc
[   48.944386] R10: 0000000000000053 R11: ffff880075b0fdb0 R12:
ffff88005dc65b40
[   48.944386] R13: ffff88006fd8fc58 R14: 0000000000000001 R15:
ffff88005dc853c0
[   48.944386] FS:  00007f8a2d762700(0000) GS:ffff880075b00000(0000)
knlGS:0000000000000000
[   48.944386] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   48.944386] CR2: 00007f23b106bac0 CR3: 000000006fc5b000 CR4:
00000000000406e0
[   48.944386] DR0: 0000000000000000 DR1: 0000000000000000 DR2:
0000000000000000
[   48.944386] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7:
0000000000000400
[   48.944386] Process bash (pid: 2176, threadinfo ffff88006fd8e000, task
ffff88006fdaca40)
[   48.944386] Stack:
[   48.944386]  ffff88005dca6048 ffff88005dca6048 ffff880071919300
ffffffffa038d1b5
[   48.944386]  ffff88006fd8fac4 0000000000013700 0000000000000000
00000004810086fe
[   48.944386]  0000000000000000 ffff88006fd8fe68 0000000000000002
ffff88005e3aa000
[   48.944386] Call Trace:
[   48.944386]  [<ffffffffa038d1b5>] ? ncp_fill_cache+0x1b5/0x42a [ncpfs]
[   48.944386]  [<ffffffff81104c5c>] ? filldir+0x0/0xc3
[   48.944386]  [<ffffffff810ec2a8>] ? virt_to_head_page+0x9/0x2d
[   48.944386]  [<ffffffffa0393407>] ? ncp_do_request+0x30f/0x321 [ncpfs]
[   48.944386]  [<ffffffff81060331>] ? autoremove_wake_function+0x0/0x2a
[   48.944386]  [<ffffffffa03934f7>] ? ncp_request2+0x49/0x76 [ncpfs]
[   48.944386]  [<ffffffffa0391989>] ? ncp_search_for_fileset+0x1a4/0x1e6
[ncpfs]
[   48.944386]  [<ffffffffa038d65e>] ? ncp_do_readdir+0x139/0x18d [ncpfs]
[   48.944386]  [<ffffffff81104c5c>] ? filldir+0x0/0xc3
[   48.944386]  [<ffffffff810e536f>] ? alloc_pages_vma+0x108/0x124
[   48.944386]  [<ffffffff810b5409>] ? find_get_page+0x3b/0x5e
[   48.944386]  [<ffffffff810b67d4>] ? lock_page+0xe/0x2c
[   48.944386]  [<ffffffffa038dc34>] ? ncp_readdir+0x582/0x587 [ncpfs]
[   48.944386]  [<ffffffff81104c5c>] ? filldir+0x0/0xc3
[   48.944386]  [<ffffffff810d5b2c>] ? vma_merge+0x1ef/0x34a
[   48.944386]  [<ffffffff81104c5c>] ? filldir+0x0/0xc3
[   48.944386]  [<ffffffff81104d86>] ? vfs_readdir+0x67/0xa4
[   48.944386]  [<ffffffff81104eff>] ? sys_getdents+0x7d/0xcd
[   48.944386]  [<ffffffff81327255>] ? page_fault+0x25/0x30
[   48.944386]  [<ffffffff81009952>] ? system_call_fastpath+0x16/0x1b
[   48.944386] Code: 8b 52 24 89 50 24 c3 8b 48 24 8b 72 24 89 70 24 89 

4a 24
c3 55 48 89 f5 53 48 89 fb 48 83 ec 08 48 8b 47 30 8b 40 28 ff c8 75 04 <0f> 0b
eb fe 8b 47 24 3b 46 04 74 04 0f 0b eb fe 48 8d 7f 5c e8

[   48.944386] RIP  [<ffffffff8110716a>] dentry_update_name_case+0x17/0x4f
[   48.944386]  RSP <ffff88006fd8f9c8>
[   49.009088] ---[ end trace 274c8a8a3c2d4f6d ]---

[...]

Signature · 2 lines
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.