Merge tag 'mm-hotfixes-stable-2023-07-28-15-52' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Merge commit. Changes below are compared with the first parent: 20d3f241.
Changes
13 files changed · +197 −51
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| .mailmap | modified | +96 | −1 | View file |
| Documentation/filesystems/tmpfs.rst | modified | +20 | −27 | View file |
| arch/um/os-Linux/sigio.c | modified | +4 | −3 | View file |
| fs/proc/vmcore.c | modified | +1 | −1 | View file |
| include/linux/mm.h | modified | +23 | −6 | View file |
| include/linux/mm_types.h | modified | +28 | −0 | View file |
| include/linux/mmap_lock.h | modified | +8 | −2 | View file |
| mm/damon/core-test.h | modified | +5 | −5 | View file |
| mm/memory-failure.c | modified | +1 | −1 | View file |
| mm/mmap.c | modified | +1 | −0 | View file |
| mm/pagewalk.c | modified | +4 | −1 | View file |
| mm/shmem.c | modified | +6 | −3 | View file |
| scripts/spelling.txt | modified | +0 | −1 | View file |
Only the first 600 diff lines are shown. Download the complete patch.
.mailmap
View filediff --git a/.mailmap b/.mailmap
index a33b9f5..5dd3181 100644
--- a/.mailmap
+++ b/.mailmap
@@ -13,7 +13,9 @@
Aaron Durbin <[email protected]>
Abel Vesa <[email protected]> <[email protected]>
Abel Vesa <[email protected]> <[email protected]>
+Abhijeet Dharmapurikar <[email protected]> <[email protected]>
Abhinav Kumar <[email protected]> <[email protected]>
+Ahmad Masri <[email protected]> <[email protected]>
Adam Oldham <[email protected]>
Adam Radford <[email protected]>
Adriana Reus <[email protected]> <[email protected]>
@@ -30,6 +32,7 @@ Alexander Mikhalitsyn <[email protected]> <alexander.mikhalitsyn@virtuozzo
Alexander Mikhalitsyn <[email protected]> <[email protected]>
Alexandre Belloni <[email protected]> <[email protected]>
Alexandre Ghiti <[email protected]> <[email protected]>
+Alexei Avshalom Lazar <[email protected]> <[email protected]>
Alexei Starovoitov <[email protected]> <[email protected]>
Alexei Starovoitov <[email protected]> <[email protected]>
Alexei Starovoitov <[email protected]> <[email protected]>
@@ -37,8 +40,11 @@ Alex Hung <[email protected]> <[email protected]>
Alex Shi <[email protected]> <[email protected]>
Alex Shi <[email protected]> <[email protected]>
Alex Shi <[email protected]> <[email protected]>
+Aloka Dixit <[email protected]> <[email protected]>
Al Viro <[email protected]>
Al Viro <[email protected]>
+Amit Blay <[email protected]> <[email protected]>
+Amit Nischal <[email protected]> <[email protected]>
Andi Kleen <[email protected]> <[email protected]>
Andi Shyti <[email protected]> <[email protected]>
Andreas Herrmann <[email protected]>
@@ -54,6 +60,8 @@ Andrey Ryabinin <[email protected]> <[email protected]>
Andrzej Hajda <[email protected]> <[email protected]>
André Almeida <[email protected]> <[email protected]>
Andy Adamson <[email protected]>
+Anilkumar Kolli <[email protected]> <[email protected]>
+Anirudh Ghayal <[email protected]> <[email protected]>
Antoine Tenart <[email protected]> <[email protected]>
Antoine Tenart <[email protected]> <[email protected]>
Antonio Ospite <[email protected]> <[email protected]>
@@ -62,9 +70,17 @@ Archit Taneja <[email protected]>
Ard Biesheuvel <[email protected]> <[email protected]>
Arnaud Patard <[email protected]>
Arnd Bergmann <[email protected]>
+Arun Kumar Neelakantam <[email protected]> <[email protected]>
+Ashok Raj Nagarajan <[email protected]> <[email protected]>
+Ashwin Chaugule <[email protected]> <[email protected]>
+Asutosh Das <[email protected]> <[email protected]>
Atish Patra <[email protected]> <[email protected]>
+Avaneesh Kumar Dwivedi <[email protected]> <[email protected]>
Axel Dyks <[email protected]>
Axel Lin <[email protected]>
+Balakrishna Godavarthi <[email protected]> <[email protected]>
+Banajit Goswami <[email protected]> <[email protected]>
+Baochen Qiang <[email protected]> <[email protected]>
Baolin Wang <[email protected]> <[email protected]>
Baolin Wang <[email protected]> <[email protected]>
Baolin Wang <[email protected]> <[email protected]>
@@ -93,12 +109,15 @@ Brian Avery <[email protected]>
Brian King <[email protected]>
Brian Silverman <[email protected]> <[email protected]>
Cai Huoqing <[email protected]> <[email protected]>
+Can Guo <[email protected]> <[email protected]>
+Carl Huang <[email protected]> <[email protected]>
Changbin Du <[email protected]> <[email protected]>
Changbin Du <[email protected]> <[email protected]>
Chao Yu <[email protected]> <[email protected]>
Chao Yu <[email protected]> <[email protected]>
Chris Chiu <[email protected]> <[email protected]>
Chris Chiu <[email protected]> <[email protected]>
+Chris Lew <[email protected]> <[email protected]>
Christian Borntraeger <[email protected]> <[email protected]>
Christian Borntraeger <[email protected]> <[email protected]>
Christian Borntraeger <[email protected]> <[email protected]>
@@ -119,7 +138,10 @@ Daniel Borkmann <[email protected]> <[email protected]>
Daniel Borkmann <[email protected]> <[email protected]>
Daniel Borkmann <[email protected]> <[email protected]>
David Brownell <[email protected]>
+David Collins <[email protected]> <[email protected]>
David Woodhouse <[email protected]>
+Dedy Lansky <[email protected]> <[email protected]>
+Deepak Kumar Singh <[email protected]> <[email protected]>
Dengcheng Zhu <[email protected]> <[email protected]>
Dengcheng Zhu <[email protected]> <[email protected]>
Dengcheng Zhu <[email protected]> <[email protected]>
@@ -136,6 +158,7 @@ Dmitry Safonov <[email protected]> <[email protected]>
Domen Puncer <[email protected]>
Douglas Gilbert <[email protected]>
Ed L. Cashin <[email protected]>
+Elliot Berman <[email protected]> <[email protected]>
Enric Balletbo i Serra <[email protected]> <[email protected]>
Enric Balletbo i Serra <[email protected]> <[email protected]>
Erik Kaneda <[email protected]> <[email protected]>
@@ -148,6 +171,7 @@ Faith Ekstrand <[email protected]> <[email protected]>
Felipe W Damasio <[email protected]>
Felix Kuhling <[email protected]>
Felix Moeller <[email protected]>
+Fenglin Wu <[email protected]> <[email protected]>
Filipe Lautert <[email protected]>
Finn Thain <[email protected]> <[email protected]>
Franck Bui-Huu <[email protected]>
@@ -171,8 +195,11 @@ Greg Kurz <[email protected]> <[email protected]>
Gregory CLEMENT <[email protected]> <[email protected]>
Guilherme G. Piccoli <[email protected]> <[email protected]>
Guilherme G. Piccoli <[email protected]> <[email protected]>
+Gokul Sriram Palanisamy <[email protected]> <[email protected]>
+Govindaraj Saminathan <[email protected]> <[email protected]>
Guo Ren <[email protected]> <[email protected]>
Guo Ren <[email protected]> <[email protected]>
+Guru Das Srinagesh <[email protected]> <[email protected]>
Gustavo Padovan <[email protected]>
Gustavo Padovan <[email protected]>
Hanjun Guo <[email protected]> <[email protected]>
@@ -190,6 +217,7 @@ Huacai Chen <[email protected]> <[email protected]>
J. Bruce Fields <[email protected]> <[email protected]>
J. Bruce Fields <[email protected]> <[email protected]>
Jacob Shin <[email protected]>
+Jack Pham <[email protected]> <[email protected]>
Jaegeuk Kim <[email protected]> <[email protected]>
Jaegeuk Kim <[email protected]> <[email protected]>
Jaegeuk Kim <[email protected]> <[email protected]>
@@ -217,10 +245,12 @@ Jayachandran C <[email protected]> <[email protected]>
Jayachandran C <[email protected]> <[email protected]>
Jean Tourrilhes <[email protected]>
+Jeevan Shriram <[email protected]> <[email protected]>
Jeff Garzik <[email protected]>
Jeff Layton <[email protected]> <[email protected]>
Jeff Layton <[email protected]> <[email protected]>
Jeff Layton <[email protected]> <[email protected]>
+Jeffrey Hugo <[email protected]> <[email protected]>
Jens Axboe <[email protected]> <[email protected]>
Jens Axboe <[email protected]> <[email protected]>
Jens Axboe <[email protected]> <[email protected]>
@@ -228,6 +258,7 @@ Jens Axboe <[email protected]> <[email protected]>
Jens Osterkamp <[email protected]>
Jernej Skrabec <[email protected]> <[email protected]>
Jessica Zhang <[email protected]> <[email protected]>
+Jilai Wang <[email protected]> <[email protected]>
Jiri Pirko <[email protected]> <[email protected]>
Jiri Pirko <[email protected]> <[email protected]>
Jiri Pirko <[email protected]> <[email protected]>
@@ -238,6 +269,7 @@ Jiri Slaby <[email protected]> <[email protected]>
Jiri Slaby <[email protected]> <[email protected]>
Jisheng Zhang <[email protected]> <[email protected]>
Jisheng Zhang <[email protected]> <[email protected]>
+Jishnu Prakash <[email protected]> <[email protected]>
Johan Hovold <[email protected]> <[email protected]>
Johan Hovold <[email protected]> <[email protected]>
John Crispin <[email protected]> <[email protected]>
@@ -256,6 +288,7 @@ Jordan Crouse <[email protected]> <[email protected]>
Josh Poimboeuf <[email protected]> <[email protected]>
Josh Poimboeuf <[email protected]> <[email protected]>
+Jouni Malinen <[email protected]> <[email protected]>
Juha Yrjola <at solidboot.com>
Juha Yrjola <[email protected]>
Juha Yrjola <[email protected]>
@@ -263,6 +296,8 @@ Julien Thierry <[email protected]> <[email protected]>
Iskren Chernev <[email protected]> <[email protected]>
Kalle Valo <[email protected]> <[email protected]>
Kalyan Thota <[email protected]> <[email protected]>
+Karthikeyan Periyasamy <[email protected]> <[email protected]>
+Kathiravan T <[email protected]> <[email protected]>
Kay Sievers <[email protected]>
Kees Cook <[email protected]> <[email protected]>
Kees Cook <[email protected]> <[email protected]>
@@ -271,6 +306,8 @@ Kees Cook <[email protected]> <[email protected]>
Keith Busch <[email protected]> <[email protected]>
Keith Busch <[email protected]> <[email protected]>
Kenneth W Chen <[email protected]>
+Kenneth Westfield <[email protected]> <[email protected]>
+Kiran Gunda <[email protected]> <[email protected]>
Kirill Tkhai <[email protected]> <[email protected]>
Konstantin Khlebnikov <[email protected]> <[email protected]>
Konstantin Khlebnikov <[email protected]> <[email protected]>
@@ -279,6 +316,7 @@ Krishna Manikandan <[email protected]> <[email protected]>
Krzysztof Kozlowski <[email protected]> <[email protected]>
Krzysztof Kozlowski <[email protected]> <[email protected]>
Krzysztof Kozlowski <[email protected]> <[email protected]>
+Kshitiz Godara <[email protected]> <[email protected]>
Kuninori Morimoto <[email protected]>
Kuogee Hsieh <[email protected]> <[email protected]>
Lee Jones <[email protected]> <[email protected]>
@@ -292,19 +330,27 @@ Leonid I Ananiev <[email protected]>
Leon Romanovsky <[email protected]> <[email protected]>
Leon Romanovsky <[email protected]> <[email protected]>
Leon Romanovsky <[email protected]> <[email protected]>
+Liam Mark <[email protected]> <[email protected]>
Linas Vepstas <[email protected]>
Linus Lüssing <[email protected]> <[email protected]>
Linus Lüssing <[email protected]> <[email protected]>
Li Yang <[email protected]> <[email protected]>
Li Yang <[email protected]> <[email protected]>
+Lior David <[email protected]> <[email protected]>
Lorenzo Pieralisi <[email protected]> <[email protected]>
Luca Ceresoli <[email protected]> <[email protected]>
Lukasz Luba <[email protected]> <[email protected]>
+Luo Jie <[email protected]> <[email protected]>
Maciej W. Rozycki <[email protected]> <[email protected]>
Maciej W. Rozycki <[email protected]> <[email protected]>
+Maharaja Kennadyrajan <[email protected]> <[email protected]>
+Maheshwar Ajja <[email protected]> <[email protected]>
+Malathi Gottam <[email protected]> <[email protected]>
+Manikanta Pubbisetty <[email protected]> <[email protected]>
Manivannan Sadhasivam <[email protected]> <[email protected]>
Manivannan Sadhasivam <[email protected]> <[email protected]>
+Manoj Basapathi <[email protected]> <[email protected]>
Marcin Nowakowski <[email protected]> <[email protected]>
Marc Zyngier <[email protected]> <[email protected]>
Marek Behún <[email protected]> <[email protected]>
@@ -334,6 +380,7 @@ Matt Ranostay <[email protected]> <[email protected]>
Matt Ranostay <[email protected]> Matthew Ranostay <[email protected]>
Matt Ranostay <[email protected]> <[email protected]>
Matt Redfearn <[email protected]> <[email protected]>
+Maulik Shah <[email protected]> <[email protected]>
Mauro Carvalho Chehab <[email protected]> <[email protected]>
Mauro Carvalho Chehab <[email protected]> <[email protected]>
Mauro Carvalho Chehab <[email protected]> <[email protected]>
@@ -346,7 +393,10 @@ Maxim Mikityanskiy <[email protected]> <[email protected]>
Maxime Ripard <[email protected]> <[email protected]>
Maxime Ripard <[email protected]> <[email protected]>
Maxime Ripard <[email protected]> <[email protected]>
+Maya Erez <[email protected]> <[email protected]>
Mayuresh Janorkar <[email protected]>
+Md Sadre Alam <[email protected]> <[email protected]>
+Miaoqing Pan <[email protected]> <[email protected]>
Michael Buesch <[email protected]>
Michal Simek <[email protected]> <[email protected]>
Michel Dänzer <[email protected]>
@@ -357,6 +407,7 @@ Miguel Ojeda <[email protected]> <[email protected]>
Mike Rapoport <[email protected]> <[email protected]>
Mike Rapoport <[email protected]> <[email protected]>
Mike Rapoport <[email protected]> <[email protected]>
+Mike Tipton <[email protected]> <[email protected]>
Miodrag Dinic <[email protected]> <[email protected]>
Miquel Raynal <[email protected]> <[email protected]>
Mitesh shah <[email protected]>
@@ -365,9 +416,13 @@ Morten Welinder <[email protected]>
Morten Welinder <[email protected]>
Morten Welinder <[email protected]>
Morten Welinder <[email protected]>
+Mukesh Ojha <[email protected]> <[email protected]>
+Muna Sinada <[email protected]> <[email protected]>
+Murali Nalajala <[email protected]> <[email protected]>
Mythri P K <[email protected]>
Nadia Yvette Chambers <[email protected]> William Lee Irwin III <[email protected]>
Nathan Chancellor <[email protected]> <[email protected]>
+Neeraj Upadhyay <[email protected]> <[email protected]>
Neil Armstrong <[email protected]> <[email protected]>
Nguyen Anh Quynh <[email protected]>
Nicholas Piggin <[email protected]> <[email protected]>
@@ -386,6 +441,7 @@ Nikolay Aleksandrov <[email protected]> <[email protected]>
Nikolay Aleksandrov <[email protected]> <[email protected]>
Nikolay Aleksandrov <[email protected]> <[email protected]>
Nikolay Aleksandrov <[email protected]> <[email protected]>
+Odelu Kukatla <[email protected]> <[email protected]>
Oleksandr Natalenko <[email protected]> <[email protected]>
Oleksij Rempel <[email protected]> <[email protected]>
Oleksij Rempel <[email protected]> <[email protected]>
@@ -393,6 +449,7 @@ Oleksij Rempel <[email protected]> <[email protected]>
Oleksij Rempel <[email protected]> <[email protected]>
Oleksij Rempel <[email protected]> <[email protected]>
Oliver Upton <[email protected]> <[email protected]>
+Oza Pawandeep <[email protected]> <[email protected]>
Pali Rohár <[email protected]> <[email protected]>
Paolo 'Blaisorblade' Giarrusso <[email protected]>
Patrick Mochel <[email protected]>
@@ -404,11 +461,14 @@ Paul E. McKenney <[email protected]> <[email protected]>
Paul E. McKenney <[email protected]> <[email protected]>
Paul Mackerras <[email protected]> <[email protected]>
Paul Mackerras <[email protected]> <[email protected]>
+Pavankumar Kondeti <[email protected]> <[email protected]>
Peter A Jonsson <[email protected]>
Peter Oruba <[email protected]>
Peter Oruba <[email protected]>
Pratyush Anand <[email protected]> <[email protected]>
Praveen BP <[email protected]>
+Pradeep Kumar Chitrapu <[email protected]> <[email protected]>
+Prasad Sodagudi <[email protected]> <[email protected]>
Punit Agrawal <[email protected]> <[email protected]>
Qais Yousef <[email protected]> <[email protected]>
Qais Yousef <[email protected]> <[email protected]>
@@ -417,10 +477,16 @@ Quentin Perret <[email protected]> <[email protected]>
Rafael J. Wysocki <[email protected]> <[email protected]>
Rajeev Nandan <[email protected]> <[email protected]>
Rajendra Nayak <[email protected]> <[email protected]>
+Rajeshwari Ravindra Kamble <[email protected]> <[email protected]>
+Raju P.L.S.S.S.N <[email protected]> <[email protected]>
Rajesh Shah <[email protected]>
+Rakesh Pillai <[email protected]> <[email protected]>
Ralf Baechle <[email protected]>
Ralf Wildenhues <[email protected]>
+Ram Chandra Jangir <[email protected]> <[email protected]>
Randy Dunlap <[email protected]> <[email protected]>
+Ravi Kumar Bokka <[email protected]> <[email protected]>
+Ravi Kumar Siddojigari <[email protected]> <[email protected]>
Rémi Denis-Courmont <[email protected]>
Ricardo Ribalda <[email protected]> <[email protected]>
Ricardo Ribalda <[email protected]> Ricardo Ribalda Delgado <[email protected]>
@@ -429,6 +495,7 @@ Richard Leitner <[email protected]> <[email protected]>
Richard Leitner <[email protected]> <[email protected]>
Richard Leitner <[email protected]> <[email protected]>
Robert Foss <[email protected]> <[email protected]>
+Rocky Liao <[email protected]> <[email protected]>
Roman Gushchin <[email protected]> <[email protected]>
Roman Gushchin <[email protected]> <[email protected]>
Roman Gushchin <[email protected]> <[email protected]>
@@ -446,24 +513,35 @@ Santosh Shilimkar <[email protected]>
Santosh Shilimkar <[email protected]>
Sarangdhar Joshi <[email protected]>
Sascha Hauer <[email protected]>
+Sahitya Tummala <[email protected]> <[email protected]>
+Sathishkumar Muruganandam <[email protected]> <[email protected]>
Satya Priya <[email protected]> <[email protected]>
S.Çağlar Onur <[email protected]>
+Sayali Lokhande <[email protected]> <[email protected]>
Sean Christopherson <[email protected]> <[email protected]>
Sean Nyekjaer <[email protected]> <[email protected]>
+Sean Tranchetti <[email protected]> <[email protected]>
Sebastian Reichel <[email protected]> <[email protected]>
Sebastian Reichel <[email protected]> <[email protected]>
Sedat Dilek <[email protected]> <[email protected]>
+Senthilkumar N L <[email protected]> <[email protected]>
Seth Forshee <[email protected]> <[email protected]>
Shannon Nelson <[email protected]> <[email protected]>
Shannon Nelson <[email protected]> <[email protected]>
Shannon Nelson <[email protected]> <[email protected]>
+Sharath Chandra Vurukala <[email protected]> <[email protected]>
Shiraz Hashim <[email protected]> <[email protected]>
Shuah Khan <[email protected]> <[email protected]>
Shuah Khan <[email protected]> <[email protected]>
Shuah Khan <[email protected]> <[email protected]>
Shuah Khan <[email protected]> <[email protected]>
+Sibi Sankar <[email protected]> <[email protected]>
+Sid Manning <[email protected]> <[email protected]>
Simon Arlott <[email protected]> <[email protected]>
Simon Kelley <[email protected]>
+Sricharan Ramabadhran <[email protected]> <[email protected]>
+Srinivas Ramana <[email protected]> <[email protected]>
+Sriram R <[email protected]> <[email protected]>
Stéphane Witzmann <[email protected]>
Stephen Hemminger <[email protected]> <[email protected]>
Stephen Hemminger <[email protected]> <[email protected]>
@@ -471,22 +549,30 @@ Stephen Hemminger <[email protected]> <[email protected]>
Stephen Hemminger <[email protected]> <[email protected]>
Steve Wise <[email protected]> <[email protected]>
Steve Wise <[email protected]> <[email protected]>
-Subash Abhinov Kasiviswanathan <[email protected]>
+Subash Abhinov Kasiviswanathan <[email protected]> <[email protected]>
+Subbaraman Narayanamurthy <[email protected]> <[email protected]>
Subhash Jadavani <[email protected]>
+Sudarshan Rajagopalan <[email protected]> <[email protected]>
Sudeep Holla <[email protected]> Sudeep KarkadaNagesha <[email protected]>
Sumit Semwal <[email protected]>
+Surabhi Vishnoi <[email protected]> <[email protected]>
Takashi YOSHII <[email protected]>
+Tamizh Chelvam Raja <[email protected]> <[email protected]>
+Taniya Das <[email protected]> <[email protected]>
Tejun Heo <[email protected]>
Thomas Graf <[email protected]>
Thomas Körper <[email protected]> <[email protected]>
Thomas Pedersen <[email protected]>
Tiezhu Yang <[email protected]> <[email protected]>
+Tingwei Zhang <[email protected]> <[email protected]>
+Tirupathi Reddy <[email protected]> <[email protected]>
Tobias Klauser <[email protected]> <[email protected]>
Tobias Klauser <[email protected]> <[email protected]>
Tobias Klauser <[email protected]> <[email protected]>
Tobias Klauser <[email protected]> <[email protected]>
Todor Tomov <[email protected]> <[email protected]>
Tony Luck <[email protected]>
+Trilok Soni <[email protected]> <[email protected]>
TripleX Chung <[email protected]> <[email protected]>
TripleX Chung <[email protected]> <[email protected]>
Tsuneo Yoshioka <[email protected]>
@@ -499,11 +585,17 @@ Uwe Kleine-König <[email protected]>
Uwe Kleine-König <[email protected]>
Uwe Kleine-König <[email protected]>
Valdis Kletnieks <[email protected]>
+Vara Reddy <[email protected]> <[email protected]>
+Varadarajan Narayanan <[email protected]> <[email protected]>
+Vasanthakumar Thiagarajan <[email protected]> <[email protected]>
Vasily Averin <[email protected]> <[email protected]>
Vasily Averin <[email protected]> <[email protected]>
Vasily Averin <[email protected]> <[email protected]>
Vasily Averin <[email protected]> <[email protected]>
Valentin Schneider <[email protected]> <[email protected]>
+Veera Sundaram Sankaran <[email protected]> <[email protected]>
+Veerabhadrarao Badiganti <[email protected]> <[email protected]>
+Venkateswara Naralasetty <[email protected]> <[email protected]>
Vikash Garodia <[email protected]> <[email protected]>
Vinod Koul <[email protected]> <[email protected]>
Vinod Koul <[email protected]> <[email protected]>
@@ -513,11 +605,14 @@ Viresh Kumar <[email protected]> <[email protected]>
Viresh Kumar <[email protected]> <[email protected]>
Viresh Kumar <[email protected]> <[email protected]>
Viresh Kumar <[email protected]> <[email protected]>
+Vivek Aknurwar <[email protected]> <[email protected]>
Vivien Didelot <[email protected]> <[email protected]>
Vlad Dogaru <[email protected]> <[email protected]>
Vladimir Davydov <[email protected]> <[email protected]>
Vladimir Davydov <[email protected]> <[email protected]>
WeiXiong Liao <[email protected]> <[email protected]>
+Wen Gong <[email protected]> <[email protected]>
+Wesley Cheng <[email protected]> <[email protected]>
Will Deacon <[email protected]> <[email protected]>
Wolfram Sang <[email protected]> <[email protected]>
Wolfram Sang <[email protected]> <[email protected]>
Documentation/filesystems/tmpfs.rst
View filediff --git a/Documentation/filesystems/tmpfs.rst b/Documentation/filesystems/tmpfs.rst
index f18f46b..2cd8fa3 100644
--- a/Documentation/filesystems/tmpfs.rst
+++ b/Documentation/filesystems/tmpfs.rst
@@ -84,8 +84,6 @@ nr_inodes The maximum number of inodes for this instance. The default
is half of the number of your physical RAM pages, or (on a
machine with highmem) the number of lowmem RAM pages,
whichever is the lower.
-noswap Disables swap. Remounts must respect the original settings.
- By default swap is enabled.
========= ============================================================
These parameters accept a suffix k, m or g for kilo, mega and giga and
@@ -99,36 +97,31 @@ mount with such options, since it allows any user with write access to
use up all the memory on the machine; but enhances the scalability of
that instance in a system with many CPUs making intensive use of it.
+tmpfs blocks may be swapped out, when there is a shortage of memory.
+tmpfs has a mount option to disable its use of swap:
+
+====== ===========================================================
+noswap Disables swap. Remounts must respect the original settings.
+ By default swap is enabled.
+====== ===========================================================
+
tmpfs also supports Transparent Huge Pages which requires a kernel
configured with CONFIG_TRANSPARENT_HUGEPAGE and with huge supported for
your system (has_transparent_hugepage(), which is architecture specific).
The mount options for this are:
-====== ============================================================
-huge=0 never: disables huge pages for the mount
-huge=1 always: enables huge pages for the mount
-huge=2 within_size: only allocate huge pages if the page will be
- fully within i_size, also respect fadvise()/madvise() hints.
-huge=3 advise: only allocate huge pages if requested with
- fadvise()/madvise()
-====== ============================================================
-
-There is a sysfs file which you can also use to control system wide THP
-configuration for all tmpfs mounts, the file is:
-
-/sys/kernel/mm/transparent_hugepage/shmem_enabled
-
-This sysfs file is placed on top of THP sysfs directory and so is registered
-by THP code. It is however only used to control all tmpfs mounts with one
-single knob. Since it controls all tmpfs mounts it should only be used either
-for emergency or testing purposes. The values you can set for shmem_enabled are:
-
-== ============================================================
--1 deny: disables huge on shm_mnt and all mounts, for
- emergency use
--2 force: enables huge on shm_mnt and all mounts, w/o needing
- option, for testing
-== ============================================================
+================ ==============================================================
+huge=never Do not allocate huge pages. This is the default.
+huge=always Attempt to allocate huge page every time a new page is needed.
+huge=within_size Only allocate huge page if it will be fully within i_size.
+ Also respect madvise(2) hints.
+huge=advise Only allocate huge page if requested with madvise(2).
+================ ==============================================================
+
+See also Documentation/admin-guide/mm/transhuge.rst, which describes the
+sysfs file /sys/kernel/mm/transparent_hugepage/shmem_enabled: which can
+be used to deny huge pages on all tmpfs mounts in an emergency, or to
+force huge pages on all tmpfs mounts for testing.
tmpfs has a mount option to set the NUMA memory allocation policy for
all files in that instance (if CONFIG_NUMA is enabled) - which can be
arch/um/os-Linux/sigio.c
View filediff --git a/arch/um/os-Linux/sigio.c b/arch/um/os-Linux/sigio.c
index 37d60e7..9e71794 100644
--- a/arch/um/os-Linux/sigio.c
+++ b/arch/um/os-Linux/sigio.c
@@ -3,7 +3,6 @@
* Copyright (C) 2002 - 2008 Jeff Dike (jdike@{addtoit,linux.intel}.com)
*/
-#include <linux/minmax.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
@@ -51,7 +50,7 @@ static struct pollfds all_sigio_fds;
static int write_sigio_thread(void *unused)
{
- struct pollfds *fds;
+ struct pollfds *fds, tmp;
struct pollfd *p;
int i, n, respond_fd;
char c;
@@ -78,7 +77,9 @@ static int write_sigio_thread(void *unused)
"write_sigio_thread : "
"read on socket failed, "
"err = %d\n", errno);
- swap(current_poll, next_poll);
+ tmp = current_poll;
+ current_poll = next_poll;
+ next_poll = tmp;
respond_fd = sigio_private[1];
}
else {
fs/proc/vmcore.c
View filediff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c
index cb80a77..1fb213f 100644
--- a/fs/proc/vmcore.c
+++ b/fs/proc/vmcore.c
@@ -132,7 +132,7 @@ ssize_t read_from_oldmem(struct iov_iter *iter, size_t count,
u64 *ppos, bool encrypted)
{
unsigned long pfn, offset;
- size_t nr_bytes;
+ ssize_t nr_bytes;
ssize_t read = 0, tmp;
int idx;
include/linux/mm.h
View filediff --git a/include/linux/mm.h b/include/linux/mm.h
index 2dd73e4..406ab9e 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -641,8 +641,14 @@ static inline void vma_numab_state_free(struct vm_area_struct *vma) {}
*/
static inline bool vma_start_read(struct vm_area_struct *vma)
{
- /* Check before locking. A race might cause false locked result. */
- if (vma->vm_lock_seq == READ_ONCE(vma->vm_mm->mm_lock_seq))
+ /*
+ * Check before locking. A race might cause false locked result.
+ * We can use READ_ONCE() for the mm_lock_seq here, and don't need
+ * ACQUIRE semantics, because this is just a lockless check whose result
+ * we don't rely on for anything - the mm_lock_seq read against which we
+ * need ordering is below.
+ */
+ if (READ_ONCE(vma->vm_lock_seq) == READ_ONCE(vma->vm_mm->mm_lock_seq))
return false;
if (unlikely(down_read_trylock(&vma->vm_lock->lock) == 0))
@@ -653,8 +659,13 @@ static inline bool vma_start_read(struct vm_area_struct *vma)
* False unlocked result is impossible because we modify and check
* vma->vm_lock_seq under vma->vm_lock protection and mm->mm_lock_seq
* modification invalidates all existing locks.
+ *
+ * We must use ACQUIRE semantics for the mm_lock_seq so that if we are
+ * racing with vma_end_write_all(), we only start reading from the VMA
+ * after it has been unlocked.
+ * This pairs with RELEASE semantics in vma_end_write_all().
*/
- if (unlikely(vma->vm_lock_seq == READ_ONCE(vma->vm_mm->mm_lock_seq))) {
+ if (unlikely(vma->vm_lock_seq == smp_load_acquire(&vma->vm_mm->mm_lock_seq))) {
up_read(&vma->vm_lock->lock);
return false;
}
@@ -676,7 +687,7 @@ static bool __is_vma_write_locked(struct vm_area_struct *vma, int *mm_lock_seq)
* current task is holding mmap_write_lock, both vma->vm_lock_seq and
* mm->mm_lock_seq can't be concurrently modified.
*/
- *mm_lock_seq = READ_ONCE(vma->vm_mm->mm_lock_seq);
+ *mm_lock_seq = vma->vm_mm->mm_lock_seq;
return (vma->vm_lock_seq == *mm_lock_seq);
}
@@ -688,7 +699,13 @@ static inline void vma_start_write(struct vm_area_struct *vma)
return;
down_write(&vma->vm_lock->lock);
- vma->vm_lock_seq = mm_lock_seq;
+ /*
+ * We should use WRITE_ONCE() here because we can have concurrent reads
+ * from the early lockless pessimistic check in vma_start_read().
+ * We don't really care about the correctness of that early check, but
+ * we should use WRITE_ONCE() for cleanliness and to keep KCSAN happy.
+ */
+ WRITE_ONCE(vma->vm_lock_seq, mm_lock_seq);
up_write(&vma->vm_lock->lock);
}
@@ -702,7 +719,7 @@ static inline bool vma_try_start_write(struct vm_area_struct *vma)
if (!down_write_trylock(&vma->vm_lock->lock))
return false;
- vma->vm_lock_seq = mm_lock_seq;
+ WRITE_ONCE(vma->vm_lock_seq, mm_lock_seq);
up_write(&vma->vm_lock->lock);
return true;
}
include/linux/mm_types.h
View filediff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index de10fc7..5e74ce4 100644
--- a/include/linux/mm_types.h
This diff is incomplete. Download the complete patch.
include/linux/mmap_lock.h
View fileThis diff is incomplete. Download the complete patch.
mm/damon/core-test.h
View fileThis diff is incomplete. Download the complete patch.
mm/memory-failure.c
View fileThis diff is incomplete. Download the complete patch.
mm/mmap.c
View fileThis diff is incomplete. Download the complete patch.
mm/pagewalk.c
View fileThis diff is incomplete. Download the complete patch.
mm/shmem.c
View fileThis diff is incomplete. Download the complete patch.
scripts/spelling.txt
View fileThis diff is incomplete. Download the complete patch.