Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2382807pxb; Tue, 13 Apr 2021 00:02:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5ITgdezL7zzON+sktOU+V6LLibeY+AFaCEa97UFSGw5k1GiypvgIwyHofcayDrjGb+uwo X-Received: by 2002:a17:90a:5903:: with SMTP id k3mr3209445pji.225.1618297327582; Tue, 13 Apr 2021 00:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618297327; cv=none; d=google.com; s=arc-20160816; b=TIbnF/CC8AFEDV17V58MLQ9yUlRZ4/uOOCi34TzFquqv84YimohRItxwMQ/OCOeUH1 sEUmDXxRLQ8VVNg3/lQmwth8mQ/c4L4i4cATOc5yQgW4aboGpcOfCOQ6nt8fXt4Flo9c YYh750uEMo5q6Inm0kql1S6HCFEC190jgNYtNjxUHmOTzG1NNz0c74UMLMG3fPdHLY9H c7lZ5GVJ5EE4+owFFkm4u7YdlcEERMn895UzqtZyTgX+CI/OQp/7Tbfr93+5Sd+nBNs5 U8Skrm4Z+8V5UKtd2L0GdS8WuFwOAZm5eGL9oaf3HOgiLaNP6XbqdsL/S+ymmKx0dK9s doZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:autocrypt:from :references:cc:to:subject:sender:dkim-signature; bh=ozYkzZahxasDu0RA4+Fy0mh6v5SoOyFZLD3eJA9VLk0=; b=e8CulxAjaXj2sKzWKRuseJOlvkZ2gULsq9h6rVaJ1BsePd618smcEm/iwb6S060eAX YITpKNGDQ2N4CC5yAyhErc0ypmYPP+WrY5wczILHp2ax5ez3lE1F0iJ7LDTUqare3App NmsYSAsagL+2cwTw4bILWGT9F/Hu4X4rHgCJtGFmQ+68t204iXgfKG7b7s8E0HkzOqmd zKnqopE6sNCP1/aZacN9VfV1NyjLlkQcUf705wXx5uJtLAShnJA/8JgZPyz+lkDMLFor foyxaToIrZFaLVxkv+47PjeZba27Rt+2TgS04Sp468m2Oji7klAKBKFjxj1+b2oRR7vO JOug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pWYnQj1L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si18400209pfi.107.2021.04.13.00.01.55; Tue, 13 Apr 2021 00:02:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pWYnQj1L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237736AbhDLUF1 (ORCPT + 99 others); Mon, 12 Apr 2021 16:05:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237103AbhDLUF0 (ORCPT ); Mon, 12 Apr 2021 16:05:26 -0400 Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51401C061574; Mon, 12 Apr 2021 13:05:08 -0700 (PDT) Received: by mail-ot1-x334.google.com with SMTP id s16-20020a0568301490b02901b83efc84a0so13934950otq.10; Mon, 12 Apr 2021 13:05:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ozYkzZahxasDu0RA4+Fy0mh6v5SoOyFZLD3eJA9VLk0=; b=pWYnQj1LoCTihTMEFWLBB5lq3oDRUOy60PH60d0mY9fR8Da12WMm0ustgmWk8R7kS1 +kDIbG9Iu6EMuhHZMr7aYf1dI0KnyUWN7YIJHakXgLDqksjDP1Vu9OhLLauve0T8YI8M KGwIMyxekni9ZwwPsdRdd7liV0mNkzP2AVw5GMfVYr+AQdQstYsFaLhxHbWVuIfKYWll ZV7UzqCswJZfPUk8DIPjzKg/SYChHcVlBB93D8MpA+v3mnayH/XDoVmaOae5cnf3hM+k BN/9sp/oXNHB+t6hGdFQjys5+1Qb8dwGLDbefknejbBNp7a3X5L5wTxNlicjLEbc1duM 7fLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=ozYkzZahxasDu0RA4+Fy0mh6v5SoOyFZLD3eJA9VLk0=; b=lrvx/em07uZpRcccEdPXbkMXTiiMaC6gidmK+icSvx2HHqY6kK7WPiWiltJcynXYA6 +F5T2CN1CF3o2OCgtuT4HJveDixJk+1W1Vs+JI5Oagzr1yGS2GUT70fLnxCmRGNrps95 rAoyB/pK3kEtbA6dZRA2IbT1RygSt/tJpCTeAGl78JQdXXlqqvbJ/ITP/81D9365bRgi u+5j5PQIUnlLBHEkG9g1co+OmHpCZoyFAqQFA2MyZA3rGBH/n0WGn+L4w4oNVhm/EV8c C5x0B5zGbIOPjtxcj92dsp0TatFFoCCQLjg6jxP37wWKlmF4oVvC24uekRvw5qXaUabK b0+Q== X-Gm-Message-State: AOAM5338Lxnwx6HzrkUVUg1kXxJ1xhzvtb2N4yb1BCqAfat8+frrVsDm dRPR0Dix0guXS59csaipz02cD1jAsT4= X-Received: by 2002:a9d:7a53:: with SMTP id z19mr1831265otm.40.1618257907168; Mon, 12 Apr 2021 13:05:07 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id t203sm2442572oig.2.2021.04.12.13.05.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Apr 2021 13:05:06 -0700 (PDT) Sender: Guenter Roeck Subject: Re: Linux 5.12-rc7 To: Eric Dumazet Cc: Linus Torvalds , Xuan Zhuo , "Michael S. Tsirkin" , Linux Kernel Mailing List , Netdev References: <20210412051445.GA47322@roeck-us.net> <78c858ba-a847-884f-80c3-cb1eb84d4113@roeck-us.net> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN/W8Vk BIsJMaWOhks//7d92Uf3EArDlDShwR2+D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n7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: Date: Mon, 12 Apr 2021 13:05:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/12/21 10:38 AM, Eric Dumazet wrote: [ ... ] > Yes, I think this is the real issue here. This smells like some memory > corruption. > > In my traces, packet is correctly received in AF_PACKET queue. > > I have checked the skb is well formed. > > But the user space seems to never call poll() and recvmsg() on this > af_packet socket. > After sprinkling the kernel with debug messages: 424 00:01:33.674181 sendto(6, "E\0\1H\0\0\0\0@\21y\246\0\0\0\0\377\377\377\377\0D\0C\00148\346\1\1\6\0\246\336\333\v\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0RT\0\ 424 00:01:33.693873 close(6) = 0 424 00:01:33.694652 fcntl64(5, F_SETFD, FD_CLOEXEC) = 0 424 00:01:33.695213 clock_gettime64(CLOCK_MONOTONIC, 0x7be18a18) = -1 EFAULT (Bad address) 424 00:01:33.695889 write(2, "udhcpc: clock_gettime(MONOTONIC) failed\n", 40) = -1 EFAULT (Bad address) 424 00:01:33.697311 exit_group(1) = ? 424 00:01:33.698346 +++ exited with 1 +++ I only see that after adding debug messages in the kernel, so I guess there must be a heisenbug somehere. Anyway, indeed, I see (another kernel debug message): __do_sys_clock_gettime: Returning -EFAULT on address 0x7bacc9a8 So udhcpc doesn't even try to read the reply because it crashes after sendto() when trying to read the current time. Unless I am missing something, that means that the problem happens somewhere on the send side. To make things even more interesting, it looks like the failing system call isn't always clock_gettime(). Guenter