lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <70ddf02157bc418cbc38230c87a7b228@AcuMS.aculab.com>
Date:   Tue, 1 Nov 2022 09:27:06 +0000
From:   David Laight <David.Laight@...LAB.COM>
To:     'Rong Tao' <rtoax@...mail.com>
CC:     "andrii.nakryiko@...il.com" <andrii.nakryiko@...il.com>,
        "andrii@...nel.org" <andrii@...nel.org>,
        "ast@...nel.org" <ast@...nel.org>,
        "bpf@...r.kernel.org" <bpf@...r.kernel.org>,
        "daniel@...earbox.net" <daniel@...earbox.net>,
        "haoluo@...gle.com" <haoluo@...gle.com>,
        "john.fastabend@...il.com" <john.fastabend@...il.com>,
        "jolsa@...nel.org" <jolsa@...nel.org>,
        "kpsingh@...nel.org" <kpsingh@...nel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-kselftest@...r.kernel.org" <linux-kselftest@...r.kernel.org>,
        "martin.lau@...ux.dev" <martin.lau@...ux.dev>,
        "mykolal@...com" <mykolal@...com>,
        "rongtao@...tc.cn" <rongtao@...tc.cn>,
        "sdf@...gle.com" <sdf@...gle.com>,
        "shuah@...nel.org" <shuah@...nel.org>,
        "song@...nel.org" <song@...nel.org>, "yhs@...com" <yhs@...com>
Subject: RE: RE: [PATCH bpf-next] selftests/bpf: Fix strncpy() fortify warning

From: Rong Tao <rtoax@...mail.com>
> Sent: 01 November 2022 09:25
> 
> Can we just use the first patch?
> https://lore.kernel.org/lkml/tencent_EE3E19F80ACD66955D26A878BC768CFA210A@qq.com/

IIRC strlcpy() does the copy you want.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