Re: kernel BUG in memory_bm_free

2021-03-15 Thread Dmitry Vyukov
On Mon, Mar 15, 2021 at 1:09 PM Catalin Marinas wrote: > > On Mon, Mar 15, 2021 at 08:08:06AM +0100, Dmitry Vyukov wrote: > > On Wed, Feb 3, 2021 at 6:59 AM syzbot > > wrote: > > > syzbot found the following issue on: > > > > > > HEAD commit:3aa

Re: [syzbot] BUG: unable to handle kernel access to user memory in sock_ioctl

2021-03-15 Thread Dmitry Vyukov
On Mon, Mar 15, 2021 at 12:30 PM Ben Dooks wrote: > > On 14/03/2021 11:03, Dmitry Vyukov wrote: > > On Sun, Mar 14, 2021 at 11:01 AM Dmitry Vyukov wrote: > >>> On Wed, Mar 10, 2021 at 7:28 PM syzbot > >>> wrote: > >>>> > >

NULL deref in integrity_inode_get

2021-03-15 Thread Dmitry Vyukov
Hi, I am trying to boot 5.12-rc3 with this config: https://github.com/google/syzkaller/blob/cc1cff8f1e1a585894796d6eae8c51eef98037e6/dashboard/config/linux/upstream-smack-kasan.config in qemu: qemu-system-x86_64 -enable-kvm -machine q35,nvdimm -cpu max,migratable=off -smp 4 -m

Re: Internal error in io_serial_out

2021-03-15 Thread Dmitry Vyukov
On Mon, Feb 1, 2021 at 1:16 PM Mark Rutland wrote: > > On Fri, Jan 29, 2021 at 09:35:46AM +0100, Dmitry Vyukov wrote: > > On Fri, Jan 29, 2021 at 9:34 AM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following issue

Re: arm64 syzbot instances

2021-03-15 Thread Dmitry Vyukov
On Mon, Mar 15, 2021 at 11:31 AM John Garry wrote: > > On 15/03/2021 10:01, Dmitry Vyukov wrote: > > On Mon, Mar 15, 2021 at 10:45 AM John Garry wrote: > >>>> It does not happen too often on syzbot so far, so let's try to do the > >>>>

Re: [PATCH] task_work: kasan: record task_work_add() call stack

2021-03-15 Thread Dmitry Vyukov
On Mon, Mar 15, 2021 at 10:38 AM Walter Wu wrote: > > On Mon, 2021-03-15 at 07:58 +0100, 'Dmitry Vyukov' via kasan-dev wrote: > > On Mon, Mar 15, 2021 at 3:00 AM Walter Wu wrote: > > > > > > Why record task_work_add() call stack? > > > Syzbot reports many u

Re: arm64 syzbot instances

2021-03-15 Thread Dmitry Vyukov
On Mon, Mar 15, 2021 at 10:45 AM John Garry wrote: > >> It does not happen too often on syzbot so far, so let's try to do the > >> right thing first. > >> I've filed: https://bugs.launchpad.net/qemu/+bug/1918917 > >> with a link to this thread. To be fair, I don't fully understand what > >> I am

Re: [PATCH] KCOV: Introduced tracing unique covered PCs

