Commit Graph

660156 Commits

Author SHA1 Message Date
Mauro (mdrjr) Ribeiro
07f34f8121 Merge tag 'v4.9.242' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.242 stable release
2021-07-30 20:12:57 -03:00
ckkim
db88db3864 ODROID-COMMON: Modified CAN bus clock
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I819463b54fe8dfd97256d54095d82e7605914b88
4.9.241-72 4.9.241-115
2021-07-29 14:52:35 +09:00
Deokgyu Yang
662cd6d8e3 ODROID-C4: arm64/dts: Add uart_AO_B DTBO for the 7pin header
Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I2d3609283b8dac5db71388e8b6f36dd2cf94da58
4.9.241-114 4.9.241-70
2021-04-15 17:48:39 +09:00
Deokgyu Yang
1a91119f91 Merge "ODROID-COMMON: arm64/dts: Add GPIO pinctrl for PWM pins back" into odroidg12-4.9.y 2021-04-14 12:53:43 +09:00
Deokgyu Yang
09a8f4e7e5 Merge "ODROID-COMMON: drivers/pwm: Prevent from totally removing PWM chip data" into odroidg12-4.9.y 2021-04-14 12:53:30 +09:00
Joy Cho
79156c34a9 Merge "ODROID-COMMON: osd: Update osd for portrait modes" into odroidg12-4.9.y 2021-03-30 14:54:17 +09:00
Joy Cho
9d5330f0aa ODROID-COMMON: hdmitx: Enable forced RGB colorspace
Change-Id: I05cff725af3a75fba0dee7703adf8e02d380fd99
2021-03-29 11:35:18 +09:00
Joy Cho
999a027ee1 ODROID-COMMON: osd: Update osd for portrait modes
Change-Id: Ibc0ba560d9db8875e9d676dee8511fc29cd09a51
2021-03-24 08:33:40 +09:00
Mauro (mdrjr) Ribeiro
20d79ab6a5 ODROID-G12: config: enable all i2c rtc modules
Change-Id: Ib09d5198e06f5f36617ad5fdab0f5e5bd92276d8
4.9.241-77 4.9.241-113
2021-03-17 13:03:38 -03:00
ckkim
a85ddd7991 ODROID-N2:Added hifi-shield series dtbo. Support 7-pin I2S audio.
Change-Id: Ifd997df30260393a10bf49616fd18ecb978769cc
4.9.241-112
2021-03-05 16:57:09 +09:00
Dongjin Kim
05e3dc1688 ODROID-COMMON: mtd/spi: add new SPI flash memory 'XT25Q64'
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ifc779aaf985755fd7fd5ba16fca5bc07e92edeb7
2021-02-16 12:49:55 +09:00
Mauro (mdrjr) Ribeiro
91116f8b27 Merge branch 'odroidg12-4.9.y'
Change-Id: I9d61cecdde801dce5c320200669d30a6fec2cc56
4.9.241-69
2021-02-15 22:44:05 -03:00
Mauro (mdrjr) Ribeiro
e29e3e7a9a ODROID-G12: config: enable all usb gadget devices
Change-Id: I4aca3b6ad11a3961fe9b9dffe208d6ed86e9deab
2021-02-15 22:39:32 -03:00
Deokgyu Yang
da8363d2e8 ODROID-COMMON: arm64/dts: Add GPIO pinctrl for PWM pins back
This ensures where the PWM pins located to which GPIO pins so that the
unexpected error showing without this patch once unexport a PWM pin does
not occurs

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I854e2f8d12ded46bb079fb1c6fe80cb1eb82a358
2021-02-10 16:09:58 +09:00
Mauro (mdrjr) Ribeiro
0c01e0cbab usbnet: ipheth: fix connectivity with iOS 14
[ Upstream commit f33d9e2b48 ]

Starting with iOS 14 released in September 2020, connectivity using the
personal hotspot USB tethering function of iOS devices is broken.

Communication between the host and the device (for example ICMP traffic
or DNS resolution using the DNS service running in the device itself)
works fine, but communication to endpoints further away doesn't work.

Investigation on the matter shows that no UDP and ICMP traffic from the
tethered host is reaching the Internet at all. For TCP traffic there are
exchanges between tethered host and server but packets are modified in
transit leading to impossible communication.

After some trials Matti Vuorela discovered that reducing the URB buffer
size by two bytes restored the previous behavior. While a better
solution might exist to fix the issue, since the protocol is not
publicly documented and considering the small size of the fix, let's do
that.

