All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Layton <jlayton@redhat.com>
To: Bernhard Schmidt <berni@birkenwald.de>
Cc: linux-kernel@vger.kernel.org, linux-cifs-client@lists.samba.org
Subject: Re: [linux-cifs-client] BUG: Possible cifs+IPv6-Regression 2.6.27.4 -> 2.6.27.9
Date: Sun, 18 Jan 2009 21:03:14 -0500	[thread overview]
Message-ID: <20090118210314.30832598@tleilax.poochiereds.net> (raw)
In-Reply-To: <20090118221329.GA12742@pest>

On Sun, 18 Jan 2009 23:13:29 +0100
Bernhard Schmidt <berni@birkenwald.de> wrote:

> Hello,
> 
> first off, this might be an Ubuntu regression and I've also opened a
> bugreport there, but I think it is in mainline as well. Maybe someone
> familiar with the code can see the problem at first glance without too
> much debugging.
> 
> Since quite a while I've been mounting my CIFS fileserver at home
> (running Samba 3.2) using IPv6 transport:
> 
> # mount -t cifs -o user=berni,ip=2001:xxx::yy //fileserv/pub /pub
> 
> This used to work fine with the Ubuntu kernel 2.6.27-9, which according
> to the changelog is 2.6.27.4-based. Ubuntu kernel 2.6.27-11 (currently
> in the -proposed repository, so not rolled out yet, appears to be based
> on 2.6.27.9) throws a BUG in my face (and does not mount, obviously).
> Since according to the Ubuntu changelog the only changes in cifs have
> been the ones in -stable 2.6.27.7 to 2.6.27.8, namely
> 
>   * cifs: Reduce number of socket retries in large write path
>   * cifs: Fix error in smb_send2
>   * cifs: Fix cifs reconnection flags
>   * cifs: remove unused list, add new cifs sock list to prepare for
>     mount/umount fix
>   * cifs: clean up server protocol handling
>   * cifs: disable sharing session and tcon and add new TCP sharing code
>   * cifs: reinstate sharing of SMB sessions sans races
>   * cifs: minor cleanup to cifs_mount
>   * cifs: reinstate sharing of tree connections
>   * cifs: Fix build break
>   * cifs: Fix check for tcon seal setting and fix oops on failed mount
>     from earlier patch
>   * cifs: prevent cifs_writepages() from skipping unwritten pages
>   * cifs: fix check for dead tcon in smb_init
> 
> I assume it's an upstream problem.
> 
> [28816.788084]  CIFS VFS: Error connecting to socket. Aborting operation
> [28816.788094]  CIFS VFS: cifs_mount failed w/return code = -113
> [28816.788121] BUG: unable to handle kernel paging request at 69000030
> [28816.788125] IP: [<f9bfde00>] :cifs:cifs_read_super+0xa0/0x1e0
> [28816.788140] *pde = 00000000
> [28816.788144] Oops: 0000 [#1] SMP
> [28816.788148] Modules linked in: nls_utf8 ufs qnx4 hfsplus hfs minix
> ntfs vfat msdos fat jfs xfs reiserfs ext2 nls_cp437 cifs af_packet
> binfmt_misc rfcomm bridge stp bnep sco l2cap bluetooth kvm_amd kvm ppdev
> tun ipv6 pci_slot container sbs sbshc video output battery
> iptable_filter ip_tables x_tables ac parport_pc lp parport serio_raw
> psmouse snd_hda_intel snd_pcm_oss snd_mixer_oss snd_pcm pcspkr
> snd_seq_dummy k8temp snd_seq_oss snd_seq_midi snd_rawmidi
> snd_seq_midi_event snd_seq snd_timer snd_seq_device snd soundcore
> i2c_piix4 snd_page_alloc i2c_core evdev dm_multipath scsi_dh pl2303
> usbserial fglrx(P) agpgart wmi button shpchp pci_hotplug ext3 jbd
> mbcache sr_mod cdrom pata_acpi sd_mod crc_t10dif pata_atiixp sg usbhid
> hid usb_storage libusual ata_generic ahci ohci_hcd ehci_hcd libata
> usbcore scsi_mod dock r8169 mii dm_mirror dm_log dm_snapshot dm_mod
> thermal processor fan fbcon tileblit font bitblit softcursor fuse
> [28816.788215]
> [28816.788219] Pid: 20540, comm: mount.cifs Tainted: P
> (2.6.27-11-generic #1)
> [28816.788222] EIP: 0060:[<f9bfde00>] EFLAGS: 00010286 CPU: 0
> [28816.788232] EIP is at cifs_read_super+0xa0/0x1e0 [cifs]
> [28816.788234] EAX: 00000044 EBX: 69000000 ECX: ffffffff EDX: 00000046
> [28816.788237] ESI: d43b5000 EDI: ffffff8f EBP: d42a1e8c ESP: d42a1e6c
> [28816.788239]  DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
> [28816.788242] Process mount.cifs (pid: 20540, ti=d42a0000 task=d1b48c90
> task.ti=d42a0000)
> [28816.788245] Stack: f9c24428 ffffff8f d31aa000 d8951e00 0000004e
> d8951e00 d8951e00 00000000
> [28816.788252]        d42a1eb0 f9bfdfa9 00000000 f6603e80 fffffff4
> d31aa000 f6603e80 00000000
> [28816.788258]        f9c38520 d42a1ed8 c01b468e d43b5000 f6603e80
> d31aa000 00000040 d4086000
> [28816.788264] Call Trace:
> [28816.788270]  [<f9bfdfa9>] ? cifs_get_sb+0x69/0xc0 [cifs]
> [28816.788282]  [<c01b468e>] ? vfs_kern_mount+0x5e/0x130
> [28816.788292]  [<c01b47be>] ? do_kern_mount+0x3e/0xe0
> [28816.788296]  [<c01cccff>] ? do_new_mount+0x6f/0x90
> [28816.788301]  [<c01cd242>] ? do_mount+0x1d2/0x1f0
> [28816.788306]  [<c01ca95d>] ? exact_copy_from_user+0x4d/0xa0
> [28816.788310]  [<c01caf6e>] ? copy_mount_options+0x6e/0xd0
> [28816.788314]  [<c01cd2f1>] ? sys_mount+0x91/0xc0
> [28816.788318]  [<c0103f7b>] ? sysenter_do_call+0x12/0x2f
> [28816.788323]  =======================
> [28816.788324] Code: 65 c6 8b 43 30 8b 55 f0 c6 04 10 00 8b 45 e8 89 f1
> 89 da 89 04 24 8b 45 ec e8 fd dc 00 00 85 c0 89 c7 74 57 8b 45 08 85 c0
> 74 30 <8b> 43 30 85 c0 74 0c e8 a4 f0 5a c6 c7 43 30 00 00 00 00 8b 43
> [28816.788354] EIP: [<f9bfde00>] cifs_read_super+0xa0/0x1e0 [cifs]
> SS:ESP 0068:d42a1e6c
> [28816.788365] ---[ end trace 9d71176ecad6924f ]---
> 
> Do you need any further information? As far as I can see the Ubuntu
> Jaunty packaged version of 2.6.28 works fine, but I did not run
> extensive tests on it.

How reproducible is this? Can you make it happen on every attempt?
Is this kernel being built with CONFIG_CIFS_DFS_UPCALL=y ?

We see this message:

> [28816.788094]  CIFS VFS: cifs_mount failed w/return code = -113

...and then we see it oops in:

> [28816.788125] IP: [<f9bfde00>] :cifs:cifs_read_super+0xa0/0x1e0

After you see that error message, the code in that function doesn't do
much. Mainly, it just checks some pointers and frees a few things. If
it's crashing then it's probably happening when the code dereferences
the struct members in out_mount_failed, but I don't see any obvious
bugs jumping out at me.

Could you email me the cifs.ko module from this kernel? I'd like to
disassemble it and have a look at where it crashed. I may not be
able to tell much, but it's worth a look...

Thanks,
-- 
Jeff Layton <jlayton@redhat.com>

  reply	other threads:[~2009-01-19  2:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-18 22:13 BUG: Possible cifs+IPv6-Regression 2.6.27.4 -> 2.6.27.9 Bernhard Schmidt
2009-01-19  2:03 ` Jeff Layton [this message]
2009-01-19 10:32   ` [linux-cifs-client] " Bernhard Schmidt
2009-01-19 21:07     ` Jeff Layton
2009-01-19 21:38       ` Bernhard Schmidt
2009-01-20 12:25         ` Jeff Layton
2009-01-20 18:50           ` Jeff Layton
2009-01-22 13:41         ` Jeff Layton
2009-01-22 14:45         ` Jeff Layton
2009-01-22 17:02           ` Bernhard Schmidt
2009-01-23  0:00           ` Steve French
2009-01-23  1:49           ` Bernhard Schmidt

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=20090118210314.30832598@tleilax.poochiereds.net \
    --to=jlayton@redhat.com \
    --cc=berni@birkenwald.de \
    --cc=linux-cifs-client@lists.samba.org \
    --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.