Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp457102rwj; Sat, 29 Oct 2022 06:00:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM70dyYm1VEcbobK2iJ8t8JpGOlR7z7tcR+xtaBQf/YS8FiAVWPaLd/mVfISGfpaUUzvEVAj X-Received: by 2002:a17:907:845:b0:731:2f6c:6dbd with SMTP id ww5-20020a170907084500b007312f6c6dbdmr3733080ejb.551.1667048431319; Sat, 29 Oct 2022 06:00:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667048431; cv=none; d=google.com; s=arc-20160816; b=uYhvQ15XCwZ7M/COQ9q1RS14BJp6rClHuPHABnBi2rjpi5sr+GPzg9L+U2fLywigvQ Yc1qDAFGvZ094CURKstr50FBmOkRAR5/SMo7aLQ65HbAryTA3ocsmpMDjU1D6QXxO0oV Da/PtYG9UFsdd/USW2qJS6ijJ4i+U3mCnEv8cMEb1vjVyYtwyImpXbwEllZnB1GQ+zqj H6IWzvsPHYdFvtTNh7IrNaJiHrejA4mCW8nJIWdCbk41xa01moPuXM5OQxjJNE0I0wv+ +6veaawqMgpOMBa9e78UKDNNq3Y0skOoxGliZaHC0+1uDc5DzVdizyOjI23vCyb0BSWT jIfw== 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 :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=jUAEzgZu6ubLO4cUXWa2XSmvmwCRk8WkmrqPlyrXUUc=; b=CULnjcBefwu07dbKKos/rmVbq0FargsDPIMq/x/89gFau/CGIv2RBkMwbrsSq3e3NR Nro/sdQht5OFgyO5pfI+SHccBZnhGQfaZvdFw4pe+7iEc45GP26TxAehE5EgVzZf+Ov0 ZS7EYhDi4A7ZobxvKYWu1y+Bog2d002NEsZMArZ2wykPJjtulHvecoT+z//exiS7AIIk 9OpGUp42ugNqxt9th7Eu2x0j9CLzscCTXRkEAXWPv8PgGrnLbHQaXt5637QTHHmxujKD R+TSOEGe7mfW138DduQKOds6LQD7+OCNglRDKltSv2mCfLP4eyiAoI53lD5JaxTo152d PBcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u2-20020a509502000000b00458d43beac7si1657442eda.41.2022.10.29.06.00.03; Sat, 29 Oct 2022 06:00:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229795AbiJ2MXm (ORCPT + 99 others); Sat, 29 Oct 2022 08:23:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbiJ2MXi (ORCPT ); Sat, 29 Oct 2022 08:23:38 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 888FD4DB4A for ; Sat, 29 Oct 2022 05:23:37 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-193-yOyJapxqNr6g5VWDcEBcsw-1; Sat, 29 Oct 2022 13:23:34 +0100 X-MC-Unique: yOyJapxqNr6g5VWDcEBcsw-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Sat, 29 Oct 2022 13:23:33 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.042; Sat, 29 Oct 2022 13:23:33 +0100 From: David Laight To: 'Rong Tao' , "andrii.nakryiko@gmail.com" CC: "andrii@kernel.org" , "ast@kernel.org" , "bpf@vger.kernel.org" , "daniel@iogearbox.net" , "haoluo@google.com" , "john.fastabend@gmail.com" , "jolsa@kernel.org" , "kpsingh@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-kselftest@vger.kernel.org" , "martin.lau@linux.dev" , "mykolal@fb.com" , "rongtao@cestc.cn" , "sdf@google.com" , "shuah@kernel.org" , "song@kernel.org" , "yhs@fb.com" Subject: RE: [PATCH bpf-next] selftests/bpf: Fix strncpy() fortify warning Thread-Topic: [PATCH bpf-next] selftests/bpf: Fix strncpy() fortify warning Thread-Index: AQHY60Mk36Wn0FfjTU6Muu9w9hWY+64lSbUw Date: Sat, 29 Oct 2022 12:23:33 +0000 Message-ID: <1611fe67d311461aa5f820836318bacc@AcuMS.aculab.com> References: In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.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