[PATCH 00/52] serial: Convert to platform remove callback returning void

2023-11-10 Thread Uwe Kleine-König
Hello, this series starts with two fixes. The first one fixes a resource leak and use after free. The second only improves error reporting. I added a Fixes: marker to these. I let you decide if you want to drop them (or the second only) or add a Cc: stable (to both or only the first one). After

Re: [PATCH 04/22] [RESEND] time: make sysfs_get_uname() function visible in header

2023-11-10 Thread Uwe Kleine-König
Hello Arnd, On Wed, Nov 08, 2023 at 01:58:25PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > This function is defined globally in clocksource.c and used conditionally > in clockevent.c, which the declaration hidden when clockevent support s/which/with/ ? > is disabled. This causes a

Fwd: The PCIe AER error flood between PCIe bridge and Realtek's RTL8723BE makes system hang

2023-11-10 Thread Bagas Sanjaya
Hi, I notice a bug report on Bugzilla [1]. Quoting from it: > We have an ASUS X555UQ laptop equipped with Intel i7-6500U CPU and Realtek > RTL8723BE PCIe Wireless adapter. > > We tested it with kernel 6.6. System keeps showing AER error message flood, > even hangs up, until rtl8723be's ASPM

Re: [PATCH v9 15/15] media: vim2m-audio: add virtual driver for audio memory to memory

2023-11-10 Thread kernel test robot
Hi Shengjiu, kernel test robot noticed the following build warnings: [auto build test WARNING on media-tree/master] [also build test WARNING on broonie-sound/for-next tiwai-sound/for-next tiwai-sound/for-linus linus/master v6.6 next-20231110] [If your patch is applied to the wrong git tree

Re: [PATCH v9 12/15] media: uapi: Declare interface types for Audio

2023-11-10 Thread kernel test robot
Hi Shengjiu, kernel test robot noticed the following build warnings: [auto build test WARNING on media-tree/master] [also build test WARNING on broonie-sound/for-next tiwai-sound/for-next tiwai-sound/for-linus linus/master v6.6 next-20231110] [If your patch is applied to the wrong git tree

Re: [PATCH 15/34] KVM: Add KVM_CREATE_GUEST_MEMFD ioctl() for guest-specific backing memory

2023-11-10 Thread Sean Christopherson
On Fri, Nov 10, 2023, Xiaoyao Li wrote: > On 11/6/2023 12:30 AM, Paolo Bonzini wrote: > > diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h > > index 68a144cb7dbc..a6de526c0426 100644 > > --- a/include/linux/kvm_host.h > > +++ b/include/linux/kvm_host.h > > @@ -589,8 +589,20 @@

Re: get_user_pages() and EXEC_ONLY mapping.

2023-11-10 Thread Catalin Marinas
On Fri, Nov 10, 2023 at 08:19:23PM +0530, Aneesh Kumar K.V wrote: > Some architectures can now support EXEC_ONLY mappings and I am wondering > what get_user_pages() on those addresses should return. Earlier > PROT_EXEC implied PROT_READ and pte_access_permitted() returned true for > that. But

Re: [PATCH 1/8] CMDLINE: add generic builtin command line

2023-11-10 Thread kernel test robot
Hi Daniel, kernel test robot noticed the following build errors: [auto build test ERROR on v6.6] [cannot apply to arm64/for-next/core efi/next tip/x86/core robh/for-next linus/master next-20231110] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch

[PATCH 51/52] serial: ucc: Convert to platform remove callback returning void

2023-11-10 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is ignored (apart from emitting a warning) and this typically results in resource leaks. To improve

Re: get_user_pages() and EXEC_ONLY mapping.

2023-11-10 Thread Jason Gunthorpe
On Fri, Nov 10, 2023 at 08:27:19PM +0530, Aneesh Kumar K V wrote: > On 11/10/23 8:23 PM, Jason Gunthorpe wrote: > > On Fri, Nov 10, 2023 at 08:19:23PM +0530, Aneesh Kumar K.V wrote: > >> > >> Hello, > >> > >> Some architectures can now support EXEC_ONLY mappings and I am wondering > >> what

Re: get_user_pages() and EXEC_ONLY mapping.

2023-11-10 Thread Aneesh Kumar K V
On 11/10/23 8:23 PM, Jason Gunthorpe wrote: > On Fri, Nov 10, 2023 at 08:19:23PM +0530, Aneesh Kumar K.V wrote: >> >> Hello, >> >> Some architectures can now support EXEC_ONLY mappings and I am wondering >> what get_user_pages() on those addresses should return. > > -EPERM > >> Earlier

Re: get_user_pages() and EXEC_ONLY mapping.

2023-11-10 Thread Jason Gunthorpe
On Fri, Nov 10, 2023 at 08:19:23PM +0530, Aneesh Kumar K.V wrote: > > Hello, > > Some architectures can now support EXEC_ONLY mappings and I am wondering > what get_user_pages() on those addresses should return. -EPERM > Earlier PROT_EXEC implied PROT_READ and pte_access_permitted() >

get_user_pages() and EXEC_ONLY mapping.

2023-11-10 Thread Aneesh Kumar K.V
Hello, Some architectures can now support EXEC_ONLY mappings and I am wondering what get_user_pages() on those addresses should return. Earlier PROT_EXEC implied PROT_READ and pte_access_permitted() returned true for that. But arm64 does have this explicit comment that says /* *

Re: [PATCH 15/22] arch: vdso: consolidate gettime prototypes

2023-11-10 Thread Vincenzo Frascino
Hi Arnd, On 11/8/23 12:58, Arnd Bergmann wrote: > From: Arnd Bergmann > > The VDSO functions are defined as globals in the kernel sources but intended > to be called from userspace, so there is no need to declare them in a kernel > side header. > > Without a prototype, this now causes warnings

Re: [PATCH v9 14/15] media: imx-asrc: Add memory to memory driver

2023-11-10 Thread Hans Verkuil
On 10/11/2023 06:48, Shengjiu Wang wrote: > Implement the ASRC memory to memory function using > the v4l2 framework, user can use this function with > v4l2 ioctl interface. > > User send the output and capture buffer to driver and > driver store the converted data to the capture buffer. > > This

Re: [PATCH 16/34] KVM: x86: "Reset" vcpu->run->exit_reason early in KVM_RUN

2023-11-10 Thread Xiaoyao Li
On 11/6/2023 12:30 AM, Paolo Bonzini wrote: From: Sean Christopherson Initialize run->exit_reason to KVM_EXIT_UNKNOWN early in KVM_RUN to reduce the probability of exiting to userspace with a stale run->exit_reason that *appears* to be valid. To support fd-based guest memory (guest memory