2021-03-15 Thread Dmitry Vyukov
On Sun, Mar 14, 2021 at 10:29 PM Alexander Lochmann wrote: > On 12.02.21 13:54, Dmitry Vyukov wrote: > > > > I think we could make KCOV_IN_CTXSW sign bit and then express the check as: > > > > void foo2(unsigned mode) { > > if (((int)(mod

Re: [syzbot] memory leak in copy_process (2)

2021-03-15 Thread Dmitry Vyukov
On Mon, Mar 15, 2021 at 1:48 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:88fe4924 Merge tag 'char-misc-5.12-rc3' of git://git.kerne.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=10252462d0 > kernel config:

Re: kernel BUG in memory_bm_free

2021-03-15 Thread Dmitry Vyukov
On Wed, Feb 3, 2021 at 6:59 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:3aaf0a27 Merge tag 'clang-format-for-linux-v5.11-rc7' of g.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17ef6108d0 > kernel config:

Re: [PATCH] task_work: kasan: record task_work_add() call stack

2021-03-15 Thread Dmitry Vyukov
gt; [1]: > https://groups.google.com/g/syzkaller-bugs/search?q=kasan%20use-after-free%20task_work_run > > Signed-off-by: Walter Wu > Suggested-by: Dmitry Vyukov > Cc: Andrey Ryabinin > Cc: Dmitry Vyukov > Cc: Andrey Konovalov > Cc: Alexander Potapenko > Cc: A

Re: [syzbot] BUG: unable to handle kernel access to user memory in sock_ioctl

2021-03-14 Thread Dmitry Vyukov
On Sun, Mar 14, 2021 at 11:01 AM Dmitry Vyukov wrote: > > On Wed, Mar 10, 2021 at 7:28 PM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following issue on: > > > > > > HEAD commit:0d7588ab riscv:

Re: [syzbot] KASAN: slab-out-of-bounds Read in riscv_intc_irq

2021-03-14 Thread Dmitry Vyukov
On Sun, Mar 14, 2021 at 11:14 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:0d7588ab riscv: process: Fix no prototype for arch_dup_tas.. > git tree: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > fixes > console output:

Re: [syzbot] BUG: unable to handle kernel access to user memory in sock_ioctl

2021-03-14 Thread Dmitry Vyukov
On Wed, Mar 10, 2021 at 7:53 PM Dmitry Vyukov wrote: > > On Wed, Mar 10, 2021 at 7:28 PM syzbot > wrote: > > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:0d7588ab riscv: process: Fix no prototype for arch_dup_tas..

Re: [syzbot] BUG: unable to handle kernel access to user memory in schedule_tail

2021-03-12 Thread Dmitry Vyukov
On Fri, Mar 12, 2021 at 9:12 PM Ben Dooks wrote: > > On 12/03/2021 16:25, Alex Ghiti wrote: > > > > > > Le 3/12/21 à 10:12 AM, Dmitry Vyukov a écrit : > >> On Fri, Mar 12, 2021 at 2:50 PM Ben Dooks > >> wrote: > >>> > >>> On 10/03

Re: [syzbot] BUG: unable to handle kernel access to user memory in schedule_tail

2021-03-12 Thread Dmitry Vyukov
On Fri, Mar 12, 2021 at 6:34 PM Dmitry Vyukov wrote: > > On Fri, Mar 12, 2021 at 5:36 PM Ben Dooks wrote: > > > > On 12/03/2021 16:34, Ben Dooks wrote: > > > On 12/03/2021 16:30, Ben Dooks wrote: > > >> On 12/03/2021 15:12, Dmitry Vyukov wrote: > >

Re: [syzbot] BUG: unable to handle kernel access to user memory in schedule_tail

2021-03-12 Thread Dmitry Vyukov
On Fri, Mar 12, 2021 at 5:36 PM Ben Dooks wrote: > > On 12/03/2021 16:34, Ben Dooks wrote: > > On 12/03/2021 16:30, Ben Dooks wrote: > >> On 12/03/2021 15:12, Dmitry Vyukov wrote: > >>> On Fri, Mar 12, 2021 at 2:50 PM Ben Dooks > >>> wrote: > >

Re: [syzbot] upstream boot error: WARNING in vkms_vblank_simulate

2021-03-12 Thread Dmitry Vyukov
On Fri, Mar 12, 2021 at 3:22 PM Daniel Vetter wrote: > > On Fri, Mar 12, 2021 at 11:46:27AM +0100, Dmitry Vyukov wrote: > > On Fri, Mar 12, 2021 at 11:26 AM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following issue o

Re: [syzbot] BUG: unable to handle kernel access to user memory in schedule_tail

2021-03-12 Thread Dmitry Vyukov
On Fri, Mar 12, 2021 at 2:50 PM Ben Dooks wrote: > > On 10/03/2021 17:16, Dmitry Vyukov wrote: > > On Wed, Mar 10, 2021 at 5:46 PM syzbot > > wrote: > >> > >> Hello, > >> > >> syzbot found the following issue on: > >>

Re: WARNING in __do_kernel_fault

2021-03-12 Thread Dmitry Vyukov
On Wed, Jan 27, 2021 at 6:34 PM Will Deacon wrote: > > On Wed, Jan 27, 2021 at 06:24:22PM +0100, Dmitry Vyukov wrote: > > On Wed, Jan 27, 2021 at 6:15 PM Will Deacon wrote: > > > > > > On Wed, Jan 27, 2021 at 06:00:30PM +0100, Dmitry Vyukov wrote: > > > &

Re: [syzbot] upstream boot error: WARNING in vkms_vblank_simulate

2021-03-12 Thread Dmitry Vyukov
On Fri, Mar 12, 2021 at 11:26 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:f78d76e7 Merge tag 'drm-fixes-2021-03-12-1' of git://anong.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=11c16ba2d0 > kernel

Re: arm64 syzbot instances

2021-03-12 Thread Dmitry Vyukov
On Fri, Mar 12, 2021 at 11:11 AM Arnd Bergmann wrote: > > > On Fri, Mar 12, 2021 at 9:46 AM Dmitry Vyukov wrote: > > > > On Fri, Mar 12, 2021 at 9:40 AM Arnd Bergmann wrote: > > > > > On Thu, Mar 11, 2021 at 6:57 PM Dmitry Vyukov > > > > >

Re: arm64 syzbot instances

2021-03-12 Thread Dmitry Vyukov
On Fri, Mar 12, 2021 at 10:16 AM Arnd Bergmann wrote: > > On Fri, Mar 12, 2021 at 9:46 AM Dmitry Vyukov wrote: > > On Fri, Mar 12, 2021 at 9:40 AM Arnd Bergmann wrote: > > > On Thu, Mar 11, 2021 at 6:57 PM Dmitry Vyukov wrote: > > > a) accessing a legacy

Re: [syzbot] WARNING in huge_pmd_set_accessed

2021-03-12 Thread Dmitry Vyukov
On Fri, Mar 12, 2021 at 8:07 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:05a59d79 Merge git://git.kernel.org:/pub/scm/linux/kernel/.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=15b8820ad0 > kernel config:

Re: arm64 syzbot instances

2021-03-12 Thread Dmitry Vyukov
On Fri, Mar 12, 2021 at 9:40 AM Arnd Bergmann wrote: > > On Thu, Mar 11, 2021 at 6:57 PM Dmitry Vyukov wrote: > > On Thu, Mar 11, 2021 at 2:30 PM Arnd Bergmann wrote: > > > > > > > > The instances found few arm64-specific issues that we have not

Re: arm64 syzbot instances

2021-03-11 Thread Dmitry Vyukov
On Thu, Mar 11, 2021 at 6:25 PM Dmitry Vyukov wrote: > > On Thu, Mar 11, 2021 at 2:30 PM Arnd Bergmann wrote: > > > > On Thu, Mar 11, 2021 at 12:38 PM Dmitry Vyukov wrote: > > > > > > The instances found few arm64-specific issues that we have not > > &

Re: [syzbot] WARNING in handle_mm_fault

2021-03-11 Thread Dmitry Vyukov
On Fri, Mar 12, 2021 at 3:30 AM Andy Lutomirski wrote: > > Your warning is odd, but I see the bug. It's in KVM. Hi Andy, By "your" you mean "kernel", right? ;) > On Thu, Mar 11, 2021 at 4:37 PM syzbot > wrote: > > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:

Re: [PATCH] ARM: Fix incorrect use of smp_processor_id() by syzbot report

2021-03-11 Thread Dmitry Vyukov
On Fri, Mar 12, 2021 at 5:13 AM wrote: > > From: Zqiang > > BUG: using smp_processor_id() in preemptible [] code: > syz-executor.0/15841 > caller is debug_smp_processor_id+0x20/0x24 > lib/smp_processor_id.c:64 > > The smp_processor_id() is used in a code segment when > preemption has

Re: arm64 syzbot instances

2021-03-11 Thread Dmitry Vyukov
On Thu, Mar 11, 2021 at 2:30 PM Arnd Bergmann wrote: > > > > The instances found few arm64-specific issues that we have not > > observed on other instances: > > I've had a brief look at these: > > > https://syzkaller.appspot.com/bug?id=1d22a2cc3521d5cf6b41bd6b825793c2015f861f > > This one

Re: arm64 syzbot instances

2021-03-11 Thread Dmitry Vyukov
On Thu, Mar 11, 2021 at 2:30 PM Arnd Bergmann wrote: > > On Thu, Mar 11, 2021 at 12:38 PM Dmitry Vyukov wrote: > > > > The instances found few arm64-specific issues that we have not > > observed on other instances: > > I've had a brief look at these: > > &g

Re: arm64 syzbot instances

2021-03-11 Thread Dmitry Vyukov
On Thu, Mar 11, 2021 at 1:33 PM Mark Rutland wrote: > On Thu, Mar 11, 2021 at 12:38:21PM +0100, 'Dmitry Vyukov' via syzkaller wrote: > > Hi arm64 maintainers, > > The instances have KCOV disabled because it slows down execution too > > much (KASAN in qemu emulation is alread

Re: arm64 syzbot instances

2021-03-11 Thread Dmitry Vyukov
On Thu, Mar 11, 2021 at 1:33 PM Mark Rutland wrote: > > On Thu, Mar 11, 2021 at 12:38:21PM +0100, 'Dmitry Vyukov' via syzkaller wrote: > > Hi arm64 maintainers, > > Hi Dmitry, > > > We now have some syzbot instances testing arm64 (woohoo!) using qemu > >

Re: [syzbot] KASAN: slab-out-of-bounds Read in squashfs_get_id

2021-03-11 Thread Dmitry Vyukov
On Thu, Mar 11, 2021 at 12:23 PM syzbot wrote: > > syzbot suspects this issue was fixed by commit: > > commit e812cbb15adbbbee176baa1e8bda53059bf0 > Author: Phillip Lougher > Date: Tue Feb 9 21:41:50 2021 + > > squashfs: avoid out of bounds writes in decompressors > > bisection

Re: [syzbot] KCSAN: data-race in start_this_handle / start_this_handle

2021-03-11 Thread Dmitry Vyukov
On Thu, Mar 11, 2021 at 3:25 PM Jan Kara wrote: > > On Thu 11-03-21 02:59:14, syzbot wrote: > > HEAD commit:a74e6a01 Merge tag 's390-5.12-3' of git://git.kernel.org/p.. > > git tree: upstream > > console output: https://syzkaller.appspot.com/x/log.txt?x=159f69ecd0 > > kernel config:

arm64 syzbot instances

2021-03-11 Thread Dmitry Vyukov
Hi arm64 maintainers, We now have some syzbot instances testing arm64 (woohoo!) using qemu emulation. I wanted to write up the current status. There are 3 instances, first uses KASAN: https://syzkaller.appspot.com/upstream?manager=ci-qemu2-arm64 second KASAN and 32-bit userspace test load

Re: [syzbot] BUG: unable to handle kernel access to user memory in schedule_tail

2021-03-10 Thread Dmitry Vyukov
On Thu, Mar 11, 2021 at 7:50 AM Dmitry Vyukov wrote: > > On Thu, Mar 11, 2021 at 7:40 AM Alex Ghiti wrote: > > > > Hi Ben, > > > > Le 3/10/21 à 5:24 PM, Ben Dooks a écrit : > > > On 10/03/2021 17:16, Dmitry Vyukov wrote: > > >> O

Re: [syzbot] BUG: unable to handle kernel access to user memory in schedule_tail

2021-03-10 Thread Dmitry Vyukov
On Thu, Mar 11, 2021 at 7:40 AM Alex Ghiti wrote: > > Hi Ben, > > Le 3/10/21 à 5:24 PM, Ben Dooks a écrit : > > On 10/03/2021 17:16, Dmitry Vyukov wrote: > >> On Wed, Mar 10, 2021 at 5:46 PM syzbot > >> wrote: > >>> > >>> Hello, >

Re: [syzbot] BUG: unable to handle kernel access to user memory in sock_ioctl

2021-03-10 Thread Dmitry Vyukov
On Wed, Mar 10, 2021 at 7:28 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:0d7588ab riscv: process: Fix no prototype for arch_dup_tas.. > git tree: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > fixes > console output:

Re: riscv+KASAN does not boot

2021-03-10 Thread Dmitry Vyukov
On Tue, Mar 9, 2021 at 8:49 PM Alex Ghiti wrote: > > Le 3/9/21 à 12:11 PM, Dmitry Vyukov a écrit : > > On Fri, Feb 19, 2021 at 11:26 PM 'Palmer Dabbelt' via syzkaller > > wrote: > >> > >> On Fri, 19 Feb 2021 10:53:43 PST (-0800), dvyu...@google.com wrote: &

Re: [syzbot] BUG: unable to handle kernel access to user memory in schedule_tail

2021-03-10 Thread Dmitry Vyukov
On Wed, Mar 10, 2021 at 5:46 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:0d7588ab riscv: process: Fix no prototype for arch_dup_tas.. > git tree: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > fixes > console output:

Re: kernel panic: Attempted to kill init!

2021-03-10 Thread Dmitry Vyukov
On Wed, Mar 10, 2021 at 10:02 AM Palash Oswal wrote: > > On Tue, Mar 9, 2021 at 7:58 PM Al Viro wrote: > > Lovely. So something in that sequence of syscalls manages to trigger > > segfault in unrelated process. What happens if you put it to sleep > > right after open_by_handle_at() (e.g. by

Re: riscv+KASAN does not boot

2021-03-09 Thread Dmitry Vyukov
On Fri, Feb 19, 2021 at 11:26 PM 'Palmer Dabbelt' via syzkaller wrote: > > On Fri, 19 Feb 2021 10:53:43 PST (-0800), dvyu...@google.com wrote: > > On Fri, Feb 19, 2021 at 6:01 PM Alex Ghiti wrote: > >> > >> Hi Dmitry, > >> > >> Le 2/18/21 à 6:36 A

Re: [PATCH] x86/perf: Fix guest_get_msrs static call if there is no PMU

2021-03-09 Thread Dmitry Vyukov
On Tue, Mar 9, 2021 at 6:05 PM Sean Christopherson wrote: > > On Tue, Mar 09, 2021, Peter Zijlstra wrote: > > On Tue, Mar 09, 2021 at 08:46:49AM +0100, Peter Zijlstra wrote: > > > On Mon, Mar 08, 2021 at 12:40:44PM -0800, Sean Christopherson wrote: > > > > On Mon, Mar 08, 2021, Peter Zijlstra

Re: Re: general protection fault in strncasecmp

2021-03-09 Thread Dmitry Vyukov
On Fri, Oct 16, 2020 at 3:07 PM syzbot wrote: > > > #syz test: > > git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git > > f25a7033ecb675101f8bc060a7c5fbe0c9076fd3 > > "\tf25a7033ecb675101f8bc060a7c5fbe0c9076fd3" does not look like a valid git > branch or commit. Hi

Re: kernel panic: Attempted to kill init!

2021-03-09 Thread Dmitry Vyukov
On Tue, Mar 9, 2021 at 3:31 PM Al Viro wrote: > > I observe the following result(notice the segfault in systemd): > > root@sandbox:~# ./repro > > [9.457767] got to 221 > > [9.457791] got to 183 > > [9.459144] got to 201 > > [9.459471] got to 208 > > [9.459773] got to 210 > > [

Re: KASAN: slab-out-of-bounds Write in record_print_text

2021-03-09 Thread Dmitry Vyukov
On Mon, Jan 25, 2021 at 2:16 PM John Ogness wrote: > > On 2021-01-25, syzbot > wrote: > > syzbot found the following issue on: > > > > HEAD commit:e6806137 Merge tag 'irq_urgent_for_v5.11_rc5' of git://git.. > > git tree: upstream > > console output:

Re: [syzbot] KASAN: use-after-free Read in usb_audio_disconnect

2021-03-09 Thread Dmitry Vyukov
On Tue, Mar 9, 2021 at 12:38 PM Takashi Iwai wrote: > > On Tue, 09 Mar 2021 12:32:18 +0100, > syzbot wrote: > > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:4641b323 Add linux-next specific files for 20210305 > > git tree: linux-next > > console output:

Re: [syzbot] upstream boot error: WARNING in kvm_wait

2021-03-08 Thread Dmitry Vyukov
On Sat, Mar 6, 2021 at 12:37 PM Dmitry Vyukov wrote: > > On Fri, Mar 5, 2021 at 9:56 PM syzbot > wrote: > > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:280d542f Merge tag 'drm-fixes-2021-03-05' of git://anongit.. &g

Re: [syzbot] net-next boot error: WARNING in kvm_wait

2021-03-08 Thread Dmitry Vyukov
On Fri, Mar 5, 2021 at 9:57 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:d310ec03 Merge tag 'perf-core-2021-02-17' of git://git.ker.. > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=1532e4c6d0 > kernel config:

Re: [syzbot] bpf boot error: WARNING in kvm_wait

2021-03-08 Thread Dmitry Vyukov
On Sat, Mar 6, 2021 at 12:28 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:edbea922 veth: Store queue_mapping independently of XDP pr.. > git tree: bpf > console output: https://syzkaller.appspot.com/x/log.txt?x=113ae02ad0 > kernel config:

Re: [syzbot] net boot error: WARNING in kvm_wait

2021-03-08 Thread Dmitry Vyukov
On Sat, Mar 6, 2021 at 8:37 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:ad5d07f4 cipso,calipso: resolve a number of problems with .. > git tree: net > console output: https://syzkaller.appspot.com/x/log.txt?x=12aca7cad0 > kernel config:

Re: [syzbot] bpf-next boot error: WARNING in kvm_wait

2021-03-08 Thread Dmitry Vyukov
On Sat, Mar 6, 2021 at 8:37 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:d01b59c9 bpf: Add bpf_skb_adjust_room flag BPF_F_ADJ_ROOM_.. > git tree: bpf-next > console output: https://syzkaller.appspot.com/x/log.txt?x=1592bd66d0 > kernel config:

Re: [syzbot] WARNING in kvm_wait

2021-03-08 Thread Dmitry Vyukov
On Tue, Mar 9, 2021 at 12:29 AM 'Sean Christopherson' via syzkaller-bugs wrote: > > On Mon, Mar 08, 2021, syzbot wrote: > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:a38fd874 Linux 5.12-rc2 > > git tree: upstream > > console output:

Re: [PATCH] x86/perf: Fix guest_get_msrs static call if there is no PMU

2021-03-08 Thread Dmitry Vyukov
On Mon, Mar 8, 2021 at 9:35 AM Like Xu wrote: > > On 2021/3/8 15:12, Dmitry Vyukov wrote: > > On Mon, Mar 8, 2021 at 3:26 AM Xu, Like wrote: > >> > >> On 2021/3/6 6:33, Sean Christopherson wrote: > >>> Handle a NULL x86_pmu.guest_

Re: [PATCH] x86/perf: Fix guest_get_msrs static call if there is no PMU

2021-03-07 Thread Dmitry Vyukov
xes: abd562df94d1 ("x86/perf: Use static_call for x86_pmu.guest_get_msrs") > > Cc: Like Xu > > Cc: Paolo Bonzini > > Cc: Jim Mattson > > Cc: k...@vger.kernel.org > > Reported-by: Dmitry Vyukov > > Signed-off-by: Sean Christopherson > > --- > &

Re: [bugreport 5.9-rc8] general protection fault in __bfq_deactivate_entity

2021-03-07 Thread Dmitry Vyukov
On Sun, Mar 7, 2021 at 11:09 AM Hillf Danton wrote: > > On Sun, 7 Mar 2021 08:46:19 +0100 Dmitry Vyukov wrote: > > On Sun, Mar 7, 2021 at 3:15 AM Hillf Danton wrote: > > > > > > Dmitry can you shed some light on the tricks to config kasan to print &

Re: [bugreport 5.9-rc8] general protection fault in __bfq_deactivate_entity

2021-03-06 Thread Dmitry Vyukov
On Sun, Mar 7, 2021 at 3:15 AM Hillf Danton wrote: > > On Fri, 5 Mar 2021 18:01:04 +0800 Ming Lei wrote: > > On Fri, Mar 05, 2021 at 10:32:04AM +0100, Paolo Valente wrote: > > > I'm thinking of a way to debug this too. The symptom may hint at a > > > use-after-free. Could you enable KASAN in

Re: [syzbot] upstream boot error: WARNING in kvm_wait

2021-03-06 Thread Dmitry Vyukov
On Fri, Mar 5, 2021 at 9:56 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:280d542f Merge tag 'drm-fixes-2021-03-05' of git://anongit.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=138c7a92d0 > kernel config:

Re: syzbot reporting less duplicates

2021-03-05 Thread Dmitry Vyukov
On Wed, Feb 3, 2021 at 8:24 PM Pavel Machek wrote: > > Hi! > On Wed 2021-02-03 19:22:34, Dmitry Vyukov wrote: > > On Wed, Feb 3, 2021 at 6:39 PM bobwxc wrote: > > > > > > On Wed, Feb 03, 2021 at 05:05:43PM +0100, Pavel Machek wrote: > > > > On

Re: INFO: rcu detected stall in corrupted (4)

2021-03-04 Thread Dmitry Vyukov
On Fri, Sep 4, 2020 at 8:49 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:0f091e43 netlabel: remove unused param from audit_log_form.. > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=14551a7190 > kernel config:

Re: unexpected kernel reboot (3)

2021-03-04 Thread Dmitry Vyukov
On Fri, Mar 13, 2020 at 8:43 AM Dmitry Vyukov wrote: > > On Thu, Mar 12, 2020 at 9:36 PM Jim Mattson wrote: > > > > On Wed, Mar 11, 2020 at 1:35 PM Jim Mattson wrote: > > > > > > On Wed, Mar 11, 2020 at 1:18 PM Dmitry Vyukov wrote: > > > > &

Re: [PATCH] netdevsim: init u64 stats for 32bit hardware

2021-03-04 Thread Dmitry Vyukov
On Wed, Mar 3, 2021 at 12:10 AM Jakub Kicinski wrote: > > On Tue, 2 Mar 2021 12:55:47 +0100 Dmitry Vyukov wrote: > > On Tue, Mar 2, 2021 at 10:06 AM Hillf Danton wrote: > > > On Mar 2, 2021 at 16:40 Dmitry Vyukov wrote: > > > >I hoped this would get at least into

Re: [Linux-kernel-mentees] [PATCH net] Bluetooth: Fix NULL pointer dereference in amp_read_loc_assoc_final_data()

2021-03-03 Thread Dmitry Vyukov
l_data() - by Peilin Ye @ 2020-08-08 4:04 UTC [21%] 13. KASAN: null-ptr-deref Write in amp_read_loc_assoc_final_data - by syzbot @ 2020-07-31 17:04 UTC [13%] > Thanks & regards, > Gopal Tiwari > > > > - Original Message - > From: "Dmitry Vyukov" > To

Re: BUG: soft lockup in ieee80211_tasklet_handler

2021-03-03 Thread Dmitry Vyukov
On Wed, Mar 3, 2021 at 9:59 AM Hillf Danton wrote: > > On Tue, 02 Mar 2021 15:18:16 +0100 Johannes Berg wrote: > > On Wed, 2021-02-24 at 10:30 +0800, Hillf Danton wrote: > > > > > > Add budget for the 80211 softint handler - it's feasible not to try to > > > build the giant pyramid in a week. >

Re: [Linux-kernel-mentees] [PATCH net] Bluetooth: Fix NULL pointer dereference in amp_read_loc_assoc_final_data()

2021-03-03 Thread Dmitry Vyukov
On Sat, Aug 8, 2020 at 6:06 AM Peilin Ye wrote: > > Prevent amp_read_loc_assoc_final_data() from dereferencing `mgr` as NULL. > > Reported-and-tested-by: syzbot+f4fb0eaafdb51c32a...@syzkaller.appspotmail.com > Fixes: 9495b2ee757f ("Bluetooth: AMP: Process Chan Selected event") > Signed-off-by:

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

2021-03-02 Thread Dmitry Vyukov
On Tue, Mar 2, 2021 at 8:25 PM syzbot wrote: > > syzbot has found a reproducer for the following issue on: > > HEAD commit:7a7fd0de Merge branch 'kmap-conversion-for-5.12' of git://.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=13693866d0 >

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

2021-03-02 Thread Dmitry Vyukov
On Tue, Mar 2, 2021 at 5:10 PM Paul Moore wrote: > > On Tue, Mar 2, 2021 at 6:03 AM Dmitry Vyukov wrote: > > > > ... > > > Besides these 2 crashes, we've also seen one on a 4.19 based kernel, see > > below. > > Based on the reports with mismatching st

Re: BUG: soft lockup in ieee80211_tasklet_handler

2021-03-02 Thread Dmitry Vyukov
On Tue, Mar 2, 2021 at 3:18 PM Johannes Berg wrote: > > On Wed, 2021-02-24 at 10:30 +0800, Hillf Danton wrote: > > > > Add budget for the 80211 softint handler - it's feasible not to try to > > build the giant pyramid in a week. > > > > --- x/net/mac80211/main.c > > +++ y/net/mac80211/main.c > >

Re: [PATCH] netdevsim: init u64 stats for 32bit hardware

2021-03-02 Thread Dmitry Vyukov
On Tue, Mar 2, 2021 at 10:06 AM Hillf Danton wrote: > > On Mar 2, 2021 at 16:40 Dmitry Vyukov wrote: > > >I hoped this would get at least into 5.12. syzbot can't start testing > > >arm32 because of this. > > > > Or what is more feasible is you send a fix to Jak

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

2021-03-02 Thread Dmitry Vyukov
On Tue, Mar 2, 2021 at 12:01 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:5695e516 Merge tag 'io_uring-worker.v3-2021-02-25' of git:.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=168c27f2d0 > kernel config:

Re: memory leak in edge_startup

2021-03-02 Thread Dmitry Vyukov
On Tue, Mar 2, 2021 at 9:43 AM Hillf Danton wrote: > > Mon, 01 Mar 2021 11:29:16 -0800 > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:29c395c7 Merge tag 'x86-entry-2021-02-24' of git://git.ker.. > > git tree: upstream > > console output:

Re: [PATCH] netdevsim: init u64 stats for 32bit hardware

2021-03-02 Thread Dmitry Vyukov
On Fri, Jan 29, 2021 at 6:36 AM Hillf Danton wrote: > > On 29 Jan 2021 2:58:22 Jakub Kicinski wrpte: > > >On Thu, 28 Jan 2021 10:43:16 +0800 Hillf Danton wrote: > > >> Init the u64 stats in order to avoid the lockdep prints on the 32bit > > >> hardware like > > > > > >Thanks for the fix! > > > >

Re: memory leak in bpf

2021-03-01 Thread Dmitry Vyukov
On Mon, Mar 1, 2021 at 9:39 PM Rustam Kovhaev wrote: > > On Mon, Mar 01, 2021 at 08:05:42PM +0100, Dmitry Vyukov wrote: > > On Mon, Mar 1, 2021 at 5:21 PM Rustam Kovhaev wrote: > > > > > > On Wed, Dec 09, 2020 at 10:58:10PM -0800, syzbot wrote: > &g

Re: memory leak in bpf

2021-03-01 Thread Dmitry Vyukov
On Mon, Mar 1, 2021 at 5:21 PM Rustam Kovhaev wrote: > > On Wed, Dec 09, 2020 at 10:58:10PM -0800, syzbot wrote: > > syzbot has found a reproducer for the following issue on: > > > > HEAD commit:a68a0262 mm/madvise: remove racy mm ownership check > > git tree: upstream > > console

Re: linux kernel bug???

2021-02-28 Thread Dmitry Vyukov
On Mon, Mar 1, 2021 at 8:10 AM Lukas Bulwahn wrote: > > Hi, > > On Mon, Mar 1, 2021 at 7:58 AM wrote: > > > > This is the first time for me to report something, so maybe the format is > > not right. Please correct me if I'm wrong. Thank you ~ > > When using Syzkaller to fuzz Linux kernel

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

2021-02-26 Thread Dmitry Vyukov
On Fri, Feb 26, 2021 at 10:48 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:d01f2f7e Add linux-next specific files for 20210226 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=1750e9b0d0 > kernel config:

Re: general protection fault in vmx_vcpu_run (2)

2021-02-25 Thread Dmitry Vyukov
On Wed, Feb 24, 2021 at 7:08 PM 'Sean Christopherson' via syzkaller-bugs wrote: > > On Wed, Feb 24, 2021, Borislav Petkov wrote: > > Hi Dmitry, > > > > On Wed, Feb 24, 2021 at 06:12:57PM +0100, Dmitry Vyukov wrote: > > > Looking at the bisection log, the bise

Re: general protection fault in vmx_vcpu_run (2)

2021-02-25 Thread Dmitry Vyukov
On Wed, Feb 24, 2021 at 6:49 PM Borislav Petkov wrote: > > Hi Dmitry, > > On Wed, Feb 24, 2021 at 06:12:57PM +0100, Dmitry Vyukov wrote: > > Looking at the bisection log, the bisection was distracted by something > > else. > > Meaning the bisection result: >

Re: general protection fault in vmx_vcpu_run (2)

2021-02-24 Thread Dmitry Vyukov
On Wed, Feb 24, 2021 at 1:27 PM Borislav Petkov wrote: > > On Tue, Feb 23, 2021 at 03:17:07PM -0800, syzbot wrote: > > syzbot has bisected this issue to: > > > > commit 167dcfc08b0b1f964ea95d410aa496fd78adf475 > > Author: Lorenzo Stoakes > > Date: Tue Dec 15 20:56:41 2020 + > > > >

Re: [PATCH RFC 3/4] perf/core: Add support for SIGTRAP on perf events

2021-02-23 Thread Dmitry Vyukov
On Tue, Feb 23, 2021 at 3:34 PM Marco Elver wrote: > > Adds bit perf_event_attr::sigtrap, which can be set to cause events to > send SIGTRAP (with si_code TRAP_PERF) to the task where the event > occurred. To distinguish perf events and allow user space to decode > si_perf (if set), the event

Re: [PATCH RFC 4/4] perf/core: Add breakpoint information to siginfo on SIGTRAP

2021-02-23 Thread Dmitry Vyukov
On Tue, Feb 23, 2021 at 4:10 PM 'Marco Elver' via kasan-dev wrote: > > > Encode information from breakpoint attributes into siginfo_t, which > > > helps disambiguate which breakpoint fired. > > > > > > Note, providing the event fd may be unreliable, since the event may have > > > been modified

Re: [PATCH RFC 4/4] perf/core: Add breakpoint information to siginfo on SIGTRAP

2021-02-23 Thread Dmitry Vyukov
On Tue, Feb 23, 2021 at 3:34 PM Marco Elver wrote: > > Encode information from breakpoint attributes into siginfo_t, which > helps disambiguate which breakpoint fired. > > Note, providing the event fd may be unreliable, since the event may have > been modified (via

Re: [PATCH RFC 3/4] perf/core: Add support for SIGTRAP on perf events

2021-02-23 Thread Dmitry Vyukov
int cpu = READ_ONCE(event->pending_disable); > @@ -6297,6 +6308,13 @@ static void perf_pending_event_disable(struct > perf_event *event) > > if (cpu == smp_processor_id()) { > WRITE_ONCE(event->pending_disable, -1); > + > + if (event-&g

Re: [PATCH RFC 1/4] perf/core: Apply PERF_EVENT_IOC_MODIFY_ATTRIBUTES to children

2021-02-23 Thread Dmitry Vyukov
ming.kicks-ass.net > Suggested-by: Dmitry Vyukov > Signed-off-by: Marco Elver Reviewed-by: Dmitry Vyukov > --- > kernel/events/core.c | 22 +- > 1 file changed, 21 insertions(+), 1 deletion(-) > > diff --git a/kernel/events/core.c b/kernel/events/core.c &g

Re: [PATCH] mm/kasan: remove volatile keyword

2021-02-21 Thread Dmitry Vyukov
On Mon, Feb 22, 2021 at 6:22 AM Zhiyuan Dai wrote: > > Like volatile, the kernel primitives which make concurrent > access to data safe (spinlocks, mutexes, memory barriers, > etc.) are designed to prevent unwanted optimization. > > If they are being used properly, there will be no need to > use

Re: [PATCH] riscv: Get rid of MAX_EARLY_MAPPING_SIZE

2021-02-21 Thread Dmitry Vyukov
obias Klauser Date: Tue Feb 16 18:33:05 2021 +0100 riscv: Disable KSAN_SANITIZE for vDSO and the kernel started booting with my large config. It quickly crashed (see below), but at least it started booting, so it's an improvement. Tested-by: Dmitry Vyukov Linux version 5.11.0-rc2-

Re: KMSAN: uninit-value in __crypto_memneq (2)

2021-02-21 Thread Dmitry Vyukov
On Sat, Jan 9, 2021 at 6:33 PM Dmitry Vyukov wrote: > > On Sat, Jan 9, 2021 at 6:14 PM Eric Biggers wrote: > > > > +Jason, since this looks WireGuard-related. > > I suspect that the uninit was created by geneve or batadv and then > just handed off to wir

Re: riscv+KASAN does not boot

2021-02-19 Thread Dmitry Vyukov
On Fri, Feb 19, 2021 at 6:01 PM Alex Ghiti wrote: > > Hi Dmitry, > > Le 2/18/21 à 6:36 AM, Dmitry Vyukov a écrit : > > On Thu, Feb 18, 2021 at 8:54 AM Alex Ghiti wrote: > >> > >> Hi Dmitry, > >> > >>> On Wed, Feb 17, 2021 at 5:36 PM Alex

Re: possible deadlock in mptcp_push_pending

2021-02-18 Thread Dmitry Vyukov
On Thu, Feb 18, 2021 at 1:41 PM Paolo Abeni wrote: > > On Wed, 2021-02-17 at 09:31 -0800, syzbot wrote: > > syzbot found the following issue on: > > > > HEAD commit:c48f8607 Merge branch 'PTP-for-DSA-tag_ocelot_8021q' > > git tree: net-next > > console output:

Re: riscv+KASAN does not boot

2021-02-18 Thread Dmitry Vyukov
On Thu, Feb 18, 2021 at 8:54 AM Alex Ghiti wrote: > > Hi Dmitry, > > > On Wed, Feb 17, 2021 at 5:36 PM Alex Ghiti wrote: > >> > >> Le 2/16/21 à 11:42 PM, Dmitry Vyukov a écrit : > >>> On Tue, Feb 16, 2021 at 9:42 PM Alex Ghiti wrote: > >>&

Re: riscv+KASAN does not boot

2021-02-17 Thread Dmitry Vyukov
On Wed, Feb 17, 2021 at 5:36 PM Alex Ghiti wrote: > > Le 2/16/21 à 11:42 PM, Dmitry Vyukov a écrit : > > On Tue, Feb 16, 2021 at 9:42 PM Alex Ghiti wrote: > >> > >> Hi Dmitry, > >> > >> Le 2/16/21 à 6:25 AM, Dmitry Vyukov a écrit : > >&g

Re: KASAN: invalid-access Write in enqueue_timer

2021-02-16 Thread Dmitry Vyukov
On Tue, Feb 16, 2021 at 7:15 PM Dmitry Vyukov wrote: > > On Tue, Feb 16, 2021 at 06:50:20PM +0100, Jason A. Donenfeld wrote: > > > On Tue, Feb 16, 2021 at 6:46 PM Jason A. Donenfeld > > > wrote: > > > > On Tue, Feb 16, 2021 at 6:28 PM Catalin Marinas > &g

Re: riscv+KASAN does not boot

2021-02-16 Thread Dmitry Vyukov
On Tue, Feb 16, 2021 at 9:42 PM Alex Ghiti wrote: > > Hi Dmitry, > > Le 2/16/21 à 6:25 AM, Dmitry Vyukov a écrit : > > On Tue, Feb 16, 2021 at 12:17 PM Dmitry Vyukov wrote: > >> > >> On Fri, Jan 29, 2021 at 9:11 AM Dmitry Vyukov wrote: > >>>> I

Re: KASAN: invalid-access Write in enqueue_timer

2021-02-16 Thread Dmitry Vyukov
On Tue, Feb 16, 2021 at 7:01 PM Catalin Marinas wrote: > > On Tue, Feb 16, 2021 at 06:50:20PM +0100, Jason A. Donenfeld wrote: > > On Tue, Feb 16, 2021 at 6:46 PM Jason A. Donenfeld wrote: > > > On Tue, Feb 16, 2021 at 6:28 PM Catalin Marinas > > > wrote: > > > > > hlist_add_head

Re: riscv+KASAN does not boot

2021-02-16 Thread Dmitry Vyukov
On Tue, Feb 16, 2021 at 12:25 PM Dmitry Vyukov wrote: > > On Tue, Feb 16, 2021 at 12:17 PM Dmitry Vyukov wrote: > > > > On Fri, Jan 29, 2021 at 9:11 AM Dmitry Vyukov wrote: > > > > I was fixing KASAN support for my sv48 patchset so I took a look at your > >

Re: riscv+KASAN does not boot

2021-02-16 Thread Dmitry Vyukov
On Tue, Feb 16, 2021 at 12:17 PM Dmitry Vyukov wrote: > > On Fri, Jan 29, 2021 at 9:11 AM Dmitry Vyukov wrote: > > > I was fixing KASAN support for my sv48 patchset so I took a look at your > > > issue: I built a kernel on top of the branch riscv/fixes using > &g

Re: riscv+KASAN does not boot

2021-02-16 Thread Dmitry Vyukov
On Fri, Jan 29, 2021 at 9:11 AM Dmitry Vyukov wrote: > > I was fixing KASAN support for my sv48 patchset so I took a look at your > > issue: I built a kernel on top of the branch riscv/fixes using > > https://github.com/google/syzkaller/blob/269d24e857a757d09a898086a2fa6fa5

Re: possible deadlock in dquot_commit

2021-02-15 Thread Dmitry Vyukov
On Fri, Feb 12, 2021 at 5:10 PM Theodore Ts'o wrote: > > >From: Theodore Ts'o > > On Fri, Feb 12, 2021 at 12:01:51PM +0100, Dmitry Vyukov wrote: > > > > > > > > There is a reproducer for 4.19 available on the dashboard. Maybe it > > > &g

Re: possible deadlock in start_this_handle (2)

2021-02-13 Thread Dmitry Vyukov
On Fri, Feb 12, 2021 at 4:43 PM Michal Hocko wrote: > > On Fri 12-02-21 21:58:15, Tetsuo Handa wrote: > > On 2021/02/12 21:30, Michal Hocko wrote: > > > On Fri 12-02-21 12:22:07, Matthew Wilcox wrote: > > >> On Fri, Feb 12, 2021 at 08:18:11PM +0900, Tetsuo Handa wrote: > > >>> On 2021/02/12 1:41,

Re: [PATCH 1/1] iscsi_ibft: KASAN false positive failure occurs in ibft_init()

2021-02-12 Thread Dmitry Vyukov
On Fri, Feb 12, 2021 at 2:31 PM George Kennedy wrote: > On 2/10/2021 4:51 PM, George Kennedy wrote: > > On 2/3/2021 2:35 PM, Dmitry Vyukov wrote: > >> On Wed, Feb 3, 2021 at 8:29 PM Konrad Rzeszutek Wilk > >> wrote: > >>> Hey Dmitry, Rafael, George, please

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