Received: by 10.192.165.156 with SMTP id m28csp1676860imm; Tue, 17 Apr 2018 03:41:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/r4pzqYiw4hBB3cb4rUiiEEUaQlvf4sWNl8TwF9eLDgRWQRmEGGtwjo6Mhfuxqr/myNC6I X-Received: by 10.99.104.200 with SMTP id d191mr1305861pgc.7.1523961668258; Tue, 17 Apr 2018 03:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523961668; cv=none; d=google.com; s=arc-20160816; b=J2Kcp+ogYlOXQDiq8rDPFOvlO8ubzBroo47oEW/uN+EzrID7FU0nmKZeE3p3YFeNG2 mOVZlAUIRyrCYYk7o++FMaxuyb3OCMgg9NpNPAUBeSWHfy0YvKFG88HnxTN2BRsAI6ZM 3XfPbjYoahf3TwNOQzkiKe5/8KF7H7oQndJLf8W7JCxl7WrFAKwvEYV3NCuilyrv3JtJ NlUFx4sYyqzg4o2Q2aBABxUCdt10jjzdjG97PwFN0r+416MxYbSgKttRMy1LkLb7J/+u typKrfBovyAvSPBewlutShbSMMBk4hfyFK/P3U8pBwVtqPRNytmdpd9/kWt6ntZdI13X 8Faw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:date:message-id :subject:from:to:dkim-signature:arc-authentication-results; bh=CMBbNpFW7uXBkN/6B/wBNz3wp0xVGPTcYRzf2ccscEg=; b=hVEOGFQJLIZ+bK668V9KJwPe4S+IGP3/lWzOg2c0YZVEK3/KPJEcgvPqbQcy77SFCj nv11mlUMJzFOjU0Eal9Ml/tBg8YbqnCFfX4iyx58vVj/OOJgxh1S4cZeIYOZJ3Pw45SJ 5LBsfitCKunSR2IPAKFE8SLqpKTOB8sDpvU6RBBPCsg71nat6kUqL+rK1sszlLH6l34O 1ssOMyZ0wUiFuuvh1Jsz/v4E15DZBuyx0Fb0TtqfD7JOnrmgXpd1gvyZkFqdDjRGIilC TOsR/dJ8Bcx81gTp23jSEXfVb1RKcOILD9YapbHvZznRGNyUYvhl3G0i0aIwevzkWTjh It3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uQosmoN1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si11392768pgt.575.2018.04.17.03.40.53; Tue, 17 Apr 2018 03:41:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uQosmoN1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752086AbeDQKjj (ORCPT + 99 others); Tue, 17 Apr 2018 06:39:39 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:36157 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751211AbeDQKjh (ORCPT ); Tue, 17 Apr 2018 06:39:37 -0400 Received: by mail-wr0-f196.google.com with SMTP id q13so30676270wre.3; Tue, 17 Apr 2018 03:39:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version; bh=CMBbNpFW7uXBkN/6B/wBNz3wp0xVGPTcYRzf2ccscEg=; b=uQosmoN1NLfFu6oLLIRBbkGTTbl391cfH9TPeMe2v/6pm4+yoGvpJ4u41D/ZB0CKEV +A7u5AxX9zVXoCl71yD1ILxxTFg3o15d9b+Fn+2gz4ekdorxDw5y7m1t9/ejOxtY9pJc ZaLPyhjl77zE7DuJL0BVCm2TNX6AfN9oqOasV8a3MzDbSKqAn2CLCXZw/yxT5uZQc2oN M1W9e9VPnv8nObJEq/M7Mln50Eax9zpSqWBLpqAX4Fm0Rb7Xu+fhSxx537tCOVPY0+dx TXjaP+mB7dU9ZBlVX0McZQgDTPVHL6/sg8NzfK7QPiLCCtema+eB8wpQqOUoXawYYvzw IpSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version; bh=CMBbNpFW7uXBkN/6B/wBNz3wp0xVGPTcYRzf2ccscEg=; b=b35z1ukAQmuw97un5Fk7ZMPrFrknroUgblpCBVTBRdVCZVTYlA+fgt0Y9pemFoB/lf u/f7bq+8xsi2G1AM2/RVVrhdzkg62jG+2I96U7jUtPMM/woOkbsBg8Qx538BOSc0iC80 i3SSktoItxa3F1Ov49BgAEAKX/vcWdanK50rYU8AQeGFDBfJT5O+3t4g7iEaLE5CqWqX VSDWt8YWg9F0SXn3xC5eHjGQyXb5yVKvQ4AahGcOatsKB3Jb8G2wHXtX2Bu7eV+fxz9c AdLuEGb84No0LvV65av6nkRG6vEtCA8SCYNKrfI/s48kV0o9+21ojVEpE5Z3fDIY7Ed+ hZ3A== X-Gm-Message-State: ALQs6tAV3fmuA6eA10zBF4vVw7mte3cpD/1BYfZmfdGW/H5/yLVpMeDl VSuNVSsq1yU7eM0YG6w887RNPyc0kNM= X-Received: by 10.223.150.84 with SMTP id c20mr1258016wra.89.1523961575765; Tue, 17 Apr 2018 03:39:35 -0700 (PDT) Received: from [192.168.0.103] (807f27e8.ftth.concepts.nl. [128.127.39.232]) by smtp.googlemail.com with ESMTPSA id x22sm12493787wrd.69.2018.04.17.03.39.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Apr 2018 03:39:35 -0700 (PDT) To: Jan Kara , mszeredi@redhat.com, amir73il@gmail.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org From: Pavlos Parissis Subject: kernel 4.14.x crash around fsnotify_mark_connector Message-ID: Date: Tue, 17 Apr 2018 12:39:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xnxD2sLDWbG1RnmHCILAOl43qlBQuLh9E" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --xnxD2sLDWbG1RnmHCILAOl43qlBQuLh9E Content-Type: multipart/mixed; boundary="Cf0d4OeM4IvFWjtwla81r91MTZGlPZqDB"; protected-headers="v1" From: Pavlos Parissis To: Jan Kara , mszeredi@redhat.com, amir73il@gmail.com, linux-kernel@vger.kernel.org, stable@vger.kernel.org Message-ID: Subject: kernel 4.14.x crash around fsnotify_mark_connector --Cf0d4OeM4IvFWjtwla81r91MTZGlPZqDB Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi, In one of our production servers where we run kernel version 4.14.32, I n= oticed the following: ---- [138630.417246] cache_from_obj: Wrong slab cache. fsnotify_mark_connector= but object is from kmalloc-2048(361:anycast-healthchecker.service) [138630.477075] ------------[ cut here ]------------ [138630.500028] WARNING: CPU: 14 PID: 26002 at mm/slab.h:377 kmem_cache_free+0x133/0x1c0 [138630.538130] Modules linked in: netconsole binfmt_misc sctp_diag sctp = dccp_diag dccp tcp_diag udp_diag inet_diag unix_diag cfg80211 rfkill 8021q garp mrp= xfs loop x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel crypto= _simd glue_helper cryptd iTCO_wdt intel_cstate hpwdt hpilo iTCO_vendor_support = sg intel_rapl_perf ipmi_si pcspkr ioatdma shpchp lpc_ich i2c_i801 ipmi_devin= tf dca mfd_core wmi ipmi_msghandler nfsd auth_rpcgss nfs_acl lockd grace sunrpc = ip_tables ext4 mbcache jbd2 i2c_algo_bit sd_mod drm_kms_helper syscopyarea sysfillr= ect sysimgblt fb_sys_fops ttm bnx2x serio_raw mdio libcrc32c crc32c_intel hps= a ptp drm scsi_transport_sas pps_core dm_mirror dm_region_hash dm_log dm_mod dax [138630.871763] CPU: 14 PID: 26002 Comm: kworker/u66:3 Not tainted 4.14.32-1.el7.x86_64 #1 [138630.910864] Hardware name: HP ProLiant BL460c Gen9, BIOS I36 10/25/20= 17 [138630.943498] Workqueue: events_unbound fsnotify_connector_destroy_work= fn [138630.976569] task: ffff88203b62ae80 task.stack: ffffc90008a20000 [138631.005895] RIP: 0010:kmem_cache_free+0x133/0x1c0 [138631.029230] RSP: 0018:ffffc90008a23e20 EFLAGS: 00010246 [138631.055217] RAX: 000000000000007c RBX: ffff882000000000 RCX: 00000000= 00000000 [138631.091346] RDX: 0000000000000000 RSI: ffff88203f3969d8 RDI: ffff8820= 3f3969d8 [138631.127139] RBP: ffffc90008a23e38 R08: 0000000000000001 R09: 00000000= 0000057d [138631.162575] R10: ffff88102b906cf0 R11: ffff88102b913ea0 R12: ffff8810= 3f579980 [138631.198018] R13: ffff88203bd57c00 R14: ffff88203bd63f00 R15: ffffffff= 82128388 [138631.233371] FS: 0000000000000000(0000) GS:ffff88203f380000(0000) knlGS:0000000000000000 [138631.273426] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [138631.301980] CR2: 0000000003600fd8 CR3: 000000000200a006 CR4: 00000000= 003606e0 [138631.338783] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 00000000= 00000000 [138631.374525] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 00000000= 00000400 [138631.409797] Call Trace: [138631.422387] fsnotify_connector_destroy_workfn+0x68/0x80 [138631.448516] process_one_work+0x15c/0x380 [138631.468352] worker_thread+0x4d/0x3e0 [138631.486705] kthread+0x10c/0x140 [138631.503091] ? max_active_store+0x80/0x80 [138631.523217] ? __kthread_parkme+0x70/0x70 [138631.543338] ? do_syscall_64+0x79/0x1b0 [138631.562518] ret_from_fork+0x35/0x40 [138631.580199] Code: 4c 3b a7 d8 00 00 00 0f 84 11 ff ff ff 48 8b 4f 60 = 49 8b 54 24 60 48 c7 c6 c0 19 c3 81 48 c7 c7 c0 9c e7 81 31 c0 e8 90 a5 eb ff <0f>= 0b4c 89 e7 e9 e9 fe ff ff 65 8b 05 2c 3c de 7e 89 c0 48 0f [138631.672489] ---[ end trace 6748d86d682915c2 ]--- [138631.695691] cache_from_obj: Wrong slab cache. fsnotify_mark_connector= but object is from kmalloc-2048(361:anycast-healthchecker.service) --- The kernel was fine and server was responsive. A coworker mentioned that it may come from https://github.com/torvalds/linux/blob/master/fs/notify/mark.c#L160 and commit 08991e83b728 ("fsnotify: Free fsnotify_mark_connector when there is no ma= rk attached") arrived with 4.12-rc1 may be the cause of it. I am wondering if it is related to the issue I reported https://lkml.org/lkml/2018/4/16/506. But, that issue causes the whole ser= ver to crash, which is not the case for above kernel dump. Cheers, Pavlos --Cf0d4OeM4IvFWjtwla81r91MTZGlPZqDB-- --xnxD2sLDWbG1RnmHCILAOl43qlBQuLh9E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJa1c7lAAoJEIP8ktofcXa5o9gP/0kLGQ67nx2tSmwRA0Pblq7x l0zlB3FW/x5o4kNoMp8f+Dn2l8QJe2tIjTTrHsWGSdUzKeR1FtYxNKfag/OLgkKf MuQSbLt9VuTxuD2pWdXx3eruoBk36I0zx5f+AZVwgLD6wn37OdgOdApSxGGRmWY/ qPRzAvpMF8puu7yZRc19aIJ+9jOi9xIX+G/WPQ3fGEMPrs/g27NZIYsiXbUTDBiB EkSGIeju15mSJOgunizQUP+YpLGOZvEXG7TtLBGZQwh21ZZjFrPcMuERyuSX8/IO EkkbSHprKnmmtoy3oy0VqME4vU0D4cEAwPoOEMl1f+B84iN7sOEtRtSPKcGIaU0w iy78treGVCNWRydYy1HkUZv0iEHVMNUvx/naMNJQ7VKC1st2E/ku/SjqNN6QSym8 K0RxmxtfKzDXzhV2eOVnk7N0NlDF1jPj8XTunAqDoHpYeoEil3JeR+WCFB8yQuix hBwTD9yWK3RI2ZxRR5cFccOYeP8VHHtca0yCe7S9BebVuwm2yJ1/78ddXh/h6Vrc 9KRuC4PSHiwWVKkde3a26DfLY+zCQ4ER917Ok0/dfWllOjhqS34dMvGCSL8fp5rG N4xn1CkNB1uHC1+mNrPZbLhb6tfT08t07k+SDuwyW30sKGiK8kasEPFnoXx2r+wZ 9YfjJ4xINTie0DzMcH0u =krjs -----END PGP SIGNATURE----- --xnxD2sLDWbG1RnmHCILAOl43qlBQuLh9E--