Tested-by: Matti Vuorela <matti.vuorela@bitfactor.fi>
Signed-off-by: Yves-Alexis Perez <corsac@corsac.net>
Link: https://lore.kernel.org/linux-usb/CAAn0qaXmysJ9vx3ZEMkViv_B19ju-_ExN8Yn_uSefxpjS6g4Lw@mail.gmail.com/
Link: libimobiledevice/libimobiledevice#1038
Link: https://lore.kernel.org/r/20201119172439.94988-1-corsac@corsac.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: If7261c5ed58df0bfad8604beeaa8dfaa053d170b
2021-02-09 08:55:45 -03:00
Deokgyu Yang
c833f039a5 ODROID-COMMON: drivers/pwm: Prevent from totally removing PWM chip data
Seems like it is an exception for meson APs.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: I7d3a17c37037da470b6ee53b6de19ab0c0c31f79
2021-02-09 11:37:25 +09:00
Mauro (mdrjr) Ribeiro
d66e8ec171 drivers/bluetooth: update btrtl to support wifi 5b
Change-Id: Idaef04bf6c851365a7ca11f50c9a403c30d3f07c
4.9.241-109 4.9.241-68
2021-01-25 09:47:15 -03:00
Deokgyu Yang
838ccc4b9a ODROID-COMMON: drivers/spi: Revert force64b flag back
To avoid unnecessary 64 bit calculation, which is for DMA, data
swapping is needed to be an option.

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ie186a332984246bfb83b128b5771197457f4dd21
2021-01-21 17:15:13 +09:00
Joy Cho
a0c77c5443 Merge "ODROID-G12: defconfig: Add RTL8821CU USB wifi adapter" into odroidg12-4.9.y 4.9.241-67 4.9.241-66 4.9.241-108 4.9.241-107 2020-12-23 16:20:28 +09:00
Joy Cho
318509e12b Merge "net/wireless: Add Realtek RTL8821CU USB wifi adapter driver" into odroidg12-4.9.y 2020-12-23 16:20:20 +09:00
Joy Cho
ef7579af51 ODROID-G12: defconfig: Add RTL8821CU USB wifi adapter
Change-Id: I21bfac3845ca568c910e230c42c2e8064648afa1
2020-12-23 14:05:31 +09:00
Mauro (mdrjr) Ribeiro
f9de720d00 Merge tag 'v4.9.241' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.241 stable release

Change-Id: I3b60fa5279b42cdc734aa4ceec1cf0e404a697f8
4.9.241-65
2020-12-22 09:20:57 -03:00
Mauro (mdrjr) Ribeiro
ecbe01e439 Merge tag 'v4.9.240' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.240 stable release

Change-Id: Ief5542fd21ce89be95549fd4a18df7102df958fa
2020-12-22 09:20:43 -03:00
Mauro (mdrjr) Ribeiro
6c84941389 Merge tag 'v4.9.239' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.239 stable release
2020-12-22 09:20:30 -03:00
Mauro (mdrjr) Ribeiro
de59193db1 Merge tag 'v4.9.238' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.238 stable release

Change-Id: I5aad49a29352f44772f23d33945a369ddfab49bf
2020-12-22 09:19:23 -03:00
Mauro (mdrjr) Ribeiro
1860bdd5a6 Merge tag 'v4.9.237' of git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable into odroidg12-4.9.y
This is the 4.9.237 stable release

Change-Id: Id5bec581493205faec0772bd0fc7c2581f9fb0b4
2020-12-22 09:19:11 -03:00
Dongjin Kim
8ca47b68b0 ODROID: config: enable USB Serial Gadget driver as a module
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I442a5d9517dbbd5d1686731bddc2dbb993886d90
2020-12-22 14:45:14 +09:00
Mauro (mdrjr) Ribeiro
98163ef0bd Merge branch 'odroidg12-4.9.y'
Change-Id: Ibe642d3a57d6a9bce0ae01ee95316654900a67e5
4.9.236-63
2020-12-09 18:37:50 -03:00
Mauro (mdrjr) Ribeiro
562a677bc4 net: add wireguard 2020-12-09 18:35:12 -03:00
Mauro (mdrjr) Ribeiro
6599c1d834 ODROID-COMMON: config: enable transparent huge pages
Change-Id: Ib6649c28eaa673c652e8294371781d65ca704b38
2020-12-09 18:27:45 -03:00
Kees Cook
35ba5e79de timer: Prepare to change timer callback argument type
Modern kernel callback systems pass the structure associated with a
given callback to the callback function. The timer callback remains one
of the legacy cases where an arbitrary unsigned long argument continues
to be passed as the callback argument. This has several problems:

