linux/drivers
Matthias Kaehlcke a487e4d535 UPSTREAM: sysrq: Use panic() to force a crash
(Upstream commit 8341f2f222d729688014ce8306727fdb9798d37e.)

sysrq_handle_crash() currently forces a crash by dereferencing a
NULL pointer, which is undefined behavior in C. Just call panic()
instead, which is simpler and doesn't depend on compiler specific
handling of the undefined behavior.

Remove the comment on why the RCU lock needs to be released, it isn't
accurate anymore since the crash now isn't handled by the page fault
handler (for reference: the comment was added by commit 984cf355ae
("sysrq: Fix warning in sysrq generated crash.")). Releasing the lock
is still good practice though.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bug: 154769329
Change-Id: I04d57e4d84f59b04454fb77f4f62e9d9d6eee10d
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
2020-04-28 19:19:12 +00:00
..
accessibility
acpi This is the 4.19.118 stable release 2020-04-23 11:07:54 +02:00
amba
android UPSTREAM: binder: prevent UAF for binderfs devices II 2020-03-09 19:48:21 +00:00
ata libata: Return correct status in sata_pmp_eh_recover_pm() when ATA_DFLAG_DETACH is set 2020-04-17 10:48:52 +02:00
atm fore200e: Fix incorrect checks of NULL pointer dereference 2020-02-24 08:34:42 +01:00
auxdisplay
base This is the 4.19.116 stable release 2020-04-18 13:33:51 +02:00
bcma bcma: fix incorrect update of BCMA_CORE_PCI_MDIO_DATA 2020-01-27 14:51:09 +01:00
block This is the 4.19.118 stable release 2020-04-23 11:07:54 +02:00
bluetooth Bluetooth: btusb: fix PM leak in error case of setup 2020-01-09 10:19:04 +01:00
bus bus: sunxi-rsb: Return correct data when mixing 16-bit and 8-bit reads 2020-04-17 10:48:37 +02:00
cdrom cdrom: respect device capabilities during opening action 2020-01-04 19:13:12 +01:00
char This is the 4.19.116 stable release 2020-04-18 13:33:51 +02:00
clk This is the 4.19.118 stable release 2020-04-23 11:07:54 +02:00
clocksource ANDROID: GKI: export symbols from abi_gki_aarch64_qcom_whitelist 2020-04-13 21:36:41 +00:00
connector
cpufreq This is the 4.19.116 stable release 2020-04-18 13:33:51 +02:00
cpuidle ANDROID: GKI: Export symbols arm_cpuidle_suspend, cpuidle_dev and cpuidle_register_governor 2020-04-16 16:53:39 -07:00
crypto This is the 4.19.116 stable release 2020-04-18 13:33:51 +02:00
dax
dca
devfreq ANDROID: GKI: PM / devfreq: Add new flag to do simple clock scaling 2020-04-22 15:31:42 +00:00
dio
dma dmaengine: coh901318: Fix a double lock bug in dma_tc_handle() 2020-03-11 14:15:12 +01:00
dma-buf FROMLIST: dma-buf: add support for virtio exported objects 2020-04-18 08:26:02 +00:00
edac ANDROID: GKI: edac: Fix ABI diffs in edac_device_ctl_info struct 2020-04-02 23:21:22 +00:00
eisa
energy_model
extcon ANDROID: GKI: extcon: Fix Add usage of blocking notifier chain 2020-04-17 22:50:02 -07:00
firewire net: add annotations on hh->hh_len lockless accesses 2020-01-09 10:19:09 +01:00
firmware This is the 4.19.116 stable release 2020-04-18 13:33:51 +02:00
fmc
fpga
fsi fsi: sbefifo: Don't fail operations when in SBE IPL state 2020-01-27 14:51:00 +01:00
gnss ANDROID: gnss: Add command line test driver 2019-12-19 22:51:54 +00:00
gpio This is the 4.19.114 stable release 2020-04-03 08:17:23 +02:00
gpu This is the 4.19.118 stable release 2020-04-23 11:07:54 +02:00
hid This is the 4.19.112 stable release 2020-03-21 08:37:27 +01:00
hsi
hv x86/Hyper-V: Report crash data in die() when panic_on_oops is set 2020-04-23 10:30:17 +02:00
hwmon ANDROID: GKI: pwm: core: Add option to config PWM duty/period with u64 data length 2020-04-03 15:23:59 -07:00
hwspinlock
hwtracing UPSTREAM: coresight: Potential uninitialized variable in probe() 2020-03-27 02:11:00 +00:00
i2c This is the 4.19.116 stable release 2020-04-18 13:33:51 +02:00
ide ide: serverworks: potential overflow in svwks_set_pio_mode() 2020-02-24 08:34:49 +01:00
idle
iio This is the 4.19.118 stable release 2020-04-23 11:07:54 +02:00
infiniband This is the 4.19.116 stable release 2020-04-18 13:33:51 +02:00
input This is the 4.19.116 stable release 2020-04-18 13:33:51 +02:00
iommu This is the 4.19.118 stable release 2020-04-23 11:07:54 +02:00
ipack
irqchip This is the 4.19.118 stable release 2020-04-23 11:07:54 +02:00
isdn staging: gigaset: add endpoint-type sanity check 2019-12-17 20:34:33 +01:00
leds leds: pca963x: Fix open-drain initialization 2020-02-24 08:34:35 +01:00
lightnvm lightnvm: pblk: fix lock order in pblk_rb_tear_down_check 2020-01-27 14:50:45 +01:00
macintosh macintosh: windfarm: fix MODINFO regression 2020-03-18 07:14:21 +01:00
mailbox mailbox: qcom-apcs: fix max_register value 2020-01-27 14:51:14 +01:00
mcb
md ANDROID: dm-bow: Fix not to skip trim at framented range 2020-04-24 21:52:13 +00:00
media This is the 4.19.116 stable release 2020-04-18 13:33:51 +02:00
memory memory: tegra: Don't invoke Tegra30+ specific memory timing setup on Tegra20 2020-01-27 14:50:13 +01:00
memstick
message scsi: mptfusion: Fix double fetch bug in ioctl 2020-01-23 08:21:28 +01:00
mfd mfd: dln2: Fix sanity checking for endpoints 2020-04-17 10:48:55 +02:00
misc ANDROID: Remove VLA from uid_sys_stats.c 2020-04-24 17:09:30 +00:00
mmc This is the 4.19.114 stable release 2020-04-03 08:17:23 +02:00
mtd mtd: phram: fix a double free issue in error path 2020-04-23 10:30:24 +02:00
mux
net This is the 4.19.118 stable release 2020-04-23 11:07:54 +02:00
nfc NFC: fdp: Fix a signedness bug in fdp_nci_send_patch() 2020-04-02 15:28:12 +02:00
ntb ntb_hw_switchtec: potential shift wrapping bug in switchtec_ntb_init_sndev() 2020-01-27 14:50:55 +01:00
nubus
nvdimm This is the 4.19.118 stable release 2020-04-23 11:07:54 +02:00
nvme nvme: Treat discovery subsystems as unique subsystems 2020-04-17 10:48:45 +02:00
nvmem BACKPORT: nvmem: core: add NVMEM_SYSFS Kconfig 2020-04-16 12:19:27 -07:00
of This is the 4.19.118 stable release 2020-04-23 11:07:54 +02:00
opp This is the 4.19.99 stable release 2020-01-27 15:55:44 +01:00
oprofile
parisc
parport parport: load lowlevel driver if ports not found 2019-12-31 16:36:01 +01:00
pci This is the 4.19.116 stable release 2020-04-18 13:33:51 +02:00
pcmcia
perf drivers/perf: arm_pmu_acpi: Fix incorrect checking of gicc pointer 2020-03-25 08:06:07 +01:00
phy phy: mapphone-mdm6600: Fix write timeouts with shorter GPIO toggle interval 2020-03-11 14:15:10 +01:00
pinctrl pinctrl: core: Remove extra kref_get which blocks hogs being freed 2020-03-18 07:14:23 +01:00
platform This is the 4.19.114 stable release 2020-04-03 08:17:23 +02:00
pnp
power ANDROID: GKI: power_supply: Add FG_TYPE power-supply property 2020-04-27 17:29:19 +00:00
powercap
pps
ps3
ptp ptp: free ptp device pin descriptors properly 2020-01-23 08:21:35 +01:00
pwm This is the 4.19.117 stable release 2020-04-21 10:20:12 +02:00
rapidio drivers/rapidio/rio_cm.c: fix potential oops in riocm_ch_listen() 2020-01-27 14:50:31 +01:00
ras
regulator ANDROID: GKI: regulator: core: Add support for regulator providers with sync state 2020-04-02 16:27:12 -07:00
remoteproc remoteproc: Initialize rproc_class before use 2020-02-24 08:34:50 +01:00
reset reset: uniphier: Add SCSSI reset control for each channel 2020-02-24 08:34:44 +01:00
rpmsg rpmsg: glink: Remove chunk size word align warning 2020-04-13 10:45:16 +02:00
rtc This is the 4.19.118 stable release 2020-04-23 11:07:54 +02:00
s390 scsi: zfcp: fix missing erp_lock in port recovery trigger for point-to-point 2020-04-17 10:48:50 +02:00
sbus
scsi This is the 4.19.118 stable release 2020-04-23 11:07:54 +02:00
sfi
sh
siox
slimbus slimbus: ngd: Fix build error on x86 2019-12-13 08:51:54 +01:00
sn
soc This is the 4.19.118 stable release 2020-04-23 11:07:54 +02:00
soundwire soundwire: intel: fix PDI/stream mapping for Bulk 2019-12-31 16:35:55 +01:00
spi This is the 4.19.113 stable release 2020-03-25 09:50:38 +01:00
spmi ANDROID: GKI: spmi: pmic-arb: don't enable SPMI_MSM_PMIC_ARB by default 2020-04-18 07:57:37 +00:00
ssb
staging ANDROID: add ion_stat tracepoint to common kernel 2020-04-21 22:35:57 +01:00
target scsi: target: fix hang when multiple threads try to destroy the same iscsi session 2020-04-21 09:03:11 +02:00
tc
tee This is the 4.19.102 stable release 2020-02-05 19:20:26 +00:00
thermal ANDROID: GKI: drivers: of-thermal: Relate thermal zones using same sensor 2020-04-20 23:52:49 +00:00
thunderbolt thunderbolt: Prevent crash if non-active NVMem file is read 2020-02-28 16:38:44 +01:00
tty UPSTREAM: sysrq: Use panic() to force a crash 2020-04-28 19:19:12 +00:00
uio uio: fix a sleep-in-atomic-context bug in uio_dmem_genirq_irqcontrol() 2020-02-24 08:34:37 +01:00
usb ANDROID: GKI: usb: core: Add support to parse config summary capability descriptors 2020-04-24 23:47:06 +00:00
uwb
vfio This is the 4.19.99 stable release 2020-01-27 15:55:44 +01:00
vhost This is the 4.19.108 stable release 2020-03-05 17:40:55 +01:00
video fbdev: potential information leak in do_fb_ioctl() 2020-04-23 10:30:22 +02:00
virt
virtio ANDROID: Re-add default y for VIRTIO_PCI_LEGACY 2020-03-03 23:28:01 +00:00
visorbus visorbus: fix uninitialized variable access 2020-02-24 08:34:47 +01:00
vlynq
vme vme: bridges: reduce stack usage 2020-02-24 08:34:47 +01:00
w1
watchdog watchdog: sp805: fix restart handler 2020-04-23 10:30:12 +02:00
xen xenbus: req->err should be updated before req->state 2020-03-25 08:06:08 +01:00
zorro
Kconfig UPSTREAM: gpu/trace: add a gpu total memory usage tracepoint 2020-04-21 15:34:05 +00:00
Makefile