2020-05-27 19:21:52

by nirinA raseliarison

[permalink] [raw]
Subject: kernel BUG at fs/inode.c:531!

hello,
i hit again this bug with:

$ cat /proc/version
Linux version 5.7.0-rc7.20200525 ([email protected]) (gcc version
10.1.0 (GCC), GNU ld version 2.33.1-slack15) #1 SMP Mon May 25
02:49:28 EAT 2020


[99390.044690] ------------[ cut here ]------------
[99390.044695] kernel BUG at fs/inode.c:531!
[99390.044702] invalid opcode: 0000 [#1] SMP PTI
[99390.044705] CPU: 0 PID: 149 Comm: kswapd0 Not tainted 5.7.0-rc7.20200525 #1
[99390.044706] Hardware name: To be filled by O.E.M. To be filled by
O.E.M./ONDA H61V Ver:4.01, BIOS 4.6.5 01/07/2013
[99390.044712] RIP: 0010:clear_inode+0x75/0x80
[99390.044714] Code: a8 20 74 2a a8 40 75 28 48 8b 83 28 01 00 00 48
8d 93 28 01 00 00 48 39 c2 75 17 48 c7 83 98 00 00 00 60 00 00 00 5b
c3 0f 0b <0f> 0b 0f 0b 0f 0b 0f 0b 0f 0b 90 0f 1f 44 00 00 53 ba 48 02
00 00
[99390.044716] RSP: 0018:ffffc900004c7b50 EFLAGS: 00010006
[99390.044717] RAX: 0000000000000000 RBX: ffff88808c5f9e38 RCX: 0000000000000000
[99390.044718] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff88808c5f9fb8
[99390.044719] RBP: ffff88808c5f9e38 R08: ffffffffffffffff R09: ffffc900004c7cd8
[99390.044720] R10: 0000000000000000 R11: 0000000000000001 R12: ffff88808c5f9fb0
[99390.044721] R13: ffff888215658000 R14: ffff888215658070 R15: 000000000000014c
[99390.044723] FS: 0000000000000000(0000) GS:ffff888217600000(0000)
knlGS:0000000000000000
[99390.044724] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[99390.044725] CR2: 00000006f9004000 CR3: 00000001511da001 CR4: 00000000001606f0
[99390.044726] Call Trace:
[99390.044732] ext4_clear_inode+0x16/0x80
[99390.044736] ext4_evict_inode+0x58/0x4c0
[99390.044738] evict+0xbf/0x180
[99390.044740] prune_icache_sb+0x7e/0xb0
[99390.044743] super_cache_scan+0x161/0x1e0
[99390.044746] do_shrink_slab+0x146/0x290
[99390.044749] shrink_slab+0xac/0x2a0
[99390.044752] ? __switch_to_asm+0x40/0x70
[99390.044754] shrink_node+0x16f/0x660
[99390.044757] balance_pgdat+0x2cf/0x5b0
[99390.044759] kswapd+0x1dc/0x3a0
[99390.044762] ? __schedule+0x217/0x710
[99390.044764] ? wait_woken+0x80/0x80
[99390.044766] ? balance_pgdat+0x5b0/0x5b0
[99390.044768] kthread+0x118/0x130
[99390.044770] ? kthread_create_worker_on_cpu+0x70/0x70
[99390.044772] ret_from_fork+0x35/0x40
[99390.044773] Modules linked in: 8021q garp stp mrp llc rtl8192cu
rtl_usb rtl8192c_common rtlwifi mac80211 cfg80211 uas usb_storage
nct6775 hwmon_vid ipv6 rfkill nf_defrag_ipv6 snd_pcm_oss snd_mixer_oss
fuse hid_generic usbhid hid snd_hda_codec_hdmi snd_hda_codec_realtek
snd_hda_codec_generic i2c_dev coretemp hwmon i915 x86_pkg_temp_thermal
intel_powerclamp kvm_intel kvm i2c_algo_bit irqbypass drm_kms_helper
evdev r8169 snd_hda_intel syscopyarea snd_intel_dspcfg realtek
snd_hda_codec libphy crc32_pclmul sysfillrect serio_raw sysimgblt
snd_hwdep fb_sys_fops snd_hda_core drm snd_pcm fan thermal
drm_panel_orientation_quirks snd_timer intel_gtt 8250 agpgart snd
8250_base ehci_pci serial_core button ehci_hcd video soundcore
i2c_i801 lpc_ich mfd_core mei_me mei loop
[99390.044800] ---[ end trace 2ca57858c52a0ad4 ]---

--
nirinA


2020-08-04 11:22:09

by Jan Kara

[permalink] [raw]
Subject: Re: kernel BUG at fs/inode.c:531!

Hello!

On Wed 27-05-20 21:05:55, nirinA raseliarison wrote:
> i hit again this bug with:
>
> $ cat /proc/version
> Linux version 5.7.0-rc7.20200525 ([email protected]) (gcc version
> 10.1.0 (GCC), GNU ld version 2.33.1-slack15) #1 SMP Mon May 25
> 02:49:28 EAT 2020

Thanks for report! I see this didn't get any reply. Can you still hit this
issue with 5.8? If yes, what workload do you run on the machine to trigger
this? Can you send contents of /proc/mounts please? Thanks!

Honza

>
>
> [99390.044690] ------------[ cut here ]------------
> [99390.044695] kernel BUG at fs/inode.c:531!
> [99390.044702] invalid opcode: 0000 [#1] SMP PTI
> [99390.044705] CPU: 0 PID: 149 Comm: kswapd0 Not tainted 5.7.0-rc7.20200525 #1
> [99390.044706] Hardware name: To be filled by O.E.M. To be filled by
> O.E.M./ONDA H61V Ver:4.01, BIOS 4.6.5 01/07/2013
> [99390.044712] RIP: 0010:clear_inode+0x75/0x80
> [99390.044714] Code: a8 20 74 2a a8 40 75 28 48 8b 83 28 01 00 00 48
> 8d 93 28 01 00 00 48 39 c2 75 17 48 c7 83 98 00 00 00 60 00 00 00 5b
> c3 0f 0b <0f> 0b 0f 0b 0f 0b 0f 0b 0f 0b 90 0f 1f 44 00 00 53 ba 48 02
> 00 00
> [99390.044716] RSP: 0018:ffffc900004c7b50 EFLAGS: 00010006
> [99390.044717] RAX: 0000000000000000 RBX: ffff88808c5f9e38 RCX: 0000000000000000
> [99390.044718] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff88808c5f9fb8
> [99390.044719] RBP: ffff88808c5f9e38 R08: ffffffffffffffff R09: ffffc900004c7cd8
> [99390.044720] R10: 0000000000000000 R11: 0000000000000001 R12: ffff88808c5f9fb0
> [99390.044721] R13: ffff888215658000 R14: ffff888215658070 R15: 000000000000014c
> [99390.044723] FS: 0000000000000000(0000) GS:ffff888217600000(0000)
> knlGS:0000000000000000
> [99390.044724] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [99390.044725] CR2: 00000006f9004000 CR3: 00000001511da001 CR4: 00000000001606f0
> [99390.044726] Call Trace:
> [99390.044732] ext4_clear_inode+0x16/0x80
> [99390.044736] ext4_evict_inode+0x58/0x4c0
> [99390.044738] evict+0xbf/0x180
> [99390.044740] prune_icache_sb+0x7e/0xb0
> [99390.044743] super_cache_scan+0x161/0x1e0
> [99390.044746] do_shrink_slab+0x146/0x290
> [99390.044749] shrink_slab+0xac/0x2a0
> [99390.044752] ? __switch_to_asm+0x40/0x70
> [99390.044754] shrink_node+0x16f/0x660
> [99390.044757] balance_pgdat+0x2cf/0x5b0
> [99390.044759] kswapd+0x1dc/0x3a0
> [99390.044762] ? __schedule+0x217/0x710
> [99390.044764] ? wait_woken+0x80/0x80
> [99390.044766] ? balance_pgdat+0x5b0/0x5b0
> [99390.044768] kthread+0x118/0x130
> [99390.044770] ? kthread_create_worker_on_cpu+0x70/0x70
> [99390.044772] ret_from_fork+0x35/0x40
> [99390.044773] Modules linked in: 8021q garp stp mrp llc rtl8192cu
> rtl_usb rtl8192c_common rtlwifi mac80211 cfg80211 uas usb_storage
> nct6775 hwmon_vid ipv6 rfkill nf_defrag_ipv6 snd_pcm_oss snd_mixer_oss
> fuse hid_generic usbhid hid snd_hda_codec_hdmi snd_hda_codec_realtek
> snd_hda_codec_generic i2c_dev coretemp hwmon i915 x86_pkg_temp_thermal
> intel_powerclamp kvm_intel kvm i2c_algo_bit irqbypass drm_kms_helper
> evdev r8169 snd_hda_intel syscopyarea snd_intel_dspcfg realtek
> snd_hda_codec libphy crc32_pclmul sysfillrect serio_raw sysimgblt
> snd_hwdep fb_sys_fops snd_hda_core drm snd_pcm fan thermal
> drm_panel_orientation_quirks snd_timer intel_gtt 8250 agpgart snd
> 8250_base ehci_pci serial_core button ehci_hcd video soundcore
> i2c_i801 lpc_ich mfd_core mei_me mei loop
> [99390.044800] ---[ end trace 2ca57858c52a0ad4 ]---
>
> --
> nirinA
--
Jan Kara <[email protected]>
SUSE Labs, CR

2020-08-04 11:42:36

by Matthew Wilcox

[permalink] [raw]
Subject: Re: kernel BUG at fs/inode.c:531!

On Tue, Aug 04, 2020 at 01:19:13PM +0200, Jan Kara wrote:
> Hello!
>
> On Wed 27-05-20 21:05:55, nirinA raseliarison wrote:
> > i hit again this bug with:
> >
> > $ cat /proc/version
> > Linux version 5.7.0-rc7.20200525 ([email protected]) (gcc version
> > 10.1.0 (GCC), GNU ld version 2.33.1-slack15) #1 SMP Mon May 25
> > 02:49:28 EAT 2020
>
> Thanks for report! I see this didn't get any reply. Can you still hit this
> issue with 5.8? If yes, what workload do you run on the machine to trigger
> this? Can you send contents of /proc/mounts please? Thanks!

Also, do you have CONFIG_READ_ONLY_THP_FOR_FS set?

2020-08-04 15:04:01

by nirinA raseliarison

[permalink] [raw]
Subject: Re: kernel BUG at fs/inode.c:531!

hello,

# CONFIG_READ_ONLY_THP_FOR_FS is not set



Le mar. 4 août 2020 à 14:39, Matthew Wilcox <[email protected]> a écrit :
>
> On Tue, Aug 04, 2020 at 01:19:13PM +0200, Jan Kara wrote:
> > Hello!
> >
> > On Wed 27-05-20 21:05:55, nirinA raseliarison wrote:
> > > i hit again this bug with:
> > >
> > > $ cat /proc/version
> > > Linux version 5.7.0-rc7.20200525 ([email protected]) (gcc version
> > > 10.1.0 (GCC), GNU ld version 2.33.1-slack15) #1 SMP Mon May 25
> > > 02:49:28 EAT 2020
> >
> > Thanks for report! I see this didn't get any reply. Can you still hit this
> > issue with 5.8? If yes, what workload do you run on the machine to trigger
> > this? Can you send contents of /proc/mounts please? Thanks!
>
> Also, do you have CONFIG_READ_ONLY_THP_FOR_FS set?

2020-08-04 15:06:02

by nirinA raseliarison

[permalink] [raw]
Subject: Re: kernel BUG at fs/inode.c:531!

hello!
no issue yet with 5.8:

Linux version 5.8.0.20200803 ([email protected]) (gcc (GCC) 10.2.0,
GNU ld version 2.33.1-slack15) #1 SMP Mon Aug 3 16:17:10 EAT 2020

it seems that the bug was triggered when i ran programs compiled
against gcc-9.3.0 under kernel build with gcc-10.1.0, but not sure if
that is the real problem. running the programs under the same compiler
doesn't exhibit the bug and since i rebuilt the programs with
gcc-10.1.0, i no longer hit the issue.

here is my /proc/mounts :

/dev/root / ext4 rw,relatime 0 0
devtmpfs /dev devtmpfs rw,relatime,size=3927496k,nr_inodes=981874,mode=755 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,noexec,relatime,size=32768k,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
cgroup_root /sys/fs/cgroup tmpfs rw,relatime,size=8192k,mode=755 0 0
cpuset /sys/fs/cgroup/cpuset cgroup rw,relatime,cpuset 0 0
cpu /sys/fs/cgroup/cpu cgroup rw,relatime,cpu 0 0
cpuacct /sys/fs/cgroup/cpuacct cgroup rw,relatime,cpuacct 0 0
blkio /sys/fs/cgroup/blkio cgroup rw,relatime,blkio 0 0
memory /sys/fs/cgroup/memory cgroup rw,relatime,memory 0 0
devices /sys/fs/cgroup/devices cgroup rw,relatime,devices 0 0
freezer /sys/fs/cgroup/freezer cgroup rw,relatime,freezer 0 0
net_cls /sys/fs/cgroup/net_cls cgroup rw,relatime,net_cls 0 0
perf_event /sys/fs/cgroup/perf_event cgroup rw,relatime,perf_event 0 0
/dev/sda3 /mnt/sda3 ext4 rw,relatime 0 0
/dev/sda5 /usr/local ext4 rw,relatime 0 0
/dev/sda6 /mnt/big ext4 rw,relatime 0 0
/dev/sda1 /mnt/sda1 ext4 rw,relatime 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,noexec,relatime,size=32768k,mode=755 0 0
nfsd /proc/fs/nfs nfsd rw,relatime 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
none /var/run/user/1000 tmpfs rw,relatime,size=102400k,mode=700,uid=1000 0 0
none /run/user/1000 tmpfs rw,relatime,size=102400k,mode=700,uid=1000 0 0
none /var/run/user/0 tmpfs rw,relatime,size=102400k,mode=700 0 0
none /run/user/0 tmpfs rw,relatime,size=102400k,mode=700 0 0
nirina:/mnt/sda6 /mnt/sda6 nfs
rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.100.2,mountvers=3,mountport=37772,mountproto=udp,local_lock=none,addr=192.168.100.2
0 0
nirina:/mnt/sda14 /mnt/sda14 nfs
rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.100.2,mountvers=3,mountport=37772,mountproto=udp,local_lock=none,addr=192.168.100.2
0 0
nirina:/mnt/sda15 /mnt/sda15 nfs
rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.100.2,mountvers=3,mountport=37772,mountproto=udp,local_lock=none,addr=192.168.100.2
0 0
nirina:/mnt/sda16 /mnt/sda16 nfs
rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.100.2,mountvers=3,mountport=37772,mountproto=udp,local_lock=none,addr=192.168.100.2
0 0


Le mar. 4 août 2020 à 14:19, Jan Kara <[email protected]> a écrit :
>
> Hello!
>
> On Wed 27-05-20 21:05:55, nirinA raseliarison wrote:
> > i hit again this bug with:
> >
> > $ cat /proc/version
> > Linux version 5.7.0-rc7.20200525 ([email protected]) (gcc version
> > 10.1.0 (GCC), GNU ld version 2.33.1-slack15) #1 SMP Mon May 25
> > 02:49:28 EAT 2020
>
> Thanks for report! I see this didn't get any reply. Can you still hit this
> issue with 5.8? If yes, what workload do you run on the machine to trigger
> this? Can you send contents of /proc/mounts please? Thanks!
>
> Honza
>
> >
> >
> > [99390.044690] ------------[ cut here ]------------
> > [99390.044695] kernel BUG at fs/inode.c:531!
> > [99390.044702] invalid opcode: 0000 [#1] SMP PTI
> > [99390.044705] CPU: 0 PID: 149 Comm: kswapd0 Not tainted 5.7.0-rc7.20200525 #1
> > [99390.044706] Hardware name: To be filled by O.E.M. To be filled by
> > O.E.M./ONDA H61V Ver:4.01, BIOS 4.6.5 01/07/2013
> > [99390.044712] RIP: 0010:clear_inode+0x75/0x80
> > [99390.044714] Code: a8 20 74 2a a8 40 75 28 48 8b 83 28 01 00 00 48
> > 8d 93 28 01 00 00 48 39 c2 75 17 48 c7 83 98 00 00 00 60 00 00 00 5b
> > c3 0f 0b <0f> 0b 0f 0b 0f 0b 0f 0b 0f 0b 90 0f 1f 44 00 00 53 ba 48 02
> > 00 00
> > [99390.044716] RSP: 0018:ffffc900004c7b50 EFLAGS: 00010006
> > [99390.044717] RAX: 0000000000000000 RBX: ffff88808c5f9e38 RCX: 0000000000000000
> > [99390.044718] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff88808c5f9fb8
> > [99390.044719] RBP: ffff88808c5f9e38 R08: ffffffffffffffff R09: ffffc900004c7cd8
> > [99390.044720] R10: 0000000000000000 R11: 0000000000000001 R12: ffff88808c5f9fb0
> > [99390.044721] R13: ffff888215658000 R14: ffff888215658070 R15: 000000000000014c
> > [99390.044723] FS: 0000000000000000(0000) GS:ffff888217600000(0000)
> > knlGS:0000000000000000
> > [99390.044724] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> > [99390.044725] CR2: 00000006f9004000 CR3: 00000001511da001 CR4: 00000000001606f0
> > [99390.044726] Call Trace:
> > [99390.044732] ext4_clear_inode+0x16/0x80
> > [99390.044736] ext4_evict_inode+0x58/0x4c0
> > [99390.044738] evict+0xbf/0x180
> > [99390.044740] prune_icache_sb+0x7e/0xb0
> > [99390.044743] super_cache_scan+0x161/0x1e0
> > [99390.044746] do_shrink_slab+0x146/0x290
> > [99390.044749] shrink_slab+0xac/0x2a0
> > [99390.044752] ? __switch_to_asm+0x40/0x70
> > [99390.044754] shrink_node+0x16f/0x660
> > [99390.044757] balance_pgdat+0x2cf/0x5b0
> > [99390.044759] kswapd+0x1dc/0x3a0
> > [99390.044762] ? __schedule+0x217/0x710
> > [99390.044764] ? wait_woken+0x80/0x80
> > [99390.044766] ? balance_pgdat+0x5b0/0x5b0
> > [99390.044768] kthread+0x118/0x130
> > [99390.044770] ? kthread_create_worker_on_cpu+0x70/0x70
> > [99390.044772] ret_from_fork+0x35/0x40
> > [99390.044773] Modules linked in: 8021q garp stp mrp llc rtl8192cu
> > rtl_usb rtl8192c_common rtlwifi mac80211 cfg80211 uas usb_storage
> > nct6775 hwmon_vid ipv6 rfkill nf_defrag_ipv6 snd_pcm_oss snd_mixer_oss
> > fuse hid_generic usbhid hid snd_hda_codec_hdmi snd_hda_codec_realtek
> > snd_hda_codec_generic i2c_dev coretemp hwmon i915 x86_pkg_temp_thermal
> > intel_powerclamp kvm_intel kvm i2c_algo_bit irqbypass drm_kms_helper
> > evdev r8169 snd_hda_intel syscopyarea snd_intel_dspcfg realtek
> > snd_hda_codec libphy crc32_pclmul sysfillrect serio_raw sysimgblt
> > snd_hwdep fb_sys_fops snd_hda_core drm snd_pcm fan thermal
> > drm_panel_orientation_quirks snd_timer intel_gtt 8250 agpgart snd
> > 8250_base ehci_pci serial_core button ehci_hcd video soundcore
> > i2c_i801 lpc_ich mfd_core mei_me mei loop
> > [99390.044800] ---[ end trace 2ca57858c52a0ad4 ]---
> >
> > --
> > nirinA
> --
> Jan Kara <[email protected]>
> SUSE Labs, CR