All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Crash in 3.14.0+ (plus hacks)
Date: Thu, 10 Apr 2014 10:17:30 -0700	[thread overview]
Message-ID: <5346D22A.10102@candelatech.com> (raw)

This could be related to some changes I made to nfs, but in case the
problem is obvious, here's the stack trace.

I instrumented the code to add the BUG_ON below, and it hits.  Something is
sending NULL or close to it into the posix_acl_equiv_mode method.

/*
  * Returns 0 if the acl can be exactly represented in the traditional
  * file mode permission bits, or else 1. Returns -E... on error.
  */
int
posix_acl_equiv_mode(const struct posix_acl *acl, umode_t *mode_p)
{
	const struct posix_acl_entry *pa, *pe;
	umode_t mode = 0;
	int not_equiv = 0;

	BUG_ON((unsigned long)(acl) < 4000);


[root@ice-si-dmz ~]# uname -a
Linux ice-si-dmz 3.14.0+ #16 SMP PREEMPT Thu Apr 10 08:53:30 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux


kernel BUG at /mnt/sda/home/greearb/git/linux-3.14.dev.y/fs/posix_acl.c:249!
invalid opcode: 0000 [#1] PREEMPT SMP
Modules linked in: iptable_raw xt_CT ip6table_filter ip6_tables ebtable_nat ebtables 8021q mrp garp nf_nat_ipv4 nf_nat bridge stp llc fuse macvlan pktgen 
iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi nfsd lockd nfs_acl auth_rpcgss oid_registry sunrpc ipv6 kvm uinput ppdev e1000e parport_pc i5k_amb 
i5000_edac parport edac_core microcode iTCO_wdt gpio_ich i2c_i801 iTCO_vendor_support lpc_ich ioatdma ptp dca pcspkr pps_core shpchp floppy radeon ttm 
drm_kms_helper drm i2c_algo_bit i2c_core hwmon [last unloaded: iptable_nat]
CPU: 5 PID: 1945 Comm: nfsd Tainted: G         C O 3.14.0+ #16
Hardware name: Supermicro X7DBU/X7DBU, BIOS 2.1 06/23/2008
task: ffff880211f9a150 ti: ffff88021189c000 task.ti: ffff88021189c000
RIP: 0010:[<ffffffff811e4426>]  [<ffffffff811e4426>] posix_acl_equiv_mode+0xd/0xa7
RSP: 0018:ffff88021189dcc8  EFLAGS: 00010293
RAX: ffffffff811e4ea7 RBX: 0000000000000000 RCX: 0000000000000004
RDX: 0000000000008000 RSI: ffff880223de3268 RDI: 0000000000000000
RBP: ffff88021189dcc8 R08: 0000000000000004 R09: 0000000000000000
R10: ffffffff811b65c3 R11: ffff880223de32f0 R12: ffff880223de3268
R13: 0000000000008000 R14: ffff880211c7e000 R15: 000000000000001c
FS:  0000000000000000(0000) GS:ffff88022fd40000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: ffffffffff600400 CR3: 0000000211b04000 CR4: 00000000000007e0
Stack:
  ffff88021189dcf8 ffffffff811e4ecd ffffffff811e4ea7 ffff880211fa0000
  ffff880211fa1000 ffff880223de3268 ffff88021189dd38 ffffffffa07f0b67
  ffff88021189dd38 ffff880211c7e000 ffff880211c7e000 ffffffffa0808940
Call Trace:
  [<ffffffff811e4ecd>] simple_set_acl+0x26/0x5f
  [<ffffffff811e4ea7>] ? posix_acl_fix_xattr_to_user+0x38/0x38
  [<ffffffffa07f0b67>] nfsd3_proc_setacl+0xef/0x18c [nfsd]
  [<ffffffffa07e4a8e>] nfsd_dispatch+0x99/0x153 [nfsd]
  [<ffffffffa0778aff>] svc_process_common+0x293/0x3e0 [sunrpc]
  [<ffffffffa07796bb>] svc_process+0xf2/0x10f [sunrpc]
  [<ffffffffa07e45f2>] nfsd+0xc8/0x121 [nfsd]
  [<ffffffffa07e452a>] ? nfsd_destroy+0x63/0x63 [nfsd]
  [<ffffffff810dd251>] kthread+0xc4/0xcc
  [<ffffffff810dd18d>] ? __kthread_parkme+0x5c/0x5c
  [<ffffffff815dabcc>] ret_from_fork+0x7c/0xb0
  [<ffffffff810dd18d>] ? __kthread_parkme+0x5c/0x5c
Code: 34 c5 18 00 00 00 48 63 f6 e8 26 12 f8 ff 48 85 c0 74 df c7 00 01 00 00 00 5d c3 31 c0 c3 55 48 81 ff 9f 0f 00 00 48 89 e5 77 02 <0f> 0b 8b 47 10 48 8d 4f 
14 31 d2 4c 8d 44 c7 14 31 c0 eb 66 66
RIP  [<ffffffff811e4426>] posix_acl_equiv_mode+0xd/0xa7
  RSP <ffff88021189dcc8>
---[ end trace b5a8a6a2f0ff3fab ]---


Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


             reply	other threads:[~2014-04-10 17:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-10 17:17 Ben Greear [this message]
2014-04-11 19:18 ` Crash in 3.14.0+ (plus hacks) Ben Greear
2014-04-25 10:48 ` J. Bruce Fields
2014-04-25 11:04   ` Christoph Hellwig
2014-04-25 13:30     ` Chuck Lever
2014-05-07 13:43       ` Ben Greear
2014-05-07 14:31         ` Chuck Lever
2014-05-07 15:02           ` Christoph Hellwig

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=5346D22A.10102@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=linux-nfs@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.