Re: [PATCH 09/15] gpio: support ROHM BD71815 GPOs

2021-01-08 Thread kernel test robot
Hi Matti, I love your patch! Perhaps something to improve: [auto build test WARNING on lee-mfd/for-mfd-next] [also build test WARNING on regulator/for-next abelloni/rtc-next v5.11-rc2 next-20210108] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting

Re: [PATCH v2 3/3] mm: memcg: add swapcache stat for memcg v2

2021-01-08 Thread Roman Gushchin
On Fri, Jan 08, 2021 at 07:58:13AM -0800, Shakeel Butt wrote: > This patch adds swapcache stat for the cgroup v2. The swapcache > represents the memory that is accounted against both the memory and the > swap limit of the cgroup. The main motivation behind exposing the > swapcache stat is for

Re: [PATCH] x86/vm86/32: Remove VM86_SCREEN_BITMAP support

2021-01-08 Thread Brian Gerst
On Fri, Jan 8, 2021 at 1:59 PM Andy Lutomirski wrote: > > The implementation was rather buggy. It unconditionally marked PTEs > read-only, even for VM_SHARED mappings. I'm not sure whether this is > actually a problem, but it certainly seems unwise. More importantly, it > released the mmap

Re: [PATCH 2/2] mm: soft_dirty: userfaultfd: introduce wrprotect_tlb_flush_pending

2021-01-08 Thread Linus Torvalds
On Fri, Jan 8, 2021 at 9:53 AM Andrea Arcangeli wrote: > > Do you intend to eventually fix the zygote vmsplice case or not? > Because in current upstream it's not fixed currently using the > enterprise default config. Is this the hugepage case? Neither of your patches actually touched that, so

Re: lkml.org issues

2021-01-08 Thread Randy Dunlap
On 1/8/21 11:19 AM, Phillip Susi wrote: > Does anyone know where you can report issues on lkml.org? There's a > link to have it forward you a copy of mail but it has a capcha and the > capha is broken. > Historically it has been: Jasper Spaans Note that most of us are moving away from

Re: [PATCH] x86/vm86/32: Remove VM86_SCREEN_BITMAP support

2021-01-08 Thread Linus Torvalds
On Fri, Jan 8, 2021 at 10:55 AM Andy Lutomirski wrote: > > I can't find any users at all of this mechanism, so just remove it. Ack, as long as it sits in linux-next for a while. Linus

lkml.org issues

2021-01-08 Thread Phillip Susi
Does anyone know where you can report issues on lkml.org? There's a link to have it forward you a copy of mail but it has a capcha and the capha is broken.

Re: fbcon: remove soft scrollback code (missing Doc. patch)

2021-01-08 Thread Phillip Susi
> Could we pause this madness? Scrollback is still useful. I needed it > today... it was too small, so command results I was looking for > already scrolled away, but... life will be really painful with 0 > scrollback. > You'll need it, too... as soon as you get oops and will want to see > errors

Re: [PATCH v3 1/2] usb: dwc3: Trigger a GCTL soft reset when switching modes in DRD

2021-01-08 Thread John Stultz
On Fri, Jan 8, 2021 at 4:26 AM Felipe Balbi wrote: > > > Hi, > > John Stultz writes: > > From: Yu Chen > > > > Just resending this, as discussion died out a bit and I'm not > > sure how to make further progress. See here for debug data that > > was requested last time around: > > > >

Re: [PATCH] ARM: OMAP2+: omap_device: fix idling of devices during probe

2021-01-08 Thread Adam Ford
On Mon, Dec 7, 2020 at 8:01 AM Tony Lindgren wrote: > > * Doug Anderson [201204 16:43]: > > Hi, > > > > On Fri, Dec 4, 2020 at 8:14 AM Andreas Kemnade wrote: > > > > > > > > Fixes: 21b2cec61c04 ("mmc: Set PROBE_PREFER_ASYNCHRONOUS for drivers > > > > > that existed in v4.4") > > > > > > > >

[tip:x86/mm] BUILD SUCCESS 167dcfc08b0b1f964ea95d410aa496fd78adf475

2021-01-08 Thread kernel test robot
powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20210108 x86_64 randconfig-a006-20210108 x86_64 randconfig-a001-20210108 x86_64 randconfig-a002-20210108 x86_64

Re: [PATCH 02/10] blk: Introduce ->corrupted_range() for block device

2021-01-08 Thread Darrick J. Wong
On Fri, Jan 08, 2021 at 10:55:00AM +0100, Christoph Hellwig wrote: > It happens on a dax_device. We should not interwind dax and block_device > even more after a lot of good work has happened to detangle them. I agree that the dax device should not be implied from the block device, but what

Re: [RFC PATCH v3 8/9] md: Implement ->corrupted_range()

2021-01-08 Thread Darrick J. Wong
On Fri, Jan 08, 2021 at 05:52:11PM +0800, Ruan Shiyang wrote: > > > On 2021/1/5 上午7:34, Darrick J. Wong wrote: > > On Fri, Dec 18, 2020 at 10:11:54AM +0800, Ruan Shiyang wrote: > > > > > > > > > On 2020/12/16 上午4:51, Darrick J. Wong wrote: > > > > On Tue, Dec 15, 2020 at 08:14:13PM +0800,

