[PATCH] i2c: virtio: Constify struct i2c_algorithm and struct virtio_device_id

2024-09-07 Thread Christophe JAILLET
'struct i2c_algorithm' and 'struct virtio_device_id' are not modified in this driver. Constifying this structure moves some data to a read-only section, so increase overall security, especially when the structure holds some function pointers, which is the case for struct i2c_algorithm. On a x86_6

Re: [RFC 00/31] objtool, livepatch: Livepatch module generation

2024-09-07 Thread Song Liu
On Sat, Sep 7, 2024 at 1:14 PM Josh Poimboeuf wrote: > > On Sat, Sep 07, 2024 at 10:43:10AM -0700, Song Liu wrote: > > clang gives the following: > > > > elf.c:102:1: error: unused function '__sym_remove' > > [-Werror,-Wunused-function] > > 102 | INTERVAL_TREE_DEFINE(struct symbol, node, unsign

Re: [syzbot] [wpan?] WARNING in __dev_change_net_namespace (2)

2024-09-07 Thread Kuniyuki Iwashima
From: syzbot Date: Wed, 10 Jul 2024 09:04:21 -0700 > Hello, > > syzbot found the following issue on: > > HEAD commit:22f902dfc51e Merge tag 'i2c-for-6.10-rc7' of git://git.ker.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=166ba6e198 > kernel con

Re: [PATCH v4 2/2] livepatch: Add using attribute to klp_func for using function show

2024-09-07 Thread zhang warden
Hi, Petr > > The 1st patch adds the pointer to struct klp_ops into struct > klp_func. We might check the state a similar way as klp_ftrace_handler(). > > I had something like this in mind when I suggested to move the pointer: > > static ssize_t using_show(struct kobject *kobj, > struct kobj_at

Re: [PATCH v4 2/2] livepatch: Add using attribute to klp_func for using function show

2024-09-07 Thread zhang warden
Hi, Petr > On Sep 7, 2024, at 00:39, Petr Mladek wrote: > > On Fri 2024-09-06 17:39:46, zhang warden wrote: >> Hi, John & Miroslav >> Would it be possible to just use klp_transition_patch and implement the logic just in using_show()? >>> >>> Yes, containing the logic to the

Re: [PATCH v2] selftests/futex: Create test for robust list

2024-09-07 Thread kernel test robot
e (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240907/202409071354.clw9rcwr-...@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Clo

Re: [syzbot] [wpan?] WARNING in __dev_change_net_namespace (2)

2024-09-07 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:d1f2d51b711a Merge tag 'clk-fixes-for-linus' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1378abc798 kernel config: https://syzkaller.appspot.com/x/.config?x=58a85aa

Re: [PATCH 19/19] arm64: dts: qcom: add base QCS8300 RIDE dts

2024-09-07 Thread kernel test robot
Hi Jingyi, kernel test robot noticed the following build errors: [auto build test ERROR on eb8c5ca373cbb018a84eb4db25c863302c9b6314] url: https://github.com/intel-lab-lkp/linux/commits/Jingyi-Wang/dt-bindings-remoteproc-qcom-sa8775p-pas-Document-QCS8300-remoteproc/20240904-164345 base: eb8

Re: [PATCH v3 1/1] module: abort module loading when sysfs setup suffer errors

2024-09-07 Thread kernel test robot
use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Chunhui-Li/module-abort-module-loading-when-sysfs-setup-suffer-errors/20240907-02 base: https://git.kernel.org/pub/scm/linux/

[PATCH v2] kselftest/cgroup: Add missing newline in test_zswap.c

2024-09-07 Thread Mohammed Anees
Thank you for the review, I have added the changelog as requested. Changelog: - Added missing newline to the `ksft_print_msg` in `test_zswap_writeback` function. Signed-off-by: Mohammed Anees --- tools/testing/selftests/cgroup/test_zswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [RFC 00/31] objtool, livepatch: Livepatch module generation

2024-09-07 Thread Josh Poimboeuf
On Sat, Sep 07, 2024 at 10:43:10AM -0700, Song Liu wrote: > clang gives the following: > > elf.c:102:1: error: unused function '__sym_remove' [-Werror,-Wunused-function] > 102 | INTERVAL_TREE_DEFINE(struct symbol, node, unsigned long, > __subtree_last, > | > ^

Re: [RFC 00/31] objtool, livepatch: Livepatch module generation

2024-09-07 Thread Song Liu
On Fri, Sep 6, 2024 at 11:46 PM Josh Poimboeuf wrote: > > On Tue, Sep 03, 2024 at 10:32:00AM -0700, Song Liu wrote: > > +++ w/tools/objtool/elf.c > > @@ -468,10 +468,8 @@ static void elf_add_symbol(struct elf *elf, > > struct symbol *sym) > > * > > * TODO: is this still true? > >

[PATCH net-next] selftests: net: ioam: add tunsrc support

2024-09-07 Thread Justin Iurman
TL;DR This patch comes from a discussion we had with Jakub and Paolo. This patch updates the IOAM selftests to support the new "tunsrc" feature of IOAM. As a consequence, some changes were required. For example, the IPv6 header must be accessed to check some fields (i.e., the source address for th

Re: general protection fault in lookup_object_or_alloc

2024-09-07 Thread Steven Rostedt
On Sat, 7 Sep 2024 15:15:06 +0800 Hui Guo wrote: > Hi Kernel Maintainers, > we found a crash "general protection fault in lookup_object_or_alloc" > in upstream, and reproduced it successfully, this bug is a KASAN. > > HEAD Commit: 88fac17500f4ea49c7bac136cf1b27e7b9980075(Merge tag > 'fuse-fixes-

Re: [RFC 00/31] objtool, livepatch: Livepatch module generation

2024-09-07 Thread Joe Lawrence
On Fri, Sep 06, 2024 at 06:47:06PM -0700, Josh Poimboeuf wrote: > > Normally I build objtool with > > make tools/objtool > > or just > > make > > Those use the objtool Makefile without all the extra kernel flags. > > How do you normally build objtool? > Usually as part of the kernel buil

Re: [PATCH] module: Refine kmemleak scanned areas

2024-09-07 Thread Catalin Marinas
On Fri, Sep 06, 2024 at 04:38:56PM +0100, Vincent Donnefort wrote: > commit ac3b43283923 ("module: replace module_layout with module_memory") > introduced a set of memory regions for the module layout sharing the > same attributes but didn't update the kmemleak scanned areas which > intended to lim

Re: [PATCH v3 1/1] module: abort module loading when sysfs setup suffer errors

2024-09-07 Thread kernel test robot
use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Chunhui-Li/module-abort-module-loading-when-sysfs-setup-suffer-errors/20240907-02 base: https://git.kernel.org/pub/scm/linux/

Re: [PATCH] remoteproc: k3-r5: Decouple firmware booting from probe routine

2024-09-07 Thread Kumar, Udit
On 9/6/2024 3:10 PM, Beleswar Padhi wrote: The current implementation of the waiting mechanism in probe() waits for the 'released_from_reset' flag to be set which is done in k3_r5_rproc_prepare() as part of rproc_fw_boot(). This causes unexpected failures in cases where the firmware is unavaila

general protection fault in lookup_object_or_alloc

2024-09-07 Thread Hui Guo
Hi Kernel Maintainers, we found a crash "general protection fault in lookup_object_or_alloc" in upstream, and reproduced it successfully, this bug is a KASAN. HEAD Commit: 88fac17500f4ea49c7bac136cf1b27e7b9980075(Merge tag 'fuse-fixes-6.11-rc7') kernel config: https://raw.githubusercontent.com/an