Skip to content

Commit bcfeebb

Browse files
committed
Merge branch 'exit-cleanups-for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
Pull exit cleanups from Eric Biederman: "In preparation of doing something about PTRACE_EVENT_EXIT I have started cleaning up various pieces of code related to do_exit. Most of that code I did not manage to get tested and reviewed before the merge window opened but a handful of very useful cleanups are ready to be merged. The first change is simply the removal of the bdflush system call. The code has now been disabled long enough that even the oldest userspace working userspace setups anyone can find to test are fine with the bdflush system call being removed. Changing m68k fsp040_die to use force_sigsegv(SIGSEGV) instead of calling do_exit directly is interesting only in that it is nearly the most difficult of the incorrect uses of do_exit to remove. The change to the seccomp code to simply send a signal instead of calling do_coredump directly is a very nice little cleanup made possible by realizing the existing signal sending helpers were missing a little bit of functionality that is easy to provide" * 'exit-cleanups-for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace: signal/seccomp: Dump core when there is only one live thread signal/seccomp: Refactor seccomp signal and coredump generation signal/m68k: Use force_sigsegv(SIGSEGV) in fpsp040_die exit/bdflush: Remove the deprecated bdflush system call
2 parents 4898370 + d21918e commit bcfeebb

File tree

25 files changed

+53
-87
lines changed

25 files changed

+53
-87
lines changed

arch/alpha/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@
230230
259 common osf_swapctl sys_ni_syscall
231231
260 common osf_memcntl sys_ni_syscall
232232
261 common osf_fdatasync sys_ni_syscall
233-
300 common bdflush sys_bdflush
233+
300 common bdflush sys_ni_syscall
234234
301 common sethae sys_sethae
235235
302 common mount sys_mount
236236
303 common old_adjtimex sys_old_adjtimex

arch/arm/tools/syscall.tbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
131 common quotactl sys_quotactl
148148
132 common getpgid sys_getpgid
149149
133 common fchdir sys_fchdir
150-
134 common bdflush sys_bdflush
150+
134 common bdflush sys_ni_syscall
151151
135 common sysfs sys_sysfs
152152
136 common personality sys_personality
153153
# 137 was sys_afs_syscall

arch/arm64/include/asm/unistd32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ __SYSCALL(__NR_getpgid, sys_getpgid)
279279
#define __NR_fchdir 133
280280
__SYSCALL(__NR_fchdir, sys_fchdir)
281281
#define __NR_bdflush 134
282-
__SYSCALL(__NR_bdflush, sys_bdflush)
282+
__SYSCALL(__NR_bdflush, sys_ni_syscall)
283283
#define __NR_sysfs 135
284284
__SYSCALL(__NR_sysfs, sys_sysfs)
285285
#define __NR_personality 136

arch/ia64/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
# 1135 was get_kernel_syms
124124
# 1136 was query_module
125125
113 common quotactl sys_quotactl
126-
114 common bdflush sys_bdflush
126+
114 common bdflush sys_ni_syscall
127127
115 common sysfs sys_sysfs
128128
116 common personality sys_personality
129129
117 common afs_syscall sys_ni_syscall

arch/m68k/fpsp040/skeleton.S

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,8 @@ in_ea:
502502
.section .fixup,#alloc,#execinstr
503503
.even
504504
1:
505-
jbra fpsp040_die
505+
jbsr fpsp040_die
506+
jbra .Lnotkern
506507

507508
.section __ex_table,#alloc
508509
.align 4

arch/m68k/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
131 common quotactl sys_quotactl
142142
132 common getpgid sys_getpgid
143143
133 common fchdir sys_fchdir
144-
134 common bdflush sys_bdflush
144+
134 common bdflush sys_ni_syscall
145145
135 common sysfs sys_sysfs
146146
136 common personality sys_personality
147147
# 137 was afs_syscall

arch/m68k/kernel/traps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ asmlinkage void set_esp0(unsigned long ssp)
11501150
*/
11511151
asmlinkage void fpsp040_die(void)
11521152
{
1153-
do_exit(SIGSEGV);
1153+
force_sigsegv(SIGSEGV);
11541154
}
11551155

11561156
#ifdef CONFIG_M68KFPU_EMU

arch/microblaze/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
131 common quotactl sys_quotactl
142142
132 common getpgid sys_getpgid
143143
133 common fchdir sys_fchdir
144-
134 common bdflush sys_bdflush
144+
134 common bdflush sys_ni_syscall
145145
135 common sysfs sys_sysfs
146146
136 common personality sys_personality
147147
137 common afs_syscall sys_ni_syscall

arch/mips/kernel/syscalls/syscall_o32.tbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
131 o32 quotactl sys_quotactl
146146
132 o32 getpgid sys_getpgid
147147
133 o32 fchdir sys_fchdir
148-
134 o32 bdflush sys_bdflush
148+
134 o32 bdflush sys_ni_syscall
149149
135 o32 sysfs sys_sysfs
150150
136 o32 personality sys_personality sys_32_personality
151151
137 o32 afs_syscall sys_ni_syscall

arch/parisc/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
131 common quotactl sys_quotactl
148148
132 common getpgid sys_getpgid
149149
133 common fchdir sys_fchdir
150-
134 common bdflush sys_bdflush
150+
134 common bdflush sys_ni_syscall
151151
135 common sysfs sys_sysfs
152152
136 32 personality parisc_personality
153153
136 64 personality sys_personality

0 commit comments

Comments
 (0)