Re: [PATCH v1 04/17] media: camss: Make ISPIF subdevice optional

2021-01-08 Thread Bjorn Andersson
On Fri 08 Jan 06:04 CST 2021, Robert Foss wrote: > This driver supports multiple architecture versions of the Qualcomm ISP. > The CAMSS architecure which this driver is name after, and with the > introduction of this series, the Titan architecture. > > The ISPIF is IP-block that is only present

Re: [PATCH 1/1] Revert "init/console: Use ttynull as a fallback when there is no console"

2021-01-08 Thread Linus Torvalds
On Fri, Jan 8, 2021 at 9:45 AM Petr Mladek wrote: > > Feel free to push v2 directly. Thanks, done. Linus

Re: [PATCH 0/2] page_count can't be used to decide when wp_page_copy

2021-01-08 Thread Linus Torvalds
On Fri, Jan 8, 2021 at 10:19 AM Jason Gunthorpe wrote: > > Sorry, I missed something, how does mmaping a fresh new page in the > child impact the parent? > > I guess the issue is not to mmap but to GUP a shared page No. It has nothing to do with a shared page. The problem with the COW in the

Re: [PATCH mm,percpu_ref,rcu 1/6] mm: Add mem_dump_obj() to print source of memory block

2021-01-08 Thread Paul E. McKenney
On Fri, Jan 08, 2021 at 02:50:35PM +0100, Vlastimil Babka wrote: > On 1/6/21 2:17 AM, paul...@kernel.org wrote: > > From: "Paul E. McKenney" > > > > There are kernel facilities such as per-CPU reference counts that give > > error messages in generic handlers or callbacks, whose messages are > >

Re: [PATCH v1 03/19] x86/insn: Add an insn_decode() API

2021-01-08 Thread Borislav Petkov
On Wed, Jan 06, 2021 at 02:21:14PM +0900, Masami Hiramatsu wrote: > So I think it is possible to introduce a keyword in a comment > for ignoring sync check something like below. This will allow us > a generic pattern matching. > > The keyword is just an example, "no-sync-check" etc. is OK. > >

[GIT PULL] KUnit update for Linux 5.11-rc3

2021-01-08 Thread Shuah Khan
Hi Linus, Please pull the following KUnit fixes update for Linux 5.11-rc3. This kunit update for Linux 5.11-rc3 consists one fix to force the use of the 'tty' console for UML. Given that kunit tool requires the console output, explicitly stating the dependency makes sense than relying on it

Re: [PATCH v3] kasan: remove redundant config option

2021-01-08 Thread Andrey Konovalov
On Fri, Jan 8, 2021 at 5:09 AM Walter Wu wrote: > > CONFIG_KASAN_STACK and CONFIG_KASAN_STACK_ENABLE both enable KASAN stack > instrumentation, but we should only need one config, so that we remove > CONFIG_KASAN_STACK_ENABLE and make CONFIG_KASAN_STACK workable. see [1]. > > When enable KASAN

[PATCH] x86/vm86/32: Remove VM86_SCREEN_BITMAP support

2021-01-08 Thread Andy Lutomirski
The implementation was rather buggy. It unconditionally marked PTEs read-only, even for VM_SHARED mappings. I'm not sure whether this is actually a problem, but it certainly seems unwise. More importantly, it released the mmap lock before flushing the TLB, which could allow a racing CoW

Re: [PATCH v1 02/17] media: camss: Fix vfe_isr comment typo

2021-01-08 Thread Bjorn Andersson
On Fri 08 Jan 06:04 CST 2021, Robert Foss wrote: > Comment refers to ISPIF, but this is incorrect. Only > the VFE interrupts are handled by this function. > > Signed-off-by: Robert Foss Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > drivers/media/platform/qcom/camss/camss-vfe-4-1.c |

Re: [PATCH] arm64: make atomic helpers __always_inline

2021-01-08 Thread Will Deacon
On Fri, Jan 08, 2021 at 11:26:53AM +0100, Arnd Bergmann wrote: > On Fri, Jan 8, 2021 at 10:33 AM Will Deacon wrote: > > On Fri, Jan 08, 2021 at 10:19:56AM +0100, Arnd Bergmann wrote: > > > From: Arnd Bergmann > > > > > > With UBSAN enabled and building with clang, there are occasionally > > >

Re: [PATCH v1 01/17] media: camss: Fix comment using wrong function name

2021-01-08 Thread Bjorn Andersson
On Fri 08 Jan 06:04 CST 2021, Robert Foss wrote: > Function name is comment is wrong, and was changed to be > the same as the actual function name. > > Signed-off-by: Robert Foss > --- > drivers/media/platform/qcom/camss/camss-vfe.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH 1/1] Revert "init/console: Use ttynull as a fallback when there is no console"

2021-01-08 Thread Vineet Gupta
On 1/8/21 9:45 AM, Petr Mladek wrote: > On Thu 2021-01-07 11:38:36, Linus Torvalds wrote: >> On Thu, Jan 7, 2021 at 11:15 AM Greg Kroah-Hartman >> wrote: >>> Linus, can you take this directly, or is this going through some other >>> tree? >> I was _assuming_ that I'd get it through the normal

