On Sat, 1 Jun 2019 at 00:32, <[1][email protected]> wrote:
> By the way, before using the modified aufs module, I saw the
kernel oops
> one more time. I will let my test work over the weekend, maybe
it'll find
> something.
Wow, that is really important to me.
I am still unable to reproduce it with patched aufs kernel module, but
got
a different oops on a different unpatched system:
A Jun 04 21:38:38 kir-ubu1604 kernel: ------------[ cut here
]------------
Jun 04 21:38:38 kir-ubu1604 kernel: WARNING: CPU: 2 PID: 20864 at
/build/linux-6VmqmP/linux-4.4.0/include/linux/kref.h:46
au_dy_iaop+0x28a/0x2f0 [aufs]()
Jun 04 21:38:38 kir-ubu1604 kernel: Modules linked in: ufs msdos xfs
dccp_diag dccp tcp_diag udp_diag inet_diag unix_diag af_packet_diag
netlink_diag vxlan ip6_udp_tunnel udp_tunnel iptable_mangle xt_mark
xt_nat xt_tcpudp veth ipt_MASQUERADE nf_nat_masquerade_ipv4
nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat
nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter
ip_tables xt_conntrack x_tables nf_nat nf_conntrack br_netfilter bridge
stp llc aufs overlay kvm_intel kvm irqbypass joydev input_leds
serio_raw ib_iser rdma_cm iw_cm ib_cm ib_sa ib_mad ib_core ib_addr
iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi autofs4 btrfs
raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor
async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear
crct10dif_pclmul crc32_pclmul ghash_clmulni_intel
Jun 04 21:38:38 kir-ubu1604 kernel: A aesni_intel aes_x86_64 lrw
gf128mul glue_helper ablk_helper cryptd psmouse virtio_scsi floppy
Jun 04 21:38:38 kir-ubu1604 kernel: CPU: 2 PID: 20864 Comm: dockerd Not
tainted 4.4.0-145-generic #171-Ubuntu
Jun 04 21:38:38 kir-ubu1604 kernel: Hardware name: DigitalOcean
Droplet, BIOS 20171212 12/12/2017
Jun 04 21:38:38 kir-ubu1604 kernel: A 0000000000000286 a0d104b904efe940
ffff88013c7e39d8 ffffffff8140abd1
Jun 04 21:38:38 kir-ubu1604 kernel: A 0000000000000000 ffffffffc03b25a0
ffff88013c7e3a10 ffffffff81085382
Jun 04 21:38:38 kir-ubu1604 kernel: A ffff88015bef83c0 ffffffff81a34da0
ffff880010afef08 ffff88018b1a0f58
Jun 04 21:38:38 kir-ubu1604 kernel: Call Trace:
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff8140abd1>]
dump_stack+0x63/0x82
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff81085382>]
warn_slowpath_common+0x82/0xc0
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff810854ca>]
warn_slowpath_null+0x1a/0x20
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc039ae6a>]
au_dy_iaop+0x28a/0x2f0 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc03a01cf>] ?
au_iinfo_init+0x3f/0xb0 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc03a0ee1>]
au_new_inode+0x561/0x6f0 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc03a39b4>]
epilog+0xf4/0x180 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc0392287>] ?
vfsub_create+0xb7/0xf0 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc03a438e>]
add_simple+0x2ce/0x3f0 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc03a4628>]
au_aopen_or_create+0x48/0x60 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc03a1cbd>]
aufs_atomic_open+0x22d/0x3b0 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff8122a71b>]
path_openat+0x98b/0x1360
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff8122ccc1>]
do_filp_open+0x91/0x100
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff8123a997>] ?
__alloc_fd+0xc7/0x190
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff8121afd8>]
do_sys_open+0x138/0x2a0
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff8121b174>]
SyS_openat+0x14/0x20
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff8186281b>]
entry_SYSCALL_64_fastpath+0x22/0xcb
Jun 04 21:38:38 kir-ubu1604 kernel: ---[ end trace 6f7999de31ab7b52
]---
Jun 04 21:38:38 kir-ubu1604 kernel: ------------[ cut here
]------------
Jun 04 21:38:38 kir-ubu1604 kernel: kernel BUG at
/build/linux-6VmqmP/linux-4.4.0/fs/aufs/dynop.c:206!
Jun 04 21:38:38 kir-ubu1604 kernel: invalid opcode: 0000 [#1] SMP
Jun 04 21:38:38 kir-ubu1604 kernel: Modules linked in: ufs msdos xfs
dccp_diag dccp tcp_diag udp_diag inet_diag unix_diag af_packet_diag
netlink_diag vxlan ip6_udp_tunnel udp_tunnel iptable_mangle xt_mark
xt_nat xt_tcpudp veth ipt_MASQUERADE nf_nat_masquerade_ipv4
nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat
nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter
ip_tables xt_conntrack x_tables nf_nat nf_conntrack br_netfilter bridge
stp llc aufs overlay kvm_intel kvm irqbypass joydev input_leds
serio_raw ib_iser rdma_cm iw_cm ib_cm ib_sa ib_mad ib_core ib_addr
iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi autofs4 btrfs
raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor
async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear
crct10dif_pclmul crc32_pclmul ghash_clmulni_intel
Jun 04 21:38:38 kir-ubu1604 kernel: A aesni_intel aes_x86_64 lrw
gf128mul glue_helper ablk_helper cryptd psmouse virtio_scsi floppy
Jun 04 21:38:38 kir-ubu1604 kernel: CPU: 2 PID: 20864 Comm: dockerd
Tainted: G A A A A W A A A 4.4.0-145-generic #171-Ubuntu
Jun 04 21:38:38 kir-ubu1604 kernel: Hardware name: DigitalOcean
Droplet, BIOS 20171212 12/12/2017
Jun 04 21:38:38 kir-ubu1604 kernel: task: ffff880215116a40 ti:
ffff88013c7e0000 task.ti: ffff88013c7e0000
Jun 04 21:38:38 kir-ubu1604 kernel: RIP: 0010:[<ffffffffc039abb9>]
A [<ffffffffc039abb9>] dy_bug+0x9/0x10 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: RSP: 0018:ffff88013c7e3a20
A EFLAGS: 00010246
Jun 04 21:38:38 kir-ubu1604 kernel: RAX: ffff88015bef83c0 RBX:
ffff88013b4636c0 RCX: 0000000000000000
Jun 04 21:38:38 kir-ubu1604 kernel: RDX: ffffffff81a34da0 RSI:
ffffffff81a34da0 RDI: ffff88013b4636e0
Jun 04 21:38:38 kir-ubu1604 kernel: RBP: ffff88013c7e3a20 R08:
ffff880010afef58 R09: ffff880217001800
Jun 04 21:38:38 kir-ubu1604 kernel: R10: ffff88013b4636c0 R11:
0000000000000010 R12: ffff880010afef58
Jun 04 21:38:38 kir-ubu1604 kernel: R13: 0000000000000000 R14:
ffff88018b1a3658 R15: ffff880010afef00
Jun 04 21:38:38 kir-ubu1604 kernel: FS: A 00007f9dd3fff700(0000)
GS:ffff88021fd00000(0000) knlGS:0000000000000000
Jun 04 21:38:38 kir-ubu1604 kernel: CS: A 0010 DS: 0000 ES: 0000 CR0:
0000000080050033
Jun 04 21:38:38 kir-ubu1604 kernel: CR2: 0000000001d90d40 CR3:
00000001dcb08000 CR4: 0000000000360670
Jun 04 21:38:38 kir-ubu1604 kernel: DR0: 0000000000000000 DR1:
0000000000000000 DR2: 0000000000000000
Jun 04 21:38:38 kir-ubu1604 kernel: DR3: 0000000000000000 DR6:
00000000fffe0ff0 DR7: 0000000000000400
Jun 04 21:38:38 kir-ubu1604 kernel: Stack:
Jun 04 21:38:38 kir-ubu1604 kernel: A ffff88013c7e3a78 ffffffffc039ad64
000050c93c7e3a58 ffffffffc03a01cf
Jun 04 21:38:38 kir-ubu1604 kernel: A ffff88018b1a3658 ffff88021517d000
ffff88018b1a3658 ffff88021517d000
Jun 04 21:38:38 kir-ubu1604 kernel: A ffff880010afef08 ffff88018b1a3600
ffff8800b8c4ec00 ffff88013c7e3b48
Jun 04 21:38:38 kir-ubu1604 kernel: Call Trace:
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc039ad64>]
au_dy_iaop+0x184/0x2f0 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc03a01cf>] ?
au_iinfo_init+0x3f/0xb0 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc03a0ee1>]
au_new_inode+0x561/0x6f0 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc03a39b4>]
epilog+0xf4/0x180 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc0392287>] ?
vfsub_create+0xb7/0xf0 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc03a438e>]
add_simple+0x2ce/0x3f0 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc03a4628>]
au_aopen_or_create+0x48/0x60 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffffc03a1cbd>]
aufs_atomic_open+0x22d/0x3b0 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff8122a71b>]
path_openat+0x98b/0x1360
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff8122ccc1>]
do_filp_open+0x91/0x100
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff8123a997>] ?
__alloc_fd+0xc7/0x190
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff8121afd8>]
do_sys_open+0x138/0x2a0
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff8121b174>]
SyS_openat+0x14/0x20
Jun 04 21:38:38 kir-ubu1604 kernel: A [<ffffffff8186281b>]
entry_SYSCALL_64_fastpath+0x22/0xcb
Jun 04 21:38:38 kir-ubu1604 kernel: Code: 5c 5d c3 0f 1f 44 00 00 66 2e
0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 e8 92 f7 e5 c0 5d c3
0f 1f 44 00 00 55 48 89 e5 <0f> 0b 0f 1f 44 00 00 0f 1f 44 00 00 f0 83
6f 20 01 74 01 c3 55
Jun 04 21:38:38 kir-ubu1604 kernel: RIP A [<ffffffffc039abb9>]
dy_bug+0x9/0x10 [aufs]
Jun 04 21:38:38 kir-ubu1604 kernel: A RSP <ffff88013c7e3a20>
Jun 04 21:38:38 kir-ubu1604 kernel: ---[ end trace 6f7999de31ab7b53
]---
This is Ubuntu 16.04, kernel info:
#
# modinfo aufs
filename: A A A
/lib/modules/4.4.0-145-generic/kernel/fs/aufs/aufs.ko
alias: A A A A A fs-aufs
version: A A A A 4.x-rcN-20160111
description: A A aufs -- Advanced multi layered unification filesystem
author: A A A A Junjiro R. Okajima
<[2][email protected]>
license: A A A A GPL
srcversion: A A BD1C47D04FE5C2D88F63AAB
depends: A A A A
retpoline: A A A Y
intree: A A A A Y
vermagic: A A A 4.4.0-145-generic SMP mod_unload modversions
retpoline
parm: A A A A A brs:use <sysfs>/fs/aufs/si_*/brN (int)
parm: A A A A A allow_userns:allow unprivileged to mount under
userns (bool)
I think this corresponds to the kernel from
[3]https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/x
enial/A repo,
tagA Ubuntu-4.4.0-145.171.
I have patched that kernel with your proposed patch and started my test
on
a patched aufs module.
Kir.
References
1. mailto:[email protected]
2. mailto:[email protected]
3. https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/xenial/