微软 | mimalloc 性能测试
https://www.microsoft.com/en-us/research/uploads/prod/2019/06/mimalloc-tr-v1.pdf
mimalloc 是微软开发的高性能内存分配器。GitHub: https://github.com/microsoft/mimalloc
https://www.microsoft.com/en-us/research/uploads/prod/2019/06/mimalloc-tr-v1.pdf
mimalloc 是微软开发的高性能内存分配器。GitHub: https://github.com/microsoft/mimalloc
Accidentally Quadratic | Rust 哈希表的遍历拷贝 (2016)
https://accidentallyquadratic.tumblr.com/post/153545455987/rust-hash-iteration-reinsertion
* 这个问题不久后就被解决了
https://accidentallyquadratic.tumblr.com/post/153545455987/rust-hash-iteration-reinsertion
* 这个问题不久后就被解决了
Tumblr
Post by @accidentallyquadratic · 2 images
💬 1 🔁 45 ❤️ 95 · Rust hash iteration+reinsertion · It was recently discovered that some surprising operations on Rust’s standard hash table types could go quadratic.
Perhaps the simplest illustr…
Perhaps the simplest illustr…
Forwarded from Phonograph (Ralph 萌新喵)
“祝融号”传回火星着陆照片。
如果你觉得C++不好
你就去加入C++标准委员会
从你自己开始提案并改变身边的人
而不是一昧的谩骂,抱怨,逃离
横眉冷对千夫指
俯首甘为孺子牛
你怎么样
C++便怎么样
你是什么
C++便是什么
你若光明
C++便不黑暗
src: https://www.zhihu.com/pin/1378420757484113920
你就去加入C++标准委员会
从你自己开始提案并改变身边的人
而不是一昧的谩骂,抱怨,逃离
横眉冷对千夫指
俯首甘为孺子牛
你怎么样
C++便怎么样
你是什么
C++便是什么
你若光明
C++便不黑暗
src: https://www.zhihu.com/pin/1378420757484113920
Forwarded from Foolish TraceWind (fourstring | 当时只道是寻常)
Forwarded from Hacker News
In 1982, a one-bit hack let me dodge a summer of filling in potholes (🔥 Score: 104+ in 1 hour)
Link: https://readhacker.news/s/4LVzi
Comments: https://readhacker.news/c/4LVzi
Link: https://readhacker.news/s/4LVzi
Comments: https://readhacker.news/c/4LVzi
Substack
A Teenager's Guide to Avoiding Actual Work
How in 1982, the author successfully hacked his way out of having to fill in potholes.
Forwarded from 层叠 - The Cascading
从 2020 年末开始,Sci-Hub 就没有更新新论文了。再加上最近 Sci-Hub 创建者 Alexandra Elbakyan 收到的关于 FBI 要求 Apple 提供其数据,并且延迟通知用户的邮件 [1],使许多用户担心 Sci-Hub 的生存。 r/DataHoarder 的成员发起了一项为 Sci-Hub 数据做种的计划。有至少 50G 左右空余空间的订户也可以考虑加入这个计划,为 Sci-Hub 数据做种。
[2] 列出了少于 3 位做种者的种子列表。
[3] 列出了所有文件的分卷种子列表,总大小约 77TB。
https://www.reddit.com/r/DataHoarder/comments/nc27fv/rescue_mission_for_scihub_and_open_science_we_are/
1. https://twitter.com/ringo_ring/status/1390782451140767749
2. https://phillm.net/torrent-health-frontend/seeds-needed-scimag.php
3. http://libgen.rs/scimag/repository_torrent/
[2] 列出了少于 3 位做种者的种子列表。
[3] 列出了所有文件的分卷种子列表,总大小约 77TB。
https://www.reddit.com/r/DataHoarder/comments/nc27fv/rescue_mission_for_scihub_and_open_science_we_are/
1. https://twitter.com/ringo_ring/status/1390782451140767749
2. https://phillm.net/torrent-health-frontend/seeds-needed-scimag.php
3. http://libgen.rs/scimag/repository_torrent/
Reddit
From the DataHoarder community on Reddit: Rescue Mission for Sci-Hub and Open Science: We are the library.
Explore this post and more from the DataHoarder community
Forwarded from 每日消费电子观察 (MizuhashiZ 💉🆚☣️ ㅤ)
Forwarded from Rust 视界
【Rust 安全案例】Rust 也能写出漏洞,但都是逻辑漏洞
> 题外话: 之前看到知乎上有人说 Rust 2021 年光 CVE 就有近百个。那咱们今天就捡个热乎的 CVE 看看到底是咋回事。
2021-05-18 ,openSUSE 邮件列表里收到一份安全报告,主题如下:
- [oss-security] please: CVE-2021-31153,CVE-2021-31154,CVE-2021-31155: local root exploit and further
缘由:
[please](https://gitlab.com/edneville/please.git) 是一个 Rust 实现的替代 sudo 的工具,该库作者向SUSE 团队提出setuid-root 的代码安全审核。然后就被发现存在很多安全问题,并且包含一个比较严重的本地root漏洞,允许执行命令。
报告摘录如下:
- 可以进行任意文件存在测试,并且可以以root用户身份打开任意文件
- 通过search_path()函数进行任意文件存在性测试
- 通过`-d`开关进行任意文件存在性测试
- 使用不可信的umask创建令牌目录“ / var / run / pleaser / token”
- 允许通过pleaseedit编辑任何文件,允许任意文件覆盖和所有权更改
结论:
1. 哪怕是 Rust 这样的现代语言,要实现 setuid-root 二进制文件也是一个很大的挑战。
2. please库中几乎没有unsafe(只有几行 libc/nix调用),所以基本已经不存在内存安全类的漏洞了,但是像这种逻辑漏洞是无法避免的。(除非你不写代码。
> setuid 二进制文件是在非 root 用户 shell 程序中运行的 root 权限二进制文件
https://marc.info/?l=oss-security&m=162133298513412&w=2
https://bugzilla.suse.com/show_bug.cgi?id=1183669
> 题外话: 之前看到知乎上有人说 Rust 2021 年光 CVE 就有近百个。那咱们今天就捡个热乎的 CVE 看看到底是咋回事。
2021-05-18 ,openSUSE 邮件列表里收到一份安全报告,主题如下:
- [oss-security] please: CVE-2021-31153,CVE-2021-31154,CVE-2021-31155: local root exploit and further
缘由:
[please](https://gitlab.com/edneville/please.git) 是一个 Rust 实现的替代 sudo 的工具,该库作者向SUSE 团队提出setuid-root 的代码安全审核。然后就被发现存在很多安全问题,并且包含一个比较严重的本地root漏洞,允许执行命令。
报告摘录如下:
- 可以进行任意文件存在测试,并且可以以root用户身份打开任意文件
- 通过search_path()函数进行任意文件存在性测试
- 通过`-d`开关进行任意文件存在性测试
- 使用不可信的umask创建令牌目录“ / var / run / pleaser / token”
- 允许通过pleaseedit编辑任何文件,允许任意文件覆盖和所有权更改
结论:
1. 哪怕是 Rust 这样的现代语言,要实现 setuid-root 二进制文件也是一个很大的挑战。
2. please库中几乎没有unsafe(只有几行 libc/nix调用),所以基本已经不存在内存安全类的漏洞了,但是像这种逻辑漏洞是无法避免的。(除非你不写代码。
> setuid 二进制文件是在非 root 用户 shell 程序中运行的 root 权限二进制文件
https://marc.info/?l=oss-security&m=162133298513412&w=2
https://bugzilla.suse.com/show_bug.cgi?id=1183669
GitLab
ed neville / please
please, sudo like program with regex support written in rust
https://twitter.com/TylerG1998/status/1395120786806087688?s=19
小心 NASA 总管打 Starship 牌
小心 NASA 总管打 Starship 牌
Twitter
Tyler Gray
😅
&'a ::rynco::UntitledChannel
https://twitter.com/TylerG1998/status/1395120786806087688?s=19 小心 NASA 总管打 Starship 牌
* 原图:小心 NASA 总管打祝融牌
https://twitter.com/jeff_foust/status/1395099163583557634?s=19
https://twitter.com/jeff_foust/status/1395099163583557634?s=19
Twitter
Jeff Foust
Nelson shows an image from Chinese Zhurong Mars lander. China’s program “adding a new element about whether we want to be serious” about getting back to the Moon.
Forwarded from Hacker News
Sharing learnings about our image cropping algorithm (Score: 101+ in 3 hours)
Link: https://readhacker.news/s/4LXpq
Comments: https://readhacker.news/c/4LXpq
Link: https://readhacker.news/s/4LXpq
Comments: https://readhacker.news/c/4LXpq
Twitter
Sharing learnings about our image cropping algorithm
Twitter shares a technical analysis of its assessment for potential bias in its image cropping algorithm as part of its efforts to be more transparent around how it uses machine learning to improve pe
Forwarded from 每日消费电子观察 (无羽の翼 (「 • ̀ω•́ )「)
微软 将于2022年6月15日删除个人版 Win10 中 IE 浏览器
https://www.pingwest.com/w/241848
「微软今日在官方技术论坛中宣布,将于2022年6月15日删除个人版Win10中的 Internet Explorer(IE)浏览器,而由于企业需要,LTSC长期服务版Win10将继续保留。 此外,微软 Office 365将于2021年8月17日后停止支持IE 11浏览器。」
https://www.pingwest.com/w/241848
「微软今日在官方技术论坛中宣布,将于2022年6月15日删除个人版Win10中的 Internet Explorer(IE)浏览器,而由于企业需要,LTSC长期服务版Win10将继续保留。 此外,微软 Office 365将于2021年8月17日后停止支持IE 11浏览器。」
品玩
微软将于2022年6月15日删除个人版Win10中IE浏览器-品玩
Forwarded from Hacker News
Nikola Tesla invention from 100 years ago suddenly makes more sense today (Score: 100+ in 3 hours)
Link: https://readhacker.news/s/4LYy8
Comments: https://readhacker.news/c/4LYy8
Link: https://readhacker.news/s/4LYy8
Comments: https://readhacker.news/c/4LYy8
CNET
Nikola Tesla invention from 100 years ago suddenly makes more sense today
The eccentric inventor is known for dabbling with electricity, but his Tesla valve is impressing scientists anew.