diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-02-22 19:12:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-02-22 19:12:01 -0500 |
commit | 8456e98e18f35f4d4376e8ff3110a3342f81ce9b (patch) | |
tree | b8772abf9ae7eb5d09f302abcdd9f946ba8487e5 | |
parent | 77dc1181d896c5c3f8e131e341993aef41e16505 (diff) | |
parent | 71d73a0b43c2b101a960c624290c8a053d174cac (diff) |
Merge branch 'parisc-5.0-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc fixes from Helge Deller:
"Fix ptrace syscall number modification which has been broken since
kernel v4.5 and provide alternative email addresses for the remaining
users of the retired parisc-linux.org email domain"
* 'parisc-5.0-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
CREDITS/MAINTAINERS: Retire parisc-linux.org email domain
parisc: Fix ptrace syscall number modification
-rw-r--r-- | CREDITS | 20 | ||||
-rw-r--r-- | MAINTAINERS | 5 | ||||
-rw-r--r-- | arch/parisc/kernel/ptrace.c | 29 |
3 files changed, 32 insertions, 22 deletions
@@ -842,10 +842,9 @@ D: ax25-utils maintainer. | |||
842 | 842 | ||
843 | N: Helge Deller | 843 | N: Helge Deller |
844 | E: deller@gmx.de | 844 | E: deller@gmx.de |
845 | E: hdeller@redhat.de | 845 | W: http://www.parisc-linux.org/ |
846 | D: PA-RISC Linux hacker, LASI-, ASP-, WAX-, LCD/LED-driver | 846 | D: PA-RISC Linux architecture maintainer |
847 | S: Schimmelsrain 1 | 847 | D: LASI-, ASP-, WAX-, LCD/LED-driver |
848 | S: D-69231 Rauenberg | ||
849 | S: Germany | 848 | S: Germany |
850 | 849 | ||
851 | N: Jean Delvare | 850 | N: Jean Delvare |
@@ -1361,7 +1360,7 @@ S: Stellenbosch, Western Cape | |||
1361 | S: South Africa | 1360 | S: South Africa |
1362 | 1361 | ||
1363 | N: Grant Grundler | 1362 | N: Grant Grundler |
1364 | E: grundler@parisc-linux.org | 1363 | E: grantgrundler@gmail.com |
1365 | W: http://obmouse.sourceforge.net/ | 1364 | W: http://obmouse.sourceforge.net/ |
1366 | W: http://www.parisc-linux.org/ | 1365 | W: http://www.parisc-linux.org/ |
1367 | D: obmouse - rewrote Olivier Florent's Omnibook 600 "pop-up" mouse driver | 1366 | D: obmouse - rewrote Olivier Florent's Omnibook 600 "pop-up" mouse driver |
@@ -2492,7 +2491,7 @@ S: Syracuse, New York 13206 | |||
2492 | S: USA | 2491 | S: USA |
2493 | 2492 | ||
2494 | N: Kyle McMartin | 2493 | N: Kyle McMartin |
2495 | E: kyle@parisc-linux.org | 2494 | E: kyle@mcmartin.ca |
2496 | D: Linux/PARISC hacker | 2495 | D: Linux/PARISC hacker |
2497 | D: AD1889 sound driver | 2496 | D: AD1889 sound driver |
2498 | S: Ottawa, Canada | 2497 | S: Ottawa, Canada |
@@ -3780,14 +3779,13 @@ S: 21513 Conradia Ct | |||
3780 | S: Cupertino, CA 95014 | 3779 | S: Cupertino, CA 95014 |
3781 | S: USA | 3780 | S: USA |
3782 | 3781 | ||
3783 | N: Thibaut Varene | 3782 | N: Thibaut Varène |
3784 | E: T-Bone@parisc-linux.org | 3783 | E: hacks+kernel@slashdirt.org |
3785 | W: http://www.parisc-linux.org/~varenet/ | 3784 | W: http://hacks.slashdirt.org/ |
3786 | P: 1024D/B7D2F063 E67C 0D43 A75E 12A5 BB1C FA2F 1E32 C3DA B7D2 F063 | ||
3787 | D: PA-RISC port minion, PDC and GSCPS2 drivers, debuglocks and other bits | 3785 | D: PA-RISC port minion, PDC and GSCPS2 drivers, debuglocks and other bits |
3788 | D: Some ARM at91rm9200 bits, S1D13XXX FB driver, random patches here and there | 3786 | D: Some ARM at91rm9200 bits, S1D13XXX FB driver, random patches here and there |
3789 | D: AD1889 sound driver | 3787 | D: AD1889 sound driver |
3790 | S: Paris, France | 3788 | S: France |
3791 | 3789 | ||
3792 | N: Heikki Vatiainen | 3790 | N: Heikki Vatiainen |
3793 | E: hessu@cs.tut.fi | 3791 | E: hessu@cs.tut.fi |
diff --git a/MAINTAINERS b/MAINTAINERS index 41ce5f4ad838..e6e17d8c5aae 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -409,8 +409,7 @@ F: drivers/platform/x86/wmi.c | |||
409 | F: include/uapi/linux/wmi.h | 409 | F: include/uapi/linux/wmi.h |
410 | 410 | ||
411 | AD1889 ALSA SOUND DRIVER | 411 | AD1889 ALSA SOUND DRIVER |
412 | M: Thibaut Varene <T-Bone@parisc-linux.org> | 412 | W: https://parisc.wiki.kernel.org/index.php/AD1889 |
413 | W: http://wiki.parisc-linux.org/AD1889 | ||
414 | L: linux-parisc@vger.kernel.org | 413 | L: linux-parisc@vger.kernel.org |
415 | S: Maintained | 414 | S: Maintained |
416 | F: sound/pci/ad1889.* | 415 | F: sound/pci/ad1889.* |
@@ -11488,7 +11487,7 @@ F: Documentation/blockdev/paride.txt | |||
11488 | F: drivers/block/paride/ | 11487 | F: drivers/block/paride/ |
11489 | 11488 | ||
11490 | PARISC ARCHITECTURE | 11489 | PARISC ARCHITECTURE |
11491 | M: "James E.J. Bottomley" <jejb@parisc-linux.org> | 11490 | M: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com> |
11492 | M: Helge Deller <deller@gmx.de> | 11491 | M: Helge Deller <deller@gmx.de> |
11493 | L: linux-parisc@vger.kernel.org | 11492 | L: linux-parisc@vger.kernel.org |
11494 | W: http://www.parisc-linux.org/ | 11493 | W: http://www.parisc-linux.org/ |
diff --git a/arch/parisc/kernel/ptrace.c b/arch/parisc/kernel/ptrace.c index 2582df1c529b..0964c236e3e5 100644 --- a/arch/parisc/kernel/ptrace.c +++ b/arch/parisc/kernel/ptrace.c | |||
@@ -308,15 +308,29 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request, | |||
308 | 308 | ||
309 | long do_syscall_trace_enter(struct pt_regs *regs) | 309 | long do_syscall_trace_enter(struct pt_regs *regs) |
310 | { | 310 | { |
311 | if (test_thread_flag(TIF_SYSCALL_TRACE) && | 311 | if (test_thread_flag(TIF_SYSCALL_TRACE)) { |
312 | tracehook_report_syscall_entry(regs)) { | 312 | int rc = tracehook_report_syscall_entry(regs); |
313 | |||
313 | /* | 314 | /* |
314 | * Tracing decided this syscall should not happen or the | 315 | * As tracesys_next does not set %r28 to -ENOSYS |
315 | * debugger stored an invalid system call number. Skip | 316 | * when %r20 is set to -1, initialize it here. |
316 | * the system call and the system call restart handling. | ||
317 | */ | 317 | */ |
318 | regs->gr[20] = -1UL; | 318 | regs->gr[28] = -ENOSYS; |
319 | goto out; | 319 | |
320 | if (rc) { | ||
321 | /* | ||
322 | * A nonzero return code from | ||
323 | * tracehook_report_syscall_entry() tells us | ||
324 | * to prevent the syscall execution. Skip | ||
325 | * the syscall call and the syscall restart handling. | ||
326 | * | ||
327 | * Note that the tracer may also just change | ||
328 | * regs->gr[20] to an invalid syscall number, | ||
329 | * that is handled by tracesys_next. | ||
330 | */ | ||
331 | regs->gr[20] = -1UL; | ||
332 | return -1; | ||
333 | } | ||
320 | } | 334 | } |
321 | 335 | ||
322 | /* Do the secure computing check after ptrace. */ | 336 | /* Do the secure computing check after ptrace. */ |
@@ -340,7 +354,6 @@ long do_syscall_trace_enter(struct pt_regs *regs) | |||
340 | regs->gr[24] & 0xffffffff, | 354 | regs->gr[24] & 0xffffffff, |
341 | regs->gr[23] & 0xffffffff); | 355 | regs->gr[23] & 0xffffffff); |
342 | 356 | ||
343 | out: | ||
344 | /* | 357 | /* |
345 | * Sign extend the syscall number to 64bit since it may have been | 358 | * Sign extend the syscall number to 64bit since it may have been |
346 | * modified by a compat ptrace call | 359 | * modified by a compat ptrace call |