Re: [PATCH] MAINTAINERS: add myself as slab allocators maintainer

2021-01-08 Thread Christoph Lameter
I am ok with you as a slab maintainer. I have seen some good work from you. Acked-by: Christoph Lameter

Re: [PATCH 0/3] arm64: kasan: support CONFIG_KASAN_VMALLOC

2021-01-08 Thread Ard Biesheuvel
On Fri, 8 Jan 2021 at 19:31, Andrey Konovalov wrote: > > On Sun, Jan 3, 2021 at 6:12 PM Lecopzer Chen wrote: > > > > Linux supports KAsan for VMALLOC since commit 3c5c3cfb9ef4da9 > > ("kasan: support backing vmalloc space with real shadow memory") > > > > Acroding to how x86 ported it [1], they

Re: [PATCH v4 1/2] dt-bindings: pinctrl: qcom: Add SM8350 pinctrl bindings

2021-01-08 Thread Bjorn Andersson
On Fri 08 Jan 01:57 CST 2021, Vinod Koul wrote: > Hi Bjorn, > > On 07-01-21, 11:17, Bjorn Andersson wrote: > > On Tue 05 Jan 23:49 CST 2021, Vinod Koul wrote: > > > +#PIN CONFIGURATION NODES > > > +patternProperties: > > > + '-pinmux$': > > > > I believe that what Rob was asking for was the

Re: [PATCH 0/2] page_count can't be used to decide when wp_page_copy

2021-01-08 Thread Linus Torvalds
On Fri, Jan 8, 2021 at 10:31 AM Andy Lutomirski wrote: > > Can we just remove vmsplice() support? We could make it do a normal > copy, thereby getting rid of a fair amount of nastiness and potential > attacks. Even ignoring issues relating to the length of time that the > vmsplice reference is

Re: [PATCH 0/3] arm64: kasan: support CONFIG_KASAN_VMALLOC

2021-01-08 Thread Andrey Konovalov
On Sun, Jan 3, 2021 at 6:12 PM Lecopzer Chen wrote: > > Linux supports KAsan for VMALLOC since commit 3c5c3cfb9ef4da9 > ("kasan: support backing vmalloc space with real shadow memory") > > Acroding to how x86 ported it [1], they early allocated p4d and pgd, > but in arm64 I just simulate how

RE: dmaengine : xilinx_dma two issues

2021-01-08 Thread Radhey Shyam Pandey
> -Original Message- > From: Paul Thomas > Sent: Friday, January 8, 2021 9:27 PM > To: Radhey Shyam Pandey > Cc: Dan Williams ; Vinod Koul > ; Michal Simek ; Matthew Murrian > ; Romain Perier > ; Krzysztof Kozlowski ; Marc > Ferland ; Sebastian von Ohr > ; dmaeng...@vger.kernel.org;

[PATCH v5 3/3] iio: dac: ad5766: add driver support for AD5766

2021-01-08 Thread Cristian Pop
The AD5766/AD5767 are 16-channel, 16-bit/12-bit, voltage output dense DACs Digital-to-Analog converters. This change adds support for these DACs. Signed-off-by: Cristian Pop --- Changelog v5: - Remove explicit init in "ad5766_span_tbl" - Check the return value of

[PATCH v5 2/3] Documentation/ABI/testing: Add documentation for AD5766 new ABI

2021-01-08 Thread Cristian Pop
New interface is proposed for dither functionality. This future allows composing an external signals to the selected output channel. The dither signal can be turned on/off, scaled, inverted, or it can be selected from different sources. Signed-off-by: Cristian Pop --- Changelog v5:

[PATCH v5 1/3] dt-bindings: iio: dac: AD5766 yaml documentation

2021-01-08 Thread Cristian Pop
This adds device tree bindings for the AD5766 DAC. Signed-off-by: Cristian Pop --- Changelog v5: -rename to property to "output-range-voltage" .../bindings/iio/dac/adi,ad5766.yaml | 64 +++ 1 file

[PATCH] checkpatch: Prefer ftrace over function entry/exit printks

2021-01-08 Thread Joe Perches
Prefer using ftrace over function entry/exit logging messages. Warn with various function entry/exit only logging that only use __func__ with or without descriptive decoration. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 35 +++ 1 file changed, 35

Re: [PATCH 0/2] page_count can't be used to decide when wp_page_copy

2021-01-08 Thread Andy Lutomirski
On Fri, Jan 8, 2021 at 10:19 AM Jason Gunthorpe wrote: > > On Fri, Jan 08, 2021 at 12:00:36PM -0500, Andrea Arcangeli wrote: > > > The majority cannot be converted to notifiers because they are DMA > > > based. Every one of those is an ABI for something, and does not expect > > > extra privilege

Re: [PATCH 1/3] thermal: ti-soc-thermal: Fix stuck sensor with continuous mode for 4430

2021-01-08 Thread Adam Ford
On Fri, Jan 8, 2021 at 7:45 AM Adam Ford wrote: > > On Fri, Jan 8, 2021 at 1:22 AM Tony Lindgren wrote: > > > > * H. Nikolaus Schaller [201230 13:29]: > > > > Am 30.12.2020 um 13:55 schrieb Adam Ford : > > > > On Wed, Dec 30, 2020 at 2:43 AM Tony Lindgren wrote: > > > >> > > > >> At least for

