内核警告洪水:在fs / locks.c:2304 locks_remove_flock + 0x1ba / 0x1d0()

在过去的几个月里,我一直在VMWare上运行的几台CentOS 7服务器收到很多警告,来提供PHP站点。

reason: WARNING: at fs/locks.c:2304 locks_remove_flock+0x1ba/0x1d0() cmdline: BOOT_IMAGE=/vmlinuz-3.10.0-514.2.2.el7.x86_64 root=/dev/mapper/centos_pa2-root ro rd.lvm.lv=centos_pa2/root crashkernel=auto vconsole.font=latarcyrheb-sun16 vconsole.keymap=uk rd.lvm.lv=centos_pa2/swap rhgb quiet LANG=en_GB.UTF-8 package: kernel component: kernel hostname: pa2.localdomain count: 1462 abrt_version: 2.1.11 analyzer: Kerneloops architecture: x86_64 duphash: b007ebbd4bd69e9143257dc18c07ec47b73ee3cb event_log: kernel: 3.10.0-514.2.2.el7.x86_64 kernel_tainted_short: GW last_occurrence: 1499953599 not-reportable: A kernel problem occurred, but your kernel has been tainted (flags:GW). Kernel maintainers are unable to diagnose tainted reports. os_release: CentOS Linux release 7.3.1611 (Core) pkg_arch: x86_64 pkg_epoch: 0 pkg_fingerprint: 24C6 A8A7 F4A8 0EB5 pkg_name: kernel pkg_release: 514.2.2.el7 pkg_vendor: CentOS pkg_version: 3.10.0 runlevel: N 3 time: Wed 04 Jan 2017 08:09:30 CET type: Kerneloops uid: 0 username: root uuid: b007ebbd4bd69e9143257dc18c07ec47b73ee3cb backtrace: :WARNING: at fs/locks.c:2304 locks_remove_flock+0x1ba/0x1d0() :leftover lock: dev=0:36 ino=281474976710755 type=0 flags=0x81 start=0 end=9223372036854775807 :Modules linked in: arc4 md4 nls_utf8 cifs dns_resolver 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_security ip6table_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter vmw_vsock_vmci_transport vsock intel_powerclamp coretemp ppdev vmw_balloon pcspkr sg vmw_vmci parport_pc shpchp parport i2c_piix4 ip_tables xfs libcrc32c sr_mod cdrom ata_generic pata_acpi sd_mod crc_t10dif crct10dif_generic crct10dif_common vmwgfx crc32c_intel drm_kms_helper serio_raw syscopyarea sysfillrect :sysimgblt fb_sys_fops ttm ata_piix drm mptspi vmxnet3 scsi_transport_spi libata mptscsih mptbase i2c_core floppy fjes dm_mirror dm_region_hash dm_log dm_mod :CPU: 0 PID: 1705 Comm: httpd Tainted: GW ------------ 3.10.0-514.2.2.el7.x86_64 #1 :Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 09/17/2015 :ffff880021d87d28 0000000059e23303 ffff880021d87ce0 ffffffff816861cc :ffff880021d87d18 ffffffff81085940 ffff88006e1b67b0 ffff8800791c7200 :ffff88006e1b6668 ffff88006e1b66f0 ffff880045188320 ffff880021d87d80 :Call Trace: :[<ffffffff816861cc>] dump_stack+0x19/0x1b :[<ffffffff81085940>] warn_slowpath_common+0x70/0xb0 :[<ffffffff810859dc>] warn_slowpath_fmt+0x5c/0x80 :[<ffffffff812553ea>] locks_remove_flock+0x1ba/0x1d0 :[<ffffffff8120003d>] __fput+0xbd/0x260 :[<ffffffff8120031e>] ____fput+0xe/0x10 :[<ffffffff810acde7>] task_work_run+0xa7/0xe0 :[<ffffffff8102ab22>] do_notify_resume+0x92/0xb0 :[<ffffffff81696a7d>] int_signal+0x12/0x17 

我相信这是一个相当温和的警告,但是当我在24小时内得到一千人的时候,我想解决根本原因,或者至less让他们哑巴。