- This bloats the timer_list structure with a normally redundant
  .data field.

- No type checking is being performed, forcing callbacks to do
  explicit type casts of the unsigned long argument into the object
  that was passed, rather than using container_of(), as done in most
  of the other callback infrastructure.

- Neighboring buffer overflows can overwrite both the .function and
  the .data field, providing attackers with a way to elevate from a buffer
  overflow into a simplistic ROP-like mechanism that allows calling
  arbitrary functions with a controlled first argument.

- For future Control Flow Integrity work, this creates a unique function
  prototype for timer callbacks, instead of allowing them to continue to
  be clustered with other void functions that take a single unsigned long
  argument.

This adds a new timer initialization API, which will ultimately replace
the existing setup_timer(), setup_{deferrable,pinned,etc}_timer() family,
named timer_setup() (to mirror hrtimer_setup(), making instances of its
use much easier to grep for).

In order to support the migration of existing timers into the new
callback arguments, timer_setup() casts its arguments to the existing
legacy types, and explicitly passes the timer pointer as the legacy
data argument. Once all setup_*timer() callers have been replaced with
timer_setup(), the casts can be removed, and the data argument can be
dropped with the timer expiration code changed to just pass the timer
to the callback directly.

Since the regular pattern of using container_of() during local variable
declaration repeats the need for the variable type declaration
to be included, this adds a helper modeled after other from_*()
helpers that wrap container_of(), named from_timer(). This helper uses
typeof(*variable), removing the type redundancy and minimizing the need
for line wraps in forthcoming conversions from "unsigned data long" to
"struct timer_list *" in the timer callbacks:

-void callback(unsigned long data)
+void callback(struct timer_list *t)
{
-   struct some_data_structure *local = (struct some_data_structure *)data;
+   struct some_data_structure *local = from_timer(local, t, timer);

Finally, in order to support the handful of timer users that perform
open-coded assignments of the .function (and .data) fields, provide
cast macros (TIMER_FUNC_TYPE and TIMER_DATA_TYPE) that can be used
temporarily. Once conversion has been completed, these can be globally
trivially removed.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20170928133817.GA113410@beast
Change-Id: Ie5af397a7702c2ed9f9cda23e3dcc04708c057dc
2020-12-09 13:55:39 +09:00
Dongjin Kim
95086680ab ODROID-COMMON: config: add to enable GPIO-based Joystick support
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I45be7633cc23990e48f04231d158140ad808408a
2020-12-09 11:58:57 +09:00
Dongjin Kim
643b16ad28 ODROID-COMMON: config: disable 'CONFIG_AMLOGIC_MEDIA_FB_OSD2_CURSOR' to use soft cursor
This change affects to the OSD driver, drivers/amlogic/media/osd/osd_fb.c, to enable
soft cursor instead of OSD cursor.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ic4af0037579b5b62c4df7b29a05d1cceec0cd9cf
4.9.236-106 4.9.236-60
2020-12-02 10:48:01 -03:00
Dongjin Kim
bf8d73f1f6 ODROID-COMMON: ARM64/dts: add GPIO-based joystick support device tree
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I54ebe56b09f5cc66f26718f4486f011fb50dcc0e
2020-12-02 13:20:47 +09:00
Dongjin Kim
937dcaf76f ODROID-COMMON: add drivers GPIO-based Joystick drivers
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I0856df4dec6a05f769b0e325ea8f8200f82b8058
2020-12-02 13:20:24 +09:00
Dongjin Kim
f2a1304b10 ODROID-HC4: enable eMMC to make SD as /dev/mmcblk1*
Change-Id: Id3b7050a0b81b5e53785991074b6d0285e11a6e8
2020-12-01 20:41:06 +09:00
Dongjin Kim
f6bcdb2b15 ODROID-COMMON: hwmon: (pwm-fan) add fan pwm1_enable attribute
This patch adds to new attribute 'pwm1_enable' to change the fan speed
control method as documented in 'Documentation/hwmon/sysfs-interface'.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I19094d60e928d6c3ce226d319e75a35ecbd3ae52
2020-11-26 04:45:43 +09:00
Dongjin Kim
327df05e63 ODROID-COMMON: thermal: amlogic_thermal: Add hwmon support
Expose Amlogic thermal as HWMON devices.

	$ sensors
	cpu_thermal-virtual-0
	Adapter: Virtual device
	temp1:        +32.2 C  (crit = +110.0 C)

	ddr_thermal-virtual-0
	Adapter: Virtual device
	temp1:        +33.4 C  (crit = +110.0 C)

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Icb1bf7cd7e4462f9923af5bcd72fa7c0c8e14cc9
2020-11-25 14:54:08 +09:00
Joy Cho
2b5c2634a2 net/wireless: Add Realtek RTL8821CU USB wifi adapter driver
Change-Id: Iba56f0d0d52e07dcc4da2e4358b24413e62798a3
2020-11-16 18:08:51 +09:00
ckkim
6ad97dceb7 ODROID-HC4:remove pwm-fan pinctrl(PWM_C : GPIOC_4 remove)
Signed-off-by: ckkim <changkon12@gmail.com>
Change-Id: I36ddb1889cc1d181372c8925e58726d71a615d4e
4.9.236-51 4.9.236-104
2020-11-10 09:24:26 -03:00
Greg Kroah-Hartman
206734eadd Linux 4.9.242
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20201109125025.630721781@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 10:24:04 +01:00
Vineet Gupta
fc6220f23d Revert "ARC: entry: fix potential EFA clobber when TIF_SYSCALL_TRACE"
This reverts commit 00fdec98d9.
(but only from 5.2 and prior kernels)

The original commit was a preventive fix based on code-review and was
auto-picked for stable back-port (for better or worse).
It was OK for v5.3+ kernels, but turned up needing an implicit change
68e5c6f073 "(ARC: entry: EV_Trap expects r10 (vs. r9) to have
 exception cause)" merged in v5.3 which itself was not backported.