Re: [PATCH 0/3] arm64: kasan: support CONFIG_KASAN_VMALLOC

2021-01-08 Thread Andrey Konovalov
On Sun, Jan 3, 2021 at 6:12 PM Lecopzer Chen wrote: > > Linux supports KAsan for VMALLOC since commit 3c5c3cfb9ef4da9 > ("kasan: support backing vmalloc space with real shadow memory") > > Acroding to how x86 ported it [1], they early allocated p4d and pgd, > but in arm64 I just simulate how

[tip:x86/platform] BUILD SUCCESS 2b29eed3f201b49feb92fdd0178b10825a5528f4

2021-01-08 Thread kernel test robot
mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a004-20210108 x86_64 randconfig-a006-20210108 x86_64

Re: [PATCH 3/3] arm64: Kconfig: support CONFIG_KASAN_VMALLOC

2021-01-08 Thread Andrey Konovalov
On Sun, Jan 3, 2021 at 6:13 PM Lecopzer Chen wrote: > > Now I have no device to test for HW_TAG, so keep it not selected > until someone can test this. > > Signed-off-by: Lecopzer Chen > --- > arch/arm64/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/Kconfig

[ANNOUNCE] 4.19.165-rt70

2021-01-08 Thread Tom Zanussi
Hello RT Folks! I'm pleased to announce the 4.19.165-rt70 stable release. This release is just an update to the new stable 4.19.165 version and no RT specific changes have been made. You can get this release via the git tree at:

Re: [PATCH] kasan: fix unaligned address is unhandled in kasan_remove_zero_shadow

2021-01-08 Thread Andrey Konovalov
On Sun, Jan 3, 2021 at 2:56 PM Lecopzer Chen wrote: > > During testing kasan_populate_early_shadow and kasan_remove_zero_shadow, > if the shadow start and end address in kasan_remove_zero_shadow() is > not aligned to PMD_SIZE, the remain unaligned PTE won't be removed. > > In the test case for

Re: [PATCH] kasan: fix incorrect arguments passing in kasan_add_zero_shadow

2021-01-08 Thread Andrey Konovalov
On Sun, Jan 3, 2021 at 7:39 AM Lecopzer Chen wrote: > > kasan_remove_zero_shadow() shall use original virtual address, start > and size, instead of shadow address. > > Fixes: 0207df4fa1a86 ("kernel/memremap, kasan: make ZONE_DEVICE with work > with KASAN") > Signed-off-by: Lecopzer Chen > --- >

Re: [PATCH] staging: mt7621-dts: remove obsolete switch node

2021-01-08 Thread Andrew Lunn
On Fri, Jan 08, 2021 at 10:51:55AM +0800, DENG Qingfang wrote: > This was for OpenWrt's swconfig driver, which never made it upstream, > and was also superseded by MT7530 DSA driver. What about Documentation/devicetree/bindings/net/mediatek,mt7620-gsw.txt ? Should that also be removed?

Re: [PATCH 0/2] page_count can't be used to decide when wp_page_copy

2021-01-08 Thread Jason Gunthorpe
On Fri, Jan 08, 2021 at 12:00:36PM -0500, Andrea Arcangeli wrote: > > The majority cannot be converted to notifiers because they are DMA > > based. Every one of those is an ABI for something, and does not expect > > extra privilege to function. It would be a major breaking change to > > have

Re: [PATCH] iommu/io-pgtable-arm: Allow non-coherent masters to use system cache

