Discussion:
Bug#1099302: linux-source: People still can avoid multiple definitions symbol on loader.
Add Reply
Corcodel Marian
2025-03-01 23:20:01 UTC
Reply
Permalink
Package: linux-source
Severity: normal
Tags: patch
X-Debbugs-Cc: ***@gmail.com

Hi
Bellow i explain simple method used only for research purpose used as
countermeasure in order to run MODULE_DEVICE_TABLE macro whithout .ko file,
just fixing stringfy problems ,like:

ld: drivers/usb/host/ehci-pci.o:(.rodata+0x0): multiple definition of
`__mod_pci__pci_ids_device_table';
drivers/tty/serial/8250/8250_mid.o:(.rodata+0x0): first defined here
ld: drivers/usb/host/ohci-pci.o:(.rodata+0x0): multiple definition of
`__mod_pci__pci_ids_device_table';
drivers/tty/serial/8250/8250_mid.o:(.rodata+0x0): first defined here


-- System Information:
Debian Release: 12.9
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.12.5+ (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages linux-source depends on:
pn linux-source-6.1 <none>

linux-source recommends no packages.

linux-source suggests no packages.
Marian Corcodel
2025-03-02 00:20:02 UTC
Reply
Permalink
People can build a list in format .txt in kernel with reserved names used around
MODULE_DEVICE_TABLE, relative to names used by pci_id to avoid
duplicates, repeat ,loader
program is good make good job against this situation, seems random
number generator have
some issuess, or just voluntary just remove pci_id from kernel and let
developersto chose his name, and result double guards agains stringfy
problems.

Loading...