[RFC PATCH v1 1/2] virtio/vsock: send credit update during setting SO_RCVLOWAT

2023-11-07 Thread Arseniy Krasnov
This adds sending credit update message when SO_RCVLOWAT is updated and it is bigger than number of bytes in rx queue. It is needed, because 'poll()' will wait until number of bytes in rx queue will be not smaller than SO_RCVLOWAT, so kick sender to send more data. Otherwise mutual hungup for

[RFC PATCH v1 2/2] vsock/test: SO_RCVLOWAT + deferred credit update test

2023-11-07 Thread Arseniy Krasnov
This adds test which checks, that updating SO_RCVLOWAT value also sends credit update message. Otherwise mutual hungup may happen when receiver didn't send credit update and then calls 'poll()' with non default SO_RCVLOWAT value (e.g. waiting enough bytes to read), while sender waits for free

[RFC PATCH v1 0/2] send credit update during setting SO_RCVLOWAT

2023-11-07 Thread Arseniy Krasnov
Hello, DESCRIPTION This patchset fixes old problem with hungup of both rx/tx sides and adds test for it. This happens due to non-default SO_RCVLOWAT value and deferred credit update in virtio/vsock. Link to previous old patchset:

Re: [RFC v1 3/8] vhost: Add 3 new uapi to support iommufd

2023-11-07 Thread Jason Wang
On Wed, Nov 8, 2023 at 2:39 PM Cindy Lu wrote: > > On Wed, Nov 8, 2023 at 11:03 AM Jason Wang wrote: > > > > On Tue, Nov 7, 2023 at 2:57 PM Cindy Lu wrote: > > > > > > On Mon, Nov 6, 2023 at 3:30 PM Jason Wang wrote: > > > > > > > > On Sat, Nov 4, 2023 at 1:17 AM Cindy Lu wrote: > > > > > > >

Re: [RFC v1 8/8] iommu: expose the function iommu_device_use_default_domain

2023-11-07 Thread Cindy Lu
On Wed, Nov 8, 2023 at 11:04 AM Jason Wang wrote: > > On Tue, Nov 7, 2023 at 2:10 PM Cindy Lu wrote: > > > > On Mon, Nov 6, 2023 at 3:26 PM Jason Wang wrote: > > > > > > On Sat, Nov 4, 2023 at 1:18 AM Cindy Lu wrote: > > > > > > > > Expose the function iommu_device_use_default_domain() and > >

Re: [RFC v1 3/8] vhost: Add 3 new uapi to support iommufd

2023-11-07 Thread Cindy Lu
On Wed, Nov 8, 2023 at 11:03 AM Jason Wang wrote: > > On Tue, Nov 7, 2023 at 2:57 PM Cindy Lu wrote: > > > > On Mon, Nov 6, 2023 at 3:30 PM Jason Wang wrote: > > > > > > On Sat, Nov 4, 2023 at 1:17 AM Cindy Lu wrote: > > > > > > > > VHOST_VDPA_SET_IOMMU_FD: bind the device to iommufd device >

Re: [RFC PATCH 07/86] Revert "livepatch,sched: Add livepatch task switching to cond_resched()"

2023-11-07 Thread Ankur Arora
Steven Rostedt writes: > On Tue, 7 Nov 2023 13:56:53 -0800 > Ankur Arora wrote: > >> This reverts commit e3ff7c609f39671d1aaff4fb4a8594e14f3e03f8. >> >> Note that removing this commit reintroduces "live patches failing to >> complete within a reasonable amount of time due to CPU-bound

[PATCH] fs : Fix warning using plain integer as NULL

2023-11-07 Thread Abhinav Singh
Sparse static analysis tools generate a warning with this message "Using plain integer as NULL pointer". In this case this warning is being shown because we are trying to initialize pointer to NULL using integer value 0. Signed-off-by: Abhinav Singh --- fs/dax.c | 2 +- fs/direct-io.c |

Re: [PATCH v1] lib: test_objpool: make global variables static

2023-11-07 Thread Google
On Wed, 8 Nov 2023 09:22:48 +0800 "wuqiang.matt" wrote: > Kernel test robot reported build warnings that structures g_ot_sync_ops, > g_ot_async_ops and g_testcases should be static. These definitions are > only used in test_objpool.c, so make them static > > Reported-by: kernel test robot >

Re: [PATCH net v2] virtio/vsock: Fix uninit-value in virtio_transport_recv_pkt()