2021-01-08 Thread Will Deacon
On Fri, Jan 08, 2021 at 11:17:25AM +0530, Sai Prakash Ranjan wrote: > On 2021-01-07 22:27, isa...@codeaurora.org wrote: > > On 2021-01-06 03:56, Will Deacon wrote: > > > On Thu, Dec 24, 2020 at 12:10:07PM +0530, Sai Prakash Ranjan wrote: > > > > commit ecd7274fb4cd ("iommu: Remove unused

Re: [RESEND PATCH 2/2] KVM: X86: Expose bus lock debug exception to guest

2021-01-08 Thread kernel test robot
Hi Chenyi, Thank you for the patch! Yet something to improve: [auto build test ERROR on kvm/linux-next] [also build test ERROR on v5.11-rc2 next-20210108] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented

[PATCH v4 1/2] drm/msm: Add speed-bin support to a618 gpu

2021-01-08 Thread Akhil P Oommen
Some GPUs support different max frequencies depending on the platform. To identify the correct variant, we should check the gpu speedbin fuse value. Add support for this speedbin detection to a6xx family along with the required fuse details for a618 gpu. Signed-off-by: Akhil P Oommen --- Changes

[PATCH v4 2/2] arm: dts: sc7180: Add support for gpu fuse

2021-01-08 Thread Akhil P Oommen
Add support for gpu fuse to help identify the supported opps. Signed-off-by: Akhil P Oommen --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index

[PATCH] spi: cadence-quadspi: Fix build warning on 32-bit platforms

2021-01-08 Thread Pratyush Yadav
The kernel test robot reports the following warning. drivers/spi/spi-cadence-quadspi.c:966:24: warning: comparison of distinct pointer types ('typeof (len) *' (aka 'unsigned int *') and 'typeof (500UL) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types]

Re: [RFC PATCH v3 0/9] fsdax: introduce fs query to support reflink

2021-01-08 Thread Jane Chu
Hi, Shiyang, On 12/18/2020 1:13 AM, Ruan Shiyang wrote: So I tried the patchset with pmem error injection, the SIGBUS payload does not look right - ** SIGBUS(7): ** ** si_addr(0x(nil)), si_lsb(0xC), si_code(0x4, BUS_MCEERR_AR) ** I expect the payload looks like ** si_addr(0x7f3672e0),

[GIT PULL] Kselftest fixes for Linux 5.11-rc3

2021-01-08 Thread Shuah Khan
Hi Linus, Please pull the following fixes update for Linux 5.11-rc3. This fixes update for 5.11-rc3 consists of two minor fixes to vDSO test changes in 5.11-rc1 update. diff is attached. thanks, -- Shuah The following changes

Re: Linux 5.11-rc2

2021-01-08 Thread Andrii Nakryiko
On Fri, Jan 8, 2021 at 3:12 AM Christopher William Snowhill wrote: > > There appears to be a regression with the filesystem NLS modules. I cannot > load any of them. They all produce: > > modprobe: ERROR: could not insert 'nls_cp437': Invalid argument > > The system journal reports: > > Jan 08

Re: [PATCH] perf tools: Update OpenCSD to v1.0.0

2021-01-08 Thread Mike Leach
Hi James, I have tested this with OpenCSD v1.0.0 + Linux 5.11-rc2. Reviewed-by: Mike Leach Tested-by: Mike Leach On Fri, 8 Jan 2021 at 14:28, James Clark wrote: > > Replace the OCSD_INSTR switch statement with an if to > fix compilation error about unhandled values and avoid > this issue

Re: [PATCH v3 3/4] x86/signal: Prevent an alternate stack overflow before a signal delivery

2021-01-08 Thread Borislav Petkov
On Tue, Dec 22, 2020 at 05:53:11PM -0800, Chang S. Bae wrote: > The kernel pushes data on the userspace stack when entering a signal. If > using a sigaltstack(), the kernel precisely knows the user stack size. ^^^ Formulate properly. > > When the kernel knows that the user

Re: [PATCH] iommu/io-pgtable-arm: Allow non-coherent masters to use system cache

2021-01-08 Thread isaacm
On 2021-01-07 21:47, Sai Prakash Ranjan wrote: On 2021-01-07 22:27, isa...@codeaurora.org wrote: On 2021-01-06 03:56, Will Deacon wrote: On Thu, Dec 24, 2020 at 12:10:07PM +0530, Sai Prakash Ranjan wrote: commit ecd7274fb4cd ("iommu: Remove unused IOMMU_SYS_CACHE_ONLY flag") removed unused

[PATCH] x86: PM: Register syscore_ops for scale invariance

2021-01-08 Thread Rafael J. Wysocki
From: Rafael J. Wysocki On x86 scale invariace tends to be disabled during resume from suspend-to-RAM, because the MPERF or APERF MSR values are not as expected then due to updates taking place after the platform firmware has been invoked to complete the suspend transition. That, of course, is

Re: [PATCH v3 4/4] selftest/x86/signal: Include test cases for validating sigaltstack

2021-01-08 Thread Borislav Petkov
On Tue, Dec 22, 2020 at 05:53:12PM -0800, Chang S. Bae wrote: > +static int setup_altstack(void *start, unsigned long size) > +{ > + stack_t ss; > + > + memset(, 0, sizeof(ss)); > + ss.ss_size = size; > + ss.ss_sp = start; > + > + return sigaltstack(, NULL); > +} > + > +static

Re: [PATCH] fs: process fput task_work with TWA_SIGNAL

2021-01-08 Thread Al Viro
On Fri, Jan 08, 2021 at 09:26:40AM -0700, Jens Axboe wrote: > >> Can you show the callers that DO NOT need it? > > > > OK, so here's my suggestion: > > > > 1) For 5.11, we just re-instate the task_work run in get_signal(). This > >will make TWA_RESUME have the exact same behavior as before.

[RFC] The purpose of raw_spin_lock_bh()

2021-01-08 Thread Sebastian Andrzej Siewior
I just noticed that we have raw_spin_lock_bh() and it has a few users. My guess is that the API should be removed and the existing user(s) should be moved to spin_lock_bh() / spinlock_t instead. On !RT it works as expected and there is no difference compared to spinlock_t. On RT it is kind of

[GIT PULL] Device properties framework fixes for v5.11-rc3

2021-01-08 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ devprop-5.11-rc3 with top-most commit 3f7bddaf5d5a83aa2eb1e6d72db221d3ec43c813 device property: add description of fwnode cases on top of commit e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62

Re: [PATCH 2/2] mm: soft_dirty: userfaultfd: introduce wrprotect_tlb_flush_pending

2021-01-08 Thread Andrea Arcangeli
On Fri, Jan 08, 2021 at 09:39:56AM -0800, Linus Torvalds wrote: > page_count() is simply the right and efficient thing to do. > > You talk about all these theoretical inefficiencies for cases like > zygote and page pinning, which have never ever been seen except as a > possible attack vector. Do

Re: [PATCH v8 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2021-01-08 Thread Benjamin Tissoires
Hi Doug, On Wed, Jan 6, 2021 at 2:35 AM Doug Anderson wrote: > > Benjamin, > > On Fri, Dec 11, 2020 at 2:24 PM Douglas Anderson > wrote: > > > > The goal of this series is to support the Goodix GT7375P touchscreen. > > This touchscreen is special because it has power sequencing > >

[GIT PULL] Power management fixes for v5.11-rc3

2021-01-08 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-5.11-rc3 with top-most commit c4151604f0603d5700072183a05828ff87d764e4 cpufreq: intel_pstate: remove obsolete functions on top of commit e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62

[GIT PULL] ACPI fixes for v5.11-rc3

2021-01-08 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-5.11-rc3 with top-most commit 24e8ab6886d80fe60b1d4e64b6d9f15ea9ad597a Merge branches 'acpi-scan' and 'acpi-misc' on top of commit e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62 Linux

Re: [PATCH v4 3/4] pinctrl: qcom: Don't clear pending interrupts when enabling

2021-01-08 Thread Doug Anderson
Hi, On Mon, Dec 21, 2020 at 8:01 AM Maulik Shah wrote: > > Hi Doug, > > On 12/12/2020 3:45 AM, Douglas Anderson wrote: > > In Linux, if a driver does disable_irq() and later does enable_irq() > > on its interrupt, I believe it's expecting these properties: > > * If an interrupt was pending when

Re: [PATCH 1/1] Revert "init/console: Use ttynull as a fallback when there is no console"

2021-01-08 Thread Petr Mladek
On Thu 2021-01-07 11:38:36, Linus Torvalds wrote: > On Thu, Jan 7, 2021 at 11:15 AM Greg Kroah-Hartman > wrote: > > > > Linus, can you take this directly, or is this going through some other > > tree? > > I was _assuming_ that I'd get it through the normal printk pull > request, it doesn't seem

Re: [PATCH 5.10 00/20] 5.10.6-rc1 review

2021-01-08 Thread Guenter Roeck
On Thu, Jan 07, 2021 at 03:33:55PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.10.6 release. > There are 20 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 2/2] mm: soft_dirty: userfaultfd: introduce wrprotect_tlb_flush_pending

2021-01-08 Thread Linus Torvalds
On Fri, Jan 8, 2021 at 8:14 AM Andrea Arcangeli wrote: > > page_count in do_wp_page is a fix for the original security issue Not just that. page_count() is simply the right and efficient thing to do. You talk about all these theoretical inefficiencies for cases like zygote and page pinning,

Re: [PATCH 5.4 00/13] 5.4.88-rc1 review

2021-01-08 Thread Guenter Roeck
On Thu, Jan 07, 2021 at 03:33:19PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.4.88 release. > There are 13 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.19 0/8] 4.19.166-rc1 review

2021-01-08 Thread Guenter Roeck
On Thu, Jan 07, 2021 at 03:32:00PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.166 release. > There are 8 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.14 00/29] 4.14.214-rc1 review

