Re: [next-20180629][powerpc/powervm]kernel BUG at fs/inode.c:512!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 2, 2018 at 1:03 PM, vrbagal1 <vrbagal1@xxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> Observing kernel bug, while running stress-ng test on Power-9 ZZ machine,
> running on PowerVM LPAR.
>
> Kernel: 4.18.0-rc2-next-20180629(commit-id:
> e3c7283c19cd9ba999794f38007389ac83408a78)
> Machine: Power9-zz(PowerVM LPAR)
> Test: stress-ng
> (https://github.com/avocado-framework-tests/avocado-misc-tests/blob/master/generic/stress-ng.py)
> Possible culprit commit: 80ea09a002bf4384fda5f087b1b198b3a274f9da(please
> ignore if its not :))
>

It sure fits the description of the fix commit soaking in next/master:

commit df8cc5b424bc1301347fe11afa2c2bbc034b8fea
Author: Miklos Szeredi <mszeredi@xxxxxxxxxx>
Date:   Tue Jun 19 16:09:42 2018 +0200

    vfs: don't evict uninitialized inode

    iput() ends up calling ->evict() on new inode, which is not yet initialized
    by owning fs.  So use destroy_inode() instead.

    Add to sb->s_inodes list only after the inode has been inserted into the
    hash.  The exact point at which the inode is added onto the sb list
    shouldn't matter as long as it is done while the inode is in the I_NEW
    state.

    Reported-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
    Signed-off-by: Miklos Szeredi <mszeredi@xxxxxxxxxx>
    Fixes: 80ea09a002bf ("vfs: factor out inode_insert5()")

Do you hit the bug often enough to say if the fix is working?

Thanks,
Amir.

> Attached is .config file.
>
> Traces:
>
>  [11919.473088] ------------[ cut here ]------------
>  [11919.473096] kernel BUG at fs/inode.c:512!
>  [11919.473104] Oops: Exception in kernel mode, sig: 5 [#1]
>  [11919.473109] LE SMP NR_CPUS=2048 NUMA pSeries
>  [11919.473139] Dumping ftrace buffer:
>  [11919.473197]    (ftrace buffer empty)
>  [11919.473209] Modules linked in: cuse vfio_iommu_spapr_tce vfio_spapr_eeh
> vfio hci_vhci bluetooth ecdh_generic rfkill uhid snd_seq snd_seq_device
> snd_timer snd soundcore salsa20_generic camellia_generic kvm_pr kvm
> cast6_generic cast_common serpent_generic twofish_generic twofish_common xts
> lrw tgr192 uinput wp512 rmd320 ppp_generic rmd256 slhc rmd160 unix_diag
> rmd128 vhost_net tun vhost tap md4 sha512_generic binfmt_misc vfat fat fuse
> ext4 mbcache jbd2 loop ip6t_rpfilter ipt_REJECT nf_reject_ipv4 ip6t_REJECT
> nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute
> bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6
> ip6table_mangle ip6table_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4
> nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_raw ebtable_filter
> ebtables
>  [11919.473331]  ip6table_filter ip6_tables iptable_filter pseries_rng sg
> ip_tables xfs libcrc32c sd_mod ibmvscsi scsi_transport_srp ibmveth lpfc
> mlx5_core scsi_transport_fc ptp pps_core devlink dm_mirror dm_region_hash
> dm_log dm_mod [last unloaded: zram]
>  [11919.473373] CPU: 4 PID: 71507 Comm: stress-ng-mlock Tainted: G        W
> 4.18.0-rc2-next-20180629-autotest #1
>  [11919.473381] NIP:  c0000000003af4e4 LR: c0000000003af4dc CTR:
> 0000000000000000
>  [11919.473389] REGS: c0000003ce8ab8d0 TRAP: 0700   Tainted: G        W
> (4.18.0-rc2-next-20180629-autotest)
>  [11919.473398] MSR:  8000000000029033 <SF,EE,ME,IR,DR,RI,LE>  CR: 22008822
> XER: 20040000
>  [11919.473414] CFAR: c0000000009ccce0 IRQMASK: 1
>  [11919.473414] GPR00: c0000000003af4dc c0000003ce8abb50 c000000001245100
> c0000000c25f8da0
>  [11919.473414] GPR04: 0000000029f7ad2c 0000000000000001 0029f7ad2c836a4e
> 000000005b39850c
>  [11919.473414] GPR08: 000000000024054a 0000000000000001 0000000080000004
> 0000000000000001
>  [11919.473414] GPR12: 0000000022008882 c00000001ec99c00 0000000000000000
> 0000000000000000
>  [11919.473414] GPR16: 00007fffae469598 0000000000000000 ffffffffffffffff
> 0000000000005544
>  [11919.473414] GPR20: 00007fffac62ffd8 00000000100cf208 0000000000000000
> 0000000010115641
>  [11919.473414] GPR24: c000000614c05810 c00000031874f6c0 0000000000000000
> 0000000000000001
>  [11919.473414] GPR28: c0000000c25f8c28 c0000000c25f8c10 c0000000c25f8c10
> c0000000c25f8c28
>  [11919.473509] NIP [c0000000003af4e4] clear_inode+0x34/0xe0
>  [11919.473520] LR [c0000000003af4dc] clear_inode+0x2c/0xe0
>  [11919.473525] Call Trace:
>  [11919.473531] [c0000003ce8abb50] [c0000000003af4dc] clear_inode+0x2c/0xe0
> (unreliable)
>  [11919.473541] [c0000003ce8abb80] [c0000000002c87c8]
> shmem_evict_inode+0xb8/0x240
>  [11919.473553] [c0000003ce8abbc0] [c0000000003af7ec] evict+0xfc/0x260
>  [11919.473562] [c0000003ce8abc00] [c0000000003a9468]
> dentry_unlink_inode+0x148/0x1c0
>  [11919.473573] [c0000003ce8abc30] [c0000000003aae18]
> __dentry_kill+0xe8/0x290
>  [11919.473583] [c0000003ce8abc70] [c0000000003ab044] dentry_kill+0x84/0x2b0
>  [11919.473591] [c0000003ce8abcb0] [c0000000003ab48c] dput+0x21c/0x240
>  [11919.473603] [c0000003ce8abd00] [c0000000003898fc] __fput+0x15c/0x2c0
>  [11919.473611] [c0000003ce8abd60] [c000000000134e20]
> task_work_run+0x140/0x1a0
>  [11919.473620] [c0000003ce8abdc0] [c00000000001cb94]
> do_notify_resume+0x1a4/0x1e0
>  [11919.473633] [c0000003ce8abe30] [c00000000000b8c4]
> ret_from_except_lite+0x70/0x74
>  [11919.473641] Instruction dump:
>  [11919.473647] 38425c50 7c0802a6 60000000 7c0802a6 fbe1fff8 f8010010
> f821ffd1 7c7f1b78
>  [11919.473661] 38630178 4861d7a1 60000000 e93f01c8 <0b090000> e93f01d0
> 0b090000 892d098c
>  [11919.473682] ---[ end trace 504f00276f802189 ]---
>  [11919.479503]
>  [11920.479554] Kernel panic - not syncing: Fatal exception
>  [11920.489264] Dumping ftrace buffer:
>  [11920.489311]    (ftrace buffer empty)
>
> Regards,
> Venkat.
>
--
To unsubscribe from this list: send the line "unsubscribe linux-next" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux