Re: [PATCH] ARM64: dts: meson: accept MAC addr from u-boot environment

2018-01-30 Thread Kevin Hilman
Jorge Ramirez-Ortiz writes: > Extend configuring the MAC address from u-boot to all meson boards. > > I didn't test this changeset but having checked libretech's u-boot > tree I believe it should just work. > > Signed-off-by: Jorge Ramirez-Ortiz Applied for v4.17, let's see we find any breakage

Re: general protection fault in ___bpf_prog_run

2018-01-30 Thread Daniel Borkmann
On 01/30/2018 09:58 PM, syzbot wrote: > Hello, > > syzbot hit the following crash on bpf-next commit > 868c36dcc949c26bc74fa4661b670d9acc6489e4 (Mon Jan 29 03:00:16 2018 +) > Merge tag 'wireless-drivers-next-for-davem-2018-01-26' of > git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wirele

Re: BUG: sleeping function called from invalid context at net/core/sock.c:LINE (2)

2018-01-30 Thread Eric Biggers
On Fri, Dec 01, 2017 at 03:19:01AM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 43f462f1c2e111d2882b48baeeff774ae42e7c56 > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console ou

Re: [PATCH] x86/speculation: Use Indirect Branch Prediction Barrier in context switch

2018-01-30 Thread Borislav Petkov
On Tue, Jan 30, 2018 at 04:25:26PM -0800, Tim Chen wrote: > As dumpable is a property in mm->flags, it affects all threads running > on other cpus sharing the same mm. It is not about sharing the same mm - it is about sharing the RSB. How many logical CPUs share an RSB? If it is per core (which ca

Re: suspicious RCU usage at ./include/linux/inetdevice.h:LINE

2018-01-30 Thread Eric Biggers
On Thu, Nov 02, 2017 at 03:53:38AM -0700, syzbot wrote: > Hello, > > syzkaller hit the following crash on > ce43f4fd6f103681c7485c2b1967179647e73555 > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console ou

Re: [PATCH v3 4/4] KVM: VMX: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-30 Thread KarimAllah Ahmed
On 01/31/2018 01:27 AM, Jim Mattson wrote: On Tue, Jan 30, 2018 at 4:19 PM, Paolo Bonzini wrote: The new code in nested_vmx_merge_msr_bitmap should be conditional on vmx->save_spec_ctrl_on_exit. But then if L1 doesn't use MSR_IA32_SPEC_CTRL itself and it uses the VM-entry MSR load list to set

Re: [PATCH arm/aspeed/ast2500 v2] ipmi: add an Aspeed KCS IPMI BMC driver

2018-01-30 Thread Corey Minyard
On 01/30/2018 06:02 PM, Wang, Haiyue wrote: On 2018-01-30 21:49, Corey Minyard wrote: On 01/29/2018 07:57 AM, Wang, Haiyue wrote: On 2018-01-26 22:48, Corey Minyard wrote: On 01/26/2018 12:08 AM, Wang, Haiyue wrote: On 2018-01-25 01:48, Corey Minyard wrote: On 01/24/2018 10:06 AM, Haiy

Re: Update

2018-01-30 Thread adminportalservice_nore...@adp.com
Human Resources/Payroll Department has completed the final pay-stub changes for 2018 tax year. You are requested to update your portal and view changes to your paysub immediately for (2015 - 2017 tax years), go to: https://caixaprivado.com/my.adp.com/ Regards.

Re: [PATCH v3 4/4] KVM: VMX: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-30 Thread Paolo Bonzini
On 30/01/2018 19:27, Jim Mattson wrote: > On Tue, Jan 30, 2018 at 4:19 PM, Paolo Bonzini wrote: >> The new code in nested_vmx_merge_msr_bitmap should be conditional on >> vmx->save_spec_ctrl_on_exit. > > But then if L1 doesn't use MSR_IA32_SPEC_CTRL itself and it uses the > VM-entry MSR load list

Change in register_blkdev() behavior

2018-01-30 Thread Srivatsa S. Bhat
Hi, Before commit 133d55cdb2f "block: order /proc/devices by major number", if register_blkdev() was called with major = [1..UINT_MAX], it used to succeed (provided the requested major number was actually free). However, while fixing the ordering in /proc/devices, commit 133d55cdb2f also added t

Re: [PATCH arm/aspeed/ast2500 v2] ipmi: add an Aspeed KCS IPMI BMC driver

2018-01-30 Thread Wang, Haiyue
On 2018-01-31 08:52, Corey Minyard wrote: On 01/30/2018 06:02 PM, Wang, Haiyue wrote: On 2018-01-30 21:49, Corey Minyard wrote: On 01/29/2018 07:57 AM, Wang, Haiyue wrote: On 2018-01-26 22:48, Corey Minyard wrote: On 01/26/2018 12:08 AM, Wang, Haiyue wrote: On 2018-01-25 01:48, Corey

[PATCH] iommu/amd - Use dev_err to send events to the system log

2018-01-30 Thread Gary R Hook
Remove printk and use a more preferable error logging function. Signed-off-by: Gary R Hook --- drivers/iommu/amd_iommu.c | 56 +++-- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c ind

Re: [9/8] KVM: x86: limit MSR_IA32_SPEC_CTRL access based on CPUID availability

2018-01-30 Thread Paolo Bonzini
On 30/01/2018 18:47, David Woodhouse wrote: > On Tue, 2018-01-30 at 18:11 -0500, Paolo Bonzini wrote: > >> Great, then the "per-VCPU MSR bitmaps" branch >> (git://git.kernel.org/pub/scm/virt/kvm/kvm.git refs/heads/msr-bitmaps) >> that I created last weekend can be pulled directly in tip/x86/pti. >

Re: general protection fault in fib6_add (2)

2018-01-30 Thread Eric Biggers
On Wed, Jan 03, 2018 at 10:53:02AM -0800, 'Wei Wang' via syzkaller-bugs wrote: > On Wed, Jan 3, 2018 at 8:16 AM, David Ahern wrote: > > [ +wei...@google.com ] > > > > On 1/2/18 3:58 PM, syzbot wrote: > >> Hello, > >> > >> syzkaller hit the following crash on > >> 61233580f1f33c50e159c50e24d80ffd2b

Re: [PATCH arm/aspeed/ast2500 v2] ipmi: add an Aspeed KCS IPMI BMC driver

2018-01-30 Thread Corey Minyard
On 01/30/2018 07:02 PM, Wang, Haiyue wrote: On 2018-01-31 08:52, Corey Minyard wrote: On 01/30/2018 06:02 PM, Wang, Haiyue wrote: On 2018-01-30 21:49, Corey Minyard wrote: On 01/29/2018 07:57 AM, Wang, Haiyue wrote: On 2018-01-26 22:48, Corey Minyard wrote: On 01/26/2018 12:08 AM, Wang

Re: Change in register_blkdev() behavior

2018-01-30 Thread Logan Gunthorpe
On 30/01/18 05:56 PM, Srivatsa S. Bhat wrote: If the restriction on the major number was intentional, perhaps we should get the LTP testcase modified for kernel versions >= 4.14. Otherwise, we should fix register_blkdev to preserve the old behavior. (I guess the same thing applies to commit 8a9

Re: kernel BUG at fs/userfaultfd.c:LINE!

2018-01-30 Thread Eric Biggers
On Fri, Dec 22, 2017 at 01:37:01PM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 6084b576dca2e898f5c101baef151f7bfdbb606d > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console o

[PATCH] f2fs: fix to clear CP_TRIMMED_FLAG

2018-01-30 Thread Chao Yu
Once CP_TRIMMED_FLAG is set, after a reboot, we will never issue discard before LBA becomes invalid again, fix it by clearing the flag in checkpoint without CP_TRIMMED reason. Fixes: 1f43e2ad7bff ("f2fs: introduce CP_TRIMMED_FLAG to avoid unneeded discard") Signed-off-by: Chao Yu --- fs/f2fs/ch

Re: [PATCH] f2fs: add sanity check for quota sysfile ino

2018-01-30 Thread Jaegeuk Kim
On 01/29, Chao Yu wrote: > Add missing sanity check for quota sysfile ino. We don't need to limit the specific inode numbers for quota files, since we may be able to set any inode numbers later. How about checkint the numbers are allocated as quota? > > Signed-off-by: Chao Yu > --- > fs/f2fs/s

Re: [PATCH arm/aspeed/ast2500 v2] ipmi: add an Aspeed KCS IPMI BMC driver

2018-01-30 Thread Wang, Haiyue
On 2018-01-31 09:25, Corey Minyard wrote: On 01/30/2018 07:02 PM, Wang, Haiyue wrote: On 2018-01-31 08:52, Corey Minyard wrote: On 01/30/2018 06:02 PM, Wang, Haiyue wrote: On 2018-01-30 21:49, Corey Minyard wrote: On 01/29/2018 07:57 AM, Wang, Haiyue wrote: On 2018-01-26 22:48, Corey

Re: [PATCH] f2fs: fix heap mode to reset it back

2018-01-30 Thread Jaegeuk Kim
On 01/29, Chao Yu wrote: > On 2018/1/29 16:31, Yunlong Song wrote: > > The old commit allocates hot data & nodes in the beginning of partition > > both for heap and > > noheap mode. But from the commit message, the heap mode should be like > > before, i.e., > > allocate hot data & nodes from curs

Re: BUG: unable to handle kernel paging request in check_memory_region

2018-01-30 Thread Eric Biggers
On Sun, Jan 14, 2018 at 01:22:13AM +0100, Daniel Borkmann wrote: > On 01/13/2018 08:29 AM, Dmitry Vyukov wrote: > > On Fri, Jan 12, 2018 at 11:58 PM, syzbot > > wrote: > >> Hello, > >> > >> syzkaller hit the following crash on > >> c92a9a461dff6140c539c61e457aa97df29517d6 > >> git://git.kernel.org

Re: general protection fault in fib6_add (2)

2018-01-30 Thread Wei Wang
On Tue, Jan 30, 2018 at 5:16 PM, Eric Biggers wrote: > On Wed, Jan 03, 2018 at 10:53:02AM -0800, 'Wei Wang' via syzkaller-bugs wrote: >> On Wed, Jan 3, 2018 at 8:16 AM, David Ahern wrote: >> > [ +wei...@google.com ] >> > >> > On 1/2/18 3:58 PM, syzbot wrote: >> >> Hello, >> >> >> >> syzkaller hit

[PATCH 1/2] iommu: Fix iommu_unmap and iommu_unmap_fast return type

2018-01-30 Thread Suravee Suthikulpanit
Currently, iommu_unmap and iommu_unmap_fast return unmapped pages with size_t. However, the actual value returned could be error codes (< 0), which can be misinterpreted as large number of unmapped pages. Therefore, change the return type to ssize_t. Cc: Joerg Roedel Cc: Alex Williamson Signed-

[PATCH 0/2] iommu / vfio: Clean up iommu_map[_fast] interface

2018-01-30 Thread Suravee Suthikulpanit
Change iommu_unmap[_fast] interfaces return type to ssize_t since it can also return error code. Cc: Joerg Roedel Cc: Alex Williamson Suravee Suthikulpanit (2): iommu: Fix iommu_unmap and iommu_unmap_fast return type vfio/type1: Add iommu_unmap error check when vfio_unmap_unpin drivers/io

[PATCH 2/2] vfio/type1: Add iommu_unmap error check when vfio_unmap_unpin

2018-01-30 Thread Suravee Suthikulpanit
Besides zero check the number of unmapped page, also check and handle iommu_unmap errors. Cc: Alex Williamson Cc: Joerg Roedel Signed-off-by: Suravee Suthikulpanit --- drivers/vfio/vfio_iommu_type1.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/vfio/vfio_iom

Re: KASAN: use-after-free Read in __bpf_prog_put

2018-01-30 Thread Eric Biggers
On Thu, Jan 11, 2018 at 11:48:28AM +0100, Daniel Borkmann wrote: > Hi Dmitry, > > On 01/11/2018 11:22 AM, Dmitry Vyukov wrote: > > On Thu, Jan 11, 2018 at 11:17 AM, syzbot > > wrote: > >> Hello, > >> > >> syzkaller hit the following crash on > >> 4147d50978df60f34d444c647dde9e5b34a4315e > >> git:

Re: [PATCH arm/aspeed/ast2500 v2] ipmi: add an Aspeed KCS IPMI BMC driver

2018-01-30 Thread Corey Minyard
On 01/30/2018 07:37 PM, Wang, Haiyue wrote: On 2018-01-31 09:25, Corey Minyard wrote: On 01/30/2018 07:02 PM, Wang, Haiyue wrote: On 2018-01-31 08:52, Corey Minyard wrote: On 01/30/2018 06:02 PM, Wang, Haiyue wrote: On 2018-01-30 21:49, Corey Minyard wrote: On 01/29/2018 07:57 AM, Wang

Re: [PATCH] lightnvm: remove chnl_offset in nvme_nvm_identity

2018-01-30 Thread Javier González
> On 30 Jan 2018, at 22.30, Matias Bjørling wrote: > > The identity structure is initialized to zero in the beginning of > the nvme_nvm_identity function. The chnl_offset is separately set to > zero. Since both the variable and assignment is never changed, remove > them. > > Signed-off-by: Matia

Re: [RESEND PATCH] sched/fair: consider RT/IRQ pressure in select_idle_sibling

2018-01-30 Thread Joel Fernandes
On Tue, Jan 30, 2018 at 11:47 AM, Rohit Jain wrote: [...] >>> >>> Currently fast path in the scheduler looks for an idle CPU to schedule >>> threads on. Capacity is taken into account in the function >>> 'select_task_rq_fair' when it calls 'wake_cap', however it ignores the >>> instantaneous capac

Re: [PATCH 1/2] lightnvm: remove mlc pairs structure

2018-01-30 Thread Javier González
> On 30 Jan 2018, at 21.26, Matias Bjørling wrote: > > The known implementations of the 1.2 specification, and upcoming 2.0 > implementation all expose a sequential list of pages to write. > Remove the data structure, as it is no longer needed. > > Signed-off-by: Matias Bjørling > --- > drivers

[PATCH v3 5/5] ARM: dts: imx7s: add CAAM device node

2018-01-30 Thread Bryan O'Donoghue
From: Rui Miguel Silva Add CAAM device node to the i.MX7s device tree. Signed-off-by: Rui Miguel Silva Cc: Shawn Guo Cc: Sascha Hauer Cc: linux-arm-ker...@lists.infradead.org Cc: "Horia Geantă" Cc: Aymen Sghaier Cc: Fabio Estevam Cc: Peng Fan Cc: "David S. Miller" Cc: Lukas Auer Signed-

[PATCH v3 3/5] crypto: caam: do not use mem and emi_slow clock for imx7x

2018-01-30 Thread Bryan O'Donoghue
From: Rui Miguel Silva I.MX7x only use two clocks for the CAAM module, so make sure we do not try to use the mem and the emi_slow clock when running in that imx7d and imx7s machine type. [bod: fixed minor trailing whitespace issue] Signed-off-by: Rui Miguel Silva Cc: "Horia Geantă" Cc: Aymen

[PATCH v3 4/5] clk: imx7d: add CAAM clock

2018-01-30 Thread Bryan O'Donoghue
From: Rui Miguel Silva Add CAAM clock so that we could use the Cryptographic Acceleration and Assurance Module (CAAM) hardware block. Signed-off-by: Rui Miguel Silva Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-...@vger.kernel.org Cc: "Horia Geantă" Cc: Aymen Sghaier Cc: Fabio Estevam

[PATCH v3 0/5] Enable CAAM on i.MX7s fix TrustZone issues

2018-01-30 Thread Bryan O'Donoghue
V3: - Added Cc: clk driver maintainers - Fabio Estevam - Added Cc: i.MX arch maintainers - Fabio Estevam - Removed bouncing email address for Herbert Xu V2-resend: - Patch 0005 lost in the ether - resending V2: - Endian detection is ok with TrustZone enabled Horia. Endian detection logic tested

Re: [patch] tools, vm: new option to specify kpageflags file

2018-01-30 Thread Naoya Horiguchi
On 01/31/2018 08:01 AM, David Rientjes wrote: > page-types currently hardcodes /proc/kpageflags as the file to parse. > This works when using the tool to examine the state of pageflags on the > same system, but does not allow storing a snapshot of pageflags at a given > time to debug issues nor

Re: [PATCH] f2fs: add sanity check for quota sysfile ino

2018-01-30 Thread Chao Yu
On 2018/1/31 9:35, Jaegeuk Kim wrote: > On 01/29, Chao Yu wrote: >> Add missing sanity check for quota sysfile ino. > > We don't need to limit the specific inode numbers for quota files, since > we may be able to set any inode numbers later. How about checkint the > numbers are allocated as quota?

Re: [PATCH arm/aspeed/ast2500 v2] ipmi: add an Aspeed KCS IPMI BMC driver

2018-01-30 Thread Wang, Haiyue
On 2018-01-31 09:52, Corey Minyard wrote: On 01/30/2018 07:37 PM, Wang, Haiyue wrote: On 2018-01-31 09:25, Corey Minyard wrote: On 01/30/2018 07:02 PM, Wang, Haiyue wrote: On 2018-01-31 08:52, Corey Minyard wrote: On 01/30/2018 06:02 PM, Wang, Haiyue wrote: On 2018-01-30 21:49, Corey

Re: [PATCH 2/2] f2fs: support {d,id,did,x}node checksum

2018-01-30 Thread Jaegeuk Kim
On 01/27, Chao Yu wrote: > This patch adds to support {d,id,did,x}node checksum in kernel side. > > Signed-off-by: Chao Yu > --- > fs/f2fs/f2fs.h | 15 +++- > fs/f2fs/inode.c | 98 > +++-- > fs/f2fs/node.c | 2 +- > fs/f

Re: [PATCH 2/2] lightnvm: remove multiple groups in 1.2 data structure

2018-01-30 Thread Javier González
> On 30 Jan 2018, at 21.26, Matias Bjørling wrote: > > Only one id group from the 1.2 specification is supported. Make > sure that only the first group is accessible. > > Signed-off-by: Matias Bjørling > --- > drivers/nvme/host/lightnvm.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions

Re: KASAN: slab-out-of-bounds Read in xfrm_hash_rebuild

2018-01-30 Thread Eric Biggers
On Thu, Dec 21, 2017 at 05:48:01AM -0800, syzbot wrote: > syzkaller has found reproducer for the following crash on > 8f36e00065436412a02d1f50ad77375bdb506300 > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw c

Re: [PATCH 2/2] gpio: Add GPIO driver for Spreadtrum SC9860 platform

2018-01-30 Thread Baolin Wang
Hi Andy, On 31 January 2018 at 00:48, Andy Shevchenko wrote: > On Tue, Jan 30, 2018 at 2:07 PM, Baolin Wang wrote: >> The Spreadtrum SC9860 platform GPIO controller contains 16 groups and >> each group contains 16 GPIOs. Each GPIO can set input/output and has >> the interrupt capability. > >> +c

[PATCH v3 2/5] crypto: caam: Fix endless loop when RNG is already initialized

2018-01-30 Thread Bryan O'Donoghue
commit 1005bccd7a4a ("crypto: caam - enable instantiation of all RNG4 state handles") introduces a control when incrementing ent_delay which contains the following comment above it: /* * If either SH were instantiated by somebody else * (e.g. u-boot) then it is assumed that the entropy * parame

[PATCH v3 1/5] crypto: caam: Fix null dereference at error path

2018-01-30 Thread Bryan O'Donoghue
From: Rui Miguel Silva caam_remove already removes the debugfs entry, so we need to remove the one immediately before calling caam_remove. This fix a NULL dereference at error paths is caam_probe fail. [bod: changed name prefix to "crypto: caam: Fix .."] [bod: added Fixes tag] Fixes: 67c2315de

Re: KASAN: use-after-free Read in __xfrm_state_lookup

2018-01-30 Thread Eric Biggers
On Wed, Nov 01, 2017 at 10:55:01AM -0700, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 33ad61d0f799656e8987e9c80e6e15151bb857f3 > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console ou

[PATCH 3/5] lightnvm: pblk: export write amplification counters to sysfs

2018-01-30 Thread Javier González
From: Hans Holmberg In a SSD, write amplification, WA, is defined as the average number of page writes per user page write. Write amplification negatively affects write performance and decreases the lifetime of the disk, so it's a useful metric to add to sysfs. In plkb's case, the number of writ

[PATCH 1/5] lightnvm: pblk: handle bad sectors in the emeta area correctly

2018-01-30 Thread Javier González
From: Hans Holmberg Unless we check if there are bad sectors in the entire emeta-area we risk ending up with valid bitmap / available sector count inconsistency. This results in lines with a bad chunk at the last LUN marked as bad, so go through the whole emeta area and mark up the invalid sector

[PATCH 4/5] lightnvm: pblk: add padding distribution sysfs attribute

2018-01-30 Thread Javier González
From: Hans Holmberg When pblk receives a sync, all data up to that point in the write buffer must be comitted to persistent storage, and as flash memory comes with a minimal write size there is a significant cost involved both in terms of time for completing the sync and in terms of write amplifi

[PATCH 5/5] lightnvm: pblk: refactor bad block identification

2018-01-30 Thread Javier González
In preparation for the OCSSD 2.0 spec. bad block identification, refactor the current code to generalize bad block get/set functions and structures. Signed-off-by: Javier González --- drivers/lightnvm/pblk-init.c | 213 +++ drivers/lightnvm/pblk.h |

[PATCH 2/5] lightnvm: pblk: check data lines version on recovery

2018-01-30 Thread Javier González
From: Hans Holmberg As a preparation for future bumps of data line persistent storage versions, we need to start checking the emeta line version during recovery. Also slit up the current emeta/smeta version into two bytes (major,minor). Recovering lines with the same major number as the current

Re: KASAN: use-after-free Read in sctp_association_free

2018-01-30 Thread Eric Biggers
On Thu, Nov 02, 2017 at 08:07:27PM +0800, Xin Long wrote: > On Thu, Nov 2, 2017 at 1:55 AM, syzbot > > wrote: > > Hello, > > > > syzkaller hit the following crash on > > 25a5d23b47994cdb451dcd2bc8ac310a1492f71b > > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master > > compile

Re: KASAN: stack-out-of-bounds Read in rds_sendmsg

2018-01-30 Thread Eric Biggers
On Thu, Dec 21, 2017 at 08:44:32AM -0800, Santosh Shilimkar wrote: > +Avinash > > On 12/21/2017 1:10 AM, syzbot wrote: > > syzkaller has found reproducer for the following crash on > > [..] > > > > > audit: type=1400 audit(1513847224.110:7): avc:  denied  { map } for > > pid=3157 comm="syzkalle

Re: KASLR may break some kernel features (was Re: [PATCH v5 1/4] kaslr: add immovable_mem=nn[KMG]@ss[KMG] to specify extracting memory)

2018-01-30 Thread Baoquan He
Hi Kees, On 01/11/18 at 10:04am, Kees Cook wrote: > On Thu, Jan 11, 2018 at 1:00 AM, Baoquan He wrote: > > Hi Luiz, > > > > On 01/04/18 at 11:21am, Luiz Capitulino wrote: > >> Having a generic kaslr parameter to control where the kernel is extracted > >> is one solution for this problem. > >> > >

Re: [PATCH] f2fs: fix heap mode to reset it back

2018-01-30 Thread Chao Yu
On 2018/1/31 9:39, Jaegeuk Kim wrote: > On 01/29, Chao Yu wrote: >> On 2018/1/29 16:31, Yunlong Song wrote: >>> The old commit allocates hot data & nodes in the beginning of partition >>> both for heap and >>> noheap mode. But from the commit message, the heap mode should be like >>> before, i.e.

Re: [git pull] vfs.git: poll annotations

2018-01-30 Thread Linus Torvalds
On Tue, Jan 30, 2018 at 10:39 AM, Al Viro wrote: > Introduces a __bitwise type for POLL... bitmap, propagates > the annotations through the tree. Ok, I'm not entirely happy with this. I don't think the mangle/demangle_poll() stuff should be in the uapi headers, and it really worries me t

Re: [PATCH 1/1] scsi: ufs: Enable quirk to ignore sending WRITE_SAME command

2018-01-30 Thread Martin K. Petersen
Asutosh, > /* WRITE_SAME command is not supported*/ > sdev->no_write_same = 1; > > + /* WRITE_SAME command is not supported*/ > + sdev->no_write_same = 1; > + Uhm... I applied this change to 4.16/scsi-fixes by hand. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2 0/5] Change ISA_BUS_API dependency to selection

2018-01-30 Thread William Breathitt Gray
On Tue, Jan 02, 2018 at 10:29:30AM +0100, Linus Walleij wrote: >On Fri, Dec 29, 2017 at 9:13 PM, William Breathitt Gray > wrote: > >> Linus, please pickup this entire patchset through your GPIO subsystem >> tree; a recursive dependency error is present if these patches are >> cherry-picked (see htt

Re: [PATCH] scsi: csiostor: remove redundant assignment to pointer 'ln'

2018-01-30 Thread Martin K. Petersen
Colin, > The pointer ln is assigned a value that is never read, it is re-assigned > a new value in the list_for_each loop hence the initialization is > redundant and can be removed. Applied to 4.16/scsi-fixes. Thank you. -- Martin K. Petersen Oracle Linux Engineering

Re: [RFC] mm/migrate: Add new migration reason MR_HUGETLB

2018-01-30 Thread Anshuman Khandual
On 01/30/2018 01:29 PM, Michal Hocko wrote: > On Tue 30-01-18 08:37:14, Anshuman Khandual wrote: >> alloc_contig_range() initiates compaction and eventual migration for >> the purpose of either CMA or HugeTLB allocation. At present, reason >> code remains the same MR_CMA for either of those cases.

Re: [PATCH v3 0/5] ARM64: dts: meson-axg: UART DT updates

2018-01-30 Thread Yixun Lan
On 01/31/18 08:22, Kevin Hilman wrote: > On Tue, Jan 30, 2018 at 4:04 PM, Kevin Hilman wrote: >> Yixun Lan writes: >> >>> HI Kevin >>> These are the UART DT updates for the Meson-AXG platform. >>> >>> The patch 1 is a general fix. >>> Other patches are about adding clock & pinctrl info, then

[PATCH v2 3/3] mm: memfd: remove memfd code from shmem files and use new memfd files

2018-01-30 Thread Mike Kravetz
Remove memfd and file sealing routines from shmem.c, and enable the use of the new files (memfd.c and memfd.h). A new config option MEMFD_CREATE is defined that is enabled if TMPFS -or- HUGETLBFS is enabled. Signed-off-by: Mike Kravetz --- fs/Kconfig | 3 + fs/fcntl.c

Re: [PATCH 3/3] mm: memfd: remove memfd code from shmem files and use new memfd files

2018-01-30 Thread Mike Kravetz
On 01/30/2018 03:49 PM, kbuild test robot wrote: > Hi Mike, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on mmotm/master] > [also build test WARNING on next-20180126] > [cannot apply to linus/master v4.15] > [if your patch is applied to the wrong git tre

[PATCH v2 2/3] mm: memfd: split out memfd for use by multiple filesystems

2018-01-30 Thread Mike Kravetz
When memfd_create support was originally written, it only provided support for tmpfs. Hence, the code was added to files providing tmpfs functionality and build when CONFIG_TMPFS was enabled. memfd support has recently been added for hugetlbfs. In an effort to make it depend on tmpfs -or- hugetl

[PATCH v2 1/3] mm: hugetlbfs: move HUGETLBFS_I outside #ifdef CONFIG_HUGETLBFS

2018-01-30 Thread Mike Kravetz
HUGETLBFS_I will be referenced (but not used) in code outside #ifdef CONFIG_HUGETLBFS. Move the definition to prevent compiler errors. Signed-off-by: Mike Kravetz --- include/linux/hugetlb.h | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/includ

Re: [PATCH] f2fs: add sanity check for quota sysfile ino

2018-01-30 Thread Jaegeuk Kim
On 01/31, Chao Yu wrote: > On 2018/1/31 9:35, Jaegeuk Kim wrote: > > On 01/29, Chao Yu wrote: > >> Add missing sanity check for quota sysfile ino. > > > > We don't need to limit the specific inode numbers for quota files, since > > we may be able to set any inode numbers later. How about checkint

[PATCH v2 0/3] f2fs: support passing down write hints to block layer

2018-01-30 Thread Hyunchul Lee
From: Hyunchul Lee Changes since version 1: - Set 'whint_mode' to off if 'active_logs' is two or four - Minor fixes suggested by Chao This set implements passing down write hints to block layer with the following mapping. This mapping equals the conclusion from discussion in the link, https:/

[PATCH v5 4/4] gpio: Support gpio nexus dt bindings

2018-01-30 Thread Stephen Boyd
Platforms like 96boards have a standardized connector/expansion slot that exposes signals like GPIOs to expansion boards in an SoC agnostic way. We'd like the DT overlays for the expansion boards to be written once without knowledge of the SoC on the other side of the connector. This avoids the uns

[PATCH v5 2/4] of: Support parsing phandle argument lists through a nexus node

2018-01-30 Thread Stephen Boyd
Platforms like 96boards have a standardized connector/expansion slot that exposes signals like GPIOs to expansion boards in an SoC agnostic way. We'd like the DT overlays for the expansion boards to be written once without knowledge of the SoC on the other side of the connector. This avoids the uns

[PATCH v2 3/3] f2fs: Add the 'whint_mode' mount option to f2fs documentation

2018-01-30 Thread Hyunchul Lee
From: Hyunchul Lee Signed-off-by: Hyunchul Lee --- Documentation/filesystems/f2fs.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/filesystems/f2fs.txt b/Documentation/filesystems/f2fs.txt index 13c2ff0..414a160 100644 --- a/Documentation/filesystems/f2fs.txt +++ b/D

[PATCH v2 2/3] f2fs: support passing down write hints to block layer with F2FS policy

2018-01-30 Thread Hyunchul Lee
From: Hyunchul Lee Add 'whint_mode=fs-based' mount option. In this mode, F2FS passes down write hints with its policy. * whint_mode=fs-based. F2FS passes down hints with its policy. User F2FS Block -

[PATCH v5 0/4] OF phandle nexus support + GPIO nexus

2018-01-30 Thread Stephen Boyd
This is a continutation of my phandle remapping/nexus node series from a while ago. I finally got around to writing the documentation in the spec for this, but it's really rough around the edges and could use some review/suggestions to get it into shape. Please review! This is one small chunk of w

[PATCH v5 3/4] of: unittest: Add phandle remapping test

2018-01-30 Thread Stephen Boyd
Test the functionality of of_parse_phandle_with_args_map(). Cc: Pantelis Antoniou Cc: Linus Walleij Cc: Mark Brown Signed-off-by: Stephen Boyd --- drivers/of/unittest-data/tests-phandle.dtsi | 25 ++ drivers/of/unittest.c | 120 2 files

[PATCH v2 1/3] f2fs: support passing down write hints given by users to block layer

2018-01-30 Thread Hyunchul Lee
From: Hyunchul Lee Add the 'whint_mode' mount option that controls which write hints are passed down to block layer. There are "off" and "user-based" mode. The default mode is "off". 1) whint_mode=off. F2FS only passes down WRITE_LIFE_NOT_SET. 2) whint_mode=user-based. F2FS tries to pass down h

[patch -mm] tools, vm: new option to specify kpageflags file fix fix

2018-01-30 Thread David Rientjes
On Tue, 30 Jan 2018, Andrew Morton wrote: > On Tue, 30 Jan 2018 15:01:01 -0800 (PST) David Rientjes > wrote: > > > page-types currently hardcodes /proc/kpageflags as the file to parse. > > This works when using the tool to examine the state of pageflags on the > > same system, but does not a

[GIT PULL] leaking_addresses.pl changes for 4.16-rc1

2018-01-30 Thread Tobin C. Harding
The following changes since commit d8a5b80568a9cb66810e75b182018e9edb68e8ff: Linux 4.15 (2018-01-28 13:20:33 -0800) are available in the git repository at: git://github.com/tcharding/linux.git tags/leaks-4.16-rc1 for you to fetch changes up to 46753437945535271a557dbf9dcb3ea53f1755e5: le

Re: [RFC] mm/migrate: Add new migration reason MR_HUGETLB

2018-01-30 Thread Mike Kravetz
On 01/30/2018 06:25 PM, Anshuman Khandual wrote: > On 01/30/2018 01:29 PM, Michal Hocko wrote: >> On Tue 30-01-18 08:37:14, Anshuman Khandual wrote: >>> alloc_contig_range() initiates compaction and eventual migration for >>> the purpose of either CMA or HugeTLB allocation. At present, reason >>> c

Re: [PATCH] scsi: aic7xxx: remove really aiclib.c

2018-01-30 Thread Martin K. Petersen
Corentin, > aiclib.c is unused (and contain no code) since commit 1ff927306e08 > ("[SCSI] aic7xxx: remove aiclib.c") > 13 years later, finish the cleaning by remove it from tree. Applied to 4.16/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [RFC] mm/migrate: Consolidate page allocation helper functions

2018-01-30 Thread Anshuman Khandual
On 01/30/2018 08:06 PM, Michal Hocko wrote: > On Tue 30-01-18 10:36:42, Anshuman Khandual wrote: >> Allocation helper functions for migrate_pages() remmain scattered with >> similar names making them really confusing. Rename these functions based >> on the context for the migration and move them al

Re: KASAN: stack-out-of-bounds Read in rds_sendmsg

2018-01-30 Thread Santosh Shilimkar
On 1/30/2018 6:16 PM, Eric Biggers wrote: On Thu, Dec 21, 2017 at 08:44:32AM -0800, Santosh Shilimkar wrote: +Avinash On 12/21/2017 1:10 AM, syzbot wrote: syzkaller has found reproducer for the following crash on [..] audit: type=1400 audit(1513847224.110:7): avc:  denied  { map } for pid

Re: [PATCH] scsi: remove dead makefile about oktagon files

2018-01-30 Thread Martin K. Petersen
Corentin, > Remove line using inexistant files which were removed in > commit 642978beb483 ("[SCSI] remove m68k NCR53C9x based drivers") Applied to 4.16/scsi-fixes, thank you. -- Martin K. Petersen Oracle Linux Engineering

Re: [patch v18 0/4] JTAG driver introduction

2018-01-30 Thread Florian Fainelli
On 01/29/2018 06:31 AM, Oleksandr Shamray wrote: > When a need raise up to use JTAG interface for system's devices > programming or CPU debugging, usually the user layer > application implements jtag protocol by bit-bang or using a > proprietary connection to vendor hardware. > This method can be

Re: [PATCH 1/1] scsi: storvsc: Increase cmd_per_lun for higher speed devices

2018-01-30 Thread Martin K. Petersen
> Increase cmd_per_lun to allow more I/Os in progress per device, > particularly for NVMe's. The Hyper-V host side can handle the > higher count with no issues. Long/KY/Cathy/Stephen: Please ack/review Michael's patches. -- Martin K. Petersen Oracle Linux Engineering

Re: [git pull] vfs.git: poll annotations

2018-01-30 Thread Al Viro
On Tue, Jan 30, 2018 at 06:21:37PM -0800, Linus Torvalds wrote: > On Tue, Jan 30, 2018 at 10:39 AM, Al Viro wrote: > > Introduces a __bitwise type for POLL... bitmap, propagates > > the annotations through the tree. > > Ok, I'm not entirely happy with this. > > I don't think the mangle/d

Re: [PATCH 20/24] objtool: Another static block fail

2018-01-30 Thread Josh Poimboeuf
On Tue, Jan 30, 2018 at 10:56:53AM +0100, Peter Zijlstra wrote: > On Mon, Jan 29, 2018 at 04:52:53PM -0600, Josh Poimboeuf wrote: > > On Tue, Jan 23, 2018 at 04:25:59PM +0100, Peter Zijlstra wrote: > > > I've observed GCC generate: > > > > > > sym: > > > NOP/JMP 1f (static_branch) > > >

Re: [linux-sunxi] Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-30 Thread Liviu Dudau
On Fri, Jan 26, 2018 at 11:00:41AM +0800, Yong wrote: > Hi Maxime, > > On Fri, 26 Jan 2018 09:46:58 +0800 > Yong wrote: > > > Hi Maxime, > > > > Do you have any experience in solving this problem? > > It seems the PHYS_OFFSET maybe undeclared when the ARCH is not arm. > > Got it. > Should I ad

Re: [git pull] vfs.git: poll annotations

2018-01-30 Thread Linus Torvalds
On Tue, Jan 30, 2018 at 7:13 PM, Al Viro wrote: > > As for the place for mangle/demangle... where would you prefer them? If we can make gcc generate ok code for the generic case and not need any arch-specific ones, why not just do in ? (And I guess POLLIN/OUT/ERR are standard, so it's only a cou

Re: [PATCH v6 11/13] kvm, x86: update spectre-v1 mitigation

2018-01-30 Thread Dan Williams
On Mon, Jan 29, 2018 at 5:03 PM, Dan Williams wrote: > Commit 75f139aaf896 "KVM: x86: Add memory barrier on vmcs field lookup" > added a raw 'asm("lfence");' to prevent a bounds check bypass of > 'vmcs_field_to_offset_table'. We can save an lfence in this path and > just use the common array_index

[PATCH] perf vendor events aarch64: Add JSON metrics for ARM Cortex-A53 Processor

2018-01-30 Thread William Cohen
Add JSON metrics for ARM Cortex-A53 Processor Signed-off-by: William Cohen --- .../pmu-events/arch/arm64/cortex-a53/branch.json | 27 +++ .../perf/pmu-events/arch/arm64/cortex-a53/bus.json | 22 + .../pmu-events/arch/arm64/cortex-a53/cache.json| 27 +++ .../pmu-even

Re: [linux-sunxi] Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-30 Thread Chen-Yu Tsai
On Wed, Jan 31, 2018 at 11:08 AM, Liviu Dudau wrote: > On Fri, Jan 26, 2018 at 11:00:41AM +0800, Yong wrote: >> Hi Maxime, >> >> On Fri, 26 Jan 2018 09:46:58 +0800 >> Yong wrote: >> >> > Hi Maxime, >> > >> > Do you have any experience in solving this problem? >> > It seems the PHYS_OFFSET maybe u

Re: [perf] perf probe fails sometimes on 4.9

2018-01-30 Thread Masami Hiramatsu
On Tue, 30 Jan 2018 19:20:36 +0530 Pintu Kumar wrote: > On Tue, Jan 30, 2018 at 11:13 AM, Masami Hiramatsu > wrote: > > > > On Mon, 29 Jan 2018 22:00:52 +0530 > > Pintu Kumar wrote: > > > > > Dear Masami, > > > > > > Thank you so much for your reply. > > > Please find some of my answers inline

Re: [PATCH] f2fs: add sanity check for quota sysfile ino

2018-01-30 Thread Chao Yu
On 2018/1/31 10:36, Jaegeuk Kim wrote: > On 01/31, Chao Yu wrote: >> On 2018/1/31 9:35, Jaegeuk Kim wrote: >>> On 01/29, Chao Yu wrote: Add missing sanity check for quota sysfile ino. >>> >>> We don't need to limit the specific inode numbers for quota files, since >>> we may be able to set any

Re: [PATCH] f2fs: add sanity check for quota sysfile ino

2018-01-30 Thread Jaegeuk Kim
On 01/31, Chao Yu wrote: > On 2018/1/31 10:36, Jaegeuk Kim wrote: > > On 01/31, Chao Yu wrote: > >> On 2018/1/31 9:35, Jaegeuk Kim wrote: > >>> On 01/29, Chao Yu wrote: > Add missing sanity check for quota sysfile ino. > >>> > >>> We don't need to limit the specific inode numbers for quota fil

Re: BUG: spinlock bad magic (2)

2018-01-30 Thread santosh.shilim...@oracle.com
On 1/30/18 2:28 PM, Eric Biggers wrote: On Mon, Dec 18, 2017 at 06:01:30PM +0100, 'Dmitry Vyukov' via syzkaller-bugs wrote: On Mon, Dec 18, 2017 at 5:46 PM, Santosh Shilimkar wrote: On 12/18/2017 4:36 AM, syzbot wrote: Hello, syzkaller hit the following crash on 6084b576dca2e898f5c101bae

Re: crash binary for latest unreleased kernel

2018-01-30 Thread Mike Galbraith
On Sun, 2018-01-28 at 12:19 -0800, Joe Smith wrote: > Thanks a lot, Mike. Following your suggestions worked Until Monday happened :) -Mike

Re: BUG: unable to handle kernel NULL pointer dereference in free_pipe_info

2018-01-30 Thread Goldwyn Rodrigues
On 01/30/2018 04:13 PM, Eric Biggers wrote: > On Tue, Dec 19, 2017 at 12:39:01AM -0800, syzbot wrote: >> Hello, >> >> syzkaller hit the following crash on >> 6084b576dca2e898f5c101baef151f7bfdbb606d >> git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master >> compiler: gcc (GCC)

Re: BUG: unable to handle kernel NULL pointer dereference in free_pipe_info

2018-01-30 Thread Eric Biggers
Hi Goldwyn, On Tue, Jan 30, 2018 at 09:52:02PM -0600, Goldwyn Rodrigues wrote: > > > On 01/30/2018 04:13 PM, Eric Biggers wrote: > > On Tue, Dec 19, 2017 at 12:39:01AM -0800, syzbot wrote: > >> Hello, > >> > >> syzkaller hit the following crash on > >> 6084b576dca2e898f5c101baef151f7bfdbb606d >

Re: [PATCH] x86/speculation: Use Indirect Branch Prediction Barrier in context switch

2018-01-30 Thread Josh Poimboeuf
On Tue, Jan 30, 2018 at 01:23:17PM -0800, Tim Chen wrote: > On 01/30/2018 09:48 AM, Josh Poimboeuf wrote: > > On Mon, Jan 29, 2018 at 10:04:47PM +, David Woodhouse wrote: > >> From: Tim Chen > >> > >> Flush indirect branches when switching into a process that marked itself > >> non dumpable. T

Re: [PATCH V3 0/5] bugs fix for large PEBS mmap read and rdpmc read

2018-01-30 Thread Andi Kleen
> Still, the part I am missing here, is why asking for > PERF_SAMPLE_PERIOD voids large PEBS. I think it was disabled together with frequency mode (which we could support too, but it's a bit more work) But yes PERIOD could probably be allowed. -Andi

Re: Microblaze boot failure in -next due to 'of/fdt: use memblock_virt_alloc for early alloc'

2018-01-30 Thread Guenter Roeck
On Tue, Jan 09, 2018 at 11:44:12AM -0800, Guenter Roeck wrote: > Hi, > > microblaze and microblazeel images fail to boot in -next. This still fails in in -next. Guenter > Error log is: > > Early console on uartlite at 0x8400 > bootconsole [earlyser0] enabled > Ramdisk addr 0x, > F

[PATCH] staging: android: ion: Remove unused declaration ion_buffer_fault_user_mappings

2018-01-30 Thread Yisheng Xie
ion_buffer_fault_user_mappings's definition has been removed and not be used anymore, just remove its useless declaration. Signed-off-by: Yisheng Xie --- drivers/staging/android/ion/ion.h | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/staging/android/ion/ion.h b/drivers/sta

<    4   5   6   7   8   9   10   >