2021-01-08 Thread Guenter Roeck
On Thu, Jan 07, 2021 at 03:31:15PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.214 release. > There are 29 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.4 00/20] 4.4.250-rc2 review

2021-01-08 Thread Guenter Roeck
On Thu, Jan 07, 2021 at 03:31:19PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.250 release. > There are 20 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 4.9 00/33] 4.9.250-rc2 review

2021-01-08 Thread Guenter Roeck
On Thu, Jan 07, 2021 at 03:31:33PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.250 release. > There are 33 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH v4 sl-b 0/6] Export return addresses etc. for better diagnostics

2021-01-08 Thread Paul E. McKenney
On Fri, Jan 08, 2021 at 04:35:57PM +0100, Vlastimil Babka wrote: > On 1/8/21 1:26 AM, Paul E. McKenney wrote: > > On Wed, Jan 06, 2021 at 03:42:12PM -0800, Paul E. McKenney wrote: > >> On Wed, Jan 06, 2021 at 01:48:43PM -0800, Andrew Morton wrote: > >> > On Tue, 5 Jan 2021 17:16:03 -0800 "Paul E.

[PATCH v5 4/4] pinctrl: qcom: Don't clear pending interrupts when enabling

2021-01-08 Thread Douglas Anderson
In Linux, if a driver does disable_irq() and later does enable_irq() on its interrupt, I believe it's expecting these properties: * If an interrupt was pending when the driver disabled then it will still be pending after the driver re-enables. * If an edge-triggered interrupt comes in while an

[PATCH v5 3/4] pinctrl: qcom: Properly clear "intr_ack_high" interrupts when unmasking

2021-01-08 Thread Douglas Anderson
In commit 4b7618fdc7e6 ("pinctrl: qcom: Add irq_enable callback for msm gpio") we tried to Ack interrupts during unmask. However, that patch forgot to check "intr_ack_high" so, presumably, it only worked for a certain subset of SoCs. Let's add a small accessor so we don't need to open-code the

[PATCH v5 2/4] pinctrl: qcom: No need to read-modify-write the interrupt status

2021-01-08 Thread Douglas Anderson
When the Qualcomm pinctrl driver wants to Ack an interrupt, it does a read-modify-write on the interrupt status register. On some SoCs it makes sure that the status bit is 1 to "Ack" and on others it makes sure that the bit is 0 to "Ack". Presumably the first type of interrupt controller is a

[PATCH v5 1/4] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2021-01-08 Thread Douglas Anderson
There's currently a comment in the code saying function 0 is GPIO. Instead of hardcoding it, let's add a member where an SoC can specify it. No known SoCs use a number other than 0, but this just makes the code clearer. NOTE: no SoC code needs to be updated since we can rely on

RE: [PATCH v2 1/2] platform/x86: dell-privacy: Add support for Dell hardware privacy

2021-01-08 Thread Yuan, Perry
> -Original Message- > From: Barnabás Pőcze > Sent: 2021年1月8日 0:04 > To: Hans de Goede > Cc: Yuan, Perry; mgr...@linux.intel.com; platform-driver- > x...@vger.kernel.org; linux-kernel@vger.kernel.org; Limonciello, Mario > Subject: Re: [PATCH v2 1/2] platform/x86: dell-privacy: Add

drivers/accessibility/speakup/serialio.c:54 spk_serial_init() warn: always true condition '(index >= (0 / 20 + (0))) => (s32min-s32max >= 0)'

2021-01-08 Thread kernel test robot
config: openrisc-randconfig-m031-20210108 (attached as .config) compiler: or1k-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot smatch warnings: drivers/accessibility/speakup/serialio.c:54 spk_serial_init() warn: always true condition

[GIT PULL] Documentation fixes

2021-01-08 Thread Jonathan Corbet
The following changes since commit 5c8fe583cce542aa0b84adc939ce85293de36e5e: Linux 5.11-rc1 (2020-12-27 15:30:22 -0800) are available in the Git repository at: git://git.lwn.net/linux.git tags/docs-5.11-3 for you to fetch changes up to 9d54ee78aef62c29b15ae2f58a70b1d1cd63a8f0: docs:

Re: [PATCH 2/2] mm: soft_dirty: userfaultfd: introduce wrprotect_tlb_flush_pending

2021-01-08 Thread Linus Torvalds
On Fri, Jan 8, 2021 at 4:48 AM Will Deacon wrote: > > It certainly looks simple and correct to me, although it means we're now > taking the mmap sem for write in the case where we only want to clear the > access flag, which should be fine with the thing only held for read, no? When I was looking

Re: [PATCH 2/4] arm64: mte: Add asynchronous mode support

2021-01-08 Thread Vincenzo Frascino
Hi Andrey, On 1/8/21 1:36 PM, Andrey Konovalov wrote: > Perhaps we could add a generic arch-agnostic enum to > include/linux/kasan.h and use it in both arm64 and KASAN code? > > enum kasan_hw_tags_mode { > KASAN_HW_TAGS_SYNC, > KASAN_HW_TAGS_ASYNC > } > > Assuming other architectures that

Re: [PATCH v3] driver core: Fix device link device name collision

2021-01-08 Thread Saravana Kannan
On Fri, Jan 8, 2021 at 12:16 AM Michael Walle wrote: > > Am 2021-01-08 02:24, schrieb Saravana Kannan: > > The device link device's name was of the form: > > -- > > > > This can cause name collision as reported here [1] as device names are > > not globally unique. Since device names have to be

Re: [PATCH] x86/sev-es: Fix SEV-ES #VC handler for string port IO

2021-01-08 Thread Borislav Petkov
On Thu, Jan 07, 2021 at 06:51:07PM -0800, Hyunwook (Wooky) Baek wrote: > Don't assume dest/source buffers are userspace addresses when manually > copying data for string I/O or MOVS MMIO, as {get,put}_user() will fail > if handed a kernel address and ultimately lead to a kernel panic. > >

Re: [PATCH] tools/bpf: Remove unnecessary parameter in bpf_object__probe_loading

2021-01-08 Thread Yonghong Song
On 1/7/21 6:08 PM, 彭浩(Richard) wrote: struct bpf_object *obj is not used in bpf_object__probe_loading, so we can remove it. Signed-off-by: Peng Hao Acked-by: Yonghong Song

[PATCH v2 3/3] arm64: mm: Implement arch_wants_old_prefaulted_pte()

2021-01-08 Thread Will Deacon
On CPUs with hardware AF/DBM, initialising prefaulted PTEs as 'old' improves vmscan behaviour and does not appear to introduce any overhead. Implement arch_wants_old_prefaulted_pte() to return 'true' if we detect hardware access flag support at runtime. This can be extended in future based on

[PATCH v2 1/3] mm: Cleanup faultaround and finish_fault() codepaths

2021-01-08 Thread Will Deacon
From: "Kirill A. Shutemov" alloc_set_pte() has two users with different requirements: in the faultaround code, it called from an atomic context and PTE page table has to be preallocated. finish_fault() can sleep and allocate page table as needed. PTL locking rules are also strange, hard to