So to summarize the stable backport of this patch for v5.2 and prior
kernels is busted and it won't boot.

The obvious solution is backport 68e5c6f073 but that is a pain as
it doesn't revert cleanly and each of affected kernels (so far v4.19,
v4.14, v4.9, v4.4) needs a slightly different massaged varaint.
So the easier fix is to simply revert the backport from 5.2 and prior.
The issue was not a big deal as it would cause strace to sporadically
not work correctly.

Waldemar Brodkorb first reported this when running ARC uClibc regressions
on latest stable kernels (with offending backport). Once he bisected it,
the analysis was trivial, so thx to him for this.

Reported-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Bisected-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Cc: stable <stable@vger.kernel.org> # 5.2 and prior
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 10:24:04 +01:00
Vineet Gupta
6ffed409b0 ARC: stack unwinding: avoid indefinite looping
commit 328d2168ca upstream.

Currently stack unwinder is a while(1) loop which relies on the dwarf
unwinder to signal termination, which in turn relies on dwarf info to do
so. This in theory could cause an infinite loop if the dwarf info was
somehow messed up or the register contents were etc.

This fix thus detects the excessive looping and breaks the loop.

| Mem: 26184K used, 1009136K free, 0K shrd, 0K buff, 14416K cached
| CPU:  0.0% usr 72.8% sys  0.0% nic 27.1% idle  0.0% io  0.0% irq  0.0% sirq
| Load average: 4.33 2.60 1.11 2/74 139
|   PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
|   133     2 root     SWN      0  0.0   3 22.9 [rcu_torture_rea]
|   132     2 root     SWN      0  0.0   0 22.0 [rcu_torture_rea]
|   131     2 root     SWN      0  0.0   3 21.5 [rcu_torture_rea]
|   126     2 root     RW       0  0.0   2  5.4 [rcu_torture_wri]
|   129     2 root     SWN      0  0.0   0  0.2 [rcu_torture_fak]
|   137     2 root     SW       0  0.0   0  0.2 [rcu_torture_cbf]
|   127     2 root     SWN      0  0.0   0  0.1 [rcu_torture_fak]
|   138   115 root     R     1464  0.1   2  0.1 top
|   130     2 root     SWN      0  0.0   0  0.1 [rcu_torture_fak]
|   128     2 root     SWN      0  0.0   0  0.1 [rcu_torture_fak]
|   115     1 root     S     1472  0.1   1  0.0 -/bin/sh
|   104     1 root     S     1464  0.1   0  0.0 inetd
|     1     0 root     S     1456  0.1   2  0.0 init
|    78     1 root     S     1456  0.1   0  0.0 syslogd -O /var/log/messages
|   134     2 root     SW       0  0.0   2  0.0 [rcu_torture_sta]
|    10     2 root     IW       0  0.0   1  0.0 [rcu_preempt]
|    88     2 root     IW       0  0.0   1  0.0 [kworker/1:1-eve]
|    66     2 root     IW       0  0.0   2  0.0 [kworker/2:2-eve]
|    39     2 root     IW       0  0.0   2  0.0 [kworker/2:1-eve]
| unwinder looping too long, aborting !

Cc: <stable@vger.kernel.org>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 10:24:04 +01:00
Alan Stern
c382e1a5d3 USB: Add NO_LPM quirk for Kingston flash drive
commit afaa2e745a upstream.

In Bugzilla #208257, Julien Humbert reports that a 32-GB Kingston
flash drive spontaneously disconnects and reconnects, over and over.
Testing revealed that disabling Link Power Management for the drive
fixed the problem.

This patch adds a quirk entry for that drive to turn off LPM permanently.

CC: Hans de Goede <jwrdegoede@fedoraproject.org>
CC: <stable@vger.kernel.org>
Reported-and-tested-by: Julien Humbert <julroy67@gmail.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20201102145821.GA1478741@rowland.harvard.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 10:24:04 +01:00
Daniele Palmas
01aa849b62 USB: serial: option: add Telit FN980 composition 0x1055
commit db0362eeb2 upstream.

Add the following Telit FN980 composition:

0x1055: tty, adb, tty, tty, tty, tty

Signed-off-by: Daniele Palmas <dnlplm@gmail.com>
Link: https://lore.kernel.org/r/20201103124425.12940-1-dnlplm@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 10:24:04 +01:00
Daniele Palmas
7efc53922c USB: serial: option: add LE910Cx compositions 0x1203, 0x1230, 0x1231
commit 489979b4aa upstream.

Add following Telit LE910Cx compositions:

0x1203: rndis, tty, adb, tty, tty, tty, tty
0x1230: tty, adb, rmnet, audio, tty, tty, tty, tty
0x1231: rndis, tty, adb, audio, tty, tty, tty, tty

Signed-off-by: Daniele Palmas <dnlplm@gmail.com>
Link: https://lore.kernel.org/r/20201031225458.10512-1-dnlplm@gmail.com
[ johan: add comments after entries ]
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 10:24:04 +01:00
Johan Hovold
9690d9dcdf USB: serial: cyberjack: fix write-URB completion race
commit 985616f045 upstream.

The write-URB busy flag was being cleared before the completion handler
was done with the URB, something which could lead to corrupt transfers
due to a racing write request if the URB is resubmitted.

Fixes: 507ca9bc04 ("[PATCH] USB: add ability for usb-serial drivers to determine if their write urb is currently being used.")
Cc: stable <stable@vger.kernel.org>     # 2.6.13
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 10:24:04 +01:00
Qinglang Miao
b1e2e61ce7 serial: txx9: add missing platform_driver_unregister() on error in serial_txx9_init
commit 0c5fc92622 upstream.

Add the missing platform_driver_unregister() before return
from serial_txx9_init in the error handling case when failed
to register serial_txx9_pci_driver with macro ENABLE_SERIAL_TXX9_PCI
defined.

Fixes: ab4382d274 ("tty: move drivers/serial/ to drivers/tty/serial/")
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Link: https://lore.kernel.org/r/20201103084942.109076-1-miaoqinglang@huawei.com
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 10:24:03 +01:00
Claire Chang
ac9faff6d7 serial: 8250_mtk: Fix uart_get_baud_rate warning
commit 912ab37c79 upstream.

Mediatek 8250 port supports speed higher than uartclk / 16. If the baud
rates in both the new and the old termios setting are higher than
uartclk / 16, the WARN_ON in uart_get_baud_rate() will be triggered.
Passing NULL as the old termios so uart_get_baud_rate() will use
uartclk / 16 - 1 as the new baud rate which will be replaced by the
original baud rate later by tty_termios_encode_baud_rate() in
mtk8250_set_termios().

Fixes: 551e553f0d ("serial: 8250_mtk: Fix high-speed baud rates clamping")
Signed-off-by: Claire Chang <tientzu@chromium.org>
Link: https://lore.kernel.org/r/20201102120749.374458-1-tientzu@chromium.org
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 10:24:03 +01:00
Eddy Wu
66be43d818 fork: fix copy_process(CLONE_PARENT) race with the exiting ->real_parent
commit b4e00444ca upstream.

current->group_leader->exit_signal may change during copy_process() if
current->real_parent exits.

Move the assignment inside tasklist_lock to avoid the race.

Signed-off-by: Eddy Wu <eddy_wu@trendmicro.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-10 10:24:03 +01:00