Re: [PATCH] slub: Introduce CONFIG_SLUB_RCU_DEBUG

2023-09-11 Thread Dmitry Vyukov
On Mon, 28 Aug 2023 at 16:40, Jann Horn wrote: > > On Sat, Aug 26, 2023 at 5:32 AM Dmitry Vyukov wrote: > > On Fri, 25 Aug 2023 at 23:15, Jann Horn wrote: > > > Currently, KASAN is unable to catch use-after-free in SLAB_TYPESAFE_BY_RCU > > > slabs because us

Re: [syzbot] INFO: rcu detected stall in tx

2021-04-19 Thread Dmitry Vyukov
On Mon, Apr 19, 2021 at 9:19 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:50987bec Merge tag 'trace-v5.12-rc7' of git://git.kernel.o.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1065c5fcd0 > kernel config:

Re: [syzbot] INFO: task hung in usb_remote_wakeup (2)

2021-04-19 Thread Dmitry Vyukov
On Sat, Apr 17, 2021 at 12:41 PM syzbot wrote: > > syzbot suspects this issue was fixed by commit: > > commit 363eaa3a450abb4e63bd6e3ad79d1f7a0f717814 > Author: Shuah Khan > Date: Tue Mar 30 01:36:51 2021 + > > usbip: synchronize event handler with sysfs code paths > > bisection log:

Re: Bisections with different bug manifestations

2021-04-16 Thread Dmitry Vyukov
On Fri, Apr 16, 2021 at 3:26 PM Dmitry Vyukov wrote: > > On Fri, Apr 16, 2021 at 3:13 PM Steven Rostedt wrote: > > > > On Fri, 16 Apr 2021 09:51:45 +0200 > > Dmitry Vyukov wrote: > > > > > > If you look at substantial base of bisection logs, you wil

Re: Bisections with different bug manifestations

2021-04-16 Thread Dmitry Vyukov
On Fri, Apr 16, 2021 at 3:13 PM Steven Rostedt wrote: > > On Fri, 16 Apr 2021 09:51:45 +0200 > Dmitry Vyukov wrote: > > > > If you look at substantial base of bisection logs, you will find lots > > of cases where bug types, functions don't match. Kernel crashes >

Re: [PATCHv3] Introduced new tracing mode KCOV_MODE_UNIQUE.

2021-04-16 Thread Dmitry Vyukov
On Sat, Mar 27, 2021 at 3:56 PM Andrey Konovalov wrote: > > On Fri, Mar 26, 2021 at 9:52 PM Alexander Lochmann > wrote: > > > > Hi Alexander, > > > It simply stores the executed PCs. > > The execution order is discarded. > > Each bit in the shared buffer represents every fourth > > byte of the

Bisections with different bug manifestations

2021-04-16 Thread Dmitry Vyukov
On Tue, Apr 13, 2021 at 8:43 PM Steven Rostedt wrote: > > On Tue, 13 Apr 2021 14:40:09 -0400 > Steven Rostedt wrote: > > > [ cut here ] > > raw_local_irq_restore() called with IRQs enabled > > WARNING: CPU: 0 PID: 8777 at kernel/locking/irqflag-debug.c:9 > >

Re: [syzbot] general protection fault in gadget_setup

2021-04-16 Thread Dmitry Vyukov
On Thu, Apr 15, 2021 at 10:59 PM Alan Stern wrote: > > On Tue, Apr 13, 2021 at 07:11:11PM +0200, Dmitry Vyukov wrote: > > On Tue, Apr 13, 2021 at 6:57 PM Alan Stern > > wrote: > > > > > > On Tue, Apr 13, 2021 at 06:47:47PM +0200, Dmitry Vyukov wrote: > >

Re: [syzbot] WARNING in ctx_sched_in

2021-04-16 Thread Dmitry Vyukov
On Fri, Apr 16, 2021 at 6:35 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:79c338ab riscv: keep interrupts disabled for BREAKPOINT ex.. > git tree: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > fixes > console output:

UBSAN: array-index-out-of-bounds in ehci_hub_control

2021-04-15 Thread Dmitry Vyukov
Hi, I've got this report while booting v5.10.13 kernel, but upstream code seems to be the same. The access to port_status, the code is: struct ehci_regs { u32 port_status[0]; /* up to N_PORTS */ u32 reserved3[9];

Re: [syzbot] possible deadlock in io_poll_double_wake (3)

2021-04-15 Thread Dmitry Vyukov
On Thu, Apr 15, 2021 at 9:23 AM Hillf Danton wrote: > > On Tue, 13 Apr 2021 14:07:16 > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:17e7124a Merge tag '5.12-rc6-smb3' of git://git.samba.org/.. > > git tree: upstream > > console output:

Re: Question on KASAN calltrace record in RT

2021-04-14 Thread Dmitry Vyukov
On Wed, Apr 14, 2021 at 8:58 AM Zhang, Qiang wrote: > > 发件人: Dmitry Vyukov > 发送时间: 2021年4月13日 23:29 > 收件人: Zhang, Qiang > 抄送: Andrew Halaney; andreyk...@gmail.com; ryabinin@gmail.com; > a...@linux-foundation.org; linux-kern

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

