[PATCH v4 07/17] fs/kernel_read_file: Switch buffer size arg to size_t

2020-07-29 Thread Kees Cook
In preparation for further refactoring of kernel_read_file*(), rename the "max_size" argument to the more accurate "buf_size", and correct its type to size_t. Add kerndoc to explain the specifics of how the arguments will be used. Note that with buf_size now size_t, it can no longer be negative

[PATCH v4 06/17] fs/kernel_read_file: Remove redundant size argument

2020-07-29 Thread Kees Cook
In preparation for refactoring kernel_read_file*(), remove the redundant "size" argument which is not needed: it can be included in the return code, with callers adjusted. (VFS reads already cannot be larger than INT_MAX.) Acked-by: Scott Branden Reviewed-by: Mimi Zohar Reviewed-by: Luis

[PATCH v4 10/17] firmware_loader: Use security_post_load_data()

2020-07-29 Thread Kees Cook
Now that security_post_load_data() is wired up, use it instead of the NULL file argument style of security_post_read_file(), and update the security_kernel_load_data() call to indicate that a security_kernel_post_load_data() call is expected. Wire up the IMA check to match earlier logic. Perhaps

[PATCH v4 02/17] fs/kernel_read_file: Remove FIRMWARE_PREALLOC_BUFFER enum

2020-07-29 Thread Kees Cook
FIRMWARE_PREALLOC_BUFFER is a "how", not a "what", and confuses the LSMs that are interested in filtering between types of things. The "how" should be an internal detail made uninteresting to the LSMs. Fixes: a098ecd2fa7d ("firmware: support loading into a pre-allocated buffer") Fixes:

[PATCH v4 13/17] IMA: Add support for file reads without contents

2020-07-29 Thread Kees Cook
From: Scott Branden When the kernel_read_file LSM hook is called with contents=false, IMA can appraise the file directly, without requiring a filled buffer. When such a buffer is available, though, IMA can continue to use it instead of forcing a double read here. Signed-off-by: Scott Branden

[PATCH] lib: kunit: add bitfield test conversion to KUnit

2020-07-29 Thread Vitor Massaru Iha
This adds the conversion of the runtime tests of test_bitfield, from `lib/test_bitfield.c` to KUnit tests. Please apply this commit first (linux-kselftest/kunit-fixes): 3f37d14b8a3152441f36b6bc74000996679f0998 kunit: kunit_config: Fix parsing of CONFIG options with space Code Style

[PATCH v4 11/17] module: Call security_kernel_post_load_data()

2020-07-29 Thread Kees Cook
Now that there is an API for checking loaded contents for modules loaded without a file, call into the LSM hooks. Cc: Jessica Yu Signed-off-by: Kees Cook --- kernel/module.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/kernel/module.c b/kernel/module.c

[PATCH v4 09/17] LSM: Introduce kernel_post_load_data() hook

2020-07-29 Thread Kees Cook
There are a few places in the kernel where LSMs would like to have visibility into the contents of a kernel buffer that has been loaded or read. While security_kernel_post_read_file() (which includes the buffer) exists as a pairing for security_kernel_read_file(), no such hook exists to pair with

[PATCH v4 01/17] test_firmware: Test platform fw loading on non-EFI systems

2020-07-29 Thread Kees Cook
On non-EFI systems, it wasn't possible to test the platform firmware loader because it will have never set "checked_fw" during __init. Instead, allow the test code to override this check. Additionally split the declarations into a private header file so it there is greater enforcement of the

[PATCH v4 16/17] firmware: Add request_partial_firmware_into_buf()

2020-07-29 Thread Kees Cook
From: Scott Branden Add request_partial_firmware_into_buf() to allow for portions of a firmware file to be read into a buffer. This is needed when large firmware must be loaded in portions from a file on memory constrained systems. Signed-off-by: Scott Branden Co-developed-by: Kees Cook

[PATCH v4 14/17] fs/kernel_file_read: Add "offset" arg for partial reads

2020-07-29 Thread Kees Cook
To perform partial reads, callers of kernel_read_file*() must have a non-NULL file_size argument and a preallocated buffer. The new "offset" argument can then be used to seek to specific locations in the file to fill the buffer to, at most, "buf_size" per call. Where possible, the LSM hooks can

[PATCH v4 08/17] fs/kernel_read_file: Add file_size output argument

2020-07-29 Thread Kees Cook
In preparation for adding partial read support, add an optional output argument to kernel_read_file*() that reports the file size so callers can reason more easily about their reading progress. Acked-by: Scott Branden Reviewed-by: Mimi Zohar Reviewed-by: Luis Chamberlain Signed-off-by: Kees

[PATCH v4 15/17] firmware: Store opt_flags in fw_priv

2020-07-29 Thread Kees Cook
Instead of passing opt_flags around so much, store it in the private structure so it can be examined by internals without needing to add more arguments to functions. Co-developed-by: Scott Branden Signed-off-by: Scott Branden Signed-off-by: Kees Cook ---

drivers/tty/synclinkmp.c:3642:29: sparse: sparse: incorrect type in argument 1 (different address spaces)

2020-07-29 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6ba1b005ffc388c2aeaddae20da29e4810dea298 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 6 weeks ago config: microblaze-randconfig-s032-20200729

[PATCH] erofs: fix extended inode could cross boundary

2020-07-29 Thread Gao Xiang
Each ondisk inode should be aligned with inode slot boundary (32-byte alignment) because of nid calculation formula, so all compact inodes (32 byte) cannot across page boundary. However, extended inode is now 64-byte form, which can across page boundary in principle if the location is specified on

Re: Should perf version match kernel version?

