* Re: [syzbot] [kernel?] WARNING in __dynamic_dev_dbg
[not found] <asnUffnt_gdJ59XH@fedora>
@ 2026-10-10 6:04 ` syzbot
0 siblings, 0 replies; 5+ messages in thread
From: syzbot @ 2026-10-10 6:04 UTC (permalink / raw)
To: seedandsyntax; +Cc: seedandsyntax, syzkaller-bugs, linux-kernel
> #syz test
"" does not look like a valid git branch or commit.
>
>
> From 77bcfa549c94b68a2d3c78ac175b03650efbe31a Mon Sep 17 00:00:00 2001
> From: Mirza Ishan Beg <seedandsyntax@gmail.com>
> Date: Fri, 9 Oct 2026 19:16:10 +0530
> Subject: [PATCH] media: dvb-core: fix OOB read in dtv_property_process_get()
>
> dtv_property_process_get() switches on 'tvp->cmd' and, in each case,
> writes a different member of the union 'u' in struct dtv_property.
> 'u.data' carries the scalar commands, while u.st carries the
> 'DTV_STAT_*' commands, and u.buffer only DTV_ENUM_DELSYS.
>
> After the switch, a single shared dev_dbg() reads 'u.buffer.len'
> and 'u.buffer.data' via %*ph, regardless of which member the case
> wrote.
>
> struct 'dtv_property' is 76 bytes and union 'u' begins at offset 16:
>
> u.data : 4 bytes at 16
> u.st : 37 bytes at 16
> u.buffer : 56 bytes at 16 ('data[32]' at 16-47, 'len' at 48-51)
>
> For commands that only write 'u.data', 'u.buffer.len' is never set by
> the kernel and keeps whatever userspace supplied to FE_GET_PROPERTY,
> because dvb_get_property() copies the array in with
> memdup_array_user() and does not clear the union. A large value (the
> reproducer uses 1163001896) makes vsprintf() emit "field width ...
> out of range" and hex_string() clamp the length to 64 bytes. The
> read starts at 'u.buffer.data', offset 16, so 64 bytes reach offset 80
> and KASAN reports a slab-out-of-bounds read past the 76-byte object.
>
> The DTV_STAT_* cases hit the same shared print. 'u.buffer.len' overlaps
> 'u.st.stat[3].uvalue', so the debug output is meaningless even when the
> read stays in bounds. The same applies to the clamp added by
> 60f0618d157b, which writes to 'u.buffer.len' and therefore into the
> just-written stats payload.
>
> Fix by storing the point of writing which union member each case
> populated, and by branching the final dev_dbg() on that stored point.
> Add a local enum 'dtv_get_shape' with values 'SHAPE_DATA', 'SHAPE_ST'
> and 'SHAPE_BUFFER', initialised to 'SHAPE_DATA' and set in the
> 'DTV_ENUM_DELSYS' and 'DTV_STAT_*' cases. The final print then reads only
> the member the case actually wrote, and every branch stays inside the
> 76-byte object. The clamp and the now-unused 'len' variable are removed.
>
> Fixes: 60f0618d157b ("media: dvb-core: frontend: make GET/SET safer")
> Suggested-by: Slawomir Stepien <sst@poczta.fm>
> Reported-by: syzbot+6102f1c3a0ea8073fd64@syzkaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=6102f1c3a0ea8073fd64
> Link: https://lore.kernel.org/all/2a5ea27d-445e-4ffe-9447-9d7bfccd4a36@mail.kernel.org/
> Signed-off-by: Mirza Ishan Beg <seedandsyntax@gmail.com>
> ---
> drivers/media/dvb-core/dvb_frontend.c | 73 ++++++++++++++-------------
> 1 file changed, 38 insertions(+), 35 deletions(-)
>
> diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c
> index 0286da57f..f4b599a1a 100644
> --- a/drivers/media/dvb-core/dvb_frontend.c
> +++ b/drivers/media/dvb-core/dvb_frontend.c
> @@ -1342,13 +1342,19 @@ static int dtv_get_frontend(struct dvb_frontend *fe,
> static int dvb_frontend_handle_ioctl(struct file *file,
> unsigned int cmd, void *parg);
>
> +enum dtv_get_shape {
> + SHAPE_DATA,
> + SHAPE_ST,
> + SHAPE_BUFFER,
> +};
> +
> static int dtv_property_process_get(struct dvb_frontend *fe,
> const struct dtv_frontend_properties *c,
> struct dtv_property *tvp,
> struct file *file)
> {
> + enum dtv_get_shape shape = SHAPE_DATA;
> int ncaps;
> - unsigned int len = 1;
>
> switch (tvp->cmd) {
> case DTV_ENUM_DELSYS:
> @@ -1358,7 +1364,7 @@ static int dtv_property_process_get(struct dvb_frontend *fe,
> ncaps++;
> }
> tvp->u.buffer.len = ncaps;
> - len = ncaps;
> + shape = SHAPE_BUFFER;
> break;
> case DTV_FREQUENCY:
> tvp->u.data = c->frequency;
> @@ -1536,51 +1542,35 @@ static int dtv_property_process_get(struct dvb_frontend *fe,
> /* Fill quality measures */
> case DTV_STAT_SIGNAL_STRENGTH:
> tvp->u.st = c->strength;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> case DTV_STAT_CNR:
> tvp->u.st = c->cnr;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> case DTV_STAT_PRE_ERROR_BIT_COUNT:
> tvp->u.st = c->pre_bit_error;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> case DTV_STAT_PRE_TOTAL_BIT_COUNT:
> tvp->u.st = c->pre_bit_count;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> case DTV_STAT_POST_ERROR_BIT_COUNT:
> tvp->u.st = c->post_bit_error;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> case DTV_STAT_POST_TOTAL_BIT_COUNT:
> tvp->u.st = c->post_bit_count;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> case DTV_STAT_ERROR_BLOCK_COUNT:
> tvp->u.st = c->block_error;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> case DTV_STAT_TOTAL_BLOCK_COUNT:
> tvp->u.st = c->block_count;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> default:
> dev_dbg(fe->dvb->device,
> @@ -1588,15 +1578,28 @@ static int dtv_property_process_get(struct dvb_frontend *fe,
> __func__, tvp->cmd);
> return -EINVAL;
> }
> -
> - if (len < 1)
> - len = 1;
> -
> - dev_dbg(fe->dvb->device,
> - "%s: GET cmd 0x%08x (%s) len %d: %*ph\n",
> - __func__, tvp->cmd, dtv_cmd_name(tvp->cmd),
> - tvp->u.buffer.len, tvp->u.buffer.len, tvp->u.buffer.data);
> -
> + switch (shape) {
> + case SHAPE_BUFFER:
> + dev_dbg(fe->dvb->device,
> + "%s: GET cmd 0x%08x (%s) len %d: %*ph\n",
> + __func__, tvp->cmd, dtv_cmd_name(tvp->cmd),
> + tvp->u.buffer.len, tvp->u.buffer.len,
> + tvp->u.buffer.data);
> + break;
> + case SHAPE_ST:
> + dev_dbg(fe->dvb->device,
> + "%s: GET cmd 0x%08x (%s) len %d: %*ph\n",
> + __func__, tvp->cmd, dtv_cmd_name(tvp->cmd),
> + tvp->u.st.len, (int)sizeof(tvp->u.st),
> + &tvp->u.st);
> + break;
> + case SHAPE_DATA:
> + dev_dbg(fe->dvb->device,
> + "%s: GET cmd 0x%08x (%s) = 0x%08x\n",
> + __func__, tvp->cmd, dtv_cmd_name(tvp->cmd),
> + tvp->u.data);
> + break;
> + }
> return 0;
> }
>
> --
> 2.56.0
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [syzbot] [kernel?] WARNING in __dynamic_dev_dbg
[not found] <asnXSiqYhug-s7NH@fedora>
@ 2026-10-10 8:18 ` syzbot
0 siblings, 0 replies; 5+ messages in thread
From: syzbot @ 2026-10-10 8:18 UTC (permalink / raw)
To: linux-kernel, seedandsyntax, syzkaller-bugs
Hello,
syzbot has tested the proposed patch and the reproducer did not trigger any issue:
Reported-by: syzbot+6102f1c3a0ea8073fd64@syzkaller.appspotmail.com
Tested-by: syzbot+6102f1c3a0ea8073fd64@syzkaller.appspotmail.com
Tested on:
commit: 3857c2fe Merge tag 'pci-v7.3-fixes-4' of git://git.ker..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=102a649c580000
kernel config: https://syzkaller.appspot.com/x/.config?x=8d2ffae0a5e73b90
dashboard link: https://syzkaller.appspot.com/bug?extid=6102f1c3a0ea8073fd64
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
userspace arch: arm64
patch: https://syzkaller.appspot.com/x/patch.diff?x=132c41d1580000
Note: testing is done by a robot and is best-effort only.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [syzbot] [kernel?] WARNING in __dynamic_dev_dbg
[not found] <asnOH-qMnurm8RH1@fedora>
@ 2026-10-10 5:54 ` syzbot
0 siblings, 0 replies; 5+ messages in thread
From: syzbot @ 2026-10-10 5:54 UTC (permalink / raw)
To: seedandsyntax; +Cc: seedandsyntax, syzkaller-bugs, linux-kernel
> #syz test: upstream
I've failed to parse your command.
Did you perhaps forget to provide the branch name, or added an extra ':'?
Please use one of the two supported formats:
1. #syz test
2. #syz test: repo branch-or-commit-hash
Note the lack of ':' in option 1.
>
> From 77bcfa549c94b68a2d3c78ac175b03650efbe31a Mon Sep 17 00:00:00 2001
> From: Mirza Ishan Beg <seedandsyntax@gmail.com>
> Date: Fri, 9 Oct 2026 19:16:10 +0530
> Subject: [PATCH] media: dvb-core: fix OOB read in dtv_property_process_get()
>
> dtv_property_process_get() switches on 'tvp->cmd' and, in each case,
> writes a different member of the union 'u' in struct dtv_property.
> 'u.data' carries the scalar commands, while u.st carries the
> 'DTV_STAT_*' commands, and u.buffer only DTV_ENUM_DELSYS.
>
> After the switch, a single shared dev_dbg() reads 'u.buffer.len'
> and 'u.buffer.data' via %*ph, regardless of which member the case
> wrote.
>
> struct 'dtv_property' is 76 bytes and union 'u' begins at offset 16:
>
> u.data : 4 bytes at 16
> u.st : 37 bytes at 16
> u.buffer : 56 bytes at 16 ('data[32]' at 16-47, 'len' at 48-51)
>
> For commands that only write 'u.data', 'u.buffer.len' is never set by
> the kernel and keeps whatever userspace supplied to FE_GET_PROPERTY,
> because dvb_get_property() copies the array in with
> memdup_array_user() and does not clear the union. A large value (the
> reproducer uses 1163001896) makes vsprintf() emit "field width ...
> out of range" and hex_string() clamp the length to 64 bytes. The
> read starts at 'u.buffer.data', offset 16, so 64 bytes reach offset 80
> and KASAN reports a slab-out-of-bounds read past the 76-byte object.
>
> The DTV_STAT_* cases hit the same shared print. 'u.buffer.len' overlaps
> 'u.st.stat[3].uvalue', so the debug output is meaningless even when the
> read stays in bounds. The same applies to the clamp added by
> 60f0618d157b, which writes to 'u.buffer.len' and therefore into the
> just-written stats payload.
>
> Fix by storing the point of writing which union member each case
> populated, and by branching the final dev_dbg() on that stored point.
> Add a local enum 'dtv_get_shape' with values 'SHAPE_DATA', 'SHAPE_ST'
> and 'SHAPE_BUFFER', initialised to 'SHAPE_DATA' and set in the
> 'DTV_ENUM_DELSYS' and 'DTV_STAT_*' cases. The final print then reads only
> the member the case actually wrote, and every branch stays inside the
> 76-byte object. The clamp and the now-unused 'len' variable are removed.
>
> Fixes: 60f0618d157b ("media: dvb-core: frontend: make GET/SET safer")
> Suggested-by: Slawomir Stepien <sst@poczta.fm>
> Reported-by: syzbot+6102f1c3a0ea8073fd64@syzkaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=6102f1c3a0ea8073fd64
> Link: https://lore.kernel.org/all/2a5ea27d-445e-4ffe-9447-9d7bfccd4a36@mail.kernel.org/
> Signed-off-by: Mirza Ishan Beg <seedandsyntax@gmail.com>
> ---
> drivers/media/dvb-core/dvb_frontend.c | 73 ++++++++++++++-------------
> 1 file changed, 38 insertions(+), 35 deletions(-)
>
> diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c
> index 0286da57f..f4b599a1a 100644
> --- a/drivers/media/dvb-core/dvb_frontend.c
> +++ b/drivers/media/dvb-core/dvb_frontend.c
> @@ -1342,13 +1342,19 @@ static int dtv_get_frontend(struct dvb_frontend *fe,
> static int dvb_frontend_handle_ioctl(struct file *file,
> unsigned int cmd, void *parg);
>
> +enum dtv_get_shape {
> + SHAPE_DATA,
> + SHAPE_ST,
> + SHAPE_BUFFER,
> +};
> +
> static int dtv_property_process_get(struct dvb_frontend *fe,
> const struct dtv_frontend_properties *c,
> struct dtv_property *tvp,
> struct file *file)
> {
> + enum dtv_get_shape shape = SHAPE_DATA;
> int ncaps;
> - unsigned int len = 1;
>
> switch (tvp->cmd) {
> case DTV_ENUM_DELSYS:
> @@ -1358,7 +1364,7 @@ static int dtv_property_process_get(struct dvb_frontend *fe,
> ncaps++;
> }
> tvp->u.buffer.len = ncaps;
> - len = ncaps;
> + shape = SHAPE_BUFFER;
> break;
> case DTV_FREQUENCY:
> tvp->u.data = c->frequency;
> @@ -1536,51 +1542,35 @@ static int dtv_property_process_get(struct dvb_frontend *fe,
> /* Fill quality measures */
> case DTV_STAT_SIGNAL_STRENGTH:
> tvp->u.st = c->strength;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> case DTV_STAT_CNR:
> tvp->u.st = c->cnr;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> case DTV_STAT_PRE_ERROR_BIT_COUNT:
> tvp->u.st = c->pre_bit_error;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> case DTV_STAT_PRE_TOTAL_BIT_COUNT:
> tvp->u.st = c->pre_bit_count;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> case DTV_STAT_POST_ERROR_BIT_COUNT:
> tvp->u.st = c->post_bit_error;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> case DTV_STAT_POST_TOTAL_BIT_COUNT:
> tvp->u.st = c->post_bit_count;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> case DTV_STAT_ERROR_BLOCK_COUNT:
> tvp->u.st = c->block_error;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> case DTV_STAT_TOTAL_BLOCK_COUNT:
> tvp->u.st = c->block_count;
> - if (tvp->u.buffer.len > MAX_DTV_STATS * sizeof(u32))
> - tvp->u.buffer.len = MAX_DTV_STATS * sizeof(u32);
> - len = tvp->u.buffer.len;
> + shape = SHAPE_ST;
> break;
> default:
> dev_dbg(fe->dvb->device,
> @@ -1588,15 +1578,28 @@ static int dtv_property_process_get(struct dvb_frontend *fe,
> __func__, tvp->cmd);
> return -EINVAL;
> }
> -
> - if (len < 1)
> - len = 1;
> -
> - dev_dbg(fe->dvb->device,
> - "%s: GET cmd 0x%08x (%s) len %d: %*ph\n",
> - __func__, tvp->cmd, dtv_cmd_name(tvp->cmd),
> - tvp->u.buffer.len, tvp->u.buffer.len, tvp->u.buffer.data);
> -
> + switch (shape) {
> + case SHAPE_BUFFER:
> + dev_dbg(fe->dvb->device,
> + "%s: GET cmd 0x%08x (%s) len %d: %*ph\n",
> + __func__, tvp->cmd, dtv_cmd_name(tvp->cmd),
> + tvp->u.buffer.len, tvp->u.buffer.len,
> + tvp->u.buffer.data);
> + break;
> + case SHAPE_ST:
> + dev_dbg(fe->dvb->device,
> + "%s: GET cmd 0x%08x (%s) len %d: %*ph\n",
> + __func__, tvp->cmd, dtv_cmd_name(tvp->cmd),
> + tvp->u.st.len, (int)sizeof(tvp->u.st),
> + &tvp->u.st);
> + break;
> + case SHAPE_DATA:
> + dev_dbg(fe->dvb->device,
> + "%s: GET cmd 0x%08x (%s) = 0x%08x\n",
> + __func__, tvp->cmd, dtv_cmd_name(tvp->cmd),
> + tvp->u.data);
> + break;
> + }
> return 0;
> }
>
> --
> 2.56.0
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [syzbot] [kernel?] WARNING in __dynamic_dev_dbg
2026-08-19 5:33 syzbot
@ 2026-09-26 12:35 ` syzbot
0 siblings, 0 replies; 5+ messages in thread
From: syzbot @ 2026-09-26 12:35 UTC (permalink / raw)
To: dakr, driver-core, gregkh, linux-kernel, rafael, syzkaller-bugs
syzbot has found a reproducer for the following issue on:
HEAD commit: e8e60d3ddd25 Merge branch 'for-next/core' into for-kernelci
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
console output: https://syzkaller.appspot.com/x/log.txt?x=13f66a05580000
kernel config: https://syzkaller.appspot.com/x/.config?x=375776a45e10c065
dashboard link: https://syzkaller.appspot.com/bug?extid=6102f1c3a0ea8073fd64
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
userspace arch: arm64
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=149b92c9580000
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6102f1c3a0ea8073fd64@syzkaller.appspotmail.com
------------[ cut here ]------------
field width 1163001896 out of range
WARNING: lib/vsprintf.c:2654 at set_field_width lib/vsprintf.c:2654 [inline], CPU#1: syz-executor257/5017
WARNING: lib/vsprintf.c:2654 at vsnprintf+0xb9c/0xd10 lib/vsprintf.c:2918, CPU#1: syz-executor257/5017
Modules linked in:
CPU: 1 UID: 0 PID: 5017 Comm: syz-executor257 Not tainted syzkaller #0 PREEMPT
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/14/2026
pstate: 634000c5 (nZCv daIF +PAN -UAO +TCO +DIT -SSBS BTYPE=--)
pc : set_field_width lib/vsprintf.c:2654 [inline]
pc : vsnprintf+0xb9c/0xd10 lib/vsprintf.c:2918
lr : set_field_width lib/vsprintf.c:2654 [inline]
lr : vsnprintf+0xb9c/0xd10 lib/vsprintf.c:2918
sp : ffff8000950d6b10
x29: ffff8000950d6b60 x28: 00000000007fffff x27: ffff8000873d6422
x26: 0000000045520028 x25: ffff8000950d6bd8 x24: 0000000000000402
x23: ffff8000950d6f18 x22: ffff800087abd600 x21: ffff8000950d6bf0
x20: ffff8000950d6ecb x19: dfff800000000000 x18: 0000000000000000
x17: ffff8000839f990c x16: ffff800083a13a68 x15: 0000fffff4c1bf60
x14: 0000000000000747 x13: 0000000000000001 x12: 0000000000000003
x11: 0000000000000000 x10: 0000000000000002 x9 : a322e52aa42a7400
x8 : a322e52aa42a7400 x7 : ffff8000804823d8 x6 : 0000000000000000
x5 : 0000000000000001 x4 : 0000000000000000 x3 : ffff8000802f3e90
x2 : 0000000100000000 x1 : ffff0000d38bd880 x0 : 0000000000000000
Call trace:
set_field_width lib/vsprintf.c:2654 [inline] (P)
vsnprintf+0xb9c/0xd10 lib/vsprintf.c:2918 (P)
va_format lib/vsprintf.c:1725 [inline]
pointer+0x5e8/0x6b4 lib/vsprintf.c:2577
vsnprintf+0x618/0xd10 lib/vsprintf.c:2953
vprintk_store+0x344/0xb94 kernel/printk/printk.c:2307
vprintk_emit+0x1bc/0x514 kernel/printk/printk.c:2455
dev_vprintk_emit+0x2ec/0x3b4 drivers/base/core.c:5000
dev_printk_emit+0xe0/0x130 drivers/base/core.c:5011
__dynamic_dev_dbg+0x1b4/0x254 lib/dynamic_debug.c:904
dtv_property_process_get+0x26bc/0x2838 drivers/media/dvb-core/dvb_frontend.c:1595
dvb_get_property drivers/media/dvb-core/dvb_frontend.c:2397 [inline]
dvb_frontend_handle_ioctl+0x1644/0x2424 drivers/media/dvb-core/dvb_frontend.c:2478
dvb_frontend_do_ioctl+0x124/0x278 drivers/media/dvb-core/dvb_frontend.c:2101
dvb_usercopy+0x2a4/0x4d4 drivers/media/dvb-core/dvbdev.c:996
dvb_frontend_ioctl+0x68/0x8c drivers/media/dvb-core/dvb_frontend.c:2115
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:597 [inline]
__se_sys_ioctl fs/ioctl.c:583 [inline]
__arm64_sys_ioctl+0x154/0x1cc fs/ioctl.c:583
__invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49
el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121
do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140
el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:796
el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:815
el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606
irq event stamp: 7442
hardirqs last enabled at (7441): [<ffff80008688206c>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline]
hardirqs last enabled at (7441): [<ffff80008688206c>] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:221
hardirqs last disabled at (7442): [<ffff800080485188>] vprintk_store+0x13c/0xb94 kernel/printk/printk.c:2287
softirqs last enabled at (7400): [<ffff8000801382ec>] local_bh_enable include/linux/bottom_half.h:33 [inline]
softirqs last enabled at (7400): [<ffff8000801382ec>] put_cpu_fpsimd_context arch/arm64/kernel/fpsimd.c:251 [inline]
softirqs last enabled at (7400): [<ffff8000801382ec>] do_sve_acc+0x32c/0x4b8 arch/arm64/kernel/fpsimd.c:1332
softirqs last disabled at (7398): [<ffff8000801380cc>] local_bh_disable include/linux/bottom_half.h:20 [inline]
softirqs last disabled at (7398): [<ffff8000801380cc>] get_cpu_fpsimd_context arch/arm64/kernel/fpsimd.c:234 [inline]
softirqs last disabled at (7398): [<ffff8000801380cc>] do_sve_acc+0x10c/0x4b8 arch/arm64/kernel/fpsimd.c:1308
---[ end trace 0000000000000000 ]---
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_st
---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [syzbot] [kernel?] WARNING in __dynamic_dev_dbg
@ 2026-08-19 5:33 syzbot
2026-09-26 12:35 ` syzbot
0 siblings, 1 reply; 5+ messages in thread
From: syzbot @ 2026-08-19 5:33 UTC (permalink / raw)
To: dakr, driver-core, gregkh, linux-kernel, rafael, syzkaller-bugs
Hello,
syzbot found the following issue on:
HEAD commit: 21d6ac051080 Merge branch 'for-next/core' into for-kernelci
git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci
console output: https://syzkaller.appspot.com/x/log.txt?x=1022e279580000
kernel config: https://syzkaller.appspot.com/x/.config?x=d1128bc53f2ef7f3
dashboard link: https://syzkaller.appspot.com/bug?extid=6102f1c3a0ea8073fd64
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
userspace arch: arm64
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/88380e2ddcb9/disk-21d6ac05.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/5dba5c2896b7/vmlinux-21d6ac05.xz
kernel image: https://storage.googleapis.com/syzbot-assets/52ac739e37e0/Image-21d6ac05.gz.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6102f1c3a0ea8073fd64@syzkaller.appspotmail.com
------------[ cut here ]------------
field width 67108864 out of range
WARNING: lib/vsprintf.c:2650 at set_field_width lib/vsprintf.c:2650 [inline], CPU#0: syz.6.1148/9267
WARNING: lib/vsprintf.c:2650 at vsnprintf+0xb9c/0xd10 lib/vsprintf.c:2914, CPU#0: syz.6.1148/9267
Modules linked in:
CPU: 0 UID: 0 PID: 9267 Comm: syz.6.1148 Tainted: G L syzkaller #0 PREEMPT
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/07/2026
pstate: 634000c5 (nZCv daIF +PAN -UAO +TCO +DIT -SSBS BTYPE=--)
pc : set_field_width lib/vsprintf.c:2650 [inline]
pc : vsnprintf+0xb9c/0xd10 lib/vsprintf.c:2914
lr : set_field_width lib/vsprintf.c:2650 [inline]
lr : vsnprintf+0xb9c/0xd10 lib/vsprintf.c:2914
sp : ffff8000946e6b10
x29: ffff8000946e6b60 x28: 00000000007fffff x27: ffff800087471e82
x26: 0000000004000000 x25: ffff8000946e6bd8 x24: 0000000000000402
x23: ffff8000946e6f18 x22: ffff800087b3ed00 x21: ffff8000946e6bf0
x20: ffff8000946e6ecb x19: dfff800000000000 x18: 0000000000000000
x17: 0000000000000000 x16: 0000000000000000 x15: 0000000020000040
x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000000
x11: 0000000000000000 x10: 0000000000080000 x9 : d2e0bfbdf6510800
x8 : d2e0bfbdf6510800 x7 : ffff80008048c5b8 x6 : 0000000000000000
x5 : 0000000000000001 x4 : 0000000000000000 x3 : ffff8000802f6830
x2 : 0000000100000000 x1 : ffff0000f664d7c0 x0 : 0000000000000001
Call trace:
set_field_width lib/vsprintf.c:2650 [inline] (P)
vsnprintf+0xb9c/0xd10 lib/vsprintf.c:2914 (P)
va_format lib/vsprintf.c:1725 [inline]
pointer+0x5e8/0x6b4 lib/vsprintf.c:2573
vsnprintf+0x618/0xd10 lib/vsprintf.c:2949
vprintk_store+0x344/0xb94 kernel/printk/printk.c:2307
vprintk_emit+0x1bc/0x514 kernel/printk/printk.c:2455
dev_vprintk_emit+0x2ec/0x3b4 drivers/base/core.c:4996
dev_printk_emit+0xe0/0x130 drivers/base/core.c:5007
__dynamic_dev_dbg+0x1b4/0x254 lib/dynamic_debug.c:904
dtv_property_process_get+0x26bc/0x2838 drivers/media/dvb-core/dvb_frontend.c:1594
dvb_get_property drivers/media/dvb-core/dvb_frontend.c:2396 [inline]
dvb_frontend_handle_ioctl+0x1644/0x2424 drivers/media/dvb-core/dvb_frontend.c:2477
dvb_frontend_do_ioctl+0x124/0x278 drivers/media/dvb-core/dvb_frontend.c:2100
dvb_usercopy+0x2a4/0x4d4 drivers/media/dvb-core/dvbdev.c:996
dvb_frontend_ioctl+0x68/0x8c drivers/media/dvb-core/dvb_frontend.c:2114
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:597 [inline]
__se_sys_ioctl fs/ioctl.c:583 [inline]
__arm64_sys_ioctl+0x154/0x1cc fs/ioctl.c:583
__invoke_syscall arch/arm64/kernel/syscall.c:35 [inline]
invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49
el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121
do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140
el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:758
el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:777
el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590
irq event stamp: 150
hardirqs last enabled at (149): [<ffff80008690f4e0>] irqentry_exit_to_kernel_mode_after_preempt include/linux/irq-entry-common.h:507 [inline]
hardirqs last enabled at (149): [<ffff80008690f4e0>] __arm64_exit_to_kernel_mode+0x64/0x78 arch/arm64/kernel/entry-common.c:60
hardirqs last disabled at (150): [<ffff80008048f368>] vprintk_store+0x13c/0xb94 kernel/printk/printk.c:2287
softirqs last enabled at (114): [<ffff80008013b050>] local_bh_enable include/linux/bottom_half.h:33 [inline]
softirqs last enabled at (114): [<ffff80008013b050>] put_cpu_fpsimd_context arch/arm64/kernel/fpsimd.c:251 [inline]
softirqs last enabled at (114): [<ffff80008013b050>] fpsimd_restore_current_state+0x39c/0x9c8 arch/arm64/kernel/fpsimd.c:1797
softirqs last disabled at (112): [<ffff80008013acf8>] local_bh_disable include/linux/bottom_half.h:20 [inline]
softirqs last disabled at (112): [<ffff80008013acf8>] get_cpu_fpsimd_context arch/arm64/kernel/fpsimd.c:234 [inline]
softirqs last disabled at (112): [<ffff80008013acf8>] fpsimd_restore_current_state+0x44/0x9c8 arch/arm64/kernel/fpsimd.c:1790
---[ end trace 0000000000000000 ]---
---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-10-10 8:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <asnUffnt_gdJ59XH@fedora>
2026-10-10 6:04 ` [syzbot] [kernel?] WARNING in __dynamic_dev_dbg syzbot
[not found] <asnXSiqYhug-s7NH@fedora>
2026-10-10 8:18 ` syzbot
[not found] <asnOH-qMnurm8RH1@fedora>
2026-10-10 5:54 ` syzbot
2026-08-19 5:33 syzbot
2026-09-26 12:35 ` syzbot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®