From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52651C33C9E for ; Fri, 17 Jan 2020 22:06:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C28920748 for ; Fri, 17 Jan 2020 22:06:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LfsFnnwN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729852AbgAQWGQ (ORCPT ); Fri, 17 Jan 2020 17:06:16 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:44470 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729246AbgAQWGQ (ORCPT ); Fri, 17 Jan 2020 17:06:16 -0500 Received: by mail-lj1-f196.google.com with SMTP id q8so4182177ljj.11 for ; Fri, 17 Jan 2020 14:06:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:autocrypt:subject:message-id:date:user-agent:mime-version; bh=3GuvZtjVzLFRKrCJkVkvHiYBfL0M9AIbAzadquTysAc=; b=LfsFnnwNEnosUm6M191fFm6ELabu7kpu/sTCl04aO8UJrsdnylDA4SeCSRRq0elQYl A4d1skrW0Aw/9NL/Of0KO9P2s80SvFbzTzvQvM5f8g8pZWJ0AIMMgJ5gfoIMiIuCOUuV ESSUVkkDcO9SEm3SHRxIyl6BhgnFknQ2R41RHfTEWYiO9kNn/aJeaUr8AHFHLRuDy/mY o91HiQKSw+belK9cMmuUtWjr2coxqUL4yf56Yz+QaS/w5rfjP6dmzxvtg8BQS84sOJkY kxM7rAgEIGkYyFnqdHsQNygaQjzpFLFq+1C9Kp7PlasvAUSZeu+X9v75zKPx+VnYOBYO eUow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:autocrypt:subject:message-id:date :user-agent:mime-version; bh=3GuvZtjVzLFRKrCJkVkvHiYBfL0M9AIbAzadquTysAc=; b=BO3Q2yYPIAiWBDHqdNG1FamDVLwEPCn6okCSWTpT5mhyLCduKUm80Z53dwXPl1NxNm 3N+JL94FOdU26LG8suqavRQoIfxm0m9Ulxlpr4WhnlUtHLnBlvpckOBzq2akpP/l0svz AZYdyPCNK7V3P7XVp9IlppypAc/cvlMStlA3ibuqqd8AZD1AZ28JfiKoawaCtP20WBE6 t8kquM2GTm7HyxgbK30Qo2gMF//8xJ9FWNTSwFvqhUp5cww6Vunwjd3EI+WtqbxkWa9P JMgwBPmCigYUpheERH87F9ENdJeY0vB1MJLZZ200A9Ge6MyhhuWCwmdnn/ZXNL2RRDkt LqZQ== X-Gm-Message-State: APjAAAUPRPCfT2M7CmpF6uVxsCwus5mYwCvncYFNRrG0YeSPYE/lq9Ui vUarkg6tHwZBbeakPRZivkXGVQ30 X-Google-Smtp-Source: APXvYqz2MpXANoO/fay8KxWxXpk/mlMRkAFAaMQxweONCwBc24WPyypDrCxc5TCgnZW34pv5w0KI8A== X-Received: by 2002:a2e:a37c:: with SMTP id i28mr6484395ljn.118.1579298773213; Fri, 17 Jan 2020 14:06:13 -0800 (PST) Received: from [192.168.43.134] ([109.126.145.157]) by smtp.gmail.com with ESMTPSA id r21sm13011149ljn.64.2020.01.17.14.06.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Jan 2020 14:06:12 -0800 (PST) To: io-uring , Jens Axboe From: Pavel Begunkov Autocrypt: addr=asml.silence@gmail.com; prefer-encrypt=mutual; keydata= mQINBFmKBOQBEAC76ZFxLAKpDw0bKQ8CEiYJRGn8MHTUhURL02/7n1t0HkKQx2K1fCXClbps bdwSHrhOWdW61pmfMbDYbTj6ZvGRvhoLWfGkzujB2wjNcbNTXIoOzJEGISHaPf6E2IQx1ik9 6uqVkK1OMb7qRvKH0i7HYP4WJzYbEWVyLiAxUj611mC9tgd73oqZ2pLYzGTqF2j6a/obaqha +hXuWTvpDQXqcOZJXIW43atprH03G1tQs7VwR21Q1eq6Yvy2ESLdc38EqCszBfQRMmKy+cfp W3U9Mb1w0L680pXrONcnlDBCN7/sghGeMHjGKfNANjPc+0hzz3rApPxpoE7HC1uRiwC4et83 CKnncH1l7zgeBT9Oa3qEiBlaa1ZCBqrA4dY+z5fWJYjMpwI1SNp37RtF8fKXbKQg+JuUjAa9 Y6oXeyEvDHMyJYMcinl6xCqCBAXPHnHmawkMMgjr3BBRzODmMr+CPVvnYe7BFYfoajzqzq+h EyXSl3aBf0IDPTqSUrhbmjj5OEOYgRW5p+mdYtY1cXeK8copmd+fd/eTkghok5li58AojCba jRjp7zVOLOjDlpxxiKhuFmpV4yWNh5JJaTbwCRSd04sCcDNlJj+TehTr+o1QiORzc2t+N5iJ NbILft19Izdn8U39T5oWiynqa1qCLgbuFtnYx1HlUq/HvAm+kwARAQABtDFQYXZlbCBCZWd1 bmtvdiAoc2lsZW5jZSkgPGFzbWwuc2lsZW5jZUBnbWFpbC5jb20+iQJOBBMBCAA4FiEE+6Ju PTjTbx479o3OWt5b1Glr+6UFAlmKBOQCGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQ Wt5b1Glr+6WxZA//QueaKHzgdnOikJ7NA/Vq8FmhRlwgtP0+E+w93kL+ZGLzS/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bf96102@gmail.com> Date: Sat, 18 Jan 2020 01:05:31 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HmttN9nzqtDcO3ETrblAEVdoyXMH6WUWD" Sender: io-uring-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HmttN9nzqtDcO3ETrblAEVdoyXMH6WUWD Content-Type: multipart/mixed; boundary="Ow6U61x3nb0bryUdNU9DjPrPvd7VKE1Zz"; protected-headers="v1" From: Pavel Begunkov To: io-uring , Jens Axboe Message-ID: <2e58fed4-d95f-3d69-b938-a8f77bf96102@gmail.com> Subject: [BUG] io_uring --Ow6U61x3nb0bryUdNU9DjPrPvd7VKE1Zz Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable I'm hitting a bug with yesterday's for-next (e.g. 126c20adbd98f2eff00c837= afc). I'll debug it in several days, if nobody would do it by then. kernel: yesterday's for-next (e.g. 126c20adbd98f2eff00c837afc) How to reproduce: run ./file-update in a loop (for me 10th run hit the pr= oblem) [ 303.287859] Running test ./file-update [ 303.600280] BUG: kernel NULL pointer dereference, address: 00000000000= 000e4 [ 303.600290] #PF: supervisor write access in kernel mode [ 303.600292] #PF: error_code(0x0002) - not-present page [ 303.600294] PGD 0 P4D 0 [ 303.600301] Oops: 0002 [#1] PREEMPT SMP PTI [ 303.600307] CPU: 4 PID: 252 Comm: kworker/4:2 Not tainted 5.5.0-rc6-00618-gd22ad6beb885-dirty #162 [ 303.600309] Hardware name: Dell Inc. Inspiron 15 7000 Gaming/065C71, B= IOS 01.00.03 01/10/2017 [ 303.600326] Workqueue: events io_ring_file_ref_switch [ 303.600336] RIP: 0010:_raw_spin_lock_irqsave+0x31/0x60 [ 303.600339] Code: 89 e5 41 54 53 48 89 fb 9c 58 0f 1f 44 00 00 49 89 c= 4 fa 66 0f 1f 44 00 00 bf 01 00 00 00 e8 66 9a 77 ff 31 c0 ba 01 00 00 00 0f= b1 13 75 08 5b 4c 89 e0 41 5c 5d c3 89 c6 48 89 df e8 07 3c [ 303.600341] RSP: 0018:ffff9fc30049fda0 EFLAGS: 00010046 [ 303.600344] RAX: 0000000000000000 RBX: 00000000000000e4 RCX: 000000000= 0000000 [ 303.600346] RDX: 0000000000000001 RSI: ffff96976d818eb0 RDI: ffffffffa= 896d24d [ 303.600347] RBP: ffff9fc30049fdb0 R08: 000073746e657665 R09: 808080808= 0808080 [ 303.600349] R10: 0000000000000018 R11: fefefefefefefeff R12: 000000000= 0000282 [ 303.600351] R13: 00000000000000e4 R14: ffff96976652ea00 R15: 000000000= 00000d0 [ 303.600354] FS: 0000000000000000(0000) GS:ffff96976f500000(0000) knlGS:0000000000000000 [ 303.600355] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 303.600357] CR2: 00000000000000e4 CR3: 00000001cf00a003 CR4: 000000000= 03606e0 [ 303.600360] Call Trace: [ 303.600376] skb_dequeue+0x1d/0x70 [ 303.600380] io_ring_file_ref_switch+0x85/0x280 [ 303.600391] process_one_work+0x1e6/0x3c0 [ 303.600395] worker_thread+0x4a/0x3d0 [ 303.600401] kthread+0x105/0x140 [ 303.600404] ? process_one_work+0x3c0/0x3c0 [ 303.600407] ? kthread_park+0x90/0x90 [ 303.600411] ret_from_fork+0x35/0x40 [ 303.600416] Modules linked in: ccm snd_hda_codec_realtek snd_hda_codec_generic i915 iwlmvm mac80211 x86_pkg_temp_thermal intel_pow= erclamp coretemp kvm_intel kvm snd_hda_codec_hdmi i2c_algo_bit irqbypass drm_kms_= helper libarc4 crct10dif_pclmul iwlwifi joydev crc32_pclmul mousedev ghash_clmulni_intel snd_hda_intel hid_multitouch snd_intel_dspcfg uvcvide= o dell_laptop iTCO_wdt snd_hda_codec ledtrig_audio aesni_intel drm crypto_s= imd dell_wmi videobuf2_vmalloc hid_generic intel_rapl_msr iTCO_vendor_support= dell_smbios videobuf2_memops cryptd dcdbas wmi_bmof cfg80211 glue_helper videobuf2_v4l2 snd_hda_core dell_wmi_descriptor mxm_wmi intel_cstate dell_smm_hwmon tpm_crb videobuf2_common snd_hwdep r8169 nls_iso8859_1 intel_uncore tpm_tis videodev nls_cp437 intel_gtt psmouse snd_pcm intel_rapl_perf agpgart tpm_tis_core input_leds realtek i2c_i801 mei_me snd_timer libphy mei mc syscopyarea rfkill tpm snd intel_lpss_pci sysfill= rect intel_hid intel_lpss processor_thermal_device intel_pch_thermal idma64 [ 303.600496] intel_rapl_common i2c_hid sysimgblt int3403_thermal hid sparse_keymap soundcore int3402_thermal intel_soc_dts_iosf fb_sys_fops int3400_thermal evdev battery rng_core mac_hid int340x_thermal_zone acpi_thermal_rel ac wmi crypto_user ip_tables x_tables ext4 crc16 mbcache= jbd2 sd_mod ahci libahci libata scsi_mod xhci_pci serio_raw xhci_hcd atkbd lib= ps2 crc32c_intel i8042 serio [ 303.600538] CR2: 00000000000000e4 [ 303.600544] ---[ end trace b92f8382e98caae3 ]--- [ 303.600550] RIP: 0010:_raw_spin_lock_irqsave+0x31/0x60 [ 303.600553] Code: 89 e5 41 54 53 48 89 fb 9c 58 0f 1f 44 00 00 49 89 c= 4 fa 66 0f 1f 44 00 00 bf 01 00 00 00 e8 66 9a 77 ff 31 c0 ba 01 00 00 00 0f= b1 13 75 08 5b 4c 89 e0 41 5c 5d c3 89 c6 48 89 df e8 07 3c [ 303.600555] RSP: 0018:ffff9fc30049fda0 EFLAGS: 00010046 [ 303.600557] RAX: 0000000000000000 RBX: 00000000000000e4 RCX: 000000000= 0000000 [ 303.600559] RDX: 0000000000000001 RSI: ffff96976d818eb0 RDI: ffffffffa= 896d24d [ 303.600560] RBP: ffff9fc30049fdb0 R08: 000073746e657665 R09: 808080808= 0808080 [ 303.600562] R10: 0000000000000018 R11: fefefefefefefeff R12: 000000000= 0000282 [ 303.600564] R13: 00000000000000e4 R14: ffff96976652ea00 R15: 000000000= 00000d0 [ 303.600567] FS: 0000000000000000(0000) GS:ffff96976f500000(0000) knlGS:0000000000000000 [ 303.600568] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 303.600570] CR2: 00000000000000e4 CR3: 00000001cf00a003 CR4: 000000000= 03606e0 [ 303.600578] note: kworker/4:2[252] exited with preempt_count 1 --=20 Pavel Begunkov --Ow6U61x3nb0bryUdNU9DjPrPvd7VKE1Zz-- --HmttN9nzqtDcO3ETrblAEVdoyXMH6WUWD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE+6JuPTjTbx479o3OWt5b1Glr+6UFAl4iL7EACgkQWt5b1Glr +6VUYw//eb0O6tO6S7/qO3OxMTPMhVkg2fqUY10KOmJCOb/Z35njPyf6iNwkZJSa trXjACnNjhfva1/+Rl37mEteDOdsWIjl8iZLomj6pLFwzIDCoRUh7noU7azBhUOm 4fCLisVtNTJWGxhYEJ2d8TzvGBwjnupZoG+eFdaGuMfBeOYgMLGfGWaXkCHdRJ0J kum4F+3C9fv2usziScSFaYCl28eKgpT5I0uJx3Wx1t1B/GuGMineXAy30z+bDFlI +ScogMUcJC3i1TmAfXEFD/ZwPEN9hWcgZlog58eLy+J7/v8LVzF3TSKaWg/18h7e 1GGllnAi3TwNR7eRM7bRQ3hso67i7HfdADpErz2f+UHuYFl7ez2P2GMopTHlFnSl sAsUdQHOkz0+D/kAawD7trBFjh3bLB6O7CMZ0gIC8AoKG4Zzy/79TeA+PCP/BMkK 7udtQERoA2MeXFOphlsOXvodMwEvr+fIvT+aGmdvEfAuYTxh3/hXLJA/jyzVvz0T 1CRxO+KMNbxrWW0nl/MPSOD8sLALGbLEHSG5hdCTIzbTPJzrvm/QyZZYLCePSvjA NkSKFnzOk27sgEyyEvWKhr6b+0HTRR4Rj857qPgDjrEdzrJNIOFyebZfttmLsyyR DXS+SpqdKbi/aZudi05/8DY+lasukk5ALzrIOCacYAwCrEVmzM8= =Pu9c -----END PGP SIGNATURE----- --HmttN9nzqtDcO3ETrblAEVdoyXMH6WUWD--