[PATCH v2 2/3] mm: Allow architectures to request 'old' entries when prefaulting

2021-01-08 Thread Will Deacon
Commit 5c0a85fad949 ("mm: make faultaround produce old ptes") changed the "faultaround" behaviour to initialise prefaulted PTEs as 'old', since this avoids vmscan wrongly assuming that they are hot, despite having never been explicitly accessed by userspace. The change has been shown to benefit

[PATCH v2 0/3] Create 'old' ptes for faultaround mappings on arm64 with hardware access flag

2021-01-08 Thread Will Deacon
Hi all, This is version two of the series I originally posted here: https://lore.kernel.org/r/20201209163950.8494-1-w...@kernel.org The patches allow architectures to opt-in at runtime for faultaround mappings to be created as 'old' instead of 'young'. Although there have been previous

Re: [RFC PATCH v2] selinux: security: Move selinux_state to a separate page

2021-01-08 Thread Casey Schaufler
On 1/8/2021 1:49 AM, Preeti Nagar wrote: > The changes introduce a new security feature, RunTime Integrity Check > (RTIC), designed to protect Linux Kernel at runtime. The motivation > behind these changes is: > 1. The system protection offered by SE for Android relies on the > assumption of

Re: (subset) [PATCH] soc: samsung: exynos-chipid: correct helpers __init annotation

2021-01-08 Thread Krzysztof Kozlowski
On Tue, 5 Jan 2021 18:44:40 +0100, Krzysztof Kozlowski wrote: > After converting to builtin driver, the probe function should not call > __init functions anymore: > > >> WARNING: modpost: vmlinux.o(.text+0x8884d4): > Section mismatch in reference from the function exynos_chipid_probe() to

[tip: ras/core] x86/mce: Make mce_timed_out() identify holdout CPUs

2021-01-08 Thread tip-bot2 for Paul E. McKenney
The following commit has been merged into the ras/core branch of tip: Commit-ID: 7bb39313cd6239e7eb95198950a02b4ad2a08316 Gitweb: https://git.kernel.org/tip/7bb39313cd6239e7eb95198950a02b4ad2a08316 Author:Paul E. McKenney AuthorDate:Wed, 23 Dec 2020 17:04:19 -08:00

RE: [PATCH v2 1/2] platform/x86: dell-privacy: Add support for Dell hardware privacy

2021-01-08 Thread Limonciello, Mario
Dell Customer Communication - Confidential Perry, For discussion in public mailing lists you'll have to make sure that you get Dell's mail service to turn off this clause and resend: > > Dell Customer Communication - Confidential >

RE: [PATCH v2 1/2] platform/x86: dell-privacy: Add support for Dell hardware privacy

2021-01-08 Thread Yuan, Perry
Dell Customer Communication - Confidential > -Original Message- > From: Barnabás Pőcze > Sent: 2021年1月8日 0:04 > To: Hans de Goede > Cc: Yuan, Perry; mgr...@linux.intel.com; platform-driver- > x...@vger.kernel.org; linux-kernel@vger.kernel.org; Limonciello, Mario > Subject: Re: [PATCH v2

RE: [PATCH v13 00/15] SMMUv3 Nested Stage Setup (IOMMU part)

2021-01-08 Thread Shameerali Kolothum Thodi
Hi Eric, > -Original Message- > From: Eric Auger [mailto:eric.au...@redhat.com] > Sent: 18 November 2020 11:22 > To: eric.auger@gmail.com; eric.au...@redhat.com; > io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; > k...@vger.kernel.org; kvm...@lists.cs.columbia.edu;

Re: [PATCH] KVM: arm64: Compute TPIDR_EL2 ignoring MTE tag

2021-01-08 Thread Steven Price
On 08/01/2021 16:51, Marc Zyngier wrote: Hi Steven, On 2021-01-08 16:12, Steven Price wrote: KASAN in HW_TAGS mode will store MTE tags in the top byte of the pointer. When computing the offset for TPIDR_EL2 we don't want anything in the top byte, so remove the tag to ensure the computation is

Re: [PATCH 0/2] page_count can't be used to decide when wp_page_copy

2021-01-08 Thread Andrea Arcangeli
On Fri, Jan 08, 2021 at 09:36:49AM -0400, Jason Gunthorpe wrote: > On Thu, Jan 07, 2021 at 04:45:33PM -0500, Andrea Arcangeli wrote: > > On Thu, Jan 07, 2021 at 04:25:25PM -0400, Jason Gunthorpe wrote: > > > On Thu, Jan 07, 2021 at 03:04:00PM -0500, Andrea Arcangeli wrote: > > > > > > > vmsplice

Re: [PATCH] xfs: Wake CIL push waiters more reliably

2021-01-08 Thread Brian Foster
On Fri, Jan 08, 2021 at 08:54:44AM +1100, Dave Chinner wrote: > On Mon, Jan 04, 2021 at 11:23:53AM -0500, Brian Foster wrote: > > On Thu, Dec 31, 2020 at 09:16:11AM +1100, Dave Chinner wrote: > > > On Wed, Dec 30, 2020 at 12:56:27AM +0100, Donald Buczek wrote: > > > > If the value goes below the

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