2021-04-13 Thread Dmitry Vyukov
On Wed, Apr 14, 2021 at 7:52 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:b2b3d18f riscv: Make NUMA depend on MMU > git tree: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > fixes > console output:

Re: [syzbot] unexpected kernel reboot (4)

2021-04-13 Thread Dmitry Vyukov
On Tue, Apr 13, 2021 at 11:27 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:89698bec Merge tag 'm68knommu-for-v5.12-rc7' of git://git... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1243fcfed0 > kernel

Re: Question on KASAN calltrace record in RT

2021-04-13 Thread Dmitry Vyukov
On Wed, Apr 14, 2021 at 6:00 AM Mike Galbraith wrote: > > On Tue, 2021-04-13 at 17:29 +0200, Dmitry Vyukov wrote: > > On Tue, Apr 6, 2021 at 10:26 AM Zhang, Qiang > > wrote: > > > > > > Hello everyone > > > > > > In RT system,

Re: [syzbot] WARNING in unsafe_follow_pfn

2021-04-13 Thread Dmitry Vyukov
On Tue, Apr 13, 2021 at 8:11 PM Jason Gunthorpe wrote: > > On Tue, Apr 13, 2021 at 07:20:12PM +0200, Dmitry Vyukov wrote: > > > > Plus users are going to be seeing this as well. According to the commit > > > > message for 69bacee7f9ad ("mm: Add unsafe_follow_p

Re: [syzbot] possible deadlock in del_gendisk

2021-04-13 Thread Dmitry Vyukov
On Tue, Apr 13, 2021 at 7:43 PM Steven Rostedt wrote: > > On Tue, 13 Apr 2021 13:41:47 -0400 > Steven Rostedt wrote: > > > As the below splats look like it has nothing to do with this patch, and > > this patch will add a WARN() if there's broken logic somewhere, I bet the > > bisect got confused

Re: [syzbot] WARNING: suspicious RCU usage in copy_page_range

2021-04-13 Thread Dmitry Vyukov
On Tue, Apr 6, 2021 at 9:41 AM Peter Zijlstra wrote: > > On Wed, Mar 31, 2021 at 11:57:23AM +0200, Dmitry Vyukov wrote: > > On Wed, Mar 31, 2021 at 9:31 AM Peter Zijlstra wrote: > > > > > > On Wed, Mar 31, 2021 at 08:11:38AM +0200, Dmitry Vyukov wrote: > >

Re: [syzbot] WARNING: suspicious RCU usage in find_inlist_lock

2021-04-13 Thread Dmitry Vyukov
On Sat, Apr 3, 2021 at 4:22 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:1e43c377 Merge tag 'xtensa-20210329' of git://github.com/j.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=114cdd4ad0 > kernel config:

Re: [syzbot] WARNING: suspicious RCU usage in __schedule

2021-04-13 Thread Dmitry Vyukov
On Sat, Apr 3, 2021 at 10:12 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:1e43c377 Merge tag 'xtensa-20210329' of git://github.com/j.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1432bd1ad0 > kernel config:

Re: [syzbot] WARNING: suspicious RCU usage in copy_pte_range

2021-04-13 Thread Dmitry Vyukov
On Sat, Apr 3, 2021 at 8:54 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:1e43c377 Merge tag 'xtensa-20210329' of git://github.com/j.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=15604986d0 > kernel config:

Re: [syzbot] WARNING: suspicious RCU usage in do_user_addr_fault

2021-04-13 Thread Dmitry Vyukov
On Mon, Apr 5, 2021 at 7:35 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:d19cc4bf Merge tag 'trace-v5.12-rc5' of git://git.kernel.o.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17a22d16d0 > kernel config:

Re: [syzbot] WARNING: suspicious RCU usage in lock_sock_nested

2021-04-13 Thread Dmitry Vyukov
On Mon, Apr 5, 2021 at 5:45 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:d19cc4bf Merge tag 'trace-v5.12-rc5' of git://git.kernel.o.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=14898326d0 > kernel config:

Re: [syzbot] KASAN: vmalloc-out-of-bounds Read in bpf_trace_run2

2021-04-13 Thread Dmitry Vyukov
On Thu, Apr 1, 2021 at 5:39 AM syzbot wrote: > > syzbot suspects this issue was fixed by commit: > > commit befe6d946551d65cddbd32b9cb0170b0249fd5ed > Author: Steven Rostedt (VMware) > Date: Wed Nov 18 14:34:05 2020 + > > tracepoint: Do not fail unregistering a probe due to memory

Re: [syzbot] WARNING in unsafe_follow_pfn

2021-04-13 Thread Dmitry Vyukov
On Thu, Apr 1, 2021 at 2:19 PM Jason Gunthorpe wrote: > > On Wed, Mar 31, 2021 at 07:29:22AM +0300, Dan Carpenter wrote: > > On Tue, Mar 30, 2021 at 07:04:30PM +0200, Paolo Bonzini wrote: > > > On 30/03/21 17:26, syzbot wrote: > > > > Hello, > > > > > > > > syzbot found the following issue on: >

Re: [syzbot] general protection fault in gadget_setup

2021-04-13 Thread Dmitry Vyukov
On Tue, Apr 13, 2021 at 6:57 PM Alan Stern wrote: > > On Tue, Apr 13, 2021 at 06:47:47PM +0200, Dmitry Vyukov wrote: > > On Tue, Apr 13, 2021 at 6:13 PM Alan Stern > > wrote: > > > Hopefully this patch will make the race a lot more likely to occur. Is > >

Re: [syzbot] linux-next build error (12)

2021-04-13 Thread Dmitry Vyukov
On Mon, Mar 29, 2021 at 2:53 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:9d49ed9c Add linux-next specific files for 20210329 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=159b39aad0 > kernel config:

Re: [syzbot] general protection fault in gadget_setup

2021-04-13 Thread Dmitry Vyukov
On Tue, Apr 13, 2021 at 6:13 PM Alan Stern wrote: > > On Tue, Apr 13, 2021 at 10:12:05AM +0200, Dmitry Vyukov wrote: > > On Tue, Apr 13, 2021 at 10:08 AM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following issue on: &g

Re: Question on KASAN calltrace record in RT

2021-04-13 Thread Dmitry Vyukov
On Tue, Apr 6, 2021 at 10:26 AM Zhang, Qiang wrote: > > Hello everyone > > In RT system, after Andrew test, found the following calltrace , > in KASAN, we record callstack through stack_depot_save(), in this function, > may be call alloc_pages, but in RT, the spin_lock replace with >

Re: [syzbot] WARNING in ieee802154_del_seclevel

2021-04-13 Thread Dmitry Vyukov
On Thu, Apr 1, 2021 at 3:30 PM Alan Stern wrote: > > On Wed, Mar 31, 2021 at 02:03:08PM -0700, syzbot wrote: > > syzbot has bisected this issue to: > > > > commit 416dacb819f59180e4d86a5550052033ebb6d72c > > Author: Alan Stern > > Date: Wed Aug 21 17:27:12 2019 + > > > > HID: hidraw:

Re: [syzbot] general protection fault in gadget_setup

2021-04-13 Thread Dmitry Vyukov
On Tue, Apr 13, 2021 at 10:08 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:0f4498ce Merge tag 'for-5.12/dm-fixes-2' of git://git.kern.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=124adbf6d0 > kernel

Re: [syzbot] BUG: unable to handle kernel paging request in bpf_trace_run2

2021-04-13 Thread Dmitry Vyukov
On Thu, Apr 1, 2021 at 8:01 PM syzbot wrote: > > syzbot suspects this issue was fixed by commit: > > commit befe6d946551d65cddbd32b9cb0170b0249fd5ed > Author: Steven Rostedt (VMware) > Date: Wed Nov 18 14:34:05 2020 + > > tracepoint: Do not fail unregistering a probe due to memory

Re: [syzbot] WARNING in bpf_test_run

2021-04-13 Thread Dmitry Vyukov
On Fri, Apr 2, 2021 at 2:41 AM 'Yonghong Song' via syzkaller-bugs wrote: > > On 4/1/21 4:29 AM, syzbot wrote: > >> Hello, > >> > >> syzbot found the following issue on: > >> > >> HEAD commit:36e79851 libbpf: Preserve empty DATASEC BTFs during > >> static.. > >> git tree: bpf-next > >>

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

2021-04-13 Thread Dmitry Vyukov
On Tue, Apr 13, 2021 at 7:55 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:3a229812 Merge tag 'arm-fixes-5.11-2' of git://git.kernel... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=16b4d196d0 > kernel config:

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

2021-04-12 Thread Dmitry Vyukov
On Mon, Mar 22, 2021 at 6:22 PM Mark Rutland wrote: > > Hi Russell, > > On Fri, Mar 19, 2021 at 10:10:43AM +, Russell King - ARM Linux admin > wrote: > > On Fri, Mar 19, 2021 at 10:54:48AM +0100, Dmitry Vyukov wrote: > > > .On Fri, Mar 19, 2021 at 10:44 AM syzbo

Re: [PATCH] riscv: Bump COMMAND_LINE_SIZE value to 1024

2021-04-02 Thread Dmitry Vyukov
On Fri, Apr 2, 2021 at 6:37 AM Palmer Dabbelt wrote: > > On Tue, 30 Mar 2021 13:31:45 PDT (-0700), ma...@orcam.me.uk wrote: > > On Mon, 29 Mar 2021, Palmer Dabbelt wrote: > > > >> > --- /dev/null > >> > +++ b/arch/riscv/include/uapi/asm/setup.h > >> > @@ -0,0 +1,8 @@ > >> > +/*

Re: [PATCH] irq_work: record irq_work_queue() call stack

2021-03-31 Thread Dmitry Vyukov
On Wed, Mar 31, 2021 at 8:32 AM wrote: > > From: Zqiang > > Add the irq_work_queue() call stack into the KASAN auxiliary > stack in order to improve KASAN reports. this will let us know > where the irq work be queued. > > Signed-off-by: Zqiang Reviewed-by: Dmitry

Re: [syzbot] WARNING: suspicious RCU usage in copy_page_range

2021-03-31 Thread Dmitry Vyukov
On Wed, Mar 31, 2021 at 9:31 AM Peter Zijlstra wrote: > > On Wed, Mar 31, 2021 at 08:11:38AM +0200, Dmitry Vyukov wrote: > > On Wed, Mar 31, 2021 at 12:26 AM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following is

Re: [syzbot] WARNING: suspicious RCU usage in copy_page_range

2021-03-31 Thread Dmitry Vyukov
On Wed, Mar 31, 2021 at 12:26 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:db24726b Merge tag 'integrity-v5.12-fix' of git://git.kern.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=16c16b7cd0 > kernel

Re: [syzbot] KASAN: null-ptr-deref Read in filp_close (2)

2021-03-26 Thread Dmitry Vyukov
On Fri, Mar 26, 2021 at 2:50 PM Christian Brauner wrote: > > On Fri, Mar 26, 2021 at 10:34:28AM +0100, Christian Brauner wrote: > > On Fri, Mar 26, 2021, 10:21 Dmitry Vyukov wrote: > > > > > On Fri, Mar 26, 2021 at 10:12 AM Christian Brauner > > > wrote:

Re: [syzbot] KASAN: null-ptr-deref Read in filp_close (2)

2021-03-26 Thread Dmitry Vyukov
On Fri, Mar 26, 2021 at 10:12 AM Christian Brauner wrote: > > On Fri, Mar 26, 2021 at 09:02:08AM +0100, Dmitry Vyukov wrote: > > On Fri, Mar 26, 2021 at 8:55 AM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following is

Re: [PATCH] media: sq905.c: fix uninitialized variable

2021-03-26 Thread Dmitry Vyukov
On Fri, Mar 26, 2021 at 8:53 AM Pavel Skripkin wrote: > > Hi! > > On Fri, 2021-03-26 at 08:40 +0100, Dmitry Vyukov wrote: > > On Fri, Mar 26, 2021 at 8:24 AM Pavel Skripkin > > wrote: > > > > > > Hi! > > > > > > On Fri, 2021-03-

Re: [syzbot] KASAN: null-ptr-deref Read in filp_close (2)

2021-03-26 Thread Dmitry Vyukov
On Fri, Mar 26, 2021 at 8:55 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:5ee96fa9 Merge tag 'irq-urgent-2021-03-21' of git://git.ke.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17fb84bed0 > kernel config:

Re: [PATCH] media: sq905.c: fix uninitialized variable

2021-03-26 Thread Dmitry Vyukov
On Fri, Mar 26, 2021 at 8:24 AM Pavel Skripkin wrote: > > Hi! > > On Fri, 2021-03-26 at 08:14 +0100, 'Dmitry Vyukov' via syzkaller wrote: > > On Fri, Mar 26, 2021 at 8:11 AM Greg KH > > wrote: > > > > > > On Thu, Mar 25, 2021 at 11:22:02PM +0200, Al

Re: [PATCH] media: sq905.c: fix uninitialized variable

2021-03-26 Thread Dmitry Vyukov
On Fri, Mar 26, 2021 at 8:11 AM Greg KH wrote: > > On Thu, Mar 25, 2021 at 11:22:02PM +0200, Alaa Emad wrote: > > Reported-by: syzbot+a4e309017a5f3a24c...@syzkaller.appspotmail.com > > Signed-off-by: Alaa Emad > > --- > > I know I do not take patches with no changelog text, but other >

Re: [syzbot] BUG: soft lockup in do_wp_page (4)

2021-03-25 Thread Dmitry Vyukov
On Thu, Mar 25, 2021 at 8:10 PM Will Deacon wrote: > > On Thu, Mar 25, 2021 at 07:34:54PM +0100, Dmitry Vyukov wrote: > > On Thu, Mar 25, 2021 at 7:20 PM Will Deacon wrote: > > > > > > On Thu, Mar 18, 2021 at 08:34:16PM +0100, Dmitry Vyukov wrote: > > > &

Re: [syzbot] BUG: soft lockup in do_wp_page (4)

2021-03-25 Thread Dmitry Vyukov
On Thu, Mar 25, 2021 at 7:34 PM Dmitry Vyukov wrote: > > On Thu, Mar 18, 2021 at 08:34:16PM +0100, Dmitry Vyukov wrote: > > > On Thu, Mar 18, 2021 at 8:31 PM syzbot > > > wrote: > > > > > > > > Hello, > > > > > > > > syzbo

Re: [syzbot] BUG: soft lockup in get_page_from_freelist

2021-03-25 Thread Dmitry Vyukov
On Thu, Mar 25, 2021 at 7:48 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:e1381380 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=11238fb2d0 > kernel config:

Re: [syzbot] BUG: soft lockup in do_wp_page (4)

2021-03-25 Thread Dmitry Vyukov
On Thu, Mar 25, 2021 at 7:20 PM Will Deacon wrote: > > On Thu, Mar 18, 2021 at 08:34:16PM +0100, Dmitry Vyukov wrote: > > On Thu, Mar 18, 2021 at 8:31 PM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following is

Re: [PATCH] net: change netdev_unregister_timeout_secs min value to 1

2021-03-25 Thread Dmitry Vyukov
On Thu, Mar 25, 2021 at 3:43 PM Eric Dumazet wrote: > On 3/25/21 3:38 PM, Dmitry Vyukov wrote: > > On Thu, Mar 25, 2021 at 3:34 PM Eric Dumazet wrote: > >> On 3/25/21 11:31 AM, Dmitry Vyukov wrote: > >>> netdev_unregister_timeout_secs=0 can lead to printing the &g

[PATCH net-next v2] net: change netdev_unregister_timeout_secs min value to 1

2021-03-25 Thread Dmitry Vyukov
le": it changed "refcnt != 1" to "refcnt". Signed-off-by: Dmitry Vyukov Suggested-by: Eric Dumazet Fixes: 5aa3afe107d9 ("net: make unregister netdev warning timeout configurable") Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Changes si

Re: [PATCH] net: change netdev_unregister_timeout_secs min value to 1

2021-03-25 Thread Dmitry Vyukov
On Thu, Mar 25, 2021 at 3:34 PM Eric Dumazet wrote: > On 3/25/21 11:31 AM, Dmitry Vyukov wrote: > > netdev_unregister_timeout_secs=0 can lead to printing the > > "waiting for dev to become free" message every jiffy. > > This is too frequent and unnecessary. &g

Re: [syzbot] memory leak in drm_vma_node_allow

2021-03-25 Thread Dmitry Vyukov
On Thu, Mar 25, 2021 at 2:31 PM Igor Torrente wrote: > > Hello, > > Anyone can inform if there any special Qemu configuration or another thing > necessary to reproduce this issue and drm_client_buffer_vunmap? > > I generated three different .c (-collide, - threaded and one without any > special

Re: [PATCH v2] net: make unregister netdev warning timeout configurable

2021-03-25 Thread Dmitry Vyukov
On Thu, Mar 25, 2021 at 9:46 AM Eric Dumazet wrote: > > On Thu, Mar 25, 2021 at 8:39 AM Dmitry Vyukov wrote: > > > > On Wed, Mar 24, 2021 at 10:40 AM Eric Dumazet wrote: > > > > > > On Tue, Mar 23, 2021 at 7:49 AM Dmitry Vyukov wrote: > > > >

[PATCH] net: change netdev_unregister_timeout_secs min value to 1

2021-03-25 Thread Dmitry Vyukov
netdev_unregister_timeout_secs=0 can lead to printing the "waiting for dev to become free" message every jiffy. This is too frequent and unnecessary. Set the min value to 1 second. Signed-off-by: Dmitry Vyukov Suggested-by: Eric Dumazet Fixes: 5aa3afe107d9 ("net: make unregister

Re: [PATCH v2] net: make unregister netdev warning timeout configurable

2021-03-25 Thread Dmitry Vyukov
On Wed, Mar 24, 2021 at 10:40 AM Eric Dumazet wrote: > > On Tue, Mar 23, 2021 at 7:49 AM Dmitry Vyukov wrote: > > > > netdev_wait_allrefs() issues a warning if refcount does not drop to 0 > > after 10 seconds. While 10 second wait generally should not happen > > u

Re: [PATCH] drm/vkms: fix misuse of WARN_ON

2021-03-25 Thread Dmitry Vyukov
On Wed, Mar 24, 2021 at 11:00 PM Melissa Wen wrote: > > On 03/20, Dmitry Vyukov wrote: > > vkms_vblank_simulate() uses WARN_ON for timing-dependent condition > > (timer overrun). This is a mis-use of WARN_ON, WARN_ON must be used > > to denote kernel bugs. Use pr_warn()

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Dmitry Vyukov
On Wed, Mar 24, 2021 at 3:12 PM Dmitry Vyukov wrote: > > On Wed, 24 Mar 2021 at 15:01, Peter Zijlstra wrote: > > > > > > One last try, I'll leave it alone now, I promise :-) > > > > This looks like it does what you suggested, thanks! :-) > > >

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Dmitry Vyukov
On Wed, Mar 24, 2021 at 3:05 PM Marco Elver wrote: > > On Wed, 24 Mar 2021 at 15:01, Peter Zijlstra wrote: > > > > One last try, I'll leave it alone now, I promise :-) > > This looks like it does what you suggested, thanks! :-) > > I'll still need to think about it, because of the potential

Re: [RFC PATCH 2/2] integrity: double check iint_cache was initialized

2021-03-24 Thread Dmitry Vyukov
On Wed, Mar 24, 2021 at 12:49 PM Mimi Zohar wrote: > > On Wed, 2021-03-24 at 12:37 +0100, Dmitry Vyukov wrote: > > On Wed, Mar 24, 2021 at 12:21 PM Tetsuo Handa > > wrote: > > > > > > On 2021/03/24 20:10, Mimi Zohar wrote: > > > > On We

Re: [RFC PATCH 2/2] integrity: double check iint_cache was initialized

2021-03-24 Thread Dmitry Vyukov
On Wed, Mar 24, 2021 at 12:21 PM Tetsuo Handa wrote: > > On 2021/03/24 20:10, Mimi Zohar wrote: > > On Wed, 2021-03-24 at 19:10 +0900, Tetsuo Handa wrote: > >> On 2021/03/24 1:13, Mimi Zohar wrote: > >>> On Wed, 2021-03-24 at 00:14 +0900, Tetsuo Handa wrote: > On 2021/03/23 23:47, Mimi Zohar

Re: [PATCH] Introduced new tracing mode KCOV_MODE_UNIQUE.

2021-03-23 Thread Dmitry Vyukov
On Sun, Mar 21, 2021 at 7:44 PM Alexander Lochmann wrote: > > It simply stores the executed PCs. > The execution order is discarded. > Each bit in the shared buffer represents every fourth > byte of the text segment. > Since a call instruction on every supported > architecture is at least four

Re: [PATCH] net: make unregister netdev warning timeout configurable

2021-03-23 Thread Dmitry Vyukov
On Mon, Mar 22, 2021 at 8:26 PM David Miller wrote: > > From: Dmitry Vyukov > Date: Sat, 20 Mar 2021 15:28:51 +0100 > > > netdev_wait_allrefs() issues a warning if refcount does not drop to 0 > > after 10 seconds. While 10 second wait generally should not happen &

[PATCH v2] net: make unregister netdev warning timeout configurable

2021-03-23 Thread Dmitry Vyukov
be useful for e.g. manual bisection. The default value matches the current behavior. Signed-off-by: Dmitry Vyukov Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=211877 Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Changes since v1: - use sysctl instead of a config

Re: [PATCH] kernel: kcov: fix a typo in comment

2021-03-23 Thread Dmitry Vyukov
On Tue, Mar 23, 2021 at 7:24 AM tl455047 wrote: > > Fixed a typo in comment. > > Signed-off-by: tl455047 Reviewed-by: Dmitry Vyukov +Andrew, linux-mm as KCOV patches are generally merged into mm. Thanks for the fix > --- > kernel/kcov.c | 2 +- > 1 file changed, 1 ins

Re: [RFC PATCH 2/2] integrity: double check iint_cache was initialized

2021-03-22 Thread Dmitry Vyukov
s a file's integrity status stored in the "iint_cache". > > > > All integrity_inode_get() callers first verify that the IMA policy has > > been loaded, before calling it. Yet for some reason, it is still being > > called, causing a NULL pointer dereference. > > > > As

Re: [syzbot] KASAN: use-after-free Read in disk_part_iter_next (2)

2021-03-22 Thread Dmitry Vyukov
On Mon, Mar 22, 2021 at 8:18 AM Christoph Hellwig wrote: > > I've been running the reproducer on a KASAN enable VM for about > 15 minutes now, but haven't been able to reproduce it. > > Is there a way to inject this proposed fix into the syzbot queue? Hi Christoph, Yes, since this bug has a

[PATCH] net: make unregister netdev warning timeout configurable

2021-03-20 Thread Dmitry Vyukov
matches the current behavior. Signed-off-by: Dmitry Vyukov Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=211877 Cc: net...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- net/Kconfig| 12 net/core/dev.c | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git

[PATCH] drm/vkms: fix misuse of WARN_ON

2021-03-20 Thread Dmitry Vyukov
vkms_vblank_simulate() uses WARN_ON for timing-dependent condition (timer overrun). This is a mis-use of WARN_ON, WARN_ON must be used to denote kernel bugs. Use pr_warn() instead. Signed-off-by: Dmitry Vyukov Reported-by: syzbot+4fc21a003c8332eb0...@syzkaller.appspotmail.com Cc: Rodrigo

Re: [PATCH v5] lockdep: Allow tuning tracing capacity constants.

2021-03-20 Thread Dmitry Vyukov
> https://lkml.kernel.org/r/1c351187-253b-2d49-acaf-4563c63ae...@i-love.sakura.ne.jp > > Reported-by: syzbot > Reported-by: syzbot > Reported-by: syzbot > References: > https://lkml.kernel.org/r/1595640639-9310-1-git-send-email-penguin-ker...@i-love.sakura.ne.jp > Signed-off

Re: NULL deref in integrity_inode_get

2021-03-20 Thread Dmitry Vyukov
On Fri, Mar 19, 2021 at 9:22 PM Mimi Zohar wrote: > > On Thu, 2021-03-18 at 07:53 +0100, Dmitry Vyukov wrote: > > On Thu, Mar 18, 2021 at 3:18 AM Mimi Zohar wrote: > > > > > > Hi Dmitry, > > > > > > On Mon, 2021-03-15 at 14:07 +0100, Dmitry Vyuko

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

2021-03-19 Thread Dmitry Vyukov
.On Fri, Mar 19, 2021 at 10:44 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:8b12a62a Merge tag 'drm-fixes-2021-03-19' of git://anongit.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17e815aed0 > kernel

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

2021-03-19 Thread Dmitry Vyukov
On Fri, Mar 19, 2021 at 7:08 AM Hillf Danton wrote: > > On Thu, 18 Mar 2021 08:10:19 -0700 > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:6417f031 module: remove never implemented MODULE_SUPPORTED.. > > git tree: upstream > > console output:

Re: [syzbot] BUG: soft lockup in do_wp_page (4)

2021-03-18 Thread Dmitry Vyukov
On Thu, Mar 18, 2021 at 8:31 PM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:bf152b0b Merge tag 'for_linus' of git://git.kernel.org/pub.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17d5264ed0 > kernel config:

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

2021-03-18 Thread Dmitry Vyukov
On Thu, Mar 18, 2021 at 4:35 PM Ben Dooks wrote: > > On 18/03/2021 15:18, Dmitry Vyukov wrote: > > On Mon, Mar 15, 2021 at 3:41 PM Ben Dooks wrote: > >> > >> On 15/03/2021 11:52, Dmitry Vyukov wrote: > >>> On Mon, Mar 15, 2021 at 12:30 PM Ben Dooks &

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

2021-03-18 Thread Dmitry Vyukov
On Mon, Mar 15, 2021 at 3:41 PM Ben Dooks wrote: > > On 15/03/2021 11:52, Dmitry Vyukov wrote: > > 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 Dm

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

2021-03-18 Thread Dmitry Vyukov
On Thu, Mar 18, 2021 at 3:50 PM Kefeng Wang wrote: > >> On 2021/3/14 18:47, Dmitry Vyukov wrote: > >>> On Sun, Mar 14, 2021 at 11:14 AM syzbot > >>> wrote: > >>>> Hello, > >>>> > >>>> syzbot found the following iss

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

2021-03-18 Thread Dmitry Vyukov
On Mon, Mar 15, 2021 at 5:55 PM Ben Dooks wrote: > > On Fri, Mar 12, 2021 at 9:12 PM Ben Dooks wrote: > > >>> Still no luck for the moment, can't reproduce it locally, my test is > >>> maybe not that good (I created threads all day long in order to trigger > >>> the put_user of schedule_tail). >

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

2021-03-18 Thread Dmitry Vyukov
On Thu, Mar 18, 2021 at 1:21 PM Kefeng Wang wrote: > On 2021/3/14 18:47, Dmitry Vyukov wrote: > > On Sun, Mar 14, 2021 at 11:14 AM syzbot > > wrote: > >> Hello, > >> > >> syzbot found the following issue on: > >> > >&g

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

2021-03-18 Thread Dmitry Vyukov
> Sean Christopherson wrote: > On Mon, Feb 25, 2019 at 06:50:05AM -0800, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit: 94a47529a645 Add linux-next specific files for 20190222 > > git tree: linux-next > > console output:

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

2021-03-18 Thread Dmitry Vyukov
On Tue, Dec 1, 2020 at 8:40 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:c6b11acc Add linux-next specific files for 20201130 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=114b94e950 > kernel config:

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

2021-03-18 Thread Dmitry Vyukov
On Thu, Mar 18, 2021 at 10:41 AM Ben Dooks wrote: > > On 12/03/2021 17:38, Dmitry Vyukov wrote: > > On Fri, Mar 12, 2021 at 6:34 PM Dmitry Vyukov wrote: > >> > >> On Fri, Mar 12, 2021 at 5:36 PM Ben Dooks > >> wrote: > >>> > >>> O

Re: arm64 syzbot instances

2021-03-18 Thread Dmitry Vyukov
On Wed, Mar 17, 2021 at 7:45 PM Mark Rutland wrote: > > On Thu, Mar 11, 2021 at 05:56:46PM +0100, Dmitry Vyukov wrote: > > On Thu, Mar 11, 2021 at 1:33 PM Mark Rutland wrote: > > > FWIW, I keep my fuzzing config fragment in my fuzzing/* branches on > > > git.ker

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

2021-03-18 Thread Dmitry Vyukov
On Wed, Mar 17, 2021 at 10:10 PM Alexander Lochmann wrote: > On 15.03.21 09:02, Dmitry Vyukov wrote: > >>> Does this introduce an additional real of t->kcov_mode? > >>> If yes, please reuse the value read in check_kcov_mode. > >> Okay. How do I get that val

Re: NULL deref in integrity_inode_get

2021-03-18 Thread Dmitry Vyukov
On Thu, Mar 18, 2021 at 3:18 AM Mimi Zohar wrote: > > Hi Dmitry, > > On Mon, 2021-03-15 at 14:07 +0100, Dmitry Vyukov wrote: > > On Mon, Mar 15, 2021 at 1:41 PM Mimi Zohar wrote: > > > > > > On Mon, 2021-03-15 at 11:58 +0100, Dmitry Vyukov wrote: > > &

Re: [syzbot] kernel panic: corrupted stack end in openat

2021-03-17 Thread Dmitry Vyukov
On Wed, Mar 17, 2021 at 9:32 AM Arnd Bergmann wrote: > > > > > wrote: > > > > > > On Tue, Mar 16, 2021 at 04:44:45PM +0100, Arnd Bergmann wrote: > > > > > > > On Tue, Mar 16, 2021 at 11:17 AM Dmitry Vyukov > > > > > > >

Re: [syzbot] kernel panic: corrupted stack end in openat

2021-03-17 Thread Dmitry Vyukov
On Tue, Mar 16, 2021 at 5:28 PM Arnd Bergmann wrote: > > On Tue, Mar 16, 2021 at 5:13 PM Dmitry Vyukov wrote: > > > > On Tue, Mar 16, 2021 at 5:03 PM Arnd Bergmann wrote: > > > > > > On Tue, Mar 16, 2021 at 4:51 PM Russell King - ARM Linux admin > > &g

Re: [syzbot] kernel panic: corrupted stack end in openat

2021-03-16 Thread Dmitry Vyukov
On Tue, Mar 16, 2021 at 5:03 PM Arnd Bergmann wrote: > > On Tue, Mar 16, 2021 at 4:51 PM Russell King - ARM Linux admin > wrote: > > On Tue, Mar 16, 2021 at 04:44:45PM +0100, Arnd Bergmann wrote: > > > On Tue, Mar 16, 2021 at 11:17 AM Dmitry Vyukov wrote: > > &

Re: [syzbot] kernel panic: corrupted stack end in openat

2021-03-16 Thread Dmitry Vyukov
On Tue, Mar 16, 2021 at 4:51 PM Russell King - ARM Linux admin wrote: > > On Tue, Mar 16, 2021 at 04:44:45PM +0100, Arnd Bergmann wrote: > > On Tue, Mar 16, 2021 at 11:17 AM Dmitry Vyukov wrote: > > > On Tue, Mar 16, 2021 at 11:02 AM Arnd Bergmann wrote: > > > &g

Re: [syzbot] KMSAN: uninit-value in video_usercopy (2)

2021-03-16 Thread Dmitry Vyukov
On Tue, Mar 16, 2021 at 2:56 PM Arnd Bergmann wrote: > > On Tue, Mar 16, 2021 at 11:44 AM Dmitry Vyukov wrote: > > > > On Tue, Mar 16, 2021 at 11:18 AM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following

Re: [syzbot] KMSAN: uninit-value in video_usercopy (2)

2021-03-16 Thread Dmitry Vyukov
On Tue, Mar 16, 2021 at 2:56 PM Arnd Bergmann wrote: > > On Tue, Mar 16, 2021 at 11:44 AM Dmitry Vyukov wrote: > > > > On Tue, Mar 16, 2021 at 11:18 AM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following

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

2021-03-16 Thread Dmitry Vyukov
On Tue, Mar 16, 2021 at 12:35 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

Re: [syzbot] KMSAN: uninit-value in video_usercopy (2)

2021-03-16 Thread Dmitry Vyukov
On Tue, Mar 16, 2021 at 11:18 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:29ad81a1 arch/x86: add missing include to sparsemem.h > git tree: https://github.com/google/kmsan.git master > console output:

Re: [syzbot] kernel panic: corrupted stack end in openat

2021-03-16 Thread Dmitry Vyukov
On Tue, Mar 16, 2021 at 11:02 AM Arnd Bergmann wrote: > > On Tue, Mar 16, 2021 at 8:18 AM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following issue on: > > > > > > HEAD commit:1e28eed1 Linux 5.12-rc3 > > > git tree: upstream > > > console output:

Re: [syzbot] kernel panic: corrupted stack end in openat

2021-03-16 Thread Dmitry Vyukov
On Tue, Mar 16, 2021 at 10:24 AM Russell King - ARM Linux admin wrote: > > On Tue, Mar 16, 2021 at 08:59:17AM +0100, Dmitry Vyukov wrote: > > On Tue, Mar 16, 2021 at 8:18 AM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the fo

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

2021-03-16 Thread Dmitry Vyukov
On Mon, Mar 15, 2021 at 10:38 PM Ben Dooks wrote: > > On 13/03/2021 07:20, Dmitry Vyukov wrote: > > 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 à

Re: [syzbot] kernel panic: corrupted stack end in openat

2021-03-16 Thread Dmitry Vyukov
On Tue, Mar 16, 2021 at 8:18 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:1e28eed1 Linux 5.12-rc3 > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=167535e6d0 > kernel config:

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

2021-03-16 Thread Dmitry Vyukov
On Mon, Mar 15, 2021 at 10:43 PM Alexander Lochmann wrote: > On 15.03.21 09:02, Dmitry Vyukov wrote: > >>>> static notrace unsigned long canonicalize_ip(unsigned long ip) > >>>> @@ -191,18 +192,26 @@ void notrace __sanitizer_cov_trace_pc(void) >

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

2021-03-16 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 Konovalov > Cc: Andrey Ryabinin > Cc: Dmitry Vyukov > Cc: Alexander Potapenko > Cc: A

Re: NULL deref in integrity_inode_get

2021-03-15 Thread Dmitry Vyukov
On Mon, Mar 15, 2021 at 1:41 PM Mimi Zohar wrote: > > Hi Dmitry, > > On Mon, 2021-03-15 at 11:58 +0100, Dmitry Vyukov wrote: > > Hi, > > > > I am trying to boot 5.12-rc3 with this config: > > https://github.com/google/syzkaller/blob/cc1cff8f1e1a585894796d6eae8

  1   2   3   4   5   6   7   8   9   10   >