From nobody Fri Aug 9 15:11:47 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WgS7H5yZFz5SCGG for ; Fri, 09 Aug 2024 15:11:55 +0000 (UTC) (envelope-from vegeta@tuxpowered.net) Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WgS7G4S4jz4m5Y for ; Fri, 9 Aug 2024 15:11:54 +0000 (UTC) (envelope-from vegeta@tuxpowered.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tuxpowered-net.20230601.gappssmtp.com header.s=20230601 header.b=FODMSg6C; dmarc=none; spf=pass (mx1.freebsd.org: domain of vegeta@tuxpowered.net designates 2a00:1450:4864:20::22e as permitted sender) smtp.mailfrom=vegeta@tuxpowered.net Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2ef2c56d9dcso23535151fa.2 for ; Fri, 09 Aug 2024 08:11:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxpowered-net.20230601.gappssmtp.com; s=20230601; t=1723216311; x=1723821111; darn=freebsd.org; h=autocrypt:subject:from:to:content-language:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=rVGk2GIGy8b21oP87wFGbhffilm9lFwZzo3ITmQllPY=; b=FODMSg6Cc47QaTTdtoLgBDQjGrQPNAtWGZ2eky16wMwEy+4BiSdzmsPsE/Amg3GR2r pMVB2lkD/kvyU3foVl07Cqsd8BxSaOy3bMyKPCpHzmEMrGOQhY/+39Gsstu4CjbLg9h6 BqiZaZS0SDDpVq/2/iGXTTknfYRISTghjBgG0Ubpz2SUp/l6s95cFOoYgTJArsOZNi00 cxyXB5ZwX6egSxirVQ88IqWMai/dohyJ1zTl5+jpHiwkdVySpDc+Xs62yehSk561RHA9 8kH85S3sufXvq1aro2l1e7ZwkKbghsl2ohwR0qWdO8rRdnWP/46RHDxXSwJ/mrao9Wy7 z7bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723216311; x=1723821111; h=autocrypt:subject:from:to:content-language:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rVGk2GIGy8b21oP87wFGbhffilm9lFwZzo3ITmQllPY=; b=JdUBtMsOAI3PID6L+Dzcc+A7Sgm4QQAnwukNIQOdCsabChas+52mN+uaQtYXd+gENW B4loxAZvjlMGeaBqOL0ReUXrBCdB09NuCk+nr+PJ650qujMlPlpaXWIi1of3m6y2ekaA TKYLSC4Vz8W/e+t89LPNPxeVsXdrBjVClYA2xqRtWTCnAgmcltPo3xtDbrkxduoFLJHb 4YF7HFNQ8dC8MduV9EcfXz5L/7c2jQTvQh3O0jkgYo6+Vih62k2htRAwDOlzjbpK1DYX Khfv+36WQQpIB+Ee2SvEAU4JpnfYXgwO6jTAtzj5piqij5Y8T+QUOcXLqllmQjSufD7N nyDg== X-Gm-Message-State: AOJu0Yzvf+nMYyF6Yu/2W+mUf5gCEDiXoaqCTBu+ZJe/PMQ8Y8KJMZur 1jK1G/T+L861zbTQyFWtgmi5zzVCq9xUgC63HDD+hBYD3o6QLG0B5nBYdoUNWpnlHdVWyLM6H8K z0o8= X-Google-Smtp-Source: AGHT+IGI9tCgRg2vNWEujm11gvg1avM6zsql27xdws2SqnJeVplMolBaMvdfVH82gewrthAjnxYP7Q== X-Received: by 2002:a2e:2e11:0:b0:2ef:265e:bb8b with SMTP id 38308e7fff4ca-2f1a6c5a84emr14029311fa.18.1723216310502; Fri, 09 Aug 2024 08:11:50 -0700 (PDT) Received: from [192.168.178.148] (31.29.54.208.dynamic-pppoe.dt.ipv4.wtnet.de. [31.29.54.208]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4290c7617b3sm80047145e9.29.2024.08.09.08.11.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Aug 2024 08:11:49 -0700 (PDT) Message-ID: Date: Fri, 9 Aug 2024 17:11:47 +0200 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-GB To: freebsd-hackers@freebsd.org From: Kajetan Staszkiewicz Subject: refcount without locking? Autocrypt: addr=vegeta@tuxpowered.net; keydata= xsFNBGSvtwgBEADIx3vgFBaDsFD4MOGIsWSmHag9q8x3J5OrqBR9aIdeeDW4ghnPM1NgD8EQ HQvaAufffQ/vYXSWWJyDdquVARWprEXXQIMQZcDhw0pHtSrNK6NFF5UWfBkxYxAr2hTlRp0b R7QZk3ezGUElBpf+SJq5cCOy//32hnzJiKb+5hlL0QOheWKwKignhLckW8Yat+kjhsxw7pR8 vn/XSCwyejx3I8v2DZsTuXVOvbKr6kNwDryjl6JJwKFoQ/aNUeD7dmLP2ieB9HCHBBBIi16Z JcUCyJw8LI6GPrfr5zPEP38Up/psDQWoldbO2Kf5DyCN2HGFKLrK9StyjiMs4dgaA0ZXxIdn JTzdAP6+d1qIfvv5mGhbqTvHgX6ReR7l93eE3Q6WJqGiuFGUtKdU5qaRHd4IdbFnhNK/rWjg ZoKAlZwhnZ9BWZC8Vb9DznURYQUubt2Gr7Sutt0043d/WoWyGS2p7dEfXaeE1WE7n/6KqbBU zG/rF/20eeT0lmrNAy9pgFD5WmTtzHnljBzQSBDMTxZP3iEmFa0pXP+Ch/H26AxV99MX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NqmD4wyopjblCGSeKNy kiiFA70umn5tB+Ra8H5k+n/e2QluKns+DoIg1Hm5chk/emBG42JYTdrMhLFQGZnzJU3WJf1j cVzOFLcqDuq+IwRPJrCZXsLft2O79uU+zbla+RdWd0uIzjbM4R8jch470h5cK61kcaQ7UwSb OpdPyq9PqFl26x2g4jDNmFLAuQDEBJoxmZA2bNfQk+DwYYTuoTItN3F674nb8Fk+tQyXL6fl 5CXOJOTJArKmokrPLcr3HXGUQpfBzXRDuK0UKgn3m9UXq2laaODgswuoZqm0vqWuWIRMm84J Wbiwhrslf0hn78s= Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------GRdqO5f1XvEd7bV0Cs0I0GdR" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.49 / 15.00]; SIGNED_PGP(-2.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_BASE64_TEXT_BOGUS(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[tuxpowered-net.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_BASE64_TEXT(0.10)[]; XM_UA_NO_VERSION(0.01)[]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[tuxpowered.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; HAS_ATTACHMENT(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[tuxpowered-net.20230601.gappssmtp.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22e:from] X-Rspamd-Queue-Id: 4WgS7G4S4jz4m5Y This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------GRdqO5f1XvEd7bV0Cs0I0GdR Content-Type: multipart/mixed; boundary="------------lICeWCZL0iO1A1PjZQD6rzw2"; protected-headers="v1" From: Kajetan Staszkiewicz To: freebsd-hackers@freebsd.org Message-ID: Subject: refcount without locking? --------------lICeWCZL0iO1A1PjZQD6rzw2 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 SGVsbG8gZ3JvdXAsDQoNCkknbSB3b3JraW5nIG9uIHNpbXBsaWZ5aW5nIHNvbWUgYXNwZWN0 cyBvZiBzb3VyY2Ugbm9kZSB0cmFja2luZyBpbiBwZiANCmFuZCBJIHRob3VnaHQgdGhhdCB1 c2luZyByZWZlcmVuY2UgY291bnRpbmcgd291bGQgYWxsb3cgdG8gc2ltcGxpZnkgdGhlIA0K Y29kZSBhIGJpdCBieSBkZXRhY2hpbmcgdGhlIGNvdW50ZXIgb2Ygc3RhdGVzIGF0dGFjaGVk IHRvIGEgc291cmNlIG5vZGUgDQooY3VycmVudGx5IHByZXRlbmRpbmcgdG8gYmUgYSByZWZl cmVuY2UgY291bnRlciB0b28pIGZyb20gYSByZWZlcmVuY2UgDQpjb3VudGVyIChub24tZXhp c3RlbnQgbm93KS4gQnV0IEkgY2FuJ3QgZmlndXJlIG91dCBob3cgcmVmY291bnQoOSkgDQpz aG91bGQgYmUgdXNlZC4NCg0KVGhlIG1hbiBwYWdlIGZvciByZWZjb3VudCg5KSBzdGF0ZXM6 DQoNCiA+IE5vdGUgdGhhdCB0aGVzZSByb3V0aW5lcyBkbyBub3QgcHJvdmlkZSBhbnkgaW50 ZXItQ1BVDQogPiBzeW5jaHJvbml6YXRpb24gb3IgZGF0YSBwcm90ZWN0aW9uIGZvciBtYW5h Z2luZyB0aGUgY291bnRlci4NCg0KQnV0IG1vc3Qgb2YgcmVmZXJlbmNlIGNvdW50aW5nIGZ1 bmN0aW9ucyB1c2UgYXRvbWljIG9wZXJhdGlvbnMuIEkgDQp1bmRlcnN0YW5kIHRoYXQgdGhv c2Ugb3BlcmF0aW9ucyB3aWxsIGd1YXJhbnRlZSB0aGF0IHJlZmVyZW5jZSANCmluY3JlbWVu dHMgYW5kIGRlY3JlbWVudHMgd2lsbCB3b3JrIHByb3Blcmx5IG92ZXIgbXVsdGlwbGUgdGhy ZWFkcyBhbmQgDQptdWx0aXBsZSBDUFVzIG9yIENQVSBjb3Jlcy4NCg0KSG93IHNob3VsZCBy ZWZjb3VudCg5KSBiZSB1c2VkIHJlZ2FyZGluZyBsb2NraW5nPw0KDQotLSANCnwgcG96ZHJh d2lhbSAvIHJlZ2FyZHMgfCBQb3dlcmVkIGJ5IG1hY09TLCBEZWJpYW4gYW5kIEZyZWVCU0Qg fA0KfCBLYWpldGFuIFN0YXN6a2lld2ljeiB8ICB3d3c6IGh0dHA6Ly92ZWdldGEudHV4cG93 ZXJlZC5uZXQgICB8DQpgLS0tLS0tLS0tLS0tLS0tLS0tLS0tLV4tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLScNCg== --------------lICeWCZL0iO1A1PjZQD6rzw2-- --------------GRdqO5f1XvEd7bV0Cs0I0GdR Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature.asc" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEfSEIcxY9kDeZvSZsgKrXf6bzAFMFAma2MbMFAwAAAAAACgkQgKrXf6bzAFNm kQ/+JvyRIRiF4AHjzViD53Kcm0hWD973K0BH2cT1/V+V+kOszTt64cOvHrMNTzlxjroIGs8WwtOx imv1XXAABc/Zl5Yvdy6w1pkUnvFxv68aptWP63DanpyLUefQM6zg2qXcx3U8ITfePhUS2Ntz/OXj +Uwnhb0kjDkIbgOip3WxBRCx2hMDWgPxvk6SHe2X6Vku9CVUu/a097TeQ9Uov8XLaeEVwr9kSypj D1mACg7EtUbS5xUcmfwessciAxYpeYx9Nh8IGes0bJbOn37+Em+lA8CV8GeLjNv3BdQOaZPx0wFg Y2k5rOvaLkbxKfgJIlkDTLoG101iFjttH8mkujHan6U1TTVzHxCetf0t3rDZTW2dLxWCIblK6acQ TqXN3ztlCwjU+XcE1MDkYk2FFYY6Ts0PVH7JWWaiGO9V88YixGrhHJtj76/1mSdaJJklPmQkOk/Z nBD8At65FXwaBJ7DMS3Kwwxq5+oefl5UAa1TPoCfWeCMVtZqlyXU/6u5oYDrYVVJp98DUYKH+2kH /igjgqVEadic6IOt6MFTHcFV/CFicim0GfXwBsosRlmhim2XnUxebqKbCc2cuRbK/ib9ZdmU8JZ2 NVJz/qr3N7IqZawET3YPm1gUC+BqJjrSYtyRzy95BHfJCtZdHpZw/+FbB/VTIifY0BcAfM2nVmHi tIM= =m9fU -----END PGP SIGNATURE----- --------------GRdqO5f1XvEd7bV0Cs0I0GdR--