2020-07-29 Thread Vitaly Chikunov
Peter, Arnaldo, On Wed, Jul 29, 2020 at 01:27:32PM -0300, Arnaldo Carvalho de Melo wrote: > > > On July 29, 2020 1:02:20 PM GMT-03:00, pet...@infradead.org wrote: > >On Wed, Jul 29, 2020 at 06:56:47PM +0300, Vitaly Chikunov wrote: > >> Hi, > >> > >> It seems that most distros try to have perf

Re: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-07-29 Thread Madhavan T. Venkataraman
On 7/29/20 3:36 AM, David Laight wrote: > From: Madhavan T. Venkataraman >> Sent: 28 July 2020 19:52 > ... >> trampfd faults are instruction faults that go through a different code path >> than >> the one that calls handle_mm_fault(). Perhaps, it is the handle_mm_fault() >> that >> is time

Re: [char-misc-next] mei: hdcp: fix mei_hdcp_verify_mprime() input paramter

2020-07-29 Thread Gustavo A. R. Silva
On 7/29/20 12:32, Tomas Winkler wrote: > wired_cmd_repeater_auth_stream_req_in has a variable > length array at the end. we use struct_size() overflow > macro to determine the size for the allocation and sending > size. > > Fixes: c56967d674e3 (mei: hdcp: Replace one-element array with

Re: [PATCH] cpufreq: intel_pstate: Implement passive mode with HWP enabled

2020-07-29 Thread Rafael J. Wysocki
On Wednesday, July 29, 2020 7:46:08 AM CEST Francisco Jerez wrote: > > --==-=-= > Content-Type: multipart/mixed; boundary="=-=-=" > > --=-=-= > Content-Type: text/plain; charset=utf-8 > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > "Rafael J. Wysocki" writes: >

Re: [PATCH v17 18/21] mm/lru: introduce the relock_page_lruvec function

2020-07-29 Thread Alexander Duyck
On Sat, Jul 25, 2020 at 6:00 AM Alex Shi wrote: > > Use this new function to replace repeated same code, no func change. > > Signed-off-by: Alex Shi > Cc: Johannes Weiner > Cc: Andrew Morton > Cc: Thomas Gleixner > Cc: Andrey Ryabinin > Cc: Matthew Wilcox > Cc: Mel Gorman > Cc: Konstantin

Re: [Intel-gfx] [PATCH v12 2/3] drm/i915: add syncobj timeline support

2020-07-29 Thread Linus Torvalds
On Wed, Jul 29, 2020 at 5:24 AM Daniel Vetter wrote: > > Do we have a access_ok_array or so? Instead of duplicating overflow checks > everywhere and getting it all wrong ... I really really think you should get away from access_ok() entirely. Please just get rid of it, and use

[PATCH] interconnect: Show bandwidth for disabled paths as zero in debugfs

2020-07-29 Thread Matthias Kaehlcke
For disabled paths the 'interconnect_summary' in debugfs currently shows the orginally requested bandwidths. This is confusing, since the bandwidth requests aren't active. Instead show the bandwidths for disabled paths/requests as zero. Signed-off-by: Matthias Kaehlcke ---

Re: [PATCH 0/2] locking/qspinlock: Break qspinlock_types.h header loop

2020-07-29 Thread Sergey Senozhatsky
On (20/07/29 22:28), Herbert Xu wrote: > This miniseries breaks a header loop involving qspinlock_types.h. > The issue is that qspinlock_types.h includes atomic.h, which then > eventually includes kernel.h which could lead back to the original > file via spinlock_types.h. > > The first patch

Re: [PATCH 3/7] ARM: s3c: Remove plat-samsung/.../samsung-time.h

2020-07-29 Thread Tomasz Figa
2020年7月29日(水) 18:11 Krzysztof Kozlowski : > > Remove the arch/arm/plat-samsung/include/plat/samsung-time.h header and > move the contents to common.h headers in mach-s3c24xx and mach-s3c64xx. > The definition of declared functions is already in common.c in mach > directories, so it is logically to

Re: [RFC PATCH v5 12/14] gpu: host1x: mipi: Keep MIPI clock enabled till calibration is done

2020-07-29 Thread Sowjanya Komatineni
On 7/29/20 10:08 AM, Dmitry Osipenko wrote: 28.07.2020 19:04, Sowjanya Komatineni пишет: ... +void tegra_mipi_cancel_calibration(struct tegra_mipi_device *device) +{ Doesn't MIPI_CAL need to be reset here? No need to reset MIPI CAL Could you please explain why. There is a calibration

[PATCH] Revert "kconfig: qconf: Change title for the item window"

2020-07-29 Thread Masahiro Yamada
This reverts commit 5752ff07fd90d764d96e3c586cc95c09598abfdd. It added pointless dead code to ConfigList:ConfigList(). The constructor of ConfigList has the initializer, mode(singleMode). if (mode == symbolMode) setHeaderLabels(QStringList() << "Item" << "Name" << "N" << "M" <<

Re: [PATCH 2/7] ARM: s3c64xx: Include header to fix -Wmissing-prototypes

2020-07-29 Thread Tomasz Figa
2020年7月29日(水) 18:11 Krzysztof Kozlowski : > > Include the spi-s3c64xx.h header to fix W=1 build warning: > > arch/arm/mach-s3c64xx/setup-spi.c:11:5: warning: > no previous prototype for 's3c64xx_spi0_cfg_gpio' > [-Wmissing-prototypes] >11 | int s3c64xx_spi0_cfg_gpio(void) > >

[PATCH] MAINTAINERS: edac: socfpga: transfer SoCFPGA EDAC maintainership

2020-07-29 Thread Dinh Nguyen
Thor Thayer is leaving Intel and will no longer be able to maintain the EDAC for SoCFPGA, thus transfer maintainership to Dinh Nguyen. Signed-off-by: Dinh Nguyen --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [PATCH v3 18/19] firmware: Add request_partial_firmware_into_buf()

2020-07-29 Thread Kees Cook
On Wed, Jul 29, 2020 at 08:22:17AM +0200, Takashi Iwai wrote: > On Wed, 29 Jul 2020 03:17:39 +0200, > Luis Chamberlain wrote: > > > > Long ago Takashi had some points about this strategy breaking > > compressed file use. Was that considered? > > As long as I read the patch, it tries to skip both

[PATCH v5 2/2] remoteproc: core: Register the character device interface

2020-07-29 Thread Siddharth Gupta
Add the character device during rproc_add. This would create a character device node at /dev/remoteproc. Userspace applications can interact with the remote processor using this interface. Signed-off-by: Rishabh Bhatnagar Signed-off-by: Siddharth Gupta --- drivers/remoteproc/remoteproc_core.c

[PATCH v5 0/2] Add character device interface to remoteproc

2020-07-29 Thread Siddharth Gupta
This patch series adds a character device interface to remoteproc framework. Currently there is only a sysfs interface which the userspace clients can use. If a usersapce application crashes after booting the remote processor through the sysfs interface the remote processor does not get any

[PATCH v5 1/2] remoteproc: Add remoteproc character device interface

2020-07-29 Thread Siddharth Gupta
Add the character device interface into remoteproc framework. This interface can be used in order to boot/shutdown remote subsystems and provides a basic ioctl based interface to implement supplementary functionality. An ioctl call is implemented to enable the shutdown on release feature which

Re: [PATCH 1/7] clk: samsung: s3c64xx: Declare s3c64xx_clk_init() in shared header

2020-07-29 Thread Tomasz Figa
2020年7月29日(水) 18:11 Krzysztof Kozlowski : > > The s3c64xx_clk_init() is defined and used by clk-s3c64xx driver and > also used in mach-s3c64xx machine code. Move the declaration to a > header to fix W=1 build warning: > > drivers/clk/samsung/clk-s3c64xx.c:391:13: warning: no previous

[PATCH v2] hv_utils: Add validation for untrusted Hyper-V values

2020-07-29 Thread Andres Beltran
For additional robustness in the face of Hyper-V errors or malicious behavior, validate all values that originate from packets that Hyper-V has sent to the guest in the host-to-guest ring buffer. Ensure that invalid values cannot cause indexing off the end of the icversion_data array in

Re: [PATCH 5/7] ARM: samsung: Kill useless HAVE_S3C2410_WATCHDOG

2020-07-29 Thread Tomasz Figa
2020年7月29日(水) 19:02 Guenter Roeck : > > On Wed, Jul 29, 2020 at 06:09:40PM +0200, Krzysztof Kozlowski wrote: > > A separate Kconfig option HAVE_S3C2410_WATCHDOG for Samsung SoCs does > > not have sense, because: > > 1. All ARMv7 and ARMv8 Samsung SoCs have watchdog, > > 2. All architecture

INVESTMENT PROPOSAL.

2020-07-29 Thread Daouda Ali
It’s my pleasure to contact you through this media because I need an investment assistance in your country. However I have a profitable investment proposal with good interest to share with you, amounted the sum of (Twenty Eight Million Four Hundred Thousand United State Dollar ($28.400.000.00).

Re: [PATCH v4 1/5] dt-bindings: irqchip: Add PRU-ICSS interrupt controller bindings

2020-07-29 Thread David Lechner
On 7/28/20 4:18 AM, Grzegorz Jaszczyk wrote: From: Suman Anna The Programmable Real-Time Unit and Industrial Communication Subsystem (PRU-ICSS or simply PRUSS) contains an interrupt controller (INTC) that can handle various system input events and post interrupts back to the device-level

Re: [PATCH 6/7] ARM: s3c64xx: Switch to generic watchdog driver reset

2020-07-29 Thread Tomasz Figa
Hi Krzysztof, 2020年7月29日(水) 18:11 Krzysztof Kozlowski : > > Similarly to commit f6361c6b3880 ("ARM: S3C24XX: remove separate restart > code"), the platform watchdog reset code can be removed in favor of > a generic watchdog driver which already handles reset. > > This allows removal of a bunch of

Re: [PATCH v1 2/6] mm/page_isolation: don't dump_page(NULL) in set_migratetype_isolate()

2020-07-29 Thread Mike Kravetz
On 6/30/20 7:26 AM, David Hildenbrand wrote: > Right now, if we have two isolations racing, we might trigger the > WARN_ON_ONCE() and to dump_page(NULL), dereferencing NULL. Let's just > return directly. Just curious, what call path has the WARN_ON_ONCE()/dump_page(NULL)? > > In the future, we

[char-misc-next] mei: hdcp: fix mei_hdcp_verify_mprime() input paramter

2020-07-29 Thread Tomas Winkler
wired_cmd_repeater_auth_stream_req_in has a variable length array at the end. we use struct_size() overflow macro to determine the size for the allocation and sending size. Fixes: c56967d674e3 (mei: hdcp: Replace one-element array with flexible-array member) Cc: Ramalingam C Cc: Gustavo A. R.

Re: Re: Re: [PATCH v18 02/14] mm: Introduce Data Access MONitor (DAMON)

2020-07-29 Thread SeongJae Park
On Wed, 29 Jul 2020 08:31:29 -0700 Shakeel Butt wrote: > On Sat, Jul 18, 2020 at 6:31 AM SeongJae Park wrote: > > > > On Fri, 17 Jul 2020 19:47:50 -0700 Shakeel Butt wrote: > > > > > On Mon, Jul 13, 2020 at 1:43 AM SeongJae Park wrote: > > > > > > > > From: SeongJae Park > > > > > > > >

Re: mmotm 2020-07-27-18-18 uploaded (mm/page_alloc.c)

2020-07-29 Thread Randy Dunlap
On 7/29/20 9:14 AM, David Hildenbrand wrote: > On 29.07.20 16:38, David Hildenbrand wrote: >> On 29.07.20 16:18, Michael S. Tsirkin wrote: >>> On Tue, Jul 28, 2020 at 03:31:43PM -0700, Andrew Morton wrote: On Wed, 29 Jul 2020 08:20:53 +1000 Stephen Rothwell wrote: > Hi Andrew,

Re: [PATCH 2/7] modules: mark find_symbol static

2020-07-29 Thread Joe Lawrence
On 7/29/20 12:24 PM, Greg Kroah-Hartman wrote: On Wed, Jul 29, 2020 at 06:13:18PM +0200, Jessica Yu wrote: +++ Christoph Hellwig [29/07/20 08:27 +0200]: find_symbol is only used in module.c. Signed-off-by: Christoph Hellwig CCing the livepatching ML, as this may or may not impact its

Re: [RFC PATCH 14/14] dts: bindings: coresight: ETMv4.4 system register access only units

2020-07-29 Thread Mathieu Poirier
On Wed, Jul 22, 2020 at 06:20:40PM +0100, Suzuki K Poulose wrote: > Document the bindings for ETMv4.4 and later with only system register > access. > > Cc: Rob Herring > Cc: devicet...@vger.kernel.org > Cc: Mathieu Poirier > Cc: Mike Leach > Signed-off-by: Suzuki K Poulose > --- >

Re: [PATCH] atm: Fix atm_dev reference count leaks in atmtcp_remove_persistent()

2020-07-29 Thread Markus Elfring
… > The refcount leaks issues occur in two error handling paths. Can it be nicer to use the term “reference count” for the commit message? > Fix the issue by … I suggest to replace this wording by the tag “Fixes”. … > +++ b/drivers/atm/atmtcp.c > @@ -433,9 +433,15 @@ static int

Re: [PATCH rdma-next 0/4] Fix bugs around RDMA CM destroying state

2020-07-29 Thread Jason Gunthorpe
On Thu, Jul 23, 2020 at 10:07:03AM +0300, Leon Romanovsky wrote: > This small series simplifies some of the RDMA CM state transitions > connected with DESTROYING states and in the process resolves a bug > discovered by syzkaller. > > Thanks > > Jason Gunthorpe (4): > RDMA/cma: Simplify

Re: [PATCH 1/2] firmware: qcom_scm: Add memory protect virtual address ranges

2020-07-29 Thread Elliot Berman
++ On 7/24/2020 8:04 AM, Stanimir Varbanov wrote: > Hi, > > Gentle ping for review. > > On 7/9/20 2:58 PM, Stanimir Varbanov wrote: >> This adds a new SCM memprotect command to set virtual address ranges. >> >> Signed-off-by: Stanimir Varbanov >> --- >> drivers/firmware/qcom_scm.c | 24

[PATCH] kconfig: qconf: remove "goBack" debug message

2020-07-29 Thread Masahiro Yamada
Every time the goback icon is clicked, the annoying message "goBack" is displayed on the console. I guess this line is the left-over debug code of commit af737b4defe1 ("kconfig: qconf: simplify the goBack() logic"). Signed-off-by: Masahiro Yamada --- scripts/kconfig/qconf.cc | 1 - 1 file

RE: [Intel-wired-lan] [PATCH 4/4] ixgbe/ixgbe_ethtool.c: Remove unnecessary usages of memset.

2020-07-29 Thread Bowers, AndrewX
> -Original Message- > From: Intel-wired-lan On Behalf Of > Suraj Upadhyay > Sent: Tuesday, July 14, 2020 12:42 PM > To: Kirsher, Jeffrey T ; da...@davemloft.net; > k...@kernel.org > Cc: net...@vger.kernel.org; kernel-janit...@vger.kernel.org; intel-wired- > l...@lists.osuosl.org;

Re: [PATCH 1/6] dt-bindings: display: Document NewVision NV3052C DT node

2020-07-29 Thread Laurent Pinchart
Hi Paul, Thank you for the patch. On Mon, Jul 27, 2020 at 06:46:08PM +0200, Paul Cercueil wrote: > Add documentation for the Device Tree node for LCD panels based on the > NewVision NV3052C controller. > > Signed-off-by: Paul Cercueil > --- > .../display/panel/newvision,nv3052c.yaml | 69

Re: [PATCH v3 4/5] mm: memcg: charge memcg percpu memory to the parent cgroup

2020-07-29 Thread Michal Koutný
Hello. On Tue, Jun 23, 2020 at 11:45:14AM -0700, Roman Gushchin wrote: > Because the size of memory cgroup internal structures can dramatically > exceed the size of object or page which is pinning it in the memory, it's > not a good idea to simple ignore it. It actually breaks the isolation >

Re: [RFC PATCH v5 12/14] gpu: host1x: mipi: Keep MIPI clock enabled till calibration is done

2020-07-29 Thread Dmitry Osipenko
28.07.2020 19:04, Sowjanya Komatineni пишет: ... >>> +void tegra_mipi_cancel_calibration(struct tegra_mipi_device *device) >>> +{ >> Doesn't MIPI_CAL need to be reset here? > No need to reset MIPI CAL Could you please explain why. There is a calibration state-machine that apparently needs to be

Re: [PATCH 6/7] modules: return licensing information from find_symbol

2020-07-29 Thread Christoph Hellwig
On Wed, Jul 29, 2020 at 06:48:00PM +0200, Jessica Yu wrote: > Just a small nit. Most of module.c uses license rather than licence - > could we unify the spelling to remain consistent? Sigh, American vs. > British English.. :) Sure, I can fix that up.

Re: [PATCH 2/7] modules: mark find_symbol static

2020-07-29 Thread Christoph Hellwig
On Wed, Jul 29, 2020 at 06:24:35PM +0200, Greg Kroah-Hartman wrote: > On Wed, Jul 29, 2020 at 06:13:18PM +0200, Jessica Yu wrote: > > +++ Christoph Hellwig [29/07/20 08:27 +0200]: > > > find_symbol is only used in module.c. > > > > > > Signed-off-by: Christoph Hellwig > > > > CCing the

Re: [PATCH] remoteproc: virtio: support sharing vdev buffer

2020-07-29 Thread Mathieu Poirier
Hi Peng, On Wed, Jul 22, 2020 at 09:15:43PM +0800, Peng Fan wrote: > Support sharing vdev buffer between multiple vdevs by using name > "vdevbuffer". > > Reviewed-by: Richard Zhu > Signed-off-by: Peng Fan > --- > drivers/remoteproc/remoteproc_virtio.c | 2 ++ > 1 file changed, 2 insertions(+)

Re: [PATCH] ext4: Fix comment typo "the the".

2020-07-29 Thread Jan Kara
On Sat 25-04-20 02:16:24, kyoungho koo wrote: > I have found double typed comments "the the". So i modified it to > one "the" > > Signed-off-by: kyoungho koo Ted, this seems to have fallen through the cracks... Honza > --- >

[PATCH v2 3/3] kconfig: qconf: use delete[] instead of delete to free array

2020-07-29 Thread Masahiro Yamada
cppcheck reports "Mismatching allocation and deallocation". $ cppcheck scripts/kconfig/qconf.cc Checking scripts/kconfig/qconf.cc ... scripts/kconfig/qconf.cc:1242:10: error: Mismatching allocation and deallocation: data [mismatchAllocDealloc] delete data; ^

[PATCH v2 2/3] kconfig: qconf: compile moc object separately

2020-07-29 Thread Masahiro Yamada
Currently, qconf.moc is included from qconf.cc but they can be compiled independently. When you modify qconf.cc, qconf.moc does not need recompiling. Rename qconf.moc to qconf.moc.cc, and split it out as an independent compilation unit. Signed-off-by: Masahiro Yamada --- Changes in v2: -

[PATCH v2 1/3] kconfig: qconf: use if_changed for qconf.moc rule

2020-07-29 Thread Masahiro Yamada
Regenerate qconf.moc when the moc command is changed. This also allows 'make mrproper' to clean it up. Previously, it was not cleaned up because 'clean-files += qconf.moc' was missing. Now 'make mrproper' correctly cleans it up because files listed in 'targets' are cleaned. Signed-off-by:

Re: [PATCH 5/7] ARM: samsung: Kill useless HAVE_S3C2410_WATCHDOG

2020-07-29 Thread Guenter Roeck
On Wed, Jul 29, 2020 at 06:09:40PM +0200, Krzysztof Kozlowski wrote: > A separate Kconfig option HAVE_S3C2410_WATCHDOG for Samsung SoCs does > not have sense, because: > 1. All ARMv7 and ARMv8 Samsung SoCs have watchdog, > 2. All architecture Kconfigs were selecting it (if WATCHDOG framework is >

Re: [PATCH -next] irqchip/imx-intmux: Fix irqdata regs save in imx_intmux_runtime_suspend()

2020-07-29 Thread Marc Zyngier
On 2020-07-29 16:58, Wei Yongjun wrote: Gcc report warning as follows: drivers/irqchip/irq-imx-intmux.c:316:29: warning: variable 'irqchip_data' set but not used [-Wunused-but-set-variable] 316 | struct intmux_irqchip_data irqchip_data; | ^~~~

Re: [PATCH 1/2] power: supply: cpcap-battery: Fix kerneldoc of cpcap_battery_read_accumulated()

2020-07-29 Thread Sebastian Reichel
Hi, On Wed, Jul 29, 2020 at 09:43:47AM +0200, Krzysztof Kozlowski wrote: > Fix W=1 compile warnings (invalid kerneldoc): > > drivers/power/supply/cpcap-battery.c:292: warning: Function parameter or > member 'ccd' not described in 'cpcap_battery_read_accumulated' >

Re: [PATCH 2/2] power: supply: Fix kerneldoc of power_supply_temp2resist_simple()

2020-07-29 Thread Sebastian Reichel
Hi, On Wed, Jul 29, 2020 at 09:43:48AM +0200, Krzysztof Kozlowski wrote: > Fix W=1 compile warnings (invalid kerneldoc): > > drivers/power/supply/power_supply_core.c:747: warning: Function parameter > or member 'temp' not described in 'power_supply_temp2resist_simple' >

Re: [PATCH v5 2/4] power: supply: bq27xxx_battery: Add the BQ27z561 Battery monitor

2020-07-29 Thread Sebastian Reichel
Hi, On Wed, Jul 29, 2020 at 10:55:54AM -0500, Dan Murphy wrote: > > +<<< HEAD > > Need to remove this artifact from a rebase. > > Not sure how this got here as it does not appear in my source. You don't see it in your source, since you removed it in patch 4. -- Sebastian signature.asc

Re: [patch V5 05/15] entry: Provide infrastructure for work before transitioning to guest mode

2020-07-29 Thread Qian Cai
_ioctl_run+0xb52/0x1320 [kvm] [ 765.487229] Modules linked in: vfio_pci vfio_virqfd vfio_iommu_type1 vfio loop nls_ascii nls_cp437 vfat fat [ 766.118568] CPU: 13 PID: 3377 Comm: qemu-kvm Not tainted 5.8.0-rc7-next-20200729 #2 [ 766.147011] ? kthread_create_worker_on_cpu+0xc0/0xc0 [ 766.147016] ret_from_

[PATCH v2 1/2] thermal: qcom-spmi-temp-alarm: Don't suppress negative temp

2020-07-29 Thread Guru Das Srinagesh
From: Veera Vegivada Currently driver is suppressing the negative temperature readings from the vadc. Consumers of the thermal zones need to read the negative temperature too. Don't suppress the readings. Fixes: c610afaa21d3c6e ("thermal: Add QPNP PMIC temperature alarm driver") Signed-off-by:

[PATCH v2 2/2] thermal: qcom-spmi-temp-alarm: add support for GEN2 rev 1 PMIC peripherals

2020-07-29 Thread Guru Das Srinagesh
From: David Collins Add support for TEMP_ALARM GEN2 PMIC peripherals with digital major revision 1. This revision utilizes a different temperature threshold mapping than earlier revisions. Signed-off-by: David Collins Signed-off-by: Guru Das Srinagesh --- Changes from v1: - Added space

Error: invalid switch -me200

2020-07-29 Thread kernel test robot
-r014-20200729 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 417d3d495f1cfb0a2f7b60d00829925126fdcfd9) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod

Re: [PATCH] drm/amd/display: Clear dm_state for fast updates

2020-07-29 Thread Kazlauskas, Nicholas
On 2020-07-28 5:08 a.m., dan...@ffwll.ch wrote: On Mon, Jul 27, 2020 at 10:49:48PM -0400, Kazlauskas, Nicholas wrote: On 2020-07-27 5:32 p.m., Daniel Vetter wrote: On Mon, Jul 27, 2020 at 11:11 PM Mazin Rezk wrote: On Monday, July 27, 2020 4:29 PM, Daniel Vetter wrote: On Mon, Jul 27,

Re: [PATCH 6/7] modules: return licensing information from find_symbol

2020-07-29 Thread Jessica Yu
+++ Christoph Hellwig [29/07/20 08:27 +0200]: Report the GPLONLY status through a new argument. Signed-off-by: Christoph Hellwig --- include/linux/module.h | 2 +- kernel/module.c| 16 +++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git

Re: [PATCH v18 2/4] dt-bindings: power: Convert battery.txt to battery.yaml

2020-07-29 Thread Sebastian Reichel
Hi Ricardo and Dan, On Tue, Jul 28, 2020 at 03:08:12PM -0500, Ricardo Rivera-Matos wrote: > From: Dan Murphy > > Convert the battery.txt file to yaml and fix up the examples. > > Signed-off-by: Dan Murphy > Reviewed-by: Rob Herring > --- I merged this doing some modifcations while applying,

Re: drivers/net/ethernet/pensando/ionic/ionic_lif.c:2004:3-9: preceding lock on line 1998 (fwd)

2020-07-29 Thread Shannon Nelson
On 7/29/20 9:37 AM, Julia Lawall wrote: Hello, It looks like an unlock may be wanted on line 2004. julia Thanks for catching that, Julia.  I'll follow up shortly. sln -- Forwarded message -- Date: Thu, 30 Jul 2020 00:08:47 +0800 From: kernel test robot To:

Re: [PATCH] scsi: sd: add runtime pm to open / release

2020-07-29 Thread Martin Kepplinger
Am 29. Juli 2020 17:44:42 MESZ schrieb James Bottomley : >On Wed, 2020-07-29 at 17:40 +0200, Martin Kepplinger wrote: >> On 29.07.20 16:53, James Bottomley wrote: >> > On Wed, 2020-07-29 at 07:46 -0700, James Bottomley wrote: >> > > On Wed, 2020-07-29 at 10:32 -0400, Alan Stern wrote: >[...]

Wine List

2020-07-29 Thread Meggan Berg
Hello, Would you be interested in acquiring an email list of "Wine Enthusiasts List" from USA? We also have data for Beer Enthusiasts List, Liquor Enthusiasts List, Beverage Enthusiasts List and many more. Each record in the list contains Contact Name (First, Middle and Last Name),

Re: [PATCH 0/2] locking/qspinlock: Break qspinlock_types.h header loop

2020-07-29 Thread Sergey Senozhatsky
On (20/07/29 16:28), pet...@infradead.org wrote: > On Wed, Jul 29, 2020 at 10:28:49PM +0900, Sergey Senozhatsky wrote: > > On (20/07/29 15:00), pet...@infradead.org wrote: > > > On Wed, Jul 29, 2020 at 10:51:44PM +1000, Herbert Xu wrote: > > > > On Wed, Jul 29, 2020 at 02:47:44PM +0200,

Re: [PATCH v4 2/2] soc: mediatek: add mtk-devapc driver

2020-07-29 Thread Chun-Kuang Hu
Hi, Neal: Neal Liu 於 2020年7月29日 週三 下午4:29寫道: > > MediaTek bus fabric provides TrustZone security support and data > protection to prevent slaves from being accessed by unexpected > masters. > The security violation is logged and sent to the processor for > further analysis or countermeasures. >

drivers/net/ethernet/pensando/ionic/ionic_lif.c:2004:3-9: preceding lock on line 1998 (fwd)

2020-07-29 Thread Julia Lawall
Hello, It looks like an unlock may be wanted on line 2004. julia -- Forwarded message -- Date: Thu, 30 Jul 2020 00:08:47 +0800 From: kernel test robot To: kbu...@lists.01.org Cc: l...@intel.com, Julia Lawall Subject: drivers/net/ethernet/pensando/ionic/ionic_lif.c:2004:3-9:

Re: [PATCH v3 12/19] firmware_loader: Use security_post_load_data()

2020-07-29 Thread Mimi Zohar
On Tue, 2020-07-28 at 12:43 -0700, Kees Cook wrote: > On Mon, Jul 27, 2020 at 06:57:45AM -0400, Mimi Zohar wrote: > > On Fri, 2020-07-24 at 14:36 -0700, Kees Cook wrote: > > > Now that security_post_load_data() is wired up, use it instead > > > of the NULL file argument style of

[tip: locking/core] kcsan: Improve IRQ state trace reporting

2020-07-29 Thread tip-bot2 for Marco Elver
The following commit has been merged into the locking/core branch of tip: Commit-ID: 47490fdd411675707624fdfbf7bcfcd5f6a5e706 Gitweb: https://git.kernel.org/tip/47490fdd411675707624fdfbf7bcfcd5f6a5e706 Author:Marco Elver AuthorDate:Wed, 29 Jul 2020 13:09:16 +02:00

Re: Should perf version match kernel version?

2020-07-29 Thread Arnaldo Carvalho de Melo
On July 29, 2020 1:02:20 PM GMT-03:00, pet...@infradead.org wrote: >On Wed, Jul 29, 2020 at 06:56:47PM +0300, Vitaly Chikunov wrote: >> Hi, >> >> It seems that most distros try to have perf version to match with >> running kernel version. Is is requirement? Would it be better to have >> single

[tip: locking/core] lockdep: Refactor IRQ trace events fields into struct

2020-07-29 Thread tip-bot2 for Marco Elver
The following commit has been merged into the locking/core branch of tip: Commit-ID: 9cd8b723f823d007bd70a3252e681fde07143f6d Gitweb: https://git.kernel.org/tip/9cd8b723f823d007bd70a3252e681fde07143f6d Author:Marco Elver AuthorDate:Wed, 29 Jul 2020 13:09:15 +02:00

Re: [PATCH 2/7] modules: mark find_symbol static

2020-07-29 Thread Greg Kroah-Hartman
On Wed, Jul 29, 2020 at 06:13:18PM +0200, Jessica Yu wrote: > +++ Christoph Hellwig [29/07/20 08:27 +0200]: > > find_symbol is only used in module.c. > > > > Signed-off-by: Christoph Hellwig > > CCing the livepatching ML, as this may or may not impact its users. > > AFAIK, the out-of-tree

Re: [PATCH] arm64: dts: sun50i-pinephone: add led flash

2020-07-29 Thread Luca Weiss
Hi Maxime, On Mittwoch, 29. Juli 2020 14:34:44 CEST Maxime Ripard wrote: > Hi! > > On Sat, Jul 25, 2020 at 01:08:12PM +0200, Luca Weiss wrote: > > All revisions of the PinePhone have an SGM3140 LED flash. The gpios were > > swapped on v1.0 of the board but this was fixed in later revisions. > >

Re: [PATCH 2/3] ARM: l2c: update prefetch bits in L2X0_AUX_CTRL using DT value

2020-07-29 Thread Guillaume Tucker
On 29/07/2020 15:18, Russell King - ARM Linux admin wrote: > On Wed, Jul 29, 2020 at 02:47:32PM +0100, Guillaume Tucker wrote: >> The L310_PREFETCH_CTRL register bits 28 and 29 to enable data and >> instruction prefetch respectively can also be accessed via the >> L2X0_AUX_CTRL register. They

RE: [PATCH] hv_utils: Add validation for untrusted Hyper-V values

2020-07-29 Thread Stephen Hemminger
Ok at least use the ratelimit form of kernel logging. Netdev_err_ratelimited... -Original Message- From: Andres Beltran Sent: Wednesday, July 29, 2020 9:10 AM To: Stephen Hemminger Cc: KY Srinivasan ; Haiyang Zhang ; Wei Liu ; linux-hyp...@vger.kernel.org;

Re: [RESEND PATCH v1 2/2] thermal: qcom-spmi-temp-alarm: Don't suppress negative temp

2020-07-29 Thread Guru Das Srinagesh
On Tue, Jul 28, 2020 at 06:09:12PM -0700, Stephen Boyd wrote: > Quoting Guru Das Srinagesh (2020-07-24 10:46:11) > > From: Veera Vegivada > > > > Currently driver is suppressing the negative temperature > > readings from the vadc. Consumers of the thermal zones need > > to read the negative

Re: [f2fs-dev] [PATCH] f2fs: fix deadlock between quota writes and checkpoint

2020-07-29 Thread Jaegeuk Kim
On 07/29, Chao Yu wrote: > On 2020-7-29 15:02, Jaegeuk Kim wrote: > > f2fs_write_data_pages(quota_mapping) > > __f2fs_write_data_pages f2fs_write_checkpoint > > * blk_start_plug(); > > * add bio in write_io[DATA] > > - block_operations > >

Re: [PATCH 2/5] seqlock: Fold seqcount_LOCKNAME_t definition

2020-07-29 Thread peterz
On Wed, Jul 29, 2020 at 05:33:41PM +0200, pet...@infradead.org wrote: > On Wed, Jul 29, 2020 at 03:55:07PM +0100, Matthew Wilcox wrote: > > On Wed, Jul 29, 2020 at 03:52:51PM +0200, Peter Zijlstra wrote: > > > Manual repetition is boring and error prone. > > > > Yes, but generated functions are

Re: [PATCH] scsi: sd: add runtime pm to open / release

2020-07-29 Thread Alan Stern
On Wed, Jul 29, 2020 at 08:49:34AM -0700, James Bottomley wrote: > On Wed, 2020-07-29 at 11:40 -0400, Alan Stern wrote: > > On Wed, Jul 29, 2020 at 07:53:52AM -0700, James Bottomley wrote: > > > On Wed, 2020-07-29 at 07:46 -0700, James Bottomley wrote: > [...] > > > > That sense code means "NOT

Re: [RESEND PATCH v1 1/2] thermal: qcom-spmi-temp-alarm: add support for GEN2 rev 1 PMIC peripherals

2020-07-29 Thread Guru Das Srinagesh
On Tue, Jul 28, 2020 at 06:08:28PM -0700, Stephen Boyd wrote: > Quoting Guru Das Srinagesh (2020-07-24 10:46:10) > > diff --git a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c > > b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c > > index bf7bae4..05a9601 100644 > > ---

RE: [PATCH v3 03/11] KVM: SVM: Change intercept_dr to generic intercepts

2020-07-29 Thread Babu Moger
> -Original Message- > From: Jim Mattson > Sent: Tuesday, July 28, 2020 6:59 PM > To: Moger, Babu > Cc: Paolo Bonzini ; Vitaly Kuznetsov > ; Wanpeng Li ; Sean > Christopherson ; kvm list > ; Joerg Roedel ; the arch/x86 > maintainers ; LKML ; Ingo > Molnar ; Borislav Petkov ; H . Peter

Re: mmotm 2020-07-27-18-18 uploaded (mm/page_alloc.c)

2020-07-29 Thread David Hildenbrand
On 29.07.20 16:38, David Hildenbrand wrote: > On 29.07.20 16:18, Michael S. Tsirkin wrote: >> On Tue, Jul 28, 2020 at 03:31:43PM -0700, Andrew Morton wrote: >>> On Wed, 29 Jul 2020 08:20:53 +1000 Stephen Rothwell >>> wrote: >>> Hi Andrew, On Tue, 28 Jul 2020 14:55:53 -0700 Andrew

Re: [PATCH 2/7] modules: mark find_symbol static

2020-07-29 Thread Jessica Yu
+++ Christoph Hellwig [29/07/20 08:27 +0200]: find_symbol is only used in module.c. Signed-off-by: Christoph Hellwig CCing the livepatching ML, as this may or may not impact its users. AFAIK, the out-of-tree kpatch module had used find_symbol() in the past, I am not sure what its current

[PATCH 7/7] ARM: s3c24xx: Fix missing system reset

2020-07-29 Thread Krzysztof Kozlowski
Commit f6361c6b3880 ("ARM: S3C24XX: remove separate restart code") removed usage of the watchdog reset platform code in favor of the Samsung SoC watchdog driver. However the latter was not selected thus S3C24xx platforms lost reset abilities. Cc: Fixes: f6361c6b3880 ("ARM: S3C24XX: remove

[PATCH 6/7] ARM: s3c64xx: Switch to generic watchdog driver reset

2020-07-29 Thread Krzysztof Kozlowski
Similarly to commit f6361c6b3880 ("ARM: S3C24XX: remove separate restart code"), the platform watchdog reset code can be removed in favor of a generic watchdog driver which already handles reset. This allows removal of a bunch of machine code and fixes also W=1 compile warnings:

[PATCH 5/7] ARM: samsung: Kill useless HAVE_S3C2410_WATCHDOG

2020-07-29 Thread Krzysztof Kozlowski
A separate Kconfig option HAVE_S3C2410_WATCHDOG for Samsung SoCs does not have sense, because: 1. All ARMv7 and ARMv8 Samsung SoCs have watchdog, 2. All architecture Kconfigs were selecting it (if WATCHDOG framework is chosen), 3. HAVE_S3C2410_WATCHDOG is doing nothing except being a dependency

[PATCH 2/7] ARM: s3c64xx: Include header to fix -Wmissing-prototypes

2020-07-29 Thread Krzysztof Kozlowski
Include the spi-s3c64xx.h header to fix W=1 build warning: arch/arm/mach-s3c64xx/setup-spi.c:11:5: warning: no previous prototype for 's3c64xx_spi0_cfg_gpio' [-Wmissing-prototypes] 11 | int s3c64xx_spi0_cfg_gpio(void) Signed-off-by: Krzysztof Kozlowski ---

[PATCH 1/7] clk: samsung: s3c64xx: Declare s3c64xx_clk_init() in shared header

2020-07-29 Thread Krzysztof Kozlowski
The s3c64xx_clk_init() is defined and used by clk-s3c64xx driver and also used in mach-s3c64xx machine code. Move the declaration to a header to fix W=1 build warning: drivers/clk/samsung/clk-s3c64xx.c:391:13: warning: no previous prototype for 's3c64xx_clk_init' [-Wmissing-prototypes]

[PATCH 3/7] ARM: s3c: Remove plat-samsung/.../samsung-time.h

2020-07-29 Thread Krzysztof Kozlowski
Remove the arch/arm/plat-samsung/include/plat/samsung-time.h header and move the contents to common.h headers in mach-s3c24xx and mach-s3c64xx. The definition of declared functions is already in common.c in mach directories, so it is logically to put declaration next to them. This is also one

[PATCH 4/7] ARM: samsung: Fix language typo

2020-07-29 Thread Krzysztof Kozlowski
Fix Complie -> Compile Signed-off-by: Krzysztof Kozlowski --- arch/arm/plat-samsung/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig index 301e572651c0..43a8b2bd16ff 100644 ---

<    1   2   3   4   5   6   7   8   9   10   >