2023-11-07 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Sun, 5 Nov 2023 00:05:31 +0900 you wrote: > KMSAN reported the following uninit-value access issue: > > = > BUG: KMSAN: uninit-value in

Re: [RFC v1 8/8] iommu: expose the function iommu_device_use_default_domain

2023-11-07 Thread Jason Wang
On Tue, Nov 7, 2023 at 2:10 PM Cindy Lu wrote: > > On Mon, Nov 6, 2023 at 3:26 PM Jason Wang wrote: > > > > On Sat, Nov 4, 2023 at 1:18 AM Cindy Lu wrote: > > > > > > Expose the function iommu_device_use_default_domain() and > > > iommu_device_unuse_default_domain(), > > > While vdpa bind the

Re: [RFC v1 3/8] vhost: Add 3 new uapi to support iommufd

2023-11-07 Thread Jason Wang
On Tue, Nov 7, 2023 at 2:57 PM Cindy Lu wrote: > > On Mon, Nov 6, 2023 at 3:30 PM Jason Wang wrote: > > > > On Sat, Nov 4, 2023 at 1:17 AM Cindy Lu wrote: > > > > > > VHOST_VDPA_SET_IOMMU_FD: bind the device to iommufd device > > > > > > VDPA_DEVICE_ATTACH_IOMMUFD_AS: Attach a vdpa device to an

Re: [PATCH v4 4/4] vduse: Add LSM hooks to check Virtio device type

2023-11-07 Thread Paul Moore
On Oct 20, 2023 "Michael S. Tsirkin" wrote: > > This patch introduces LSM hooks for devices creation, > destruction and opening operations, checking the > application is allowed to perform these operations for > the Virtio device type. > > Signed-off-by: Maxime Coquelin > --- >

[PATCH 3/3] rust: Require RUST_MODULES for module support

2023-11-07 Thread Matthew Maurer
Currently, we don't support MODVERSIONS for Rust symbols. For users that want to use Rust in the kernel but for whom MODVERSIONS is required, this allows the use of built-in Rust code even with MODVERSIONS enabled. It may additionally allow code-size reduction by avoiding exporting symbols that

[PATCH v1] lib: test_objpool: make global variables static

2023-11-07 Thread wuqiang.matt
Kernel test robot reported build warnings that structures g_ot_sync_ops, g_ot_async_ops and g_testcases should be static. These definitions are only used in test_objpool.c, so make them static Reported-by: kernel test robot Closes:

Re: [GIT PULL] remoteproc updates for v6.7

2023-11-07 Thread pr-tracker-bot
The pull request you sent on Mon, 6 Nov 2023 19:38:20 -0800: > https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git > tags/rproc-v6.7 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b8dd631fcabe2656c8d3751ad4836131d51fb63b Thank you! --

Re: [GIT PULL] rpmsg updates for v6.7

2023-11-07 Thread pr-tracker-bot
The pull request you sent on Mon, 6 Nov 2023 19:11:09 -0800: > https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git > tags/rpmsg-v6.7 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c87271ee86e836d3beae7b8b0222e81e225fa6c5 Thank you! --

Re: [PATCH v2 4/4] locking/atomic: hexagon: arch_cmpxchg[64]_local undefined

2023-11-07 Thread Google
On Sat, 4 Nov 2023 17:16:15 +0800 "wuqiang.matt" wrote: > For architectures that support native cmpxchg, we'd like to > implement arch_cmpxchg[64]_local with the native variants of > supported data size. If not, the generci_cmpxchg[64]_local > will be used. > > Reported-by: kernel test robot

Re: [PATCH v2 3/4] locking/atomic: openrisc: arch_cmpxchg[64]_local undefined

2023-11-07 Thread Google
On Sat, 4 Nov 2023 17:16:14 +0800 "wuqiang.matt" wrote: > For architectures that support native cmpxchg, we'd like to > implement arch_cmpxchg[64]_local with the native variants of > supported data size. If not, the generci_cmpxchg[64]_local > will be used. Looks good to me. Reviewed-by:

Re: [PATCH v2 2/4] locking/atomic: arc: arch_cmpxchg[64]_local undefined

2023-11-07 Thread Google
On Sat, 4 Nov 2023 17:16:13 +0800 "wuqiang.matt" wrote: > For architectures that support native cmpxchg, we'd like to > implement arch_cmpxchg[64]_local with the native variants of > supported data size. If not, the generci_cmpxchg[64]_local > will be used. > Looks good to me. Reviewed-by:

Re: [PATCH v2 1/4] locking/atomic: arc: data size checking in arch_cmpxchg

2023-11-07 Thread Google
On Sat, 4 Nov 2023 17:16:12 +0800 "wuqiang.matt" wrote: > Macro __cmpxchg() renamed to __cmpxchg_32() to emphasize it's explicit > support of 32bit data size, BUILD_BUG_ON() added to avoid any possible > misuses with unsupported data types. > > In case CONFIG_ARC_HAS_LLSC is undefined,

Re: [PATCH v6 00/12] Add Cgroup support for SGX EPC memory

2023-11-07 Thread Haitao Huang
On Mon, 06 Nov 2023 09:48:36 -0600, Haitao Huang wrote: On Sun, 05 Nov 2023 21:26:44 -0600, Jarkko Sakkinen wrote: On Mon, 2023-10-30 at 11:20 -0700, Haitao Huang wrote: SGX Enclave Page Cache (EPC) memory allocations are separate from normal RAM allocations, and are managed solely by

Re: [RFC PATCH 07/86] Revert "livepatch,sched: Add livepatch task switching to cond_resched()"

2023-11-07 Thread Steven Rostedt
On Tue, 7 Nov 2023 13:56:53 -0800 Ankur Arora wrote: > This reverts commit e3ff7c609f39671d1aaff4fb4a8594e14f3e03f8. > > Note that removing this commit reintroduces "live patches failing to > complete within a reasonable amount of time due to CPU-bound kthreads." > > Unfortunately this fix

Re: [PATCH net 0/4] vsock: fix server prevents clients from reconnecting

2023-11-07 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (main) by David S. Miller : On Fri, 3 Nov 2023 18:55:47 +0100 you wrote: > From: Filippo Storniolo > > This patch series introduce fix and tests for the following vsock bug: > If the same remote peer, using the same port, tries to connect > to

Re: [PATCH kmod] libkmod: remove pkcs7 obj_to_hash_algo()

2023-11-07 Thread Lucas De Marchi
On Sun, Oct 29, 2023 at 03:03:19AM +0200, Dimitri John Ledkov wrote: Switch to using OBJ_obj2txt() to calculate and print the pkcs7 signature hash name. This eliminates the need to duplicate libcrypto NID to name mapping, detect SM3 openssl compile-time support, and enables using any hashes that

RE: [PATCH v6 04/12] x86/sgx: Implement basic EPC misc cgroup functionality

2023-11-07 Thread Huang, Kai
> I should have sticked to the orignial comment added in code. Actually > __sgx_alloc_epc_page() can fail if system runs out of EPC. That's the really > reason > for global reclaim. The free count enforcement is near the end of this method > after should_reclaim() check. Hi Haitao, Sorry I have

Re: [RFC PATCH 24/32] x86/ftrace: Enable HAVE_FUNCTION_GRAPH_FREGS

2023-11-07 Thread Steven Rostedt
On Tue, 7 Nov 2023 08:48:44 -0500 Steven Rostedt wrote: > On Tue, 7 Nov 2023 14:43:28 +0900 > Masami Hiramatsu (Google) wrote: > > > > > > > It's only needed if an architecture supports direct trampolines. > > > > I see, and x86_64 needs it. > > OK, maybe better to keep it clear on

Re: [RFC PATCH 24/32] x86/ftrace: Enable HAVE_FUNCTION_GRAPH_FREGS

2023-11-07 Thread Steven Rostedt
On Tue, 7 Nov 2023 14:43:28 +0900 Masami Hiramatsu (Google) wrote: > > > > It's only needed if an architecture supports direct trampolines. > > I see, and x86_64 needs it. > OK, maybe better to keep it clear on x86-64 even on the > return handler. As it is arch specific, I'm not sure it

Re: [PATCH v3 04/13] mm/execmem, arch: convert remaining overrides of module_alloc to execmem

2023-11-07 Thread Will Deacon
On Mon, Oct 30, 2023 at 09:00:53AM +0200, Mike Rapoport wrote: > On Thu, Oct 26, 2023 at 11:24:39AM +0100, Will Deacon wrote: > > On Thu, Oct 26, 2023 at 11:58:00AM +0300, Mike Rapoport wrote: > > > On Mon, Oct 23, 2023 at 06:14:20PM +0100, Will Deacon wrote: > > > > On Mon, Sep 18, 2023 at