Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp784411imu; Fri, 7 Dec 2018 08:51:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/U6LfJB1diNtfoIzR6JPcK/ZCScp5z98UgRKaDyf4ZXWU8G4ADwKu+5D9A2nUhDc4BqiRNP X-Received: by 2002:a63:2586:: with SMTP id l128mr2685140pgl.104.1544201486152; Fri, 07 Dec 2018 08:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544201486; cv=none; d=google.com; s=arc-20160816; b=0NQehJ+g6PV6HZSWvV/0ykQJmii8JMmiODoCsENf1RjOnUxyNxw9MjBLFJlTlchhFU AvXpfvW+rmAGRhjJFfFfHoPPS5bNSAzjuZrXMnrbDGWqJKyokndZVXVYVhJGA/hIoOyy o/5ULw2KbeFcYhpHZJzGvo7D2eV0I8mcWI62wqE+Kjoz3UaxxmBT+tbm69gxLlqXZa4V exseqVDyI+tMt4m65vraJN6ep9z0VmjI6XGV3hyyeMR2W2ooYApD5FVHZln63DWLjo32 mjipz5SMl/UkIdh41f/v7eXKMdslnFw8O1hW6XVgdx3Ctx69YXLTHaPwY0FqobD3kXM4 8P1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=Twlj9Qv9pVnEuruxWbV1j5EiCVub4lrC1EF9Uicw69E=; b=S7WzW17jo2N/t6y/KTb1azx/Qba0cG+nQ/fYsqXW0uRZLgZ7Juc2k9ErTjz4nNff7r DQL5OlpCKA7ZThT189Qh6nxujFgue+Fjv85D25mKS5tP4QaJD8/ARlj+ZPPg/tptKdva Xr0f6r8ySE9mL8ayjN7L01AeOsMODeOmddQ/Y50dp1hVvTacx+1Atu9rkD9w3vyaz2WR O0jZhb9Jws/UM+VOlrIS+zLPp2KTLQQNH0wk7pmfocsyNvZCgUxG0s6PKi87GJnMKIm8 Ho1wJ9pgNEHxeq3p72fHU6RVe090DLaKtFKBRHP5N9BXu0lkXjtGh96oUuWyThX55rV7 I+KQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v32si3426450plb.369.2018.12.07.08.51.09; Fri, 07 Dec 2018 08:51:26 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726150AbeLGQuQ (ORCPT + 99 others); Fri, 7 Dec 2018 11:50:16 -0500 Received: from dispatch1-us1.ppe-hosted.com ([67.231.154.164]:39774 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbeLGQuP (ORCPT ); Fri, 7 Dec 2018 11:50:15 -0500 X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (webmail.solarflare.com [12.187.104.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us1.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id 895E640009F; Fri, 7 Dec 2018 16:50:13 +0000 (UTC) Received: from ec-desktop.uk.solarflarecom.com (10.17.20.45) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 7 Dec 2018 08:49:42 -0800 Subject: Re: [PATCH v2 0/4] Static calls From: Edward Cree To: Josh Poimboeuf CC: , , Paolo Abeni References: <0e96ac37-d5c5-86b6-833c-0de01ba18f0d@solarflare.com> Message-ID: <188e9e90-ed8a-18d9-fc69-c208b80404f1@solarflare.com> Date: Fri, 7 Dec 2018 16:49:40 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <0e96ac37-d5c5-86b6-833c-0de01ba18f0d@solarflare.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Originating-IP: [10.17.20.45] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24268.005 X-TM-AS-Result: No-3.620900-4.000000-10 X-TMASE-MatchedRID: 7ySqCuYCpfgOwH4pD14DsPHkpkyUphL92aYdnwn7qHcifM7JMNHW696M yUV+2+DZzXEUzvqkO8ahd5adCGkZGhIr2CZ2yHDIgZTbeFUhryEhHWssEmb8zkUNHQAoZf5c0JL YEuZmPHUOooaO+2ZHgNdLImwRoYjwNyl1nd9CIt2DGx/OQ1GV8mMVPzx/r2cb+gtHj7OwNO2Ohz Oa6g8KrcltHG1NG26gu5y8oEgIYHe6/GH5R/o0QFAB2ZAhkU59e9XBNUoc3/G+5QxbJXG8vwS9x e5wYKfGCI25swWdzFnsb5Ds7KVDcFPJBGEjehn+xfIRsEOHYJQiE3CyIkp0VAp6vLKoD5fOWTWZ GGyDOKY= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--3.620900-4.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24268.005 X-MDID: 1544201414-Ql2z4z2bNj8m Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/12/18 16:06, Edward Cree wrote: > Sorry if this has been pointed out before (it's a very long thread), but > in the out-of-line implementation, it appears that static_call_update() > never alters key->func. Am I right in thinking that this should be > fixed by adding 'WRITE_ONCE(key->func, func);' just after the call to > arch_static_call_transform() on line 159 of include/linux/static_call.h? On further examination, it's worse than that. Why does the CONFIG_HAVE_STATIC_CALL_OUTLINE static_call_update() not  call __static_call_update()?  It contains nothing but a BUILD_BUG_ON,  which isn't likely to update anything. -Ed