OSDN Git Service
Yoshinori Sato [Thu, 27 Jan 2022 13:52:49 +0000 (22:52 +0900)]
rx: remove unused headers.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Thu, 27 Jan 2022 13:51:54 +0000 (22:51 +0900)]
rx: remove segment.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Thu, 27 Jan 2022 13:50:56 +0000 (22:50 +0900)]
rx: wire up 5.15
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Thu, 27 Jan 2022 13:46:10 +0000 (22:46 +0900)]
rx: use generic headers.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Thu, 27 Jan 2022 13:43:25 +0000 (22:43 +0900)]
rx: use generic flat.h
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Thu, 27 Jan 2022 13:42:03 +0000 (22:42 +0900)]
rx: use generic flat.h
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Thu, 27 Jan 2022 13:41:34 +0000 (22:41 +0900)]
rx: Add RX archtecture.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 5 Aug 2020 13:56:25 +0000 (22:56 +0900)]
sh_eth: RX62N fix.
Yoshinori Sato [Wed, 5 Aug 2020 13:55:48 +0000 (22:55 +0900)]
tkdn_rx62n dts update.
Yoshinori Sato [Wed, 29 Apr 2020 12:53:14 +0000 (21:53 +0900)]
Remove sim
Yoshinori Sato [Sun, 21 Apr 2019 07:02:23 +0000 (16:02 +0900)]
fix issue
Yoshinori Sato [Sun, 20 Jan 2019 07:38:26 +0000 (16:38 +0900)]
Add GENERIC_CPU_DEVICES
Yoshinori Sato [Sun, 13 Jan 2019 14:01:13 +0000 (23:01 +0900)]
fix arch_cpu_idle
Yoshinori Sato [Sun, 13 Jan 2019 14:00:44 +0000 (23:00 +0900)]
fix new thread psw
Yoshinori Sato [Fri, 28 Dec 2018 15:04:46 +0000 (00:04 +0900)]
fix 8bit register
Yoshinori Sato [Fri, 28 Dec 2018 15:04:18 +0000 (00:04 +0900)]
fix path
Yoshinori Sato [Fri, 28 Dec 2018 15:01:12 +0000 (00:01 +0900)]
fix menu
Yoshinori Sato [Fri, 28 Dec 2018 14:57:57 +0000 (23:57 +0900)]
fix build error
Yoshinori Sato [Fri, 28 Dec 2018 14:50:50 +0000 (23:50 +0900)]
cleanup
Yoshinori Sato [Fri, 28 Dec 2018 14:50:20 +0000 (23:50 +0900)]
fix symbol
Yoshinori Sato [Fri, 28 Dec 2018 14:49:36 +0000 (23:49 +0900)]
remove unneeded funcs.
Yoshinori Sato [Fri, 28 Dec 2018 14:48:58 +0000 (23:48 +0900)]
remove unneeded funcs.
Yoshinori Sato [Fri, 28 Dec 2018 14:48:12 +0000 (23:48 +0900)]
small cleanup
Yoshinori Sato [Fri, 28 Dec 2018 14:46:49 +0000 (23:46 +0900)]
small cleanup
Yoshinori Sato [Fri, 28 Dec 2018 14:00:36 +0000 (23:00 +0900)]
fix clobber register
Yoshinori Sato [Fri, 28 Dec 2018 13:59:57 +0000 (22:59 +0900)]
fix pm
Yoshinori Sato [Fri, 28 Dec 2018 13:59:24 +0000 (22:59 +0900)]
TIMER_OF support
Yoshinori Sato [Fri, 28 Dec 2018 13:58:37 +0000 (22:58 +0900)]
fix size
Yoshinori Sato [Fri, 28 Dec 2018 13:57:30 +0000 (22:57 +0900)]
NOBOOTM support
Yoshinori Sato [Sun, 4 Nov 2018 16:17:04 +0000 (01:17 +0900)]
build fix 4.19
Yoshinori Sato [Mon, 30 Jul 2018 13:04:23 +0000 (22:04 +0900)]
fix build error
Yoshinori Sato [Sun, 3 Jan 2016 05:23:12 +0000 (14:23 +0900)]
rx: Add defconfig
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Sun, 3 Jan 2016 05:00:39 +0000 (14:00 +0900)]
rx: DTS update
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Sun, 3 Jan 2016 04:59:31 +0000 (13:59 +0900)]
rx: LZO support.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Sun, 3 Jan 2016 04:56:05 +0000 (13:56 +0900)]
rx: operand fix.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Sun, 3 Jan 2016 04:55:03 +0000 (13:55 +0900)]
rx: Add CMT driver
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Sun, 3 Jan 2016 04:51:44 +0000 (13:51 +0900)]
sh_eth: Add RX6xN support.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Sun, 3 Jan 2016 04:50:42 +0000 (13:50 +0900)]
sh-sci: Force TXI for SCIa
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Sat, 2 Jan 2016 16:06:36 +0000 (01:06 +0900)]
rx: xchg update.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Fri, 1 Jan 2016 11:54:56 +0000 (20:54 +0900)]
rx: Add defconfig
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Fri, 1 Jan 2016 11:44:54 +0000 (20:44 +0900)]
rx: Add missing file
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Fri, 1 Jan 2016 11:43:28 +0000 (20:43 +0900)]
rx: add v2 exception handler
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Fri, 1 Jan 2016 11:42:15 +0000 (20:42 +0900)]
rx: remove esp0.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Fri, 1 Jan 2016 11:39:07 +0000 (20:39 +0900)]
rx: usp update fix
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Fri, 1 Jan 2016 11:38:16 +0000 (20:38 +0900)]
rx: move RODATA location
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Fri, 1 Jan 2016 11:35:59 +0000 (20:35 +0900)]
sh-sci: earlycon support.
Yoshinori Sato [Fri, 1 Jan 2016 11:34:58 +0000 (20:34 +0900)]
rx: add screen_info
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Fri, 1 Jan 2016 11:33:19 +0000 (20:33 +0900)]
rx: syscall argument fix
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Fri, 1 Jan 2016 11:22:45 +0000 (20:22 +0900)]
rx: use common clone.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Fri, 1 Jan 2016 11:21:33 +0000 (20:21 +0900)]
rx: Add missing macros
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Fri, 1 Jan 2016 11:21:03 +0000 (20:21 +0900)]
rx: mv to uapi
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Fri, 1 Jan 2016 11:18:35 +0000 (20:18 +0900)]
rx: config update
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 30 Dec 2015 09:38:47 +0000 (18:38 +0900)]
rx: zImage fix.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 30 Dec 2015 09:32:55 +0000 (18:32 +0900)]
rx: remove unused flag
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 30 Dec 2015 09:31:16 +0000 (18:31 +0900)]
rx: Add TKDN-RX62N-BRD support.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 30 Dec 2015 09:30:19 +0000 (18:30 +0900)]
rx: RXv2 support
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 30 Dec 2015 09:28:47 +0000 (18:28 +0900)]
rx: save FDT pointer
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 30 Dec 2015 09:27:10 +0000 (18:27 +0900)]
rx: cleanup
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 30 Dec 2015 09:22:54 +0000 (18:22 +0900)]
rx: clocksource: Add MTU2 support.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 30 Dec 2015 09:21:16 +0000 (18:21 +0900)]
rx: update for DeviceTree
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Sun, 27 Dec 2015 11:26:33 +0000 (20:26 +0900)]
rx: remove unused files.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Sun, 27 Dec 2015 11:17:12 +0000 (20:17 +0900)]
rx: remove unused files
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Sun, 27 Dec 2015 10:11:14 +0000 (19:11 +0900)]
RX update
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Sun, 27 Dec 2015 09:56:17 +0000 (18:56 +0900)]
rx: remove obsolute files.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Sat, 26 Dec 2015 13:38:32 +0000 (22:38 +0900)]
rx: Switch EARLYCON
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 23 Dec 2015 18:16:19 +0000 (03:16 +0900)]
rx: remove unused file.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 23 Dec 2015 18:14:37 +0000 (03:14 +0900)]
rx: remove unused files.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 23 Dec 2015 18:11:48 +0000 (03:11 +0900)]
rx: remove duplicate headers.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 23 Dec 2015 16:56:43 +0000 (01:56 +0900)]
rx: update RX support.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 23 Dec 2015 16:55:16 +0000 (01:55 +0900)]
rx: fix section name.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Yoshinori Sato [Wed, 23 Dec 2015 16:50:30 +0000 (01:50 +0900)]
rx: Add RX support files
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Linus Torvalds [Sun, 9 Jan 2022 22:55:34 +0000 (14:55 -0800)]
Linux 5.16
Linus Torvalds [Sun, 9 Jan 2022 18:49:12 +0000 (10:49 -0800)]
Merge branch 'for-linus' of git://git./linux/kernel/git/dtor/input
Pull input fix from Dmitry Torokhov:
"A small fixup to the Zinitix touchscreen driver to avoid enabling the
IRQ line before we successfully requested it"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
Input: zinitix - make sure the IRQ is allocated before it gets enabled
Linus Torvalds [Sun, 9 Jan 2022 18:43:16 +0000 (10:43 -0800)]
Merge tag 'soc-fixes-5.16-5' of git://git./linux/kernel/git/soc/soc
Pull ARM SoC fix from Olof Johansson:
"One more fix for 5.16
I had missed one patch when I sent up what I thought was the last
batch of fixes for this release. This one fixes issues on the
Raspberry Pi platforms due to gpio init changes this release, so
hopefully we can get it merged before final release is cut"
* tag 'soc-fixes-5.16-5' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
ARM: dts: gpio-ranges property is now required
Linus Torvalds [Sun, 9 Jan 2022 18:37:07 +0000 (10:37 -0800)]
Merge tag 'perf-tools-fixes-for-v5.16-2022-01-09' of git://git./linux/kernel/git/acme/linux
Pull perf tools fixes from Arnaldo Carvalho de Melo:
- Revert "libtraceevent: Increase libtraceevent logging when verbose",
breaks the build with libtraceevent-1.3.0, i.e. when building with
'LIBTRACEEVENT_DYNAMIC=1'.
- Avoid early exit in 'perf trace' due to running SIGCHLD handler
before it makes sense to. It can happen when using a BPF source code
event that have to be first built into an object file.
* tag 'perf-tools-fixes-for-v5.16-2022-01-09' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
Revert "libtraceevent: Increase libtraceevent logging when verbose"
perf trace: Avoid early exit due to running SIGCHLD handler before it makes sense to
Len Brown [Sun, 9 Jan 2022 18:11:37 +0000 (13:11 -0500)]
Revert "drm/amdgpu: stop scheduler when calling hw_fini (v2)"
This reverts commit
f7d6779df642720e22bffd449e683bb8690bd3bf.
This bisected regression has impacted suspend-resume stability
since 5.15-rc1. It regressed -stable via 5.14.10.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=215315
Fixes:
f7d6779df64 ("drm/amdgpu: stop scheduler when calling hw_fini (v2)")
Cc: Guchun Chen <guchun.chen@amd.com>
Cc: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Cc: Christian Koenig <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: <stable@vger.kernel.org> # 5.14+
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Nikita Travkin [Sun, 9 Jan 2022 07:19:19 +0000 (23:19 -0800)]
Input: zinitix - make sure the IRQ is allocated before it gets enabled
Since irq request is the last thing in the driver probe, it happens
later than the input device registration. This means that there is a
small time window where if the open method is called the driver will
attempt to enable not yet available irq.
Fix that by moving the irq request before the input device registration.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Fixes:
26822652c85e ("Input: add zinitix touchscreen driver")
Signed-off-by: Nikita Travkin <nikita@trvn.ru>
Link: https://lore.kernel.org/r/20220106072840.36851-2-nikita@trvn.ru
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Phil Elwell [Tue, 4 Jan 2022 17:02:47 +0000 (18:02 +0100)]
ARM: dts: gpio-ranges property is now required
Since [1], added in 5.7, the absence of a gpio-ranges property has
prevented GPIOs from being restored to inputs when released.
Add those properties for BCM283x and BCM2711 devices.
[1] commit
2ab73c6d8323 ("gpio: Support GPIO controllers without
pin-ranges")
Link: https://lore.kernel.org/r/20220104170247.956760-1-linus.walleij@linaro.org
Fixes:
2ab73c6d8323 ("gpio: Support GPIO controllers without pin-ranges")
Fixes:
266423e60ea1 ("pinctrl: bcm2835: Change init order for gpio hogs")
Reported-by: Stefan Wahren <stefan.wahren@i2se.com>
Reported-by: Florian Fainelli <f.fainelli@gmail.com>
Reported-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20211206092237.4105895-3-phil@raspberrypi.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Linus Torvalds [Sat, 8 Jan 2022 20:56:16 +0000 (12:56 -0800)]
Merge tag 'soc-fixes-5.16-4' of git://git./linux/kernel/git/soc/soc
Pull ARM SoC fixes from Olof Johansson:
"A few more fixes have come in, nothing overly severe but would be good
to get in by final release:
- More specific compatible fields on the qspi controller for socfpga,
to enable quirks in the driver
- A runtime PM fix for Renesas to fix mismatched reference counts on
errors"
* tag 'soc-fixes-5.16-4' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
ARM: dts: socfpga: change qspi to "intel,socfpga-qspi"
dt-bindings: spi: cadence-quadspi: document "intel,socfpga-qspi"
reset: renesas: Fix Runtime PM usage
Linus Torvalds [Sat, 8 Jan 2022 20:12:58 +0000 (12:12 -0800)]
Merge branch 'i2c/for-current' of git://git./linux/kernel/git/wsa/linux
Pull i2c fixes from Wolfram Sang:
"Fix the regression with AMD GPU suspend by reverting the
handling of bus regulators in the I2C core.
Also, there is a fix for the MPC driver to prevent an
out-of-bound-access"
* 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
Revert "i2c: core: support bus regulator controlling in adapter"
i2c: mpc: Avoid out of bounds memory access
Linus Torvalds [Sat, 8 Jan 2022 19:39:53 +0000 (11:39 -0800)]
Merge tag 'for-v5.16-rc' of git://git./linux/kernel/git/sre/linux-power-supply
Pull power supply fixes from Sebastian Reichel:
"Three fixes for the 5.16 cycle:
- Avoid going beyond last capacity in the power-supply core
- Replace 1E6L with NSEC_PER_MSEC to avoid floating point calculation
in LLVM resulting in a build failure
- Fix ADC measurements in bq25890 charger driver"
* tag 'for-v5.16-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply:
power: reset: ltc2952: Fix use of floating point literals
power: bq25890: Enable continuous conversion for ADC at charging
power: supply: core: Break capacity loop
Linus Torvalds [Sat, 8 Jan 2022 18:56:47 +0000 (10:56 -0800)]
Merge tag 'xfs-5.16-fixes-4' of git://git./fs/xfs/xfs-linux
Pull xfs fix from Darrick Wong:
- Make the old ALLOCSP ioctl behave in a consistent manner with newer
syscalls like fallocate.
* tag 'xfs-5.16-fixes-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
xfs: map unwritten blocks in XFS_IOC_{ALLOC,FREE}SP just like fallocate
Linus Torvalds [Fri, 7 Jan 2022 23:58:06 +0000 (15:58 -0800)]
Merge branch 'for-5.16-fixes' of git://git./linux/kernel/git/tj/cgroup
Pull cgroup fixes from Tejun Heo:
"This contains the cgroup.procs permission check fixes so that they use
the credentials at the time of open rather than write, which also
fixes the cgroup namespace lifetime bug"
* 'for-5.16-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
selftests: cgroup: Test open-time cgroup namespace usage for migration checks
selftests: cgroup: Test open-time credential usage for migration checks
selftests: cgroup: Make cg_create() use 0755 for permission instead of 0644
cgroup: Use open-time cgroup namespace for process migration perm checks
cgroup: Allocate cgroup_file_ctx for kernfs_open_file->priv
cgroup: Use open-time credentials for process migraton perm checks
Linus Torvalds [Fri, 7 Jan 2022 21:28:20 +0000 (13:28 -0800)]
Merge tag 'block-5.16-2022-01-07' of git://git.kernel.dk/linux-block
Pull block fix from Jens Axboe:
"Just the md bitmap regression this time"
* tag 'block-5.16-2022-01-07' of git://git.kernel.dk/linux-block:
md/raid1: fix missing bitmap update w/o WriteMostly devices
Linus Torvalds [Fri, 7 Jan 2022 21:22:58 +0000 (13:22 -0800)]
Merge tag 'edac_urgent_for_v5.16' of git://git./linux/kernel/git/ras/ras
Pull EDAC fix from Tony Luck:
"Fix 10nm EDAC driver to release and unmap resources on systems without
HBM"
* tag 'edac_urgent_for_v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
EDAC/i10nm: Release mdev/mbase when failing to detect HBM
Wolfram Sang [Thu, 6 Jan 2022 12:24:52 +0000 (13:24 +0100)]
Revert "i2c: core: support bus regulator controlling in adapter"
This largely reverts commit
5a7b95fb993ec399c8a685552aa6a8fc995c40bd. It
breaks suspend with AMD GPUs, and we couldn't incrementally fix it. So,
let's remove the code and go back to the drawing board. We keep the
header extension to not break drivers already populating the regulator.
We expect to re-add the code handling it soon.
Fixes:
5a7b95fb993e ("i2c: core: support bus regulator controlling in adapter")
Reported-by: "Tareque Md.Hanif" <tarequemd.hanif@yahoo.com>
Link: https://lore.kernel.org/r/1295184560.182511.1639075777725@mail.yahoo.com
Reported-by: Konstantin Kharlamov <hi-angel@yandex.ru>
Link: https://lore.kernel.org/r/7143a7147978f4104171072d9f5225d2ce355ec1.camel@yandex.ru
BugLink: https://gitlab.freedesktop.org/drm/amd/-/issues/1850
Tested-by: "Tareque Md.Hanif" <tarequemd.hanif@yahoo.com>
Tested-by: Konstantin Kharlamov <hi-angel@yandex.ru>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Cc: <stable@vger.kernel.org> # 5.14+
Arnaldo Carvalho de Melo [Fri, 7 Jan 2022 19:02:54 +0000 (16:02 -0300)]
Revert "libtraceevent: Increase libtraceevent logging when verbose"
This reverts commit
08efcb4a638d260ef7fcbae64ecf7ceceb3f1841.
This breaks the build as it will prefer using libbpf-devel header files,
even when not using LIBBPF_DYNAMIC=1, breaking the build.
This was detected on OpenSuSE Tumbleweed with libtraceevent-devel 1.3.0,
as described by Jiri Slaby:
=======================================================================
It breaks build with LIBTRACEEVENT_DYNAMIC and version 1.3.0:
> util/debug.c: In function ‘perf_debug_option’:
> util/debug.c:243:17: error: implicit declaration of function
‘tep_set_loglevel’ [-Werror=implicit-function-declaration]
> 243 | tep_set_loglevel(TEP_LOG_INFO);
> | ^~~~~~~~~~~~~~~~
> util/debug.c:243:34: error: ‘TEP_LOG_INFO’ undeclared (first use in this
function); did you mean ‘TEP_PRINT_INFO’?
> 243 | tep_set_loglevel(TEP_LOG_INFO);
> | ^~~~~~~~~~~~
> | TEP_PRINT_INFO
> util/debug.c:243:34: note: each undeclared identifier is reported only once
for each function it appears in
> util/debug.c:245:34: error: ‘TEP_LOG_DEBUG’ undeclared (first use in this
function)
> 245 | tep_set_loglevel(TEP_LOG_DEBUG);
> | ^~~~~~~~~~~~~
> util/debug.c:247:34: error: ‘TEP_LOG_ALL’ undeclared (first use in this
function)
> 247 | tep_set_loglevel(TEP_LOG_ALL);
> | ^~~~~~~~~~~
It is because the gcc's command line looks like:
gcc
...
-I/home/abuild/rpmbuild/BUILD/tools/lib/
...
-DLIBTRACEEVENT_VERSION=65790
...
=======================================================================
The proper way to fix this is more involved and so not suitable for this
late in the 5.16-rc stage.
Reported-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/lkml/bc2b0786-8965-1bcd-2316-9d9bb37b9c31@kernel.org
Cc: Andrii Nakryiko <andrii.nakryiko@gmail.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Song Liu <songliubraving@fb.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: https://lore.kernel.org/lkml/YddGjjmlMZzxUZbN@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Jiri Olsa [Thu, 6 Jan 2022 22:20:30 +0000 (23:20 +0100)]
perf trace: Avoid early exit due to running SIGCHLD handler before it makes sense to
When running 'perf trace' with an BPF object like:
# perf trace -e openat,tools/perf/examples/bpf/hello.c
the event parsing eventually calls llvm__get_kbuild_opts() that runs a
script and that ends up with SIGCHLD delivered to the 'perf trace'
handler, which assumes the workload process is done and quits 'perf
trace'.
Move the SIGCHLD handler setup directly to trace__run(), where the event
is parsed and the object is already compiled.
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Christy Lee <christyc.y.lee@gmail.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20220106222030.227499-1-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Linus Torvalds [Fri, 7 Jan 2022 17:28:37 +0000 (09:28 -0800)]
Merge tag 'for-linus' of git://git./virt/kvm/kvm
Pull kvm fixes from Paolo Bonzini:
"Two small fixes for x86:
- lockdep WARN due to missing lock nesting annotation
- NULL pointer dereference when accessing debugfs"
* tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
KVM: x86: Check for rmaps allocation
KVM: SEV: Mark nested locking of kvm->lock
Linus Torvalds [Fri, 7 Jan 2022 17:17:53 +0000 (09:17 -0800)]
Merge tag 'drm-fixes-2022-01-07' of git://anongit.freedesktop.org/drm/drm
Pull drm fixes from Dave Airlie:
"There is only the amdgpu runtime pm regression fix in here:
amdgpu:
- suspend/resume fix
- fix runtime PM regression"
* tag 'drm-fixes-2022-01-07' of git://anongit.freedesktop.org/drm/drm:
drm/amdgpu: disable runpm if we are the primary adapter
fbdev: fbmem: add a helper to determine if an aperture is used by a fw fb
drm/amd/pm: keep the BACO feature enabled for suspend
Nikunj A Dadhania [Wed, 5 Jan 2022 04:03:37 +0000 (09:33 +0530)]
KVM: x86: Check for rmaps allocation
With TDP MMU being the default now, access to mmu_rmaps_stat debugfs
file causes following oops:
BUG: kernel NULL pointer dereference, address:
0000000000000000
PGD 0 P4D 0
Oops: 0000 [#1] PREEMPT SMP NOPTI
CPU: 7 PID: 3185 Comm: cat Not tainted 5.16.0-rc4+ #204
RIP: 0010:pte_list_count+0x6/0x40
Call Trace:
<TASK>
? kvm_mmu_rmaps_stat_show+0x15e/0x320
seq_read_iter+0x126/0x4b0
? aa_file_perm+0x124/0x490
seq_read+0xf5/0x140
full_proxy_read+0x5c/0x80
vfs_read+0x9f/0x1a0
ksys_read+0x67/0xe0
__x64_sys_read+0x19/0x20
do_syscall_64+0x3b/0xc0
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fca6fc13912
Return early when rmaps are not present.
Reported-by: Vasant Hegde <vasant.hegde@amd.com>
Tested-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Nikunj A Dadhania <nikunj@amd.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <
20220105040337.4234-1-nikunj@amd.com>
Cc: stable@vger.kernel.org
Fixes:
3bcd0662d66f ("KVM: X86: Introduce mmu_rmaps_stat per-vm debugfs file")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Wanpeng Li [Wed, 5 Jan 2022 06:41:03 +0000 (22:41 -0800)]
KVM: SEV: Mark nested locking of kvm->lock
Both source and dest vms' kvm->locks are held in sev_lock_two_vms.
Mark one with a different subtype to avoid false positives from lockdep.
Fixes:
c9d61dcb0bc26 (KVM: SEV: accept signals in sev_lock_two_vms)
Reported-by: Yiru Xu <xyru1999@gmail.com>
Tested-by: Jinrong Liang <cloudliang@tencent.com>
Signed-off-by: Wanpeng Li <wanpengli@tencent.com>
Message-Id: <
1641364863-26331-1-git-send-email-wanpengli@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Linus Torvalds [Fri, 7 Jan 2022 02:35:17 +0000 (18:35 -0800)]
Merge tag 'for-linus' of git://git./linux/kernel/git/rdma/rdma
Pull rdma fixes from Jason Gunthorpe:
"Last pull for 5.16, the reversion has been known for a while now but
didn't get a proper fix in time. Looks like we will have several
info-leak bugs to take care of going foward.
- Revert the patch fixing the DM related crash causing a widespread
regression for kernel ULPs. A proper fix just didn't appear this
cycle due to the holidays
- Missing NULL check on alloc in uverbs
- Double free in rxe error paths
- Fix a new kernel-infoleak report when forming ah_attr's without
GRH's in ucma"
* tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
RDMA/core: Don't infoleak GRH fields
RDMA/uverbs: Check for null return of kmalloc_array
Revert "RDMA/mlx5: Fix releasing unallocated memory in dereg MR flow"
RDMA/rxe: Prevent double freeing rxe_map_set()
Linus Torvalds [Thu, 6 Jan 2022 23:00:43 +0000 (15:00 -0800)]
Merge tag 'trace-v5.16-rc8' of git://git./linux/kernel/git/rostedt/linux-trace
Pull tracing fixes from Steven Rostedt:
"Three minor tracing fixes:
- Fix missing prototypes in sample module for direct functions
- Fix check of valid buffer in get_trace_buf()
- Fix annotations of percpu pointers"
* tag 'trace-v5.16-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
tracing: Tag trace_percpu_buffer as a percpu pointer
tracing: Fix check for trace_percpu_buffer validity in get_trace_buf()
ftrace/samples: Add missing prototypes direct functions
Tejun Heo [Thu, 6 Jan 2022 21:02:29 +0000 (11:02 -1000)]
selftests: cgroup: Test open-time cgroup namespace usage for migration checks
When a task is writing to an fd opened by a different task, the perm check
should use the cgroup namespace of the latter task. Add a test for it.
Tested-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Tejun Heo [Thu, 6 Jan 2022 21:02:29 +0000 (11:02 -1000)]
selftests: cgroup: Test open-time credential usage for migration checks
When a task is writing to an fd opened by a different task, the perm check
should use the credentials of the latter task. Add a test for it.
Tested-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Tejun Heo [Thu, 6 Jan 2022 21:02:29 +0000 (11:02 -1000)]
selftests: cgroup: Make cg_create() use 0755 for permission instead of 0644
0644 is an odd perm to create a cgroup which is a directory. Use the regular
0755 instead. This is necessary for euid switching test case.
Reviewed-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Tejun Heo [Thu, 6 Jan 2022 21:02:29 +0000 (11:02 -1000)]
cgroup: Use open-time cgroup namespace for process migration perm checks
cgroup process migration permission checks are performed at write time as
whether a given operation is allowed or not is dependent on the content of
the write - the PID. This currently uses current's cgroup namespace which is
a potential security weakness as it may allow scenarios where a less
privileged process tricks a more privileged one into writing into a fd that
it created.
This patch makes cgroup remember the cgroup namespace at the time of open
and uses it for migration permission checks instad of current's. Note that
this only applies to cgroup2 as cgroup1 doesn't have namespace support.
This also fixes a use-after-free bug on cgroupns reported in
https://lore.kernel.org/r/
00000000000048c15c05d0083397@google.com
Note that backporting this fix also requires the preceding patch.
Reported-by: "Eric W. Biederman" <ebiederm@xmission.com>
Suggested-by: Linus Torvalds <torvalds@linuxfoundation.org>
Cc: Michal Koutný <mkoutny@suse.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Michal Koutný <mkoutny@suse.com>
Reported-by: syzbot+50f5cf33a284ce738b62@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/00000000000048c15c05d0083397@google.com
Fixes:
5136f6365ce3 ("cgroup: implement "nsdelegate" mount option")
Signed-off-by: Tejun Heo <tj@kernel.org>
Tejun Heo [Thu, 6 Jan 2022 21:02:29 +0000 (11:02 -1000)]
cgroup: Allocate cgroup_file_ctx for kernfs_open_file->priv
of->priv is currently used by each interface file implementation to store
private information. This patch collects the current two private data usages
into struct cgroup_file_ctx which is allocated and freed by the common path.
This allows generic private data which applies to multiple files, which will
be used to in the following patch.
Note that cgroup_procs iterator is now embedded as procs.iter in the new
cgroup_file_ctx so that it doesn't need to be allocated and freed
separately.
v2: union dropped from cgroup_file_ctx and the procs iterator is embedded in
cgroup_file_ctx as suggested by Linus.
v3: Michal pointed out that cgroup1's procs pidlist uses of->priv too.
Converted. Didn't change to embedded allocation as cgroup1 pidlists get
stored for caching.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: Michal Koutný <mkoutny@suse.com>
Tejun Heo [Thu, 6 Jan 2022 21:02:28 +0000 (11:02 -1000)]
cgroup: Use open-time credentials for process migraton perm checks
cgroup process migration permission checks are performed at write time as
whether a given operation is allowed or not is dependent on the content of
the write - the PID. This currently uses current's credentials which is a
potential security weakness as it may allow scenarios where a less
privileged process tricks a more privileged one into writing into a fd that
it created.
This patch makes both cgroup2 and cgroup1 process migration interfaces to
use the credentials saved at the time of open (file->f_cred) instead of
current's.
Reported-by: "Eric W. Biederman" <ebiederm@xmission.com>
Suggested-by: Linus Torvalds <torvalds@linuxfoundation.org>
Fixes:
187fe84067bd ("cgroup: require write perm on common ancestor when moving processes on the default hierarchy")